@opencx/widget 5.0.0-beta.0 → 5.0.0-beta.10
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.
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import{c as mi,g as ue,r as q,a as J,f as S,P as ne,j as ye,S as iO}from"./widget.js";var yo,Hh;function Le(){if(Hh)return yo;Hh=1;var e=Array.isArray;return yo=e,yo}var mo,Vh;function qb(){if(Vh)return mo;Vh=1;var e=typeof mi=="object"&&mi&&mi.Object===Object&&mi;return mo=e,mo}var go,Xh;function ht(){if(Xh)return go;Xh=1;var e=qb(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return go=r,go}var bo,Yh;function ai(){if(Yh)return bo;Yh=1;var e=ht(),t=e.Symbol;return bo=t,bo}var xo,Zh;function aO(){if(Zh)return xo;Zh=1;var e=ai(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),c=o[i];try{o[i]=void 0;var s=!0}catch{}var f=n.call(o);return s&&(u?o[i]=c:delete o[i]),f}return xo=a,xo}var wo,Jh;function oO(){if(Jh)return wo;Jh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return wo=r,wo}var Oo,Qh;function At(){if(Qh)return Oo;Qh=1;var e=ai(),t=aO(),r=oO(),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 Oo=o,Oo}var _o,ep;function St(){if(ep)return _o;ep=1;function e(t){return t!=null&&typeof t=="object"}return _o=e,_o}var Ao,tp;function Zr(){if(tp)return Ao;tp=1;var e=At(),t=St(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Ao=n,Ao}var So,rp;function Ff(){if(rp)return So;rp=1;var e=Le(),t=Zr(),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 So=i,So}var Po,np;function Rt(){if(np)return Po;np=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Po=e,Po}var To,ip;function zf(){if(ip)return To;ip=1;var e=At(),t=Rt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var c=e(u);return c==n||c==i||c==r||c==a}return To=o,To}var Eo,ap;function uO(){if(ap)return Eo;ap=1;var e=ht(),t=e["__core-js_shared__"];return Eo=t,Eo}var jo,op;function cO(){if(op)return jo;op=1;var e=uO(),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 jo=r,jo}var Mo,up;function Lb(){if(up)return Mo;up=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 Mo=r,Mo}var $o,cp;function sO(){if(cp)return $o;cp=1;var e=zf(),t=cO(),r=Rt(),n=Lb(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,c=o.toString,s=u.hasOwnProperty,f=RegExp("^"+c.call(s).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var d=e(h)?f:a;return d.test(n(h))}return $o=l,$o}var Co,sp;function lO(){if(sp)return Co;sp=1;function e(t,r){return t==null?void 0:t[r]}return Co=e,Co}var Io,lp;function or(){if(lp)return Io;lp=1;var e=sO(),t=lO();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Io=r,Io}var ko,fp;function $a(){if(fp)return ko;fp=1;var e=or(),t=e(Object,"create");return ko=t,ko}var Ro,hp;function fO(){if(hp)return Ro;hp=1;var e=$a();function t(){this.__data__=e?e(null):{},this.size=0}return Ro=t,Ro}var Do,pp;function hO(){if(pp)return Do;pp=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Do=e,Do}var No,dp;function pO(){if(dp)return No;dp=1;var e=$a(),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 No=i,No}var qo,vp;function dO(){if(vp)return qo;vp=1;var e=$a(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return qo=n,qo}var Lo,yp;function vO(){if(yp)return Lo;yp=1;var e=$a(),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 Lo=r,Lo}var Bo,mp;function yO(){if(mp)return Bo;mp=1;var e=fO(),t=hO(),r=pO(),n=dO(),i=vO();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Bo=a,Bo}var Fo,gp;function mO(){if(gp)return Fo;gp=1;function e(){this.__data__=[],this.size=0}return Fo=e,Fo}var zo,bp;function Uf(){if(bp)return zo;bp=1;function e(t,r){return t===r||t!==t&&r!==r}return zo=e,zo}var Uo,xp;function Ca(){if(xp)return Uo;xp=1;var e=Uf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Uo=t,Uo}var Wo,wp;function gO(){if(wp)return Wo;wp=1;var e=Ca(),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 Wo=n,Wo}var Ko,Op;function bO(){if(Op)return Ko;Op=1;var e=Ca();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Ko=t,Ko}var Go,_p;function xO(){if(_p)return Go;_p=1;var e=Ca();function t(r){return e(this.__data__,r)>-1}return Go=t,Go}var Ho,Ap;function wO(){if(Ap)return Ho;Ap=1;var e=Ca();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 Ho=t,Ho}var Vo,Sp;function Ia(){if(Sp)return Vo;Sp=1;var e=mO(),t=gO(),r=bO(),n=xO(),i=wO();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Vo=a,Vo}var Xo,Pp;function Wf(){if(Pp)return Xo;Pp=1;var e=or(),t=ht(),r=e(t,"Map");return Xo=r,Xo}var Yo,Tp;function OO(){if(Tp)return Yo;Tp=1;var e=yO(),t=Ia(),r=Wf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Yo=n,Yo}var Zo,Ep;function _O(){if(Ep)return Zo;Ep=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Zo=e,Zo}var Jo,jp;function ka(){if(jp)return Jo;jp=1;var e=_O();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Jo=t,Jo}var Qo,Mp;function AO(){if(Mp)return Qo;Mp=1;var e=ka();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Qo=t,Qo}var eu,$p;function SO(){if($p)return eu;$p=1;var e=ka();function t(r){return e(this,r).get(r)}return eu=t,eu}var tu,Cp;function PO(){if(Cp)return tu;Cp=1;var e=ka();function t(r){return e(this,r).has(r)}return tu=t,tu}var ru,Ip;function TO(){if(Ip)return ru;Ip=1;var e=ka();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 ru=t,ru}var nu,kp;function Kf(){if(kp)return nu;kp=1;var e=OO(),t=AO(),r=SO(),n=PO(),i=TO();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,nu=a,nu}var iu,Rp;function Bb(){if(Rp)return iu;Rp=1;var e=Kf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],c=a.cache;if(c.has(u))return c.get(u);var s=n.apply(this,o);return a.cache=c.set(u,s)||c,s};return a.cache=new(r.Cache||e),a}return r.Cache=e,iu=r,iu}var au,Dp;function EO(){if(Dp)return au;Dp=1;var e=Bb(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return au=r,au}var ou,Np;function jO(){if(Np)return ou;Np=1;var e=EO(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,c,s){a.push(c?s.replace(r,"$1"):u||o)}),a});return ou=n,ou}var uu,qp;function Gf(){if(qp)return uu;qp=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 uu=e,uu}var cu,Lp;function MO(){if(Lp)return cu;Lp=1;var e=ai(),t=Gf(),r=Le(),n=Zr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return cu=o,cu}var su,Bp;function Fb(){if(Bp)return su;Bp=1;var e=MO();function t(r){return r==null?"":e(r)}return su=t,su}var lu,Fp;function zb(){if(Fp)return lu;Fp=1;var e=Le(),t=Ff(),r=jO(),n=Fb();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return lu=i,lu}var fu,zp;function Ra(){if(zp)return fu;zp=1;var e=Zr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return fu=t,fu}var hu,Up;function Hf(){if(Up)return hu;Up=1;var e=zb(),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 hu=r,hu}var pu,Wp;function Ub(){if(Wp)return pu;Wp=1;var e=Hf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return pu=t,pu}var $O=Ub();const Ge=ue($O);var du,Kp;function CO(){if(Kp)return du;Kp=1;function e(t){return t==null}return du=e,du}var IO=CO();const Y=ue(IO);var vu,Gp;function kO(){if(Gp)return vu;Gp=1;var e=At(),t=Le(),r=St(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return vu=i,vu}var RO=kO();const er=ue(RO);var DO=zf();const H=ue(DO);var NO=Rt();const Jr=ue(NO);var yu={exports:{}},ie={};/**
|
|
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 Hp;function qO(){if(Hp)return ie;Hp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case e:switch(p=p.type,p){case r:case i:case n:case s:case f:return p;default:switch(p=p&&p.$$typeof,p){case u:case o:case c:case h:case l:case a:return p;default:return g}}case t:return g}}}return ie.ContextConsumer=o,ie.ContextProvider=a,ie.Element=e,ie.ForwardRef=c,ie.Fragment=r,ie.Lazy=h,ie.Memo=l,ie.Portal=t,ie.Profiler=i,ie.StrictMode=n,ie.Suspense=s,ie.SuspenseList=f,ie.isAsyncMode=function(){return!1},ie.isConcurrentMode=function(){return!1},ie.isContextConsumer=function(p){return v(p)===o},ie.isContextProvider=function(p){return v(p)===a},ie.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ie.isForwardRef=function(p){return v(p)===c},ie.isFragment=function(p){return v(p)===r},ie.isLazy=function(p){return v(p)===h},ie.isMemo=function(p){return v(p)===l},ie.isPortal=function(p){return v(p)===t},ie.isProfiler=function(p){return v(p)===i},ie.isStrictMode=function(p){return v(p)===n},ie.isSuspense=function(p){return v(p)===s},ie.isSuspenseList=function(p){return v(p)===f},ie.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===s||p===f||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===l||p.$$typeof===a||p.$$typeof===o||p.$$typeof===c||p.$$typeof===y||p.getModuleId!==void 0)},ie.typeOf=v,ie}var Vp;function LO(){return Vp||(Vp=1,yu.exports=qO()),yu.exports}var BO=LO(),mu,Xp;function Wb(){if(Xp)return mu;Xp=1;var e=At(),t=St(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return mu=n,mu}var gu,Yp;function FO(){if(Yp)return gu;Yp=1;var e=Wb();function t(r){return e(r)&&r!=+r}return gu=t,gu}var zO=FO();const oi=ue(zO);var UO=Wb();const WO=ue(UO);var Ie=function(t){return t===0?0:t>0?1:-1},ml=function(t){return er(t)&&t.indexOf("%")===t.length-1},N=function(t){return WO(t)&&!oi(t)},KO=function(t){return Y(t)},Pe=function(t){return N(t)||er(t)},GO=0,Qr=function(t){var r=++GO;return"".concat(t||"").concat(r)},ke=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!N(t)&&!er(t))return n;var a;if(ml(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return oi(a)&&(a=n),i&&a>r&&(a=r),a},Mt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},HO=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},We=function(t,r){return N(t)&&N(r)?function(n){return t+n*(r-t)}:function(){return r}};function $i(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ge(n,t))===r})}var VO=function(t,r){return N(t)&&N(r)?t-r:er(t)&&er(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Or(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 gl(e){"@babel/helpers - typeof";return gl=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},gl(e)}var XO=["viewBox","children"],YO=["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"],Zp=["points","pathLength"],bu={svg:XO,polygon:Zp,polyline:Zp},Vf=["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"],Ci=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(q.isValidElement(t)&&(n=t.props),!Jr(n))return null;var i={};return Object.keys(n).forEach(function(a){Vf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},ZO=function(t,r,n){return function(i){return t(r,n,i),null}},tr=function(t,r,n){if(!Jr(t)||gl(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Vf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=ZO(o,r,n))}),i},JO=["children"],QO=["children"];function Jp(e,t){if(e==null)return{};var r=e_(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function e_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function bl(e){"@babel/helpers - typeof";return bl=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},bl(e)}var Qp={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"},Ct=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},ed=null,xu=null,Xf=function e(t){if(t===ed&&Array.isArray(xu))return xu;var r=[];return q.Children.forEach(t,function(n){Y(n)||(BO.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),xu=r,ed=t,r};function He(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ct(i)}):n=[Ct(t)],Xf(e).forEach(function(i){var a=Ge(i,"type.displayName")||Ge(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ue(e,t){var r=He(e,t);return r&&r[0]}var td=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!N(n)||n<=0||!N(i)||i<=0)},t_=["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"],r_=function(t){return t&&t.type&&er(t.type)&&t_.indexOf(t.type)>=0},n_=function(t){return t&&bl(t)==="object"&&"clipDot"in t},i_=function(t,r,n,i){var a,o=(a=bu==null?void 0:bu[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!H(t)&&(i&&o.includes(r)||YO.includes(r))||n&&Vf.includes(r)},K=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(q.isValidElement(t)&&(i=t.props),!Jr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;i_((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},xl=function e(t,r){if(t===r)return!0;var n=q.Children.count(t);if(n!==q.Children.count(r))return!1;if(n===0)return!0;if(n===1)return rd(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(!rd(a,o))return!1}return!0},rd=function(t,r){if(Y(t)&&Y(r))return!0;if(!Y(t)&&!Y(r)){var n=t.props||{},i=n.children,a=Jp(n,JO),o=r.props||{},u=o.children,c=Jp(o,QO);return i&&u?Or(a,c)&&xl(i,u):!i&&!u?Or(a,c):!1}return!1},nd=function(t,r){var n=[],i={};return Xf(t).forEach(function(a,o){if(r_(a))n.push(a);else if(a){var u=Ct(a.type),c=r[u]||{},s=c.handler,f=c.once;if(s&&(!f||!i[u])){var l=s(a,u,o);n.push(l),i[u]=!0}}}),n},a_=function(t){var r=t&&t.type;return r&&Qp[r]?Qp[r]:null},o_=function(t,r){return Xf(r).indexOf(t)},u_=["children","width","height","viewBox","className","style","title","desc"];function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wl.apply(this,arguments)}function c_(e,t){if(e==null)return{};var r=s_(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ol(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,s=c_(e,u_),f=i||{width:r,height:n,x:0,y:0},l=J("recharts-surface",a);return S.createElement("svg",wl({},K(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),S.createElement("title",null,u),S.createElement("desc",null,c),t)}var l_=["children","className"];function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_l.apply(this,arguments)}function f_(e,t){if(e==null)return{};var r=h_(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 h_(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 te=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=f_(e,l_),a=J("recharts-layer",n);return S.createElement("g",_l({className:a},K(i,!0),{ref:t}),r)}),kt=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]},wu,id;function p_(){if(id)return wu;id=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 wu=e,wu}var Ou,ad;function d_(){if(ad)return Ou;ad=1;var e=p_();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 Ou=t,Ou}var _u,od;function Kb(){if(od)return _u;od=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function c(s){return u.test(s)}return _u=c,_u}var Au,ud;function v_(){if(ud)return Au;ud=1;function e(t){return t.split("")}return Au=e,Au}var Su,cd;function y_(){if(cd)return Su;cd=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",s="(?:"+u+"|"+c+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",y=s+"?",v="["+a+"]?",p="(?:"+d+"(?:"+[f,l,h].join("|")+")"+v+y+")*",g=v+y+p,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+g,"g");function O(m){return m.match(w)||[]}return Su=O,Su}var Pu,sd;function m_(){if(sd)return Pu;sd=1;var e=v_(),t=Kb(),r=y_();function n(i){return t(i)?r(i):e(i)}return Pu=n,Pu}var Tu,ld;function g_(){if(ld)return Tu;ld=1;var e=d_(),t=Kb(),r=m_(),n=Fb();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,c=u?u[0]:o.charAt(0),s=u?e(u,1).join(""):o.slice(1);return c[a]()+s}}return Tu=i,Tu}var Eu,fd;function b_(){if(fd)return Eu;fd=1;var e=g_(),t=e("toUpperCase");return Eu=t,Eu}var x_=b_();const Da=ue(x_);function se(e){return function(){return e}}const Gb=Math.cos,Ii=Math.sin,ot=Math.sqrt,ki=Math.PI,Na=2*ki,Al=Math.PI,Sl=2*Al,Kt=1e-6,w_=Sl-Kt;function Hb(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function O_(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Hb;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 __{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Hb:O_(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,c=n-t,s=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Kt)if(!(Math.abs(l*c-s*f)>Kt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=n-o,y=i-u,v=c*c+s*s,p=d*d+y*y,g=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((Al-Math.acos((v+h-p)/(2*g*x)))/2),O=w/x,m=w/g;Math.abs(O-1)>Kt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*d>f*y)},${this._x1=t+m*c},${this._y1=r+m*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),s=t+u,f=r+c,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Kt||Math.abs(this._y1-f)>Kt)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%Sl+Sl),h>w_?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:h>Kt&&this._append`A${n},${n},0,${+(h>=Al)},${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 Yf(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 __(t)}function Zf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Vb(e){this._context=e}Vb.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 qa(e){return new Vb(e)}function Xb(e){return e[0]}function Yb(e){return e[1]}function Zb(e,t){var r=se(!0),n=null,i=qa,a=null,o=Yf(u);e=typeof e=="function"?e:e===void 0?Xb:se(e),t=typeof t=="function"?t:t===void 0?Yb:se(t);function u(c){var s,f=(c=Zf(c)).length,l,h=!1,d;for(n==null&&(a=i(d=o())),s=0;s<=f;++s)!(s<f&&r(l=c[s],s,c))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,s,c),+t(l,s,c));if(d)return a=null,d+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:se(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:se(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:se(!!c),u):r},u.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),u):i},u.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),u):n},u}function gi(e,t,r){var n=null,i=se(!0),a=null,o=qa,u=null,c=Yf(s);e=typeof e=="function"?e:e===void 0?Xb:se(+e),t=typeof t=="function"?t:se(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Yb:se(+r);function s(l){var h,d,y,v=(l=Zf(l)).length,p,g=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=c())),h=0;h<=v;++h){if(!(h<v&&i(p=l[h],h,l))===g)if(g=!g)d=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=d;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}g&&(w[h]=+e(p,h,l),O[h]=+t(p,h,l),u.point(n?+n(p,h,l):w[h],r?+r(p,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return Zb().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:se(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:se(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:se(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:se(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:se(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:se(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:se(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),s):o},s.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),s):a},s}class Jb{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 A_(e){return new Jb(e,!0)}function S_(e){return new Jb(e,!1)}const Jf={draw(e,t){const r=ot(t/ki);e.moveTo(r,0),e.arc(0,0,r,0,Na)}},P_={draw(e,t){const r=ot(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Qb=ot(1/3),T_=Qb*2,E_={draw(e,t){const r=ot(t/T_),n=r*Qb;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},j_={draw(e,t){const r=ot(t),n=-r/2;e.rect(n,n,r,r)}},M_=.8908130915292852,e0=Ii(ki/10)/Ii(7*ki/10),$_=Ii(Na/10)*e0,C_=-Gb(Na/10)*e0,I_={draw(e,t){const r=ot(t*M_),n=$_*r,i=C_*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Na*a/5,u=Gb(o),c=Ii(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},ju=ot(3),k_={draw(e,t){const r=-ot(t/(ju*3));e.moveTo(0,r*2),e.lineTo(-ju*r,-r),e.lineTo(ju*r,-r),e.closePath()}},Ve=-.5,Xe=ot(3)/2,Pl=1/ot(12),R_=(Pl/2+1)*3,D_={draw(e,t){const r=ot(t/R_),n=r/2,i=r*Pl,a=n,o=r*Pl+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Ve*n-Xe*i,Xe*n+Ve*i),e.lineTo(Ve*a-Xe*o,Xe*a+Ve*o),e.lineTo(Ve*u-Xe*c,Xe*u+Ve*c),e.lineTo(Ve*n+Xe*i,Ve*i-Xe*n),e.lineTo(Ve*a+Xe*o,Ve*o-Xe*a),e.lineTo(Ve*u+Xe*c,Ve*c-Xe*u),e.closePath()}};function N_(e,t){let r=null,n=Yf(i);e=typeof e=="function"?e:se(e||Jf),t=typeof t=="function"?t:se(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:se(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:se(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ri(){}function Di(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 t0(e){this._context=e}t0.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:Di(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:Di(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function q_(e){return new t0(e)}function r0(e){this._context=e}r0.prototype={areaStart:Ri,areaEnd:Ri,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:Di(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function L_(e){return new r0(e)}function n0(e){this._context=e}n0.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:Di(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function B_(e){return new n0(e)}function i0(e){this._context=e}i0.prototype={areaStart:Ri,areaEnd:Ri,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 F_(e){return new i0(e)}function hd(e){return e<0?-1:1}function pd(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(hd(a)+hd(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function dd(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Mu(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 Ni(e){this._context=e}Ni.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:Mu(this,this._t0,dd(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,Mu(this,dd(this,r=pd(this,e,t)),r);break;default:Mu(this,this._t0,r=pd(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function a0(e){this._context=new o0(e)}(a0.prototype=Object.create(Ni.prototype)).point=function(e,t){Ni.prototype.point.call(this,t,e)};function o0(e){this._context=e}o0.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 z_(e){return new Ni(e)}function U_(e){return new a0(e)}function u0(e){this._context=e}u0.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=vd(e),i=vd(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 vd(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 W_(e){return new u0(e)}function La(e,t){this._context=e,this._t=t}La.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 La(e,.5)}function G_(e){return new La(e,0)}function H_(e){return new La(e,1)}function Sr(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 Tl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function V_(e,t){return e[t]}function X_(e){const t=[];return t.key=e,t}function Y_(){var e=se([]),t=Tl,r=Sr,n=V_;function i(a){var o=Array.from(e.apply(this,arguments),X_),u,c=o.length,s=-1,f;for(const l of a)for(u=0,++s;u<c;++u)(o[u][s]=[0,+n(l,o[u].key,s,a)]).data=l;for(u=0,f=Zf(t(o));u<c;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:se(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:se(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Tl:typeof a=="function"?a:se(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Sr,i):r},i}function Z_(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Sr(e,t)}}function J_(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}Sr(e,t)}}function Q_(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,d=(l-h)/2,y=0;y<u;++y){var v=e[t[y]],p=v[n][1]||0,g=v[n-1][1]||0;d+=p-g}c+=l,s+=d*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,Sr(e,t)}}function Sn(e){"@babel/helpers - typeof";return Sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sn(e)}var e1=["type","size","sizeType"];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 yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function md(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yd(Object(r),!0).forEach(function(n){t1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t1(e,t,r){return t=r1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r1(e){var t=n1(e,"string");return Sn(t)=="symbol"?t:t+""}function n1(e,t){if(Sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i1(e,t){if(e==null)return{};var r=a1(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 a1(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 c0={symbolCircle:Jf,symbolCross:P_,symbolDiamond:E_,symbolSquare:j_,symbolStar:I_,symbolTriangle:k_,symbolWye:D_},o1=Math.PI/180,u1=function(t){var r="symbol".concat(Da(t));return c0[r]||Jf},c1=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*o1;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}},s1=function(t,r){c0["symbol".concat(Da(t))]=r},Qf=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,c=i1(t,e1),s=md(md({},c),{},{type:n,size:a,sizeType:u}),f=function(){var p=u1(n),g=N_().type(p).size(c1(a,u,n));return g()},l=s.className,h=s.cx,d=s.cy,y=K(s,!0);return h===+h&&d===+d&&a===+a?S.createElement("path",El({},y,{className:J("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(d,")"),d:f()})):null};Qf.registerSymbol=s1;function Pr(e){"@babel/helpers - typeof";return Pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pr(e)}function 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 gd(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 l1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gd(Object(r),!0).forEach(function(n){Pn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h1(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,l0(n.key),n)}}function p1(e,t,r){return t&&h1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function d1(e,t,r){return t=qi(t),v1(e,s0()?Reflect.construct(t,r||[],qi(e).constructor):t.apply(e,r))}function v1(e,t){if(t&&(Pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y1(e)}function y1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s0=function(){return!!e})()}function qi(e){return qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qi(e)}function m1(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 Pn(e,t,r){return t=l0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l0(e){var t=g1(e,"string");return Pr(t)=="symbol"?t:t+""}function g1(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ye=32,eh=(function(e){function t(){return f1(this,t),d1(this,t,arguments)}return m1(t,e),p1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ye/2,o=Ye/6,u=Ye/3,c=n.inactive?i:n.color;if(n.type==="plainline")return S.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ye,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return S.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
|
|
10
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
|
|
11
|
+
H`).concat(Ye,"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 S.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Ye/8,"h").concat(Ye,"v").concat(Ye*3/4,"h").concat(-Ye,"z"),className:"recharts-legend-icon"});if(S.isValidElement(n.legendIcon)){var s=l1({},n);return delete s.legendIcon,S.cloneElement(n.legendIcon,s)}return S.createElement(Qf,{fill:c,cx:a,cy:a,size:Ye,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,c=i.formatter,s=i.inactiveColor,f={x:0,y:0,width:Ye,height:Ye},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(d,y){var v=d.formatter||c,p=J(Pn(Pn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",d.inactive));if(d.type==="none")return null;var g=H(d.value)?null:d.value;kt(!H(d.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=d.inactive?s:d.color;return S.createElement("li",jl({className:p,style:l,key:"legend-item-".concat(y)},tr(n.props,d,y)),S.createElement(Ol,{width:o,height:o,viewBox:f,style:h},n.renderIcon(d)),S.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(g,d,y):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return S.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(q.PureComponent);Pn(eh,"displayName","Legend");Pn(eh,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var $u,bd;function b1(){if(bd)return $u;bd=1;var e=Ia();function t(){this.__data__=new e,this.size=0}return $u=t,$u}var Cu,xd;function x1(){if(xd)return Cu;xd=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Cu=e,Cu}var Iu,wd;function w1(){if(wd)return Iu;wd=1;function e(t){return this.__data__.get(t)}return Iu=e,Iu}var ku,Od;function O1(){if(Od)return ku;Od=1;function e(t){return this.__data__.has(t)}return ku=e,ku}var Ru,_d;function _1(){if(_d)return Ru;_d=1;var e=Ia(),t=Wf(),r=Kf(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var c=u.__data__;if(!t||c.length<n-1)return c.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(a,o),this.size=u.size,this}return Ru=i,Ru}var Du,Ad;function f0(){if(Ad)return Du;Ad=1;var e=Ia(),t=b1(),r=x1(),n=w1(),i=O1(),a=_1();function o(u){var c=this.__data__=new e(u);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,Du=o,Du}var Nu,Sd;function A1(){if(Sd)return Nu;Sd=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Nu=t,Nu}var qu,Pd;function S1(){if(Pd)return qu;Pd=1;function e(t){return this.__data__.has(t)}return qu=e,qu}var Lu,Td;function h0(){if(Td)return Lu;Td=1;var e=Kf(),t=A1(),r=S1();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,Lu=n,Lu}var Bu,Ed;function p0(){if(Ed)return Bu;Ed=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 Bu=e,Bu}var Fu,jd;function d0(){if(jd)return Fu;jd=1;function e(t,r){return t.has(r)}return Fu=e,Fu}var zu,Md;function v0(){if(Md)return zu;Md=1;var e=h0(),t=p0(),r=d0(),n=1,i=2;function a(o,u,c,s,f,l){var h=c&n,d=o.length,y=u.length;if(d!=y&&!(h&&y>d))return!1;var v=l.get(o),p=l.get(u);if(v&&p)return v==u&&p==o;var g=-1,x=!0,w=c&i?new e:void 0;for(l.set(o,u),l.set(u,o);++g<d;){var O=o[g],m=u[g];if(s)var b=h?s(m,O,g,u,o,l):s(O,m,g,o,u,l);if(b!==void 0){if(b)continue;x=!1;break}if(w){if(!t(u,function(_,A){if(!r(w,A)&&(O===_||f(O,_,c,s,l)))return w.push(A)})){x=!1;break}}else if(!(O===m||f(O,m,c,s,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return zu=a,zu}var Uu,$d;function P1(){if($d)return Uu;$d=1;var e=ht(),t=e.Uint8Array;return Uu=t,Uu}var Wu,Cd;function T1(){if(Cd)return Wu;Cd=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Wu=e,Wu}var Ku,Id;function th(){if(Id)return Ku;Id=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Ku=e,Ku}var Gu,kd;function E1(){if(kd)return Gu;kd=1;var e=ai(),t=P1(),r=Uf(),n=v0(),i=T1(),a=th(),o=1,u=2,c="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",d="[object RegExp]",y="[object Set]",v="[object String]",p="[object Symbol]",g="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(b,_,A,P,j,E,T){switch(A){case x:if(b.byteLength!=_.byteLength||b.byteOffset!=_.byteOffset)return!1;b=b.buffer,_=_.buffer;case g:return!(b.byteLength!=_.byteLength||!E(new t(b),new t(_)));case c:case s:case h:return r(+b,+_);case f:return b.name==_.name&&b.message==_.message;case d:case v:return b==_+"";case l:var M=i;case y:var $=P&o;if(M||(M=a),b.size!=_.size&&!$)return!1;var I=T.get(b);if(I)return I==_;P|=u,T.set(b,_);var k=n(M(b),M(_),P,j,E,T);return T.delete(b),k;case p:if(O)return O.call(b)==O.call(_)}return!1}return Gu=m,Gu}var Hu,Rd;function y0(){if(Rd)return Hu;Rd=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 Hu=e,Hu}var Vu,Dd;function j1(){if(Dd)return Vu;Dd=1;var e=y0(),t=Le();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Vu=r,Vu}var Xu,Nd;function M1(){if(Nd)return Xu;Nd=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 Xu=e,Xu}var Yu,qd;function $1(){if(qd)return Yu;qd=1;function e(){return[]}return Yu=e,Yu}var Zu,Ld;function C1(){if(Ld)return Zu;Ld=1;var e=M1(),t=$1(),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 Zu=a,Zu}var Ju,Bd;function I1(){if(Bd)return Ju;Bd=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Ju=e,Ju}var Qu,Fd;function k1(){if(Fd)return Qu;Fd=1;var e=At(),t=St(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Qu=n,Qu}var ec,zd;function rh(){if(zd)return ec;zd=1;var e=k1(),t=St(),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 ec=a,ec}var vn={exports:{}},tc,Ud;function R1(){if(Ud)return tc;Ud=1;function e(){return!1}return tc=e,tc}vn.exports;var Wd;function m0(){return Wd||(Wd=1,(function(e,t){var r=ht(),n=R1(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,c=u?u.isBuffer:void 0,s=c||n;e.exports=s})(vn,vn.exports)),vn.exports}var rc,Kd;function nh(){if(Kd)return rc;Kd=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 rc=r,rc}var nc,Gd;function ih(){if(Gd)return nc;Gd=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return nc=t,nc}var ic,Hd;function D1(){if(Hd)return ic;Hd=1;var e=At(),t=ih(),r=St(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",c="[object Function]",s="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",d="[object Set]",y="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",g="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",b="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",P="[object Uint16Array]",j="[object Uint32Array]",E={};E[x]=E[w]=E[O]=E[m]=E[b]=E[_]=E[A]=E[P]=E[j]=!0,E[n]=E[i]=E[p]=E[a]=E[g]=E[o]=E[u]=E[c]=E[s]=E[f]=E[l]=E[h]=E[d]=E[y]=E[v]=!1;function T(M){return r(M)&&t(M.length)&&!!E[e(M)]}return ic=T,ic}var ac,Vd;function g0(){if(Vd)return ac;Vd=1;function e(t){return function(r){return t(r)}}return ac=e,ac}var yn={exports:{}};yn.exports;var Xd;function N1(){return Xd||(Xd=1,(function(e,t){var r=qb(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(yn,yn.exports)),yn.exports}var oc,Yd;function b0(){if(Yd)return oc;Yd=1;var e=D1(),t=g0(),r=N1(),n=r&&r.isTypedArray,i=n?t(n):e;return oc=i,oc}var uc,Zd;function q1(){if(Zd)return uc;Zd=1;var e=I1(),t=rh(),r=Le(),n=m0(),i=nh(),a=b0(),o=Object.prototype,u=o.hasOwnProperty;function c(s,f){var l=r(s),h=!l&&t(s),d=!l&&!h&&n(s),y=!l&&!h&&!d&&a(s),v=l||h||d||y,p=v?e(s.length,String):[],g=p.length;for(var x in s)(f||u.call(s,x))&&!(v&&(x=="length"||d&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,g)))&&p.push(x);return p}return uc=c,uc}var cc,Jd;function L1(){if(Jd)return cc;Jd=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return cc=t,cc}var sc,Qd;function x0(){if(Qd)return sc;Qd=1;function e(t,r){return function(n){return t(r(n))}}return sc=e,sc}var lc,ev;function B1(){if(ev)return lc;ev=1;var e=x0(),t=e(Object.keys,Object);return lc=t,lc}var fc,tv;function F1(){if(tv)return fc;tv=1;var e=L1(),t=B1(),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 fc=i,fc}var hc,rv;function ui(){if(rv)return hc;rv=1;var e=zf(),t=ih();function r(n){return n!=null&&t(n.length)&&!e(n)}return hc=r,hc}var pc,nv;function Ba(){if(nv)return pc;nv=1;var e=q1(),t=F1(),r=ui();function n(i){return r(i)?e(i):t(i)}return pc=n,pc}var dc,iv;function z1(){if(iv)return dc;iv=1;var e=j1(),t=C1(),r=Ba();function n(i){return e(i,r,t)}return dc=n,dc}var vc,av;function U1(){if(av)return vc;av=1;var e=z1(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,c,s,f){var l=u&t,h=e(a),d=h.length,y=e(o),v=y.length;if(d!=v&&!l)return!1;for(var p=d;p--;){var g=h[p];if(!(l?g in o:n.call(o,g)))return!1}var 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;++p<d;){g=h[p];var b=a[g],_=o[g];if(c)var A=l?c(_,b,g,o,a,f):c(b,_,g,a,o,f);if(!(A===void 0?b===_||s(b,_,u,c,f):A)){O=!1;break}m||(m=g=="constructor")}if(O&&!m){var P=a.constructor,j=o.constructor;P!=j&&"constructor"in a&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof j=="function"&&j instanceof j)&&(O=!1)}return f.delete(a),f.delete(o),O}return vc=i,vc}var yc,ov;function W1(){if(ov)return yc;ov=1;var e=or(),t=ht(),r=e(t,"DataView");return yc=r,yc}var mc,uv;function K1(){if(uv)return mc;uv=1;var e=or(),t=ht(),r=e(t,"Promise");return mc=r,mc}var gc,cv;function w0(){if(cv)return gc;cv=1;var e=or(),t=ht(),r=e(t,"Set");return gc=r,gc}var bc,sv;function G1(){if(sv)return bc;sv=1;var e=or(),t=ht(),r=e(t,"WeakMap");return bc=r,bc}var xc,lv;function H1(){if(lv)return xc;lv=1;var e=W1(),t=Wf(),r=K1(),n=w0(),i=G1(),a=At(),o=Lb(),u="[object Map]",c="[object Object]",s="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",d=o(e),y=o(t),v=o(r),p=o(n),g=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=u||r&&x(r.resolve())!=s||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),m=O==c?w.constructor:void 0,b=m?o(m):"";if(b)switch(b){case d:return h;case y:return u;case v:return s;case p:return f;case g:return l}return O}),xc=x,xc}var wc,fv;function V1(){if(fv)return wc;fv=1;var e=f0(),t=v0(),r=E1(),n=U1(),i=H1(),a=Le(),o=m0(),u=b0(),c=1,s="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function y(v,p,g,x,w,O){var m=a(v),b=a(p),_=m?f:i(v),A=b?f:i(p);_=_==s?l:_,A=A==s?l:A;var P=_==l,j=A==l,E=_==A;if(E&&o(v)){if(!o(p))return!1;m=!0,P=!1}if(E&&!P)return O||(O=new e),m||u(v)?t(v,p,g,x,w,O):r(v,p,_,g,x,w,O);if(!(g&c)){var T=P&&d.call(v,"__wrapped__"),M=j&&d.call(p,"__wrapped__");if(T||M){var $=T?v.value():v,I=M?p.value():p;return O||(O=new e),w($,I,g,x,O)}}return E?(O||(O=new e),n(v,p,g,x,w,O)):!1}return wc=y,wc}var Oc,hv;function ah(){if(hv)return Oc;hv=1;var e=V1(),t=St();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 Oc=r,Oc}var _c,pv;function X1(){if(pv)return _c;pv=1;var e=f0(),t=ah(),r=1,n=2;function i(a,o,u,c){var s=u.length,f=s,l=!c;if(a==null)return!f;for(a=Object(a);s--;){var h=u[s];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++s<f;){h=u[s];var d=h[0],y=a[d],v=h[1];if(l&&h[2]){if(y===void 0&&!(d in a))return!1}else{var p=new e;if(c)var g=c(y,v,d,a,o,p);if(!(g===void 0?t(v,y,r|n,c,p):g))return!1}}return!0}return _c=i,_c}var Ac,dv;function O0(){if(dv)return Ac;dv=1;var e=Rt();function t(r){return r===r&&!e(r)}return Ac=t,Ac}var Sc,vv;function Y1(){if(vv)return Sc;vv=1;var e=O0(),t=Ba();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 Sc=r,Sc}var Pc,yv;function _0(){if(yv)return Pc;yv=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Pc=e,Pc}var Tc,mv;function Z1(){if(mv)return Tc;mv=1;var e=X1(),t=Y1(),r=_0();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 Tc=n,Tc}var Ec,gv;function J1(){if(gv)return Ec;gv=1;function e(t,r){return t!=null&&r in Object(t)}return Ec=e,Ec}var jc,bv;function Q1(){if(bv)return jc;bv=1;var e=zb(),t=rh(),r=Le(),n=nh(),i=ih(),a=Ra();function o(u,c,s){c=e(c,u);for(var f=-1,l=c.length,h=!1;++f<l;){var d=a(c[f]);if(!(h=u!=null&&s(u,d)))break;u=u[d]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&i(l)&&n(d,l)&&(r(u)||t(u)))}return jc=o,jc}var Mc,xv;function eA(){if(xv)return Mc;xv=1;var e=J1(),t=Q1();function r(n,i){return n!=null&&t(n,i,e)}return Mc=r,Mc}var $c,wv;function tA(){if(wv)return $c;wv=1;var e=ah(),t=Ub(),r=eA(),n=Ff(),i=O0(),a=_0(),o=Ra(),u=1,c=2;function s(f,l){return n(f)&&i(l)?a(o(f),l):function(h){var d=t(h,f);return d===void 0&&d===l?r(h,f):e(l,d,u|c)}}return $c=s,$c}var Cc,Ov;function en(){if(Ov)return Cc;Ov=1;function e(t){return t}return Cc=e,Cc}var Ic,_v;function rA(){if(_v)return Ic;_v=1;function e(t){return function(r){return r==null?void 0:r[t]}}return Ic=e,Ic}var kc,Av;function nA(){if(Av)return kc;Av=1;var e=Hf();function t(r){return function(n){return e(n,r)}}return kc=t,kc}var Rc,Sv;function iA(){if(Sv)return Rc;Sv=1;var e=rA(),t=nA(),r=Ff(),n=Ra();function i(a){return r(a)?e(n(a)):t(a)}return Rc=i,Rc}var Dc,Pv;function pt(){if(Pv)return Dc;Pv=1;var e=Z1(),t=tA(),r=en(),n=Le(),i=iA();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 Dc=a,Dc}var Nc,Tv;function A0(){if(Tv)return Nc;Tv=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 Nc=e,Nc}var qc,Ev;function aA(){if(Ev)return qc;Ev=1;function e(t){return t!==t}return qc=e,qc}var Lc,jv;function oA(){if(jv)return Lc;jv=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 Lc=e,Lc}var Bc,Mv;function uA(){if(Mv)return Bc;Mv=1;var e=A0(),t=aA(),r=oA();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return Bc=n,Bc}var Fc,$v;function cA(){if($v)return Fc;$v=1;var e=uA();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Fc=t,Fc}var zc,Cv;function sA(){if(Cv)return zc;Cv=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 zc=e,zc}var Uc,Iv;function lA(){if(Iv)return Uc;Iv=1;function e(){}return Uc=e,Uc}var Wc,kv;function fA(){if(kv)return Wc;kv=1;var e=w0(),t=lA(),r=th(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Wc=i,Wc}var Kc,Rv;function hA(){if(Rv)return Kc;Rv=1;var e=h0(),t=cA(),r=sA(),n=d0(),i=fA(),a=th(),o=200;function u(c,s,f){var l=-1,h=t,d=c.length,y=!0,v=[],p=v;if(f)y=!1,h=r;else if(d>=o){var g=s?null:i(c);if(g)return a(g);y=!1,h=n,p=new e}else p=s?[]:v;e:for(;++l<d;){var x=c[l],w=s?s(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=p.length;O--;)if(p[O]===w)continue e;s&&p.push(w),v.push(x)}else h(p,w,f)||(p!==v&&p.push(w),v.push(x))}return v}return Kc=u,Kc}var Gc,Dv;function pA(){if(Dv)return Gc;Dv=1;var e=pt(),t=hA();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Gc=r,Gc}var dA=pA();const Nv=ue(dA);function S0(e,t,r){return t===!0?Nv(e,r):H(t)?Nv(e,t):e}function Tr(e){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(e)}var vA=["ref"];function qv(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 dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qv(Object(r),!0).forEach(function(n){Fa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lv(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 mA(e,t,r){return t&&Lv(e.prototype,t),r&&Lv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gA(e,t,r){return t=Li(t),bA(e,P0()?Reflect.construct(t,r||[],Li(e).constructor):t.apply(e,r))}function bA(e,t){if(t&&(Tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xA(e)}function xA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P0=function(){return!!e})()}function Li(e){return Li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Li(e)}function wA(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 Fa(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=OA(e,"string");return Tr(t)=="symbol"?t:t+""}function OA(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _A(e,t){if(e==null)return{};var r=AA(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 AA(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function SA(e){return e.value}function PA(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=_A(t,vA);return S.createElement(eh,r)}var Bv=1,Zt=(function(e){function t(){var r;yA(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=gA(this,t,[].concat(i)),Fa(r,"lastBoundingBox",{width:-1,height:-1}),r}return wA(t,e),mA(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)>Bv||Math.abs(i.height-this.lastBoundingBox.height)>Bv)&&(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?dt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,s=i.chartWidth,f=i.chartHeight,l,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var d=this.getBBoxSnapshot();l={left:((s||0)-d.width)/2}}else l=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return dt(dt({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,l=dt(dt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return S.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},PA(a,dt(dt({},this.props),{},{payload:S0(f,s,SA)})))}}],[{key:"getWithHeight",value:function(n,i){var a=dt(dt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&N(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(q.PureComponent);Fa(Zt,"displayName","Legend");Fa(Zt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Hc,Fv;function TA(){if(Fv)return Hc;Fv=1;var e=ai(),t=rh(),r=Le(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Hc=i,Hc}var Vc,zv;function E0(){if(zv)return Vc;zv=1;var e=y0(),t=TA();function r(n,i,a,o,u){var c=-1,s=n.length;for(a||(a=t),u||(u=[]);++c<s;){var f=n[c];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return Vc=r,Vc}var Xc,Uv;function EA(){if(Uv)return Xc;Uv=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),c=u.length;c--;){var s=u[t?c:++a];if(n(o[s],s,o)===!1)break}return r}}return Xc=e,Xc}var Yc,Wv;function jA(){if(Wv)return Yc;Wv=1;var e=EA(),t=e();return Yc=t,Yc}var Zc,Kv;function j0(){if(Kv)return Zc;Kv=1;var e=jA(),t=Ba();function r(n,i){return n&&e(n,i,t)}return Zc=r,Zc}var Jc,Gv;function MA(){if(Gv)return Jc;Gv=1;var e=ui();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,c=Object(i);(n?u--:++u<o)&&a(c[u],u,c)!==!1;);return i}}return Jc=t,Jc}var Qc,Hv;function oh(){if(Hv)return Qc;Hv=1;var e=j0(),t=MA(),r=t(e);return Qc=r,Qc}var es,Vv;function M0(){if(Vv)return es;Vv=1;var e=oh(),t=ui();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,c,s){o[++a]=i(u,c,s)}),o}return es=r,es}var ts,Xv;function $A(){if(Xv)return ts;Xv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return ts=e,ts}var rs,Yv;function CA(){if(Yv)return rs;Yv=1;var e=Zr();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),c=n!==void 0,s=n===null,f=n===n,l=e(n);if(!s&&!l&&!u&&r>n||u&&c&&f&&!s&&!l||a&&c&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||s&&i&&o||!c&&o||!f)return-1}return 0}return rs=t,rs}var ns,Zv;function IA(){if(Zv)return ns;Zv=1;var e=CA();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,c=o.length,s=i.length;++a<c;){var f=e(o[a],u[a]);if(f){if(a>=s)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return ns=t,ns}var is,Jv;function kA(){if(Jv)return is;Jv=1;var e=Gf(),t=Hf(),r=pt(),n=M0(),i=$A(),a=g0(),o=IA(),u=en(),c=Le();function s(f,l,h){l.length?l=e(l,function(v){return c(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):l=[u];var d=-1;l=e(l,a(r));var y=n(f,function(v,p,g){var x=e(l,function(w){return w(v)});return{criteria:x,index:++d,value:v}});return i(y,function(v,p){return o(v,p,h)})}return is=s,is}var as,Qv;function RA(){if(Qv)return as;Qv=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 as=e,as}var os,ey;function DA(){if(ey)return os;ey=1;var e=RA(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,c=t(o.length-i,0),s=Array(c);++u<c;)s[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(s),e(n,this,f)}}return os=r,os}var us,ty;function NA(){if(ty)return us;ty=1;function e(t){return function(){return t}}return us=e,us}var cs,ry;function $0(){if(ry)return cs;ry=1;var e=or(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return cs=t,cs}var ss,ny;function qA(){if(ny)return ss;ny=1;var e=NA(),t=$0(),r=en(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return ss=n,ss}var ls,iy;function LA(){if(iy)return ls;iy=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),c=t-(u-o);if(o=u,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return ls=n,ls}var fs,ay;function BA(){if(ay)return fs;ay=1;var e=qA(),t=LA(),r=t(e);return fs=r,fs}var hs,oy;function FA(){if(oy)return hs;oy=1;var e=en(),t=DA(),r=BA();function n(i,a){return r(t(i,a,e),i+"")}return hs=n,hs}var ps,uy;function za(){if(uy)return ps;uy=1;var e=Uf(),t=ui(),r=nh(),n=Rt();function i(a,o,u){if(!n(u))return!1;var c=typeof o;return(c=="number"?t(u)&&r(o,u.length):c=="string"&&o in u)?e(u[o],a):!1}return ps=i,ps}var ds,cy;function zA(){if(cy)return ds;cy=1;var e=E0(),t=kA(),r=FA(),n=za(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return ds=i,ds}var UA=zA();const uh=ue(UA);function Tn(e){"@babel/helpers - typeof";return Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tn(e)}function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cl.apply(this,arguments)}function WA(e,t){return VA(e)||HA(e,t)||GA(e,t)||KA()}function KA(){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 GA(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 HA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function VA(e){if(Array.isArray(e))return e}function ly(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ly(Object(r),!0).forEach(function(n){XA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ly(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XA(e,t,r){return t=YA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YA(e){var t=ZA(e,"string");return Tn(t)=="symbol"?t:t+""}function ZA(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 JA(e){return Array.isArray(e)&&Pe(e[0])&&Pe(e[1])?e.join(" ~ "):e}var QA=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,c=t.labelStyle,s=c===void 0?{}:c,f=t.payload,l=t.formatter,h=t.itemSorter,d=t.wrapperClassName,y=t.labelClassName,v=t.label,p=t.labelFormatter,g=t.accessibilityLayer,x=g===void 0?!1:g,w=function(){if(f&&f.length){var T={padding:0,margin:0},M=(h?uh(f,h):f).map(function($,I){if($.type==="none")return null;var k=vs({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},u),D=$.formatter||l||JA,L=$.value,B=$.name,W=L,V=B;if(D&&W!=null&&V!=null){var U=D(L,B,$,I,f);if(Array.isArray(U)){var X=WA(U,2);W=X[0],V=X[1]}else W=U}return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(I),style:k},Pe(V)?S.createElement("span",{className:"recharts-tooltip-item-name"},V):null,Pe(V)?S.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,S.createElement("span",{className:"recharts-tooltip-item-value"},W),S.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:T},M)}return null},O=vs({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=vs({margin:0},s),b=!Y(v),_=b?v:"",A=J("recharts-default-tooltip",d),P=J("recharts-tooltip-label",y);b&&p&&f!==void 0&&f!==null&&(_=p(v,f));var j=x?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",Cl({className:A,style:O},j),S.createElement("p",{className:P,style:m},S.isValidElement(_)?_:"".concat(_)),w())};function En(e){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(e)}function bi(e,t,r){return t=eS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eS(e){var t=tS(e,"string");return En(t)=="symbol"?t:t+""}function tS(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var on="recharts-tooltip-wrapper",rS={visibility:"hidden"};function nS(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return J(on,bi(bi(bi(bi({},"".concat(on,"-right"),N(r)&&t&&N(t.x)&&r>=t.x),"".concat(on,"-left"),N(r)&&t&&N(t.x)&&r<t.x),"".concat(on,"-bottom"),N(n)&&t&&N(t.y)&&n>=t.y),"".concat(on,"-top"),N(n)&&t&&N(t.y)&&n<t.y))}function fy(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,c=e.viewBox,s=e.viewBoxDimension;if(a&&N(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var h=f,d=c[n];return h<d?Math.max(l,c[n]):Math.max(f,c[n])}var y=l+u,v=c[n]+s;return y>v?Math.max(f,c[n]):Math.max(l,c[n])}function iS(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 aS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox,s,f,l;return o.height>0&&o.width>0&&r?(f=fy({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=fy({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=iS({translateX:f,translateY:l,useTranslate3d:u})):s=rS,{cssProperties:s,cssClasses:nS({translateX:f,translateY:l,coordinate:r})}}function Er(e){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(e)}function 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 py(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){kl(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 oS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uS(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,I0(n.key),n)}}function cS(e,t,r){return t&&uS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sS(e,t,r){return t=Bi(t),lS(e,C0()?Reflect.construct(t,r||[],Bi(e).constructor):t.apply(e,r))}function lS(e,t){if(t&&(Er(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fS(e)}function fS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C0=function(){return!!e})()}function Bi(e){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bi(e)}function hS(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&&Il(e,t)}function Il(e,t){return Il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Il(e,t)}function kl(e,t,r){return t=I0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I0(e){var t=pS(e,"string");return Er(t)=="symbol"?t:t+""}function pS(e,t){if(Er(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dy=1,dS=(function(e){function t(){var r;oS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=sS(this,t,[].concat(i)),kl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),kl(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,c,s,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&u!==void 0?u:0,y:(s=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&s!==void 0?s:0}})}}),r}return hS(t,e),cS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>dy||Math.abs(n.height-this.state.lastBoundingBox.height)>dy)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,d=i.offset,y=i.position,v=i.reverseDirection,p=i.useTranslate3d,g=i.viewBox,x=i.wrapperStyle,w=aS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:d,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:g}),O=w.cssClasses,m=w.cssProperties,b=py(py({transition:h&&a?"transform ".concat(u,"ms ").concat(c):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return S.createElement("div",{tabIndex:-1,className:O,style:b,ref:function(A){n.wrapperNode=A}},s)}}])})(q.PureComponent),vS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ur={isSsr:vS()};function jr(e){"@babel/helpers - typeof";return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jr(e)}function vy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vy(Object(r),!0).forEach(function(n){ch(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mS(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,R0(n.key),n)}}function gS(e,t,r){return t&&mS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bS(e,t,r){return t=Fi(t),xS(e,k0()?Reflect.construct(t,r||[],Fi(e).constructor):t.apply(e,r))}function xS(e,t){if(t&&(jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wS(e)}function wS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k0=function(){return!!e})()}function Fi(e){return Fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fi(e)}function OS(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&&Rl(e,t)}function Rl(e,t){return Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rl(e,t)}function ch(e,t,r){return t=R0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R0(e){var t=_S(e,"string");return jr(t)=="symbol"?t:t+""}function _S(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function AS(e){return e.dataKey}function SS(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(QA,t)}var Ze=(function(e){function t(){return yS(this,t),bS(this,t,arguments)}return OS(t,e),gS(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.content,f=i.coordinate,l=i.filterNull,h=i.isAnimationActive,d=i.offset,y=i.payload,v=i.payloadUniqBy,p=i.position,g=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=S0(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,AS));var b=m.length>0;return S.createElement(dS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:b,offset:d,position:p,reverseDirection:g,useTranslate3d:x,viewBox:w,wrapperStyle:O},SS(s,yy(yy({},this.props),{},{payload:m})))}}])})(q.PureComponent);ch(Ze,"displayName","Tooltip");ch(Ze,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ur.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 ys,my;function PS(){if(my)return ys;my=1;var e=ht(),t=function(){return e.Date.now()};return ys=t,ys}var ms,gy;function TS(){if(gy)return ms;gy=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return ms=t,ms}var gs,by;function ES(){if(by)return gs;by=1;var e=TS(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return gs=r,gs}var bs,xy;function D0(){if(xy)return bs;xy=1;var e=ES(),t=Rt(),r=Zr(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function c(s){if(typeof s=="number")return s;if(r(s))return n;if(t(s)){var f=typeof s.valueOf=="function"?s.valueOf():s;s=t(f)?f+"":f}if(typeof s!="string")return s===0?s:+s;s=e(s);var l=a.test(s);return l||o.test(s)?u(s.slice(2),l?2:8):i.test(s)?n:+s}return bs=c,bs}var xs,wy;function jS(){if(wy)return xs;wy=1;var e=Rt(),t=PS(),r=D0(),n="Expected a function",i=Math.max,a=Math.min;function o(u,c,s){var f,l,h,d,y,v,p=0,g=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);c=r(c)||0,e(s)&&(g=!!s.leading,x="maxWait"in s,h=x?i(r(s.maxWait)||0,c):h,w="trailing"in s?!!s.trailing:w);function O(M){var $=f,I=l;return f=l=void 0,p=M,d=u.apply(I,$),d}function m(M){return p=M,y=setTimeout(A,c),g?O(M):d}function b(M){var $=M-v,I=M-p,k=c-$;return x?a(k,h-I):k}function _(M){var $=M-v,I=M-p;return v===void 0||$>=c||$<0||x&&I>=h}function A(){var M=t();if(_(M))return P(M);y=setTimeout(A,b(M))}function P(M){return y=void 0,w&&f?O(M):(f=l=void 0,d)}function j(){y!==void 0&&clearTimeout(y),p=0,f=v=l=y=void 0}function E(){return y===void 0?d:P(t())}function T(){var M=t(),$=_(M);if(f=arguments,l=this,v=M,$){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(A,c),O(v)}return y===void 0&&(y=setTimeout(A,c)),d}return T.cancel=j,T.flush=E,T}return xs=o,xs}var ws,Oy;function MS(){if(Oy)return ws;Oy=1;var e=jS(),t=Rt(),r="Expected a function";function n(i,a,o){var u=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,c="trailing"in o?!!o.trailing:c),e(i,a,{leading:u,maxWait:a,trailing:c})}return ws=n,ws}var $S=MS();const CS=ue($S);var Ua=function(t){return null};Ua.displayName="Cell";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 _y(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 Dl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_y(Object(r),!0).forEach(function(n){IS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_y(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IS(e,t,r){return t=kS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kS(e){var t=RS(e,"string");return jn(t)=="symbol"?t:t+""}function RS(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 pr={widthCache:{},cacheCount:0},DS=2e3,NS={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ay="recharts_measurement_span";function qS(e){var t=Dl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var gn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ur.isSsr)return{width:0,height:0};var n=qS(r),i=JSON.stringify({text:t,copyStyle:n});if(pr.widthCache[i])return pr.widthCache[i];try{var a=document.getElementById(Ay);a||(a=document.createElement("span"),a.setAttribute("id",Ay),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Dl(Dl({},NS),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return pr.widthCache[i]=c,++pr.cacheCount>DS&&(pr.cacheCount=0,pr.widthCache={}),c}catch{return{width:0,height:0}}},LS=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 zi(e,t){return US(e)||zS(e,t)||FS(e,t)||BS()}function BS(){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 FS(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 zS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function US(e){if(Array.isArray(e))return e}function WS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Py(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,GS(n.key),n)}}function KS(e,t,r){return t&&Py(e.prototype,t),r&&Py(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function GS(e){var t=HS(e,"string");return Mn(t)=="symbol"?t:t+""}function HS(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 String(e)}var Ty=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ey=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,VS=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,XS=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,N0={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},YS=Object.keys(N0),mr="NaN";function ZS(e,t){return e*N0[t]}var xi=(function(){function e(t,r){WS(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!VS.test(r)&&(this.num=NaN,this.unit=""),YS.includes(r)&&(this.num=ZS(t,r),this.unit="px")}return KS(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=XS.exec(r))!==null&&n!==void 0?n:[],a=zi(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function q0(e){if(e.includes(mr))return mr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Ty.exec(t))!==null&&r!==void 0?r:[],i=zi(n,4),a=i[1],o=i[2],u=i[3],c=xi.parse(a??""),s=xi.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return mr;t=t.replace(Ty,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=Ey.exec(t))!==null&&l!==void 0?l:[],d=zi(h,4),y=d[1],v=d[2],p=d[3],g=xi.parse(y??""),x=xi.parse(p??""),w=v==="+"?g.add(x):g.subtract(x);if(w.isNaN())return mr;t=t.replace(Ey,w.toString())}return t}var jy=/\(([^()]*)\)/;function JS(e){for(var t=e;t.includes("(");){var r=jy.exec(t),n=zi(r,2),i=n[1];t=t.replace(jy,q0(i))}return t}function QS(e){var t=e.replace(/\s+/g,"");return t=JS(t),t=q0(t),t}function eP(e){try{return QS(e)}catch{return mr}}function Os(e){var t=eP(e.slice(5,-1));return t===mr?"":t}var tP=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],rP=["dx","dy","angle","className","breakAll"];function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nl.apply(this,arguments)}function My(e,t){if(e==null)return{};var r=nP(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 nP(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 $y(e,t){return uP(e)||oP(e,t)||aP(e,t)||iP()}function iP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aP(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 oP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function uP(e){if(Array.isArray(e))return e}var L0=/[ \f\n\r\t\v\u2028\u2029]+/,B0=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Y(r)||(n?a=r.toString().split(""):a=r.toString().split(L0));var o=a.map(function(c){return{word:c,width:gn(c,i).width}}),u=n?0:gn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},cP=function(t,r,n,i,a){var o=t.maxLines,u=t.children,c=t.style,s=t.breakAll,f=N(o),l=u,h=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce(function(k,D){var L=D.word,B=D.width,W=k[k.length-1];if(W&&(i==null||a||W.width+B+n<Number(i)))W.words.push(L),W.width+=B+n;else{var V={words:[L],width:B};k.push(V)}return k},[])},d=h(r),y=function(I){return I.reduce(function(k,D){return k.width>D.width?k:D})};if(!f)return d;for(var v="…",p=function(I){var k=l.slice(0,I),D=B0({breakAll:s,style:c,children:k+v}).wordsWithComputedWidth,L=h(D),B=L.length>o||y(L).width>Number(i);return[B,L]},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,_=p(b),A=$y(_,2),P=A[0],j=A[1],E=p(m),T=$y(E,1),M=T[0];if(!P&&!M&&(g=m+1),P&&M&&(x=m-1),!P&&M){O=j;break}w++}return O||d},Iy=function(t){var r=Y(t)?[]:t.toString().split(L0);return[{words:r}]},sP=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!ur.isSsr){var c,s,f=B0({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;c=l,s=h}else return Iy(i);return cP({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return Iy(i)},ky="#808080",rr=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,c=t.capHeight,s=c===void 0?"0.71em":c,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,d=h===void 0?"start":h,y=t.verticalAnchor,v=y===void 0?"end":y,p=t.fill,g=p===void 0?ky:p,x=My(t,tP),w=q.useMemo(function(){return sP({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,A=x.breakAll,P=My(x,rP);if(!Pe(n)||!Pe(a))return null;var j=n+(N(O)?O:0),E=a+(N(m)?m:0),T;switch(v){case"start":T=Os("calc(".concat(s,")"));break;case"middle":T=Os("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:T=Os("calc(".concat(w.length-1," * -").concat(u,")"));break}var M=[];if(l){var $=w[0].width,I=x.width;M.push("scale(".concat((N(I)?I/$:1)/$,")"))}return b&&M.push("rotate(".concat(b,", ").concat(j,", ").concat(E,")")),M.length&&(P.transform=M.join(" ")),S.createElement("text",Nl({},K(P,!0),{x:j,y:E,className:J("recharts-text",_),textAnchor:d,fill:g.includes("url")?ky:g}),w.map(function(k,D){var L=k.words.join(A?"":" ");return S.createElement("tspan",{x:j,dy:D===0?T:u,key:"".concat(L,"-").concat(D)},L)}))};function It(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function lP(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function sh(e){let t,r,n;e.length!==2?(t=It,r=(u,c)=>It(e(u),c),n=(u,c)=>e(u)-c):(t=e===It||e===lP?e:fP,r=e,n=e);function i(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<0?s=l+1:f=l}while(s<f)}return s}function a(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<=0?s=l+1:f=l}while(s<f)}return s}function o(u,c,s=0,f=u.length){const l=i(u,c,s,f-1);return l>s&&n(u[l-1],c)>-n(u[l],c)?l-1:l}return{left:i,center:o,right:a}}function fP(){return 0}function F0(e){return e===null?NaN:+e}function*hP(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const pP=sh(It),ci=pP.right;sh(F0).center;class Ry extends Map{constructor(t,r=yP){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(Dy(this,t))}has(t){return super.has(Dy(this,t))}set(t,r){return super.set(dP(this,t),r)}delete(t){return super.delete(vP(this,t))}}function Dy({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function dP({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function vP({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function yP(e){return e!==null&&typeof e=="object"?e.valueOf():e}function mP(e=It){if(e===It)return z0;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 z0(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const gP=Math.sqrt(50),bP=Math.sqrt(10),xP=Math.sqrt(2);function Ui(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>=gP?10:a>=bP?5:a>=xP?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),c=Math.round(t*s),u/s<e&&++u,c/s>t&&--c,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),c=Math.round(t/s),u*s<e&&++u,c*s>t&&--c),c<u&&.5<=r&&r<2?Ui(e,t,r*2):[u,c,s]}function ql(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?Ui(t,e,r):Ui(e,t,r);if(!(a>=i))return[];const u=a-i+1,c=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)c[s]=(a-s)/-o;else for(let s=0;s<u;++s)c[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)c[s]=(i+s)/-o;else for(let s=0;s<u;++s)c[s]=(i+s)*o;return c}function Ll(e,t,r){return t=+t,e=+e,r=+r,Ui(e,t,r)[2]}function Bl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Ll(t,e,r):Ll(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Ny(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function qy(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function U0(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?z0:mP(i);n>r;){if(n-r>600){const c=n-r+1,s=t-r+1,f=Math.log(c),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),d=Math.max(r,Math.floor(t-s*l/c+h)),y=Math.min(n,Math.floor(t+(c-s)*l/c+h));U0(e,t,d,y,i)}const a=e[t];let o=r,u=n;for(un(e,r,t),i(e[n],a)>0&&un(e,r,n);o<u;){for(un(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?un(e,r,u):(++u,un(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function un(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function wP(e,t,r){if(e=Float64Array.from(hP(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return qy(e);if(t>=1)return Ny(e);var n,i=(n-1)*t,a=Math.floor(i),o=Ny(U0(e,a).subarray(0,a+1)),u=qy(e.subarray(a+1));return o+(u-o)*(i-a)}}function OP(e,t,r=F0){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 _P(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 tt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Pt(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 Fl=Symbol("implicit");function lh(){var e=new Ry,t=[],r=[],n=Fl;function i(a){let o=e.get(a);if(o===void 0){if(n!==Fl)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 Ry;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 lh(t,r).unknown(n)},tt.apply(i,arguments),i}function $n(){var e=lh().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,c=0,s=0,f=.5;delete e.unknown;function l(){var h=t().length,d=i<n,y=d?i:n,v=d?n:i;a=(v-y)/Math.max(1,h-c+s*2),u&&(a=Math.floor(a)),y+=(v-y-a*(h-c))*f,o=a*(1-c),u&&(y=Math.round(y),o=Math.round(o));var p=_P(h).map(function(g){return y+a*g});return r(d?p.reverse():p)}return e.domain=function(h){return arguments.length?(t(h),l()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(u=!!h,l()):u},e.padding=function(h){return arguments.length?(c=Math.min(1,s=+h),l()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),l()):c},e.paddingOuter=function(h){return arguments.length?(s=+h,l()):s},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return $n(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(f)},tt.apply(l(),arguments)}function W0(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return W0(t())},e}function bn(){return W0($n.apply(null,arguments).paddingInner(1))}function fh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function K0(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function si(){}var Cn=.7,Wi=1/Cn,_r="\\s*([+-]?\\d+)\\s*",In="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ct="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",AP=/^#([0-9a-f]{3,8})$/,SP=new RegExp(`^rgb\\(${_r},${_r},${_r}\\)$`),PP=new RegExp(`^rgb\\(${ct},${ct},${ct}\\)$`),TP=new RegExp(`^rgba\\(${_r},${_r},${_r},${In}\\)$`),EP=new RegExp(`^rgba\\(${ct},${ct},${ct},${In}\\)$`),jP=new RegExp(`^hsl\\(${In},${ct},${ct}\\)$`),MP=new RegExp(`^hsla\\(${In},${ct},${ct},${In}\\)$`),Ly={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};fh(si,kn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:By,formatHex:By,formatHex8:$P,formatHsl:CP,formatRgb:Fy,toString:Fy});function By(){return this.rgb().formatHex()}function $P(){return this.rgb().formatHex8()}function CP(){return G0(this).formatHsl()}function Fy(){return this.rgb().formatRgb()}function kn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=AP.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?zy(t):r===3?new qe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?wi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?wi(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=SP.exec(e))?new qe(t[1],t[2],t[3],1):(t=PP.exec(e))?new qe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=TP.exec(e))?wi(t[1],t[2],t[3],t[4]):(t=EP.exec(e))?wi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jP.exec(e))?Ky(t[1],t[2]/100,t[3]/100,1):(t=MP.exec(e))?Ky(t[1],t[2]/100,t[3]/100,t[4]):Ly.hasOwnProperty(e)?zy(Ly[e]):e==="transparent"?new qe(NaN,NaN,NaN,0):null}function zy(e){return new qe(e>>16&255,e>>8&255,e&255,1)}function wi(e,t,r,n){return n<=0&&(e=t=r=NaN),new qe(e,t,r,n)}function IP(e){return e instanceof si||(e=kn(e)),e?(e=e.rgb(),new qe(e.r,e.g,e.b,e.opacity)):new qe}function zl(e,t,r,n){return arguments.length===1?IP(e):new qe(e,t,r,n??1)}function qe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}fh(qe,zl,K0(si,{brighter(e){return e=e==null?Wi:Math.pow(Wi,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Cn:Math.pow(Cn,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qe(Jt(this.r),Jt(this.g),Jt(this.b),Ki(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Uy,formatHex:Uy,formatHex8:kP,formatRgb:Wy,toString:Wy}));function Uy(){return`#${Vt(this.r)}${Vt(this.g)}${Vt(this.b)}`}function kP(){return`#${Vt(this.r)}${Vt(this.g)}${Vt(this.b)}${Vt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Wy(){const e=Ki(this.opacity);return`${e===1?"rgb(":"rgba("}${Jt(this.r)}, ${Jt(this.g)}, ${Jt(this.b)}${e===1?")":`, ${e})`}`}function Ki(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Jt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vt(e){return e=Jt(e),(e<16?"0":"")+e.toString(16)}function Ky(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new at(e,t,r,n)}function G0(e){if(e instanceof at)return new at(e.h,e.s,e.l,e.opacity);if(e instanceof si||(e=kn(e)),!e)return new at;if(e instanceof at)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,c=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=c<.5?a+i:2-a-i,o*=60):u=c>0&&c<1?0:o,new at(o,u,c,e.opacity)}function RP(e,t,r,n){return arguments.length===1?G0(e):new at(e,t,r,n??1)}function at(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}fh(at,RP,K0(si,{brighter(e){return e=e==null?Wi:Math.pow(Wi,e),new at(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Cn:Math.pow(Cn,e),new at(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new qe(_s(e>=240?e-240:e+120,i,n),_s(e,i,n),_s(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new at(Gy(this.h),Oi(this.s),Oi(this.l),Ki(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ki(this.opacity);return`${e===1?"hsl(":"hsla("}${Gy(this.h)}, ${Oi(this.s)*100}%, ${Oi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Gy(e){return e=(e||0)%360,e<0?e+360:e}function Oi(e){return Math.max(0,Math.min(1,e||0))}function _s(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 hh=e=>()=>e;function DP(e,t){return function(r){return e+r*t}}function NP(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 qP(e){return(e=+e)==1?H0:function(t,r){return r-t?NP(t,r,e):hh(isNaN(t)?r:t)}}function H0(e,t){var r=t-e;return r?DP(e,r):hh(isNaN(e)?t:e)}const Hy=(function e(t){var r=qP(t);function n(i,a){var o=r((i=zl(i)).r,(a=zl(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=H0(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=c(f),i.opacity=s(f),i+""}}return n.gamma=e,n})(1);function LP(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 BP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function FP(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=tn(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function zP(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Gi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function UP(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=tn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Ul=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,As=new RegExp(Ul.source,"g");function WP(e){return function(){return e}}function KP(e){return function(t){return e(t)+""}}function GP(e,t){var r=Ul.lastIndex=As.lastIndex=0,n,i,a,o=-1,u=[],c=[];for(e=e+"",t=t+"";(n=Ul.exec(e))&&(i=As.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,c.push({i:o,x:Gi(n,i)})),r=As.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?KP(c[0].x):WP(t):(t=c.length,function(s){for(var f=0,l;f<t;++f)u[(l=c[f]).i]=l.x(s);return u.join("")})}function tn(e,t){var r=typeof t,n;return t==null||r==="boolean"?hh(t):(r==="number"?Gi:r==="string"?(n=kn(t))?(t=n,Hy):GP:t instanceof kn?Hy:t instanceof Date?zP:BP(t)?LP:Array.isArray(t)?FP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?UP:Gi)(e,t)}function ph(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function HP(e,t){t===void 0&&(t=e,e=tn);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function VP(e){return function(){return e}}function Hi(e){return+e}var Vy=[0,1];function Re(e){return e}function Wl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:VP(isNaN(t)?NaN:.5)}function XP(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function YP(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Wl(i,n),a=r(o,a)):(n=Wl(n,i),a=r(a,o)),function(u){return a(n(u))}}function ZP(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]=Wl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var c=ci(e,u,1,n)-1;return a[c](i[c](u))}}function li(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Wa(){var e=Vy,t=Vy,r=tn,n,i,a,o=Re,u,c,s;function f(){var h=Math.min(e.length,t.length);return o!==Re&&(o=XP(e[0],e[h-1])),u=h>2?ZP:YP,c=s=null,l}function l(h){return h==null||isNaN(h=+h)?a:(c||(c=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((s||(s=u(t,e.map(n),Gi)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Hi),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=ph,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Re,f()):o!==Re},l.interpolate=function(h){return arguments.length?(r=h,f()):r},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,d){return n=h,i=d,f()}}function dh(){return Wa()(Re,Re)}function JP(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Vi(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 Mr(e){return e=Vi(Math.abs(e)),e?e[1]:NaN}function QP(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function eT(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var tT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rn(e){if(!(t=tT.exec(e)))throw new Error("invalid format: "+e);var t;return new vh({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]})}Rn.prototype=vh.prototype;function vh(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+""}vh.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 rT(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 Xi;function nT(e,t){var r=Vi(e,t);if(!r)return Xi=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Xi=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")+Vi(e,Math.max(0,t+a-1))[0]}function Xy(e,t){var r=Vi(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 Yy={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:JP,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)=>Xy(e*100,t),r:Xy,s:nT,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Zy(e){return e}var Jy=Array.prototype.map,Qy=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function iT(e){var t=e.grouping===void 0||e.thousands===void 0?Zy:QP(Jy.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?Zy:eT(Jy.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function s(l,h){l=Rn(l);var d=l.fill,y=l.align,v=l.sign,p=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"):Yy[b]||(O===void 0&&(O=12),m=!0,b="g"),(g||d==="0"&&y==="=")&&(g=!0,d="0",y="=");var _=(h&&h.prefix!==void 0?h.prefix:"")+(p==="$"?r:p==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),A=(p==="$"?n:/[%p]/.test(b)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),P=Yy[b],j=/[defgprs%]/.test(b);O=O===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function E(T){var M=_,$=A,I,k,D;if(b==="c")$=P(T)+$,T="";else{T=+T;var L=T<0||1/T<0;if(T=isNaN(T)?c:P(Math.abs(T),O),m&&(T=rT(T)),L&&+T==0&&v!=="+"&&(L=!1),M=(L?v==="("?v:u:v==="-"||v==="("?"":v)+M,$=(b==="s"&&!isNaN(T)&&Xi!==void 0?Qy[8+Xi/3]:"")+$+(L&&v==="("?")":""),j){for(I=-1,k=T.length;++I<k;)if(D=T.charCodeAt(I),48>D||D>57){$=(D===46?i+T.slice(I+1):T.slice(I))+$,T=T.slice(0,I);break}}}w&&!g&&(T=t(T,1/0));var B=M.length+T.length+$.length,W=B<x?new Array(x-B+1).join(d):"";switch(w&&g&&(T=t(W+T,W.length?x-$.length:1/0),W=""),y){case"<":T=M+T+$+W;break;case"=":T=M+W+T+$;break;case"^":T=W.slice(0,B=W.length>>1)+M+T+$+W.slice(B);break;default:T=W+M+T+$;break}return a(T)}return E.toString=function(){return l+""},E}function f(l,h){var d=Math.max(-8,Math.min(8,Math.floor(Mr(h)/3)))*3,y=Math.pow(10,-d),v=s((l=Rn(l),l.type="f",l),{suffix:Qy[8+d/3]});return function(p){return v(y*p)}}return{format:s,formatPrefix:f}}var _i,yh,V0;aT({thousands:",",grouping:[3],currency:["$",""]});function aT(e){return _i=iT(e),yh=_i.format,V0=_i.formatPrefix,_i}function oT(e){return Math.max(0,-Mr(Math.abs(e)))}function uT(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Mr(t)/3)))*3-Mr(Math.abs(e)))}function cT(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Mr(t)-Mr(e))+1}function X0(e,t,r,n){var i=Bl(e,t,r),a;switch(n=Rn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=uT(i,o))&&(n.precision=a),V0(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=cT(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=oT(i))&&(n.precision=a-(n.type==="%")*2);break}}return yh(n)}function Dt(e){var t=e.domain;return e.ticks=function(r){var n=t();return ql(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return X0(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],c,s,f=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);f-- >0;){if(s=Ll(o,u,r),s===c)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;c=s}return e},e}function Yi(){var e=dh();return e.copy=function(){return li(e,Yi())},tt.apply(e,arguments),Dt(e)}function Y0(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,Hi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Y0(e).unknown(t)},e=arguments.length?Array.from(e,Hi):[0,1],Dt(r)}function Z0(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 em(e){return Math.log(e)}function tm(e){return Math.exp(e)}function sT(e){return-Math.log(-e)}function lT(e){return-Math.exp(-e)}function fT(e){return isFinite(e)?+("1e"+e):e<0?0:e}function hT(e){return e===10?fT:e===Math.E?Math.exp:t=>Math.pow(e,t)}function pT(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 rm(e){return(t,r)=>-e(-t,r)}function mh(e){const t=e(em,tm),r=t.domain;let n=10,i,a;function o(){return i=pT(n),a=hT(n),r()[0]<0?(i=rm(i),a=rm(a),e(sT,lT)):e(em,tm),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const c=r();let s=c[0],f=c[c.length-1];const l=f<s;l&&([s,f]=[f,s]);let h=i(s),d=i(f),y,v;const p=u==null?10:+u;let g=[];if(!(n%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),s>0){for(;h<=d;++h)for(y=1;y<n;++y)if(v=h<0?y/a(-h):y*a(h),!(v<s)){if(v>f)break;g.push(v)}}else for(;h<=d;++h)for(y=n-1;y>=1;--y)if(v=h>0?y/a(-h):y*a(h),!(v<s)){if(v>f)break;g.push(v)}g.length*2<p&&(g=ql(s,f,p))}else g=ql(h,d,Math.min(d-h,p)).map(a);return l?g.reverse():g},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=Rn(c)).precision==null&&(c.trim=!0),c=yh(c)),u===1/0)return c;const s=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=s?c(f):""}},t.nice=()=>r(Z0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function J0(){const e=mh(Wa()).domain([1,10]);return e.copy=()=>li(e,J0()).base(e.base()),tt.apply(e,arguments),e}function nm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function im(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function gh(e){var t=1,r=e(nm(t),im(t));return r.constant=function(n){return arguments.length?e(nm(t=+n),im(t)):t},Dt(r)}function Q0(){var e=gh(Wa());return e.copy=function(){return li(e,Q0()).constant(e.constant())},tt.apply(e,arguments)}function am(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function dT(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function vT(e){return e<0?-e*e:e*e}function bh(e){var t=e(Re,Re),r=1;function n(){return r===1?e(Re,Re):r===.5?e(dT,vT):e(am(r),am(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Dt(t)}function xh(){var e=bh(Wa());return e.copy=function(){return li(e,xh()).exponent(e.exponent())},tt.apply(e,arguments),e}function yT(){return xh.apply(null,arguments).exponent(.5)}function om(e){return Math.sign(e)*e*e}function mT(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ex(){var e=dh(),t=[0,1],r=!1,n;function i(a){var o=mT(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(om(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,Hi)).map(om)),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 ex(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},tt.apply(i,arguments),Dt(i)}function tx(){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]=OP(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[ci(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(It),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 tx().domain(e).range(t).unknown(n)},tt.apply(a,arguments)}function rx(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[ci(n,c,0,r)]:a}function u(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,u()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,u()):i.slice()},o.invertExtent=function(c){var s=i.indexOf(c);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return rx().domain([e,t]).range(i).unknown(a)},tt.apply(Dt(o),arguments)}function nx(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[ci(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 nx().domain(e).range(t).unknown(r)},tt.apply(i,arguments)}const Ss=new Date,Ps=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 c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return c;let s;do c.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return c},i.filter=a=>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)=>(Ss.setTime(+a),Ps.setTime(+o),e(Ss),e(Ps),Math.floor(r(Ss,Ps))),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 Zi=Te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Zi.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):Zi);Zi.range;const yt=1e3,Qe=yt*60,mt=Qe*60,wt=mt*24,wh=wt*7,um=wt*30,Ts=wt*365,Xt=Te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*yt)},(e,t)=>(t-e)/yt,e=>e.getUTCSeconds());Xt.range;const Oh=Te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*yt)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getMinutes());Oh.range;const _h=Te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getUTCMinutes());_h.range;const Ah=Te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*yt-e.getMinutes()*Qe)},(e,t)=>{e.setTime(+e+t*mt)},(e,t)=>(t-e)/mt,e=>e.getHours());Ah.range;const Sh=Te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mt)},(e,t)=>(t-e)/mt,e=>e.getUTCHours());Sh.range;const fi=Te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qe)/wt,e=>e.getDate()-1);fi.range;const Ka=Te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/wt,e=>e.getUTCDate()-1);Ka.range;const ix=Te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/wt,e=>Math.floor(e/wt));ix.range;function cr(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())*Qe)/wh)}const Ga=cr(0),Ji=cr(1),gT=cr(2),bT=cr(3),$r=cr(4),xT=cr(5),wT=cr(6);Ga.range;Ji.range;gT.range;bT.range;$r.range;xT.range;wT.range;function sr(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)/wh)}const Ha=sr(0),Qi=sr(1),OT=sr(2),_T=sr(3),Cr=sr(4),AT=sr(5),ST=sr(6);Ha.range;Qi.range;OT.range;_T.range;Cr.range;AT.range;ST.range;const Ph=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());Ph.range;const Th=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());Th.range;const Ot=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());Ot.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)});Ot.range;const _t=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());_t.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)});_t.range;function ax(e,t,r,n,i,a){const o=[[Xt,1,yt],[Xt,5,5*yt],[Xt,15,15*yt],[Xt,30,30*yt],[a,1,Qe],[a,5,5*Qe],[a,15,15*Qe],[a,30,30*Qe],[i,1,mt],[i,3,3*mt],[i,6,6*mt],[i,12,12*mt],[n,1,wt],[n,2,2*wt],[r,1,wh],[t,1,um],[t,3,3*um],[e,1,Ts]];function u(s,f,l){const h=f<s;h&&([s,f]=[f,s]);const d=l&&typeof l.range=="function"?l:c(s,f,l),y=d?d.range(s,+f+1):[];return h?y.reverse():y}function c(s,f,l){const h=Math.abs(f-s)/l,d=sh(([,,p])=>p).right(o,h);if(d===o.length)return e.every(Bl(s/Ts,f/Ts,l));if(d===0)return Zi.every(Math.max(Bl(s,f,l),1));const[y,v]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return y.every(v)}return[u,c]}const[PT,TT]=ax(_t,Th,Ha,ix,Sh,_h),[ET,jT]=ax(Ot,Ph,Ga,fi,Ah,Oh);function Es(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 js(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 cn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function MT(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,c=e.shortMonths,s=sn(i),f=ln(i),l=sn(a),h=ln(a),d=sn(o),y=ln(o),v=sn(u),p=ln(u),g=sn(c),x=ln(c),w={a:D,A:L,b:B,B:W,c:null,d:pm,e:pm,f:QT,g:sE,G:fE,H:YT,I:ZT,j:JT,L:ox,m:eE,M:tE,p:V,q:U,Q:ym,s:mm,S:rE,u:nE,U:iE,V:aE,w:oE,W:uE,x:null,X:null,y:cE,Y:lE,Z:hE,"%":vm},O={a:X,A:fe,b:me,B:Be,c:null,d:dm,e:dm,f:yE,g:PE,G:EE,H:pE,I:dE,j:vE,L:cx,m:mE,M:gE,p:Lt,q:De,Q:ym,s:mm,S:bE,u:xE,U:wE,V:OE,w:_E,W:AE,x:null,X:null,y:SE,Y:TE,Z:jE,"%":vm},m={a:j,A:E,b:T,B:M,c:$,d:fm,e:fm,f:GT,g:lm,G:sm,H:hm,I:hm,j:zT,L:KT,m:FT,M:UT,p:P,q:BT,Q:VT,s:XT,S:WT,u:RT,U:DT,V:NT,w:kT,W:qT,x:I,X:k,y:lm,Y:sm,Z:LT,"%":HT};w.x=b(r,w),w.X=b(n,w),w.c=b(t,w),O.x=b(r,O),O.X=b(n,O),O.c=b(t,O);function b(F,Z){return function(Q){var R=[],de=-1,ee=0,xe=F.length,we,Ne,Et;for(Q instanceof Date||(Q=new Date(+Q));++de<xe;)F.charCodeAt(de)===37&&(R.push(F.slice(ee,de)),(Ne=cm[we=F.charAt(++de)])!=null?we=F.charAt(++de):Ne=we==="e"?" ":"0",(Et=Z[we])&&(we=Et(Q,Ne)),R.push(we),ee=de+1);return R.push(F.slice(ee,de)),R.join("")}}function _(F,Z){return function(Q){var R=cn(1900,void 0,1),de=A(R,F,Q+="",0),ee,xe;if(de!=Q.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?(ee=js(cn(R.y,0,1)),xe=ee.getUTCDay(),ee=xe>4||xe===0?Qi.ceil(ee):Qi(ee),ee=Ka.offset(ee,(R.V-1)*7),R.y=ee.getUTCFullYear(),R.m=ee.getUTCMonth(),R.d=ee.getUTCDate()+(R.w+6)%7):(ee=Es(cn(R.y,0,1)),xe=ee.getDay(),ee=xe>4||xe===0?Ji.ceil(ee):Ji(ee),ee=fi.offset(ee,(R.V-1)*7),R.y=ee.getFullYear(),R.m=ee.getMonth(),R.d=ee.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),xe="Z"in R?js(cn(R.y,0,1)).getUTCDay():Es(cn(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(xe+5)%7:R.w+R.U*7-(xe+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,js(R)):Es(R)}}function A(F,Z,Q,R){for(var de=0,ee=Z.length,xe=Q.length,we,Ne;de<ee;){if(R>=xe)return-1;if(we=Z.charCodeAt(de++),we===37){if(we=Z.charAt(de++),Ne=m[we in cm?Z.charAt(de++):we],!Ne||(R=Ne(F,Q,R))<0)return-1}else if(we!=Q.charCodeAt(R++))return-1}return R}function P(F,Z,Q){var R=s.exec(Z.slice(Q));return R?(F.p=f.get(R[0].toLowerCase()),Q+R[0].length):-1}function j(F,Z,Q){var R=d.exec(Z.slice(Q));return R?(F.w=y.get(R[0].toLowerCase()),Q+R[0].length):-1}function E(F,Z,Q){var R=l.exec(Z.slice(Q));return R?(F.w=h.get(R[0].toLowerCase()),Q+R[0].length):-1}function T(F,Z,Q){var R=g.exec(Z.slice(Q));return R?(F.m=x.get(R[0].toLowerCase()),Q+R[0].length):-1}function M(F,Z,Q){var R=v.exec(Z.slice(Q));return R?(F.m=p.get(R[0].toLowerCase()),Q+R[0].length):-1}function $(F,Z,Q){return A(F,t,Z,Q)}function I(F,Z,Q){return A(F,r,Z,Q)}function k(F,Z,Q){return A(F,n,Z,Q)}function D(F){return o[F.getDay()]}function L(F){return a[F.getDay()]}function B(F){return c[F.getMonth()]}function W(F){return u[F.getMonth()]}function V(F){return i[+(F.getHours()>=12)]}function U(F){return 1+~~(F.getMonth()/3)}function X(F){return o[F.getUTCDay()]}function fe(F){return a[F.getUTCDay()]}function me(F){return c[F.getUTCMonth()]}function Be(F){return u[F.getUTCMonth()]}function Lt(F){return i[+(F.getUTCHours()>=12)]}function De(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var Z=b(F+="",w);return Z.toString=function(){return F},Z},parse:function(F){var Z=_(F+="",!1);return Z.toString=function(){return F},Z},utcFormat:function(F){var Z=b(F+="",O);return Z.toString=function(){return F},Z},utcParse:function(F){var Z=_(F+="",!0);return Z.toString=function(){return F},Z}}}var cm={"-":"",_:" ",0:"0"},je=/^\s*\d+/,$T=/^%/,CT=/[\\^$*+?|[\]().{}]/g;function re(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function IT(e){return e.replace(CT,"\\$&")}function sn(e){return new RegExp("^(?:"+e.map(IT).join("|")+")","i")}function ln(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function kT(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function RT(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function DT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function NT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function qT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function sm(e,t,r){var n=je.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function lm(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function LT(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 BT(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function FT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function fm(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function zT(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function hm(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function UT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function WT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function KT(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function GT(e,t,r){var n=je.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function HT(e,t,r){var n=$T.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function VT(e,t,r){var n=je.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function XT(e,t,r){var n=je.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function pm(e,t){return re(e.getDate(),t,2)}function YT(e,t){return re(e.getHours(),t,2)}function ZT(e,t){return re(e.getHours()%12||12,t,2)}function JT(e,t){return re(1+fi.count(Ot(e),e),t,3)}function ox(e,t){return re(e.getMilliseconds(),t,3)}function QT(e,t){return ox(e,t)+"000"}function eE(e,t){return re(e.getMonth()+1,t,2)}function tE(e,t){return re(e.getMinutes(),t,2)}function rE(e,t){return re(e.getSeconds(),t,2)}function nE(e){var t=e.getDay();return t===0?7:t}function iE(e,t){return re(Ga.count(Ot(e)-1,e),t,2)}function ux(e){var t=e.getDay();return t>=4||t===0?$r(e):$r.ceil(e)}function aE(e,t){return e=ux(e),re($r.count(Ot(e),e)+(Ot(e).getDay()===4),t,2)}function oE(e){return e.getDay()}function uE(e,t){return re(Ji.count(Ot(e)-1,e),t,2)}function cE(e,t){return re(e.getFullYear()%100,t,2)}function sE(e,t){return e=ux(e),re(e.getFullYear()%100,t,2)}function lE(e,t){return re(e.getFullYear()%1e4,t,4)}function fE(e,t){var r=e.getDay();return e=r>=4||r===0?$r(e):$r.ceil(e),re(e.getFullYear()%1e4,t,4)}function hE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function dm(e,t){return re(e.getUTCDate(),t,2)}function pE(e,t){return re(e.getUTCHours(),t,2)}function dE(e,t){return re(e.getUTCHours()%12||12,t,2)}function vE(e,t){return re(1+Ka.count(_t(e),e),t,3)}function cx(e,t){return re(e.getUTCMilliseconds(),t,3)}function yE(e,t){return cx(e,t)+"000"}function mE(e,t){return re(e.getUTCMonth()+1,t,2)}function gE(e,t){return re(e.getUTCMinutes(),t,2)}function bE(e,t){return re(e.getUTCSeconds(),t,2)}function xE(e){var t=e.getUTCDay();return t===0?7:t}function wE(e,t){return re(Ha.count(_t(e)-1,e),t,2)}function sx(e){var t=e.getUTCDay();return t>=4||t===0?Cr(e):Cr.ceil(e)}function OE(e,t){return e=sx(e),re(Cr.count(_t(e),e)+(_t(e).getUTCDay()===4),t,2)}function _E(e){return e.getUTCDay()}function AE(e,t){return re(Qi.count(_t(e)-1,e),t,2)}function SE(e,t){return re(e.getUTCFullYear()%100,t,2)}function PE(e,t){return e=sx(e),re(e.getUTCFullYear()%100,t,2)}function TE(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function EE(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Cr(e):Cr.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function jE(){return"+0000"}function vm(){return"%"}function ym(e){return+e}function mm(e){return Math.floor(+e/1e3)}var dr,lx,fx;ME({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 ME(e){return dr=MT(e),lx=dr.format,dr.parse,fx=dr.utcFormat,dr.utcParse,dr}function $E(e){return new Date(e)}function CE(e){return e instanceof Date?+e:+new Date(+e)}function Eh(e,t,r,n,i,a,o,u,c,s){var f=dh(),l=f.invert,h=f.domain,d=s(".%L"),y=s(":%S"),v=s("%I:%M"),p=s("%I %p"),g=s("%a %d"),x=s("%b %d"),w=s("%B"),O=s("%Y");function m(b){return(c(b)<b?d:u(b)<b?y:o(b)<b?v:a(b)<b?p: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,CE)):h().map($E)},f.ticks=function(b){var _=h();return e(_[0],_[_.length-1],b??10)},f.tickFormat=function(b,_){return _==null?m:s(_)},f.nice=function(b){var _=h();return(!b||typeof b.range!="function")&&(b=t(_[0],_[_.length-1],b??10)),b?h(Z0(_,b)):f},f.copy=function(){return li(f,Eh(e,t,r,n,i,a,o,u,c,s))},f}function IE(){return tt.apply(Eh(ET,jT,Ot,Ph,Ga,fi,Ah,Oh,Xt,lx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function kE(){return tt.apply(Eh(PT,TT,_t,Th,Ha,Ka,Sh,_h,Xt,fx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Va(){var e=0,t=1,r,n,i,a,o=Re,u=!1,c;function s(l){return l==null||isNaN(l=+l)?c:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}s.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(l){return arguments.length?(u=!!l,s):u},s.interpolator=function(l){return arguments.length?(o=l,s):o};function f(l){return function(h){var d,y;return arguments.length?([d,y]=h,o=l(d,y),s):[o(0),o(1)]}}return s.range=f(tn),s.rangeRound=f(ph),s.unknown=function(l){return arguments.length?(c=l,s):c},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),s}}function Nt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function hx(){var e=Dt(Va()(Re));return e.copy=function(){return Nt(e,hx())},Pt.apply(e,arguments)}function px(){var e=mh(Va()).domain([1,10]);return e.copy=function(){return Nt(e,px()).base(e.base())},Pt.apply(e,arguments)}function dx(){var e=gh(Va());return e.copy=function(){return Nt(e,dx()).constant(e.constant())},Pt.apply(e,arguments)}function jh(){var e=bh(Va());return e.copy=function(){return Nt(e,jh()).exponent(e.exponent())},Pt.apply(e,arguments)}function RE(){return jh.apply(null,arguments).exponent(.5)}function vx(){var e=[],t=Re;function r(n){if(n!=null&&!isNaN(n=+n))return t((ci(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(It),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)=>wP(e,a/n))},r.copy=function(){return vx(t).domain(e)},Pt.apply(r,arguments)}function Xa(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=Re,f,l=!1,h;function d(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:c),s(l?Math.max(0,Math.min(1,v)):v))}d.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d):[e,t,r]},d.clamp=function(v){return arguments.length?(l=!!v,d):l},d.interpolator=function(v){return arguments.length?(s=v,d):s};function y(v){return function(p){var g,x,w;return arguments.length?([g,x,w]=p,s=HP(v,[g,x,w]),d):[s(0),s(.5),s(1)]}}return d.range=y(tn),d.rangeRound=y(ph),d.unknown=function(v){return arguments.length?(h=v,d):h},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d}}function yx(){var e=Dt(Xa()(Re));return e.copy=function(){return Nt(e,yx())},Pt.apply(e,arguments)}function mx(){var e=mh(Xa()).domain([.1,1,10]);return e.copy=function(){return Nt(e,mx()).base(e.base())},Pt.apply(e,arguments)}function gx(){var e=gh(Xa());return e.copy=function(){return Nt(e,gx()).constant(e.constant())},Pt.apply(e,arguments)}function Mh(){var e=bh(Xa());return e.copy=function(){return Nt(e,Mh()).exponent(e.exponent())},Pt.apply(e,arguments)}function DE(){return Mh.apply(null,arguments).exponent(.5)}const gm=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:$n,scaleDiverging:yx,scaleDivergingLog:mx,scaleDivergingPow:Mh,scaleDivergingSqrt:DE,scaleDivergingSymlog:gx,scaleIdentity:Y0,scaleImplicit:Fl,scaleLinear:Yi,scaleLog:J0,scaleOrdinal:lh,scalePoint:bn,scalePow:xh,scaleQuantile:tx,scaleQuantize:rx,scaleRadial:ex,scaleSequential:hx,scaleSequentialLog:px,scaleSequentialPow:jh,scaleSequentialQuantile:vx,scaleSequentialSqrt:RE,scaleSequentialSymlog:dx,scaleSqrt:yT,scaleSymlog:Q0,scaleThreshold:nx,scaleTime:IE,scaleUtc:kE,tickFormat:X0},Symbol.toStringTag,{value:"Module"}));var Ms,bm;function Ya(){if(bm)return Ms;bm=1;var e=Zr();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],c=n(u);if(c!=null&&(s===void 0?c===c&&!e(c):i(c,s)))var s=c,f=u}return f}return Ms=t,Ms}var $s,xm;function bx(){if(xm)return $s;xm=1;function e(t,r){return t>r}return $s=e,$s}var Cs,wm;function NE(){if(wm)return Cs;wm=1;var e=Ya(),t=bx(),r=en();function n(i){return i&&i.length?e(i,r,t):void 0}return Cs=n,Cs}var qE=NE();const Za=ue(qE);var Is,Om;function xx(){if(Om)return Is;Om=1;function e(t,r){return t<r}return Is=e,Is}var ks,_m;function LE(){if(_m)return ks;_m=1;var e=Ya(),t=xx(),r=en();function n(i){return i&&i.length?e(i,r,t):void 0}return ks=n,ks}var BE=LE();const Ja=ue(BE);var Rs,Am;function FE(){if(Am)return Rs;Am=1;var e=Gf(),t=pt(),r=M0(),n=Le();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return Rs=i,Rs}var Ds,Sm;function zE(){if(Sm)return Ds;Sm=1;var e=E0(),t=FE();function r(n,i){return e(t(n,i),1)}return Ds=r,Ds}var UE=zE();const WE=ue(UE);var Ns,Pm;function KE(){if(Pm)return Ns;Pm=1;var e=ah();function t(r,n){return e(r,n)}return Ns=t,Ns}var GE=KE();const hi=ue(GE);var rn=1e9,HE={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ch,pe=!0,et="[DecimalError] ",Qt=et+"Invalid argument: ",$h=et+"Exponent out of range: ",nn=Math.floor,Gt=Math.pow,VE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ke,Ee=1e7,he=7,wx=9007199254740991,ea=nn(wx/he),z={};z.absoluteValue=z.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};z.comparedTo=z.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};z.decimalPlaces=z.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*he;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};z.dividedBy=z.div=function(e){return bt(this,new this.constructor(e))};z.dividedToIntegerBy=z.idiv=function(e){var t=this,r=t.constructor;return oe(bt(t,new r(e),0,1),r.precision)};z.equals=z.eq=function(e){return!this.cmp(e)};z.exponent=function(){return be(this)};z.greaterThan=z.gt=function(e){return this.cmp(e)>0};z.greaterThanOrEqualTo=z.gte=function(e){return this.cmp(e)>=0};z.isInteger=z.isint=function(){return this.e>this.d.length-2};z.isNegative=z.isneg=function(){return this.s<0};z.isPositive=z.ispos=function(){return this.s>0};z.isZero=function(){return this.s===0};z.lessThan=z.lt=function(e){return this.cmp(e)<0};z.lessThanOrEqualTo=z.lte=function(e){return this.cmp(e)<1};z.logarithm=z.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ke))throw Error(et+"NaN");if(r.s<1)throw Error(et+(r.s?"NaN":"-Infinity"));return r.eq(Ke)?new n(0):(pe=!1,t=bt(Dn(r,a),Dn(e,a),a),pe=!0,oe(t,i))};z.minus=z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ax(t,e):Ox(t,(e.s=-e.s,e))};z.modulo=z.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(et+"NaN");return r.s?(pe=!1,t=bt(r,e,0,1).times(e),pe=!0,r.minus(t)):oe(new n(r),i)};z.naturalExponential=z.exp=function(){return _x(this)};z.naturalLogarithm=z.ln=function(){return Dn(this)};z.negated=z.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};z.plus=z.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ox(t,e):Ax(t,(e.s=-e.s,e))};z.precision=z.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Qt+e);if(t=be(i)+1,n=i.d.length-1,r=n*he+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};z.squareRoot=z.sqrt=function(){var e,t,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(et+"NaN")}for(e=be(u),pe=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=ut(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=nn((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(bt(u,a,o+2)).times(.5),ut(a.d).slice(0,o)===(t=ut(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(oe(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return pe=!0,oe(n,r)};z.times=z.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,l=f.constructor,h=f.d,d=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,c=h.length,s=d.length,c<s&&(a=h,h=d,d=a,o=c,c=s,s=o),a=[],o=c+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=c+n;i>n;)u=a[i]+d[n]*h[i-n-1]+t,a[i--]=u%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,pe?oe(e,l.precision):e};z.toDecimalPlaces=z.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(lt(e,0,rn),t===void 0?t=n.rounding:lt(t,0,8),oe(r,e+be(r)+1,t))};z.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=nr(n,!0):(lt(e,0,rn),t===void 0?t=i.rounding:lt(t,0,8),n=oe(new i(n),e+1,t),r=nr(n,!0,e+1)),r};z.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?nr(i):(lt(e,0,rn),t===void 0?t=a.rounding:lt(t,0,8),n=oe(new a(i),e+be(i)+1,t),r=nr(n.abs(),!1,e+be(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};z.toInteger=z.toint=function(){var e=this,t=e.constructor;return oe(new t(e),be(e)+1,t.rounding)};z.toNumber=function(){return+this};z.toPower=z.pow=function(e){var t,r,n,i,a,o,u=this,c=u.constructor,s=12,f=+(e=new c(e));if(!e.s)return new c(Ke);if(u=new c(u),!u.s){if(e.s<1)throw Error(et+"Infinity");return u}if(u.eq(Ke))return u;if(n=c.precision,e.eq(Ke))return oe(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=wx){for(i=new c(Ke),t=Math.ceil(n/he+4),pe=!1;r%2&&(i=i.times(u),Em(i.d,t)),r=nn(r/2),r!==0;)u=u.times(u),Em(u.d,t);return pe=!0,e.s<0?new c(Ke).div(i):oe(i,n)}}else if(a<0)throw Error(et+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,pe=!1,i=e.times(Dn(u,n+s)),pe=!0,i=_x(i),i.s=a,i};z.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=be(i),n=nr(i,r<=a.toExpNeg||r>=a.toExpPos)):(lt(e,1,rn),t===void 0?t=a.rounding:lt(t,0,8),i=oe(new a(i),e,t),r=be(i),n=nr(i,e<=r||r<=a.toExpNeg,e)),n};z.toSignificantDigits=z.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(lt(e,1,rn),t===void 0?t=n.rounding:lt(t,0,8)),oe(new n(r),e,t)};z.toString=z.valueOf=z.val=z.toJSON=z[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=be(e),r=e.constructor;return nr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Ox(e,t){var r,n,i,a,o,u,c,s,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),pe?oe(t,l):t;if(c=e.d,s=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),o=Math.ceil(l/he),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=s.length,u-a<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/Ee|0,c[a]%=Ee;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,pe?oe(t,l):t}function lt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Qt+e)}function ut(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=he-n.length,r&&(a+=jt(r)),a+=n;o=e[t],n=o+"",r=he-n.length,r&&(a+=jt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var bt=(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,c;if(a!=o)c=a>o?1:-1;else for(u=c=0;u<a;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Ee+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,h,d,y,v,p,g,x,w,O,m,b,_,A,P=n.constructor,j=n.s==i.s?1:-1,E=n.d,T=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(et+"Division by zero");for(c=n.e-i.e,_=T.length,m=E.length,d=new P(j),y=d.d=[],s=0;T[s]==(E[s]||0);)++s;if(T[s]>(E[s]||0)&&--c,a==null?x=a=P.precision:o?x=a+(be(n)-be(i))+1:x=a,x<0)return new P(0);if(x=x/he+2|0,s=0,_==1)for(f=0,T=T[0],x++;(s<m||f)&&x--;s++)w=f*Ee+(E[s]||0),y[s]=w/T|0,f=w%T|0;else{for(f=Ee/(T[0]+1)|0,f>1&&(T=e(T,f),E=e(E,f),_=T.length,m=E.length),O=_,v=E.slice(0,_),p=v.length;p<_;)v[p++]=0;A=T.slice(),A.unshift(0),b=T[0],T[1]>=Ee/2&&++b;do f=0,u=t(T,v,_,p),u<0?(g=v[0],_!=p&&(g=g*Ee+(v[1]||0)),f=g/b|0,f>1?(f>=Ee&&(f=Ee-1),l=e(T,f),h=l.length,p=v.length,u=t(l,v,h,p),u==1&&(f--,r(l,_<h?A:T,h))):(f==0&&(u=f=1),l=T.slice()),h=l.length,h<p&&l.unshift(0),r(v,l,p),u==-1&&(p=v.length,u=t(T,v,_,p),u<1&&(f++,r(v,_<p?A:T,p))),p=v.length):u===0&&(f++,v=[0]),y[s++]=f,u&&v[0]?v[p++]=E[O]||0:(v=[E[O]],p=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),d.e=c,oe(d,o?a+be(d)+1:a)}})();function _x(e,t){var r,n,i,a,o,u,c=0,s=0,f=e.constructor,l=f.precision;if(be(e)>16)throw Error($h+be(e));if(!e.s)return new f(Ke);for(pe=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Gt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Ke),f.precision=u;;){if(i=oe(i.times(e),u),r=r.times(++c),o=a.plus(bt(i,r,u)),ut(o.d).slice(0,u)===ut(a.d).slice(0,u)){for(;s--;)a=oe(a.times(a),u);return f.precision=l,t==null?(pe=!0,oe(a,l)):a}a=o}}function be(e){for(var t=e.e*he,r=e.d[0];r>=10;r/=10)t++;return t}function qs(e,t,r){if(t>e.LN10.sd())throw pe=!0,r&&(e.precision=r),Error(et+"LN10 precision limit exceeded");return oe(new e(e.LN10),t)}function jt(e){for(var t="";e--;)t+="0";return t}function Dn(e,t){var r,n,i,a,o,u,c,s,f,l=1,h=10,d=e,y=d.d,v=d.constructor,p=v.precision;if(d.s<1)throw Error(et+(d.s?"NaN":"-Infinity"));if(d.eq(Ke))return new v(0);if(t==null?(pe=!1,s=p):s=t,d.eq(10))return t==null&&(pe=!0),qs(v,s);if(s+=h,v.precision=s,r=ut(y),n=r.charAt(0),a=be(d),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)d=d.times(e),r=ut(d.d),n=r.charAt(0),l++;a=be(d),n>1?(d=new v("0."+r),a++):d=new v(n+"."+r.slice(1))}else return c=qs(v,s+2,p).times(a+""),d=Dn(new v(n+"."+r.slice(1)),s-h).plus(c),v.precision=p,t==null?(pe=!0,oe(d,p)):d;for(u=o=d=bt(d.minus(Ke),d.plus(Ke),s),f=oe(d.times(d),s),i=3;;){if(o=oe(o.times(f),s),c=u.plus(bt(o,new v(i),s)),ut(c.d).slice(0,s)===ut(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(qs(v,s+2,p).times(a+""))),u=bt(u,new v(l),s),v.precision=p,t==null?(pe=!0,oe(u,p)):u;u=c,i+=2}}function Tm(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=nn(r/he),e.d=[],n=(r+1)%he,r<0&&(n+=he),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=he;n<i;)e.d.push(+t.slice(n,n+=he));t=t.slice(n),n=he-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),pe&&(e.e>ea||e.e<-ea))throw Error($h+r)}else e.s=0,e.e=0,e.d=[0];return e}function oe(e,t,r){var n,i,a,o,u,c,s,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=he,i=t,s=l[f=0];else{if(f=Math.ceil((n+1)/he),a=l.length,f>=a)return e;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=he,i=n-he+o}if(r!==void 0&&(a=Gt(10,o-i-1),u=s/a%10|0,c=t<0||l[f+1]!==void 0||s%a,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?s/Gt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=be(e),l.length=1,t=t-a-1,l[0]=Gt(10,(he-t%he)%he),e.e=nn(-t/he)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=Gt(10,he-n),l[f]=i>0?(s/Gt(10,o-i)%Gt(10,i)|0)*a:0),c)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(pe&&(e.e>ea||e.e<-ea))throw Error($h+be(e));return e}function Ax(e,t){var r,n,i,a,o,u,c,s,f,l,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),pe?oe(t,d):t;if(c=e.d,l=t.d,n=t.e,s=e.e,c=c.slice(),o=s-n,o){for(f=o<0,f?(r=c,o=-o,u=l.length):(r=l,n=s,u=c.length),i=Math.max(Math.ceil(d/he),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(c[i]!=l[i]){f=c[i]<l[i];break}o=0}for(f&&(r=c,c=l,l=r,t.s=-t.s),u=c.length,i=l.length-u;i>0;--i)c[u++]=0;for(i=l.length;i>o;){if(c[--i]<l[i]){for(a=i;a&&c[--a]===0;)c[a]=Ee-1;--c[a],c[i]+=Ee}c[i]-=l[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,pe?oe(t,d):t):new h(0)}function nr(e,t,r){var n,i=be(e),a=ut(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+jt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+jt(-i-1)+a,r&&(n=r-o)>0&&(a+=jt(n))):i>=o?(a+=jt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+jt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=jt(n))),e.s<0?"-"+a:a}function Em(e,t){if(e.length>t)return e.length=t,!0}function Sx(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(Qt+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 Tm(o,a.toString())}else if(typeof a!="string")throw Error(Qt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,VE.test(a))Tm(o,a);else throw Error(Qt+a)}if(i.prototype=z,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Sx,i.config=i.set=XE,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 XE(e){if(!e||typeof e!="object")throw Error(et+"Object expected");var t,r,n,i=["precision",1,rn,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(nn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Qt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Qt+r+": "+n);return this}var Ch=Sx(HE);Ke=new Ch(1);const ae=Ch;function YE(e){return ej(e)||QE(e)||JE(e)||ZE()}function ZE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JE(e,t){if(e){if(typeof e=="string")return Kl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kl(e,t)}}function QE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ej(e){if(Array.isArray(e))return Kl(e)}function Kl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var tj=function(t){return t},Px={},Tx=function(t){return t===Px},jm=function(t){return function r(){return arguments.length===0||arguments.length===1&&Tx(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},rj=function e(t,r){return t===1?r:jm(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!==Px}).length;return o>=t?r.apply(void 0,i):e(t-o,jm(function(){for(var u=arguments.length,c=new Array(u),s=0;s<u;s++)c[s]=arguments[s];var f=i.map(function(l){return Tx(l)?c.shift():l});return r.apply(void 0,YE(f).concat(c))}))})},Qa=function(t){return rj(t.length,t)},Gl=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},nj=Qa(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),ij=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return tj;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,c){return c(u)},a.apply(void 0,arguments))}},Hl=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Ex=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,c){return u===r[c]})||(r=a,n=t.apply(void 0,a)),n}};function aj(e){var t;return e===0?t=1:t=Math.floor(new ae(e).abs().log(10).toNumber())+1,t}function oj(e,t,r){for(var n=new ae(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var uj=Qa(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),cj=Qa(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),sj=Qa(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const eo={rangeStep:oj,getDigitCount:aj,interpolateNumber:uj,uninterpolateNumber:cj,uninterpolateTruncation:sj};function Vl(e){return hj(e)||fj(e)||jx(e)||lj()}function lj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fj(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function hj(e){if(Array.isArray(e))return Xl(e)}function Nn(e,t){return vj(e)||dj(e,t)||jx(e,t)||pj()}function pj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jx(e,t){if(e){if(typeof e=="string")return Xl(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 Xl(e,t)}}function Xl(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 dj(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function vj(e){if(Array.isArray(e))return e}function Mx(e){var t=Nn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function $x(e,t,r){if(e.lte(0))return new ae(0);var n=eo.getDigitCount(e.toNumber()),i=new ae(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ae(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ae(Math.ceil(c))}function yj(e,t,r){var n=1,i=new ae(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ae(10).pow(eo.getDigitCount(e)-1),i=new ae(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ae(Math.floor(e)))}else e===0?i=new ae(Math.floor((t-1)/2)):r||(i=new ae(Math.floor(e)));var o=Math.floor((t-1)/2),u=ij(nj(function(c){return i.add(new ae(c-o).mul(n)).toNumber()}),Gl);return u(0,t)}function Cx(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ae(0),tickMin:new ae(0),tickMax:new ae(0)};var a=$x(new ae(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ae(0):(o=new ae(e).add(t).div(2),o=o.sub(new ae(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ae(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?Cx(e,t,r,n,i+1):(s<r&&(c=t>0?c+(r-s):c,u=t>0?u:u+(r-s)),{step:a,tickMin:o.sub(new ae(u).mul(a)),tickMax:o.add(new ae(c).mul(a))})}function mj(e){var t=Nn(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=Mx([r,n]),c=Nn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(Vl(Gl(0,i-1).map(function(){return 1/0}))):[].concat(Vl(Gl(0,i-1).map(function(){return-1/0})),[f]);return r>n?Hl(l):l}if(s===f)return yj(s,i,a);var h=Cx(s,f,o,a),d=h.step,y=h.tickMin,v=h.tickMax,p=eo.rangeStep(y,v.add(new ae(.1).mul(d)),d);return r>n?Hl(p):p}function gj(e,t){var r=Nn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Mx([n,i]),u=Nn(o,2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[n,i];if(c===s)return[c];var f=Math.max(t,2),l=$x(new ae(s).sub(c).div(f-1),a,0),h=[].concat(Vl(eo.rangeStep(new ae(c),new ae(s).sub(new ae(.99).mul(l)),l)),[s]);return n>i?Hl(h):h}var bj=Ex(mj),xj=Ex(gj),wj="Invariant failed";function ir(e,t){throw new Error(wj)}var Oj=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 ta(){return ta=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},ta.apply(this,arguments)}function _j(e,t){return Tj(e)||Pj(e,t)||Sj(e,t)||Aj()}function Aj(){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 Sj(e,t){if(e){if(typeof e=="string")return Mm(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 Mm(e,t)}}function Mm(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 Pj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function Tj(e){if(Array.isArray(e))return e}function Ej(e,t){if(e==null)return{};var r=jj(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jj(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Mj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Rx(n.key),n)}}function Cj(e,t,r){return t&&$j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ij(e,t,r){return t=ra(t),kj(e,Ix()?Reflect.construct(t,r||[],ra(e).constructor):t.apply(e,r))}function kj(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 Rj(e)}function Rj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ix(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ix=function(){return!!e})()}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ra(e)}function Dj(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&&Yl(e,t)}function Yl(e,t){return Yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yl(e,t)}function kx(e,t,r){return t=Rx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rx(e){var t=Nj(e,"string");return Ir(t)=="symbol"?t:t+""}function Nj(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)}var pi=(function(e){function t(){return Mj(this,t),Ij(this,t,arguments)}return Dj(t,e),Cj(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,c=n.data,s=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,h=Ej(n,Oj),d=K(h,!1);this.props.direction==="x"&&f.type!=="number"&&ir();var y=c.map(function(v){var p=s(v,u),g=p.x,x=p.y,w=p.value,O=p.errorVal;if(!O)return null;var m=[],b,_;if(Array.isArray(O)){var A=_j(O,2);b=A[0],_=A[1]}else b=_=O;if(a==="vertical"){var P=f.scale,j=x+i,E=j+o,T=j-o,M=P(w-b),$=P(w+_);m.push({x1:$,y1:E,x2:$,y2:T}),m.push({x1:M,y1:j,x2:$,y2:j}),m.push({x1:M,y1:E,x2:M,y2:T})}else if(a==="horizontal"){var I=l.scale,k=g+i,D=k-o,L=k+o,B=I(w-b),W=I(w+_);m.push({x1:D,y1:W,x2:L,y2:W}),m.push({x1:k,y1:B,x2:k,y2:W}),m.push({x1:D,y1:B,x2:L,y2:B})}return S.createElement(te,ta({className:"recharts-errorBar",key:"bar-".concat(m.map(function(V){return"".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))},d),m.map(function(V){return S.createElement("line",ta({},V,{key:"line-".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))}))});return S.createElement(te,{className:"recharts-errorBars"},y)}}])})(S.Component);kx(pi,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});kx(pi,"displayName","ErrorBar");function qn(e){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(e)}function $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 zt(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){qj(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 qj(e,t,r){return t=Lj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lj(e){var t=Bj(e,"string");return qn(t)=="symbol"?t:t+""}function Bj(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dx=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ue(r,Zt);if(!o)return null;var u=Zt.defaultProps,c=u!==void 0?zt(zt({},u),o.props):{},s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(f,l){var h=l.item,d=l.props,y=d.sectors||d.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):s=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,d=h!==void 0?zt(zt({},h),l.props):{},y=d.dataKey,v=d.name,p=d.legendType,g=d.hide;return{inactive:g,dataKey:y,type:c.iconType||p||"square",color:Ih(l),value:v||y,payload:d}}),zt(zt(zt({},c),Zt.getWithHeight(o,i)),{},{payload:s,item:o})};function Ln(e){"@babel/helpers - typeof";return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ln(e)}function Cm(e){return Wj(e)||Uj(e)||zj(e)||Fj()}function Fj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
20
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zj(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 Uj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wj(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 Im(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Im(Object(r),!0).forEach(function(n){Ar(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Im(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ar(e,t,r){return t=Kj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kj(e){var t=Gj(e,"string");return Ln(t)=="symbol"?t:t+""}function Gj(e,t){if(Ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Se(e,t,r){return Y(e)||Y(t)?r:Pe(t)?Ge(e,t,r):H(t)?t(e):r}function xn(e,t,r,n){var i=WE(e,function(u){return Se(u,t)});if(r==="number"){var a=i.filter(function(u){return N(u)||parseFloat(u)});return a.length?[Ja(a),Za(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Y(u)}):i;return o.map(function(u){return Pe(u)||u instanceof Date?u:""})}var Hj=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,h=s>=u-1?i[0].coordinate:i[s+1].coordinate,d=void 0;if(Ie(l-f)!==Ie(h-l)){var y=[];if(Ie(h-l)===Ie(c[1]-c[0])){d=h;var v=l+c[1]-c[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{d=f;var p=h+c[1]-c[0];y[0]=Math.min(l,(p+l)/2),y[1]=Math.max(l,(p+l)/2)}var g=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=i[s].index;break}}else{var x=Math.min(f,h),w=Math.max(f,h);if(t>(x+l)/2&&t<=(w+l)/2){o=i[s].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Ih=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ve(ve({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:u;break;default:c=u;break}return c},Vj=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,s=u.length;c<s;c++)for(var f=a[u[c]].stackGroups,l=Object.keys(f),h=0,d=l.length;h<d;h++){var y=f[l[h]],v=y.items,p=y.cateAxisId,g=v.filter(function(_){return Ct(_.type).indexOf("Bar")>=0});if(g&&g.length){var x=g[0].type.defaultProps,w=x!==void 0?ve(ve({},x),g[0].props):g[0].props,O=w.barSize,m=w[p];o[m]||(o[m]=[]);var b=Y(O)?r:O;o[m].push({item:g[0],stackList:g.slice(1),barSize:Y(b)?void 0:ke(b,n,0)})}}return o},Xj=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,c=o.length;if(c<1)return null;var s=ke(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,d=i/c,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(c-1)*s,y>=i&&(y-=(c-1)*s,s=0),y>=i&&d>0&&(h=!0,d*=.9,y=c*d);var v=(i-y)/2>>0,p={offset:v-s,size:0};f=o.reduce(function(O,m){var b={item:m.item,position:{offset:p.offset+p.size+s,size:h?d:m.barSize}},_=[].concat(Cm(O),[b]);return p=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:p})}),_},l)}else{var g=ke(n,i,0,!0);i-2*g-(c-1)*s<=0&&(s=0);var x=(i-2*g-(c-1)*s)/c;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+s)*b+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:_[_.length-1].position})}),_},l)}return f},Yj=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=Dx({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,h=f.height,d=s.align,y=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&d!=="center"&&N(t[d]))return ve(ve({},t),{},Ar({},d,t[d]+(l||0)));if((v==="horizontal"||v==="vertical"&&d==="center")&&y!=="middle"&&N(t[y]))return ve(ve({},t),{},Ar({},y,t[y]+(h||0)))}return t},Zj=function(t,r,n){return Y(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Nx=function(t,r,n,i,a){var o=r.props.children,u=He(o,pi).filter(function(s){return Zj(i,a,s.props.direction)});if(u&&u.length){var c=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var l=Se(f,n);if(Y(l))return s;var h=Array.isArray(l)?[Ja(l),Za(l)]:[l,l],d=c.reduce(function(y,v){var p=Se(f,v,0),g=h[0]-Math.abs(Array.isArray(p)?p[0]:p),x=h[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(g,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(d[0],s[0]),Math.max(d[1],s[1])]},[1/0,-1/0])}return null},Jj=function(t,r,n,i,a){var o=r.map(function(u){return Nx(t,u,n,a,i)}).filter(function(u){return!Y(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},qx=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&Nx(t,c,s,i)||xn(t,s,n,a)});if(n==="number")return o.reduce(function(c,s){return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,s){for(var f=0,l=s.length;f<l;f++)u[s[f]]||(u[s[f]]=!0,c.push(s[f]));return c},[])},Lx=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Bx=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,u=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||u.push(r),o||u.push(n),u},gt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Ie(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+s,value:l,offset:s}});return f.filter(function(l){return!oi(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+s,value:l,index:h,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,h){return{coordinate:i(l)+s,value:a?a[l]:l,index:h,offset:s}})},Ls=new WeakMap,Ai=function(t,r){if(typeof r!="function")return t;Ls.has(t)||Ls.set(t,new WeakMap);var n=Ls.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},Fx=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:$n(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Yi(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:bn(),realScaleType:"point"}:a==="category"?{scale:$n(),realScaleType:"band"}:{scale:Yi(),realScaleType:"linear"};if(er(i)){var c="scale".concat(Da(i));return{scale:(gm[c]||bn)(),realScaleType:gm[c]?c:"point"}}return H(i)?{scale:i}:{scale:bn(),realScaleType:"point"}},km=1e-4,zx=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])-km,o=Math.max(i[0],i[1])+km,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},Qj=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||!N(r[0])||!N(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(!N(t[0])||t[0]<n)&&(a[0]=n),(!N(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 c=oi(t[u][n][1])?t[u][n][0]:t[u][n][1];c>=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},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=oi(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:Z_,none:Sr,silhouette:J_,wiggle:Q_,positive:rM},iM=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=nM[n],o=Y_().keys(i).value(function(u,c){return+Se(u,c,0)}).order(Tl).offset(a);return o(t)},aM=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,h){var d,y=(d=h.type)!==null&&d!==void 0&&d.defaultProps?ve(ve({},h.type.defaultProps),h.props):h.props,v=y.stackId,p=y.hide;if(p)return l;var g=y[n],x=l[g]||{hasStack:!1,stackGroups:{}};if(Pe(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[Qr("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return ve(ve({},l),{},Ar({},g,x))},c),f={};return Object.keys(s).reduce(function(l,h){var d=s[h];if(d.hasStack){var y={};d.stackGroups=Object.keys(d.stackGroups).reduce(function(v,p){var g=d.stackGroups[p];return ve(ve({},v),{},Ar({},p,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:iM(t,g.items,a)}))},y)}return ve(ve({},l),{},Ar({},h,d))},f)},Ux=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=bj(s,a,u);return t.domain([Ja(f),Za(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=xj(l,a,u);return{niceTicks:h}}return null};function Rm(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Y(i[t.dataKey])){var u=$i(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Se(i,Y(o)?t.dataKey:o);return Y(c)?null:t.scale(c)}var Dm=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=Se(o,r.dataKey,r.domain[u]);return Y(c)?null:r.scale(c)-a/2+i},oM=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]},uM=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ve(ve({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Pe(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[Ja(n.concat([r[0]]).filter(N)),Za(n.concat([r[1]]).filter(N))]},[1/0,-1/0])},Wx=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,c=u.reduce(function(s,f){var l=cM(f.slice(r,n+1));return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Nm=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,qm=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Jl=function(t,r,n){if(H(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(N(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 H(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(N(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(qm.test(t[1])){var o=+qm.exec(t[1])[1];i[1]=r[1]+o}else H(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},na=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=uh(r,function(l){return l.coordinate}),o=1/0,u=1,c=a.length;u<c;u++){var s=a[u],f=a[u-1];o=Math.min((s.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Lm=function(t,r,n){return!t||!t.length||hi(t,Ge(n,"type.defaultProps.domain"))?r:t},Kx=function(t,r){var n=t.type.defaultProps?ve(ve({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,c=n.tooltipType,s=n.chartType,f=n.hide;return ve(ve({},K(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Ih(t),value:Se(r,i),type:c,payload:r,chartType:s,hide:f})};function Bn(e){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(e)}function Bm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bm(Object(r),!0).forEach(function(n){Gx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gx(e,t,r){return t=sM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sM(e){var t=lM(e,"string");return Bn(t)=="symbol"?t:t+""}function lM(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fM(e,t){return vM(e)||dM(e,t)||pM(e,t)||hM()}function hM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pM(e,t){if(e){if(typeof e=="string")return Fm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fm(e,t)}}function Fm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function vM(e){if(Array.isArray(e))return e}var ia=Math.PI/180,yM=function(t){return t*180/Math.PI},le=function(t,r,n,i){return{x:t+Math.cos(-ia*i)*n,y:r+Math.sin(-ia*i)*n}},Hx=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},mM=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.startAngle,s=t.endAngle,f=ke(t.cx,o,o/2),l=ke(t.cy,u,u/2),h=Hx(o,u,n),d=ke(t.innerRadius,h,0),y=ke(t.outerRadius,h,h*.8),v=Object.keys(r);return v.reduce(function(p,g){var x=r[g],w=x.domain,O=x.reversed,m;if(Y(x.range))i==="angleAxis"?m=[c,s]:i==="radiusAxis"&&(m=[d,y]),O&&(m=[m[1],m[0]]);else{m=x.range;var b=m,_=fM(b,2);c=_[0],s=_[1]}var A=Fx(x,a),P=A.realScaleType,j=A.scale;j.domain(w).range(m),zx(j);var E=Ux(j,vt(vt({},x),{},{realScaleType:P})),T=vt(vt(vt({},x),E),{},{range:m,radius:y,realScaleType:P,scale:j,cx:f,cy:l,innerRadius:d,outerRadius:y,startAngle:c,endAngle:s});return vt(vt({},p),{},Gx({},g,T))},{})},gM=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))},bM=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=gM({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var c=(n-a)/u,s=Math.acos(c);return i>o&&(s=2*Math.PI-s),{radius:u,angle:yM(s),angleInRadian:s}},xM=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}},wM=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},zm=function(t,r){var n=t.x,i=t.y,a=bM({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,s=r.outerRadius;if(o<c||o>s)return!1;if(o===0)return!0;var f=xM(r),l=f.startAngle,h=f.endAngle,d=u,y;if(l<=h){for(;d>h;)d-=360;for(;d<l;)d+=360;y=d>=l&&d<=h}else{for(;d>l;)d-=360;for(;d<h;)d+=360;y=d>=h&&d<=l}return y?vt(vt({},r),{},{radius:o,angle:wM(d,r)}):null},Vx=function(t){return!q.isValidElement(t)&&!H(t)&&typeof t!="boolean"?t.className:""};function Fn(e){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(e)}var OM=["offset"];function _M(e){return TM(e)||PM(e)||SM(e)||AM()}function AM(){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 SM(e,t){if(e){if(typeof e=="string")return Ql(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ql(e,t)}}function PM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function TM(e){if(Array.isArray(e))return Ql(e)}function Ql(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function EM(e,t){if(e==null)return{};var r=jM(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 jM(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 Um(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Um(Object(r),!0).forEach(function(n){MM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Um(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MM(e,t,r){return t=$M(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $M(e){var t=CM(e,"string");return Fn(t)=="symbol"?t:t+""}function CM(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zn.apply(this,arguments)}var IM=function(t){var r=t.value,n=t.formatter,i=Y(t.children)?r:t.children;return H(n)?n(i):i},kM=function(t,r){var n=Ie(r-t),i=Math.min(Math.abs(r-t),360);return n*i},RM=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,c=a,s=c.cx,f=c.cy,l=c.innerRadius,h=c.outerRadius,d=c.startAngle,y=c.endAngle,v=c.clockWise,p=(l+h)/2,g=kM(d,y),x=g>=0?1:-1,w,O;i==="insideStart"?(w=d+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=le(s,f,p,w),b=le(s,f,p,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
|
|
23
|
+
A`).concat(p,",").concat(p,",0,1,").concat(O?0:1,`,
|
|
24
|
+
`).concat(b.x,",").concat(b.y),A=Y(t.id)?Qr("recharts-radial-line-"):t.id;return S.createElement("text",zn({},n,{dominantBaseline:"central",className:J("recharts-radial-bar-label",u)}),S.createElement("defs",null,S.createElement("path",{id:A,d:_})),S.createElement("textPath",{xlinkHref:"#".concat(A)},r))},DM=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,s=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var d=le(o,u,s+n,h),y=d.x,v=d.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var p=(c+s)/2,g=le(o,u,p,h),x=g.x,w=g.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},NM=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,c=o.y,s=o.width,f=o.height,l=f>=0?1:-1,h=l*i,d=l>0?"end":"start",y=l>0?"start":"end",v=s>=0?1:-1,p=v*i,g=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:d};return _e(_e({},w),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var O={x:u+s/2,y:c+f+h,textAnchor:"middle",verticalAnchor:y};return _e(_e({},O),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var m={x:u-p,y:c+f/2,textAnchor:g,verticalAnchor:"middle"};return _e(_e({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var b={x:u+s+p,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return _e(_e({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:f}:{})}var _=n?{width:s,height:f}:{};return a==="insideLeft"?_e({x:u+p,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?_e({x:u+s-p,y:c+f/2,textAnchor:g,verticalAnchor:"middle"},_):a==="insideTop"?_e({x:u+s/2,y:c+h,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?_e({x:u+s/2,y:c+f-h,textAnchor:"middle",verticalAnchor:d},_):a==="insideTopLeft"?_e({x:u+p,y:c+h,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?_e({x:u+s-p,y:c+h,textAnchor:g,verticalAnchor:y},_):a==="insideBottomLeft"?_e({x:u+p,y:c+f-h,textAnchor:x,verticalAnchor:d},_):a==="insideBottomRight"?_e({x:u+s-p,y:c+f-h,textAnchor:g,verticalAnchor:d},_):Jr(a)&&(N(a.x)||ml(a.x))&&(N(a.y)||ml(a.y))?_e({x:u+ke(a.x,s),y:c+ke(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):_e({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},qM=function(t){return"cx"in t&&N(t.cx)};function Ae(e){var t=e.offset,r=t===void 0?5:t,n=EM(e,OM),i=_e({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,s=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||Y(u)&&Y(c)&&!q.isValidElement(s)&&!H(s))return null;if(q.isValidElement(s))return q.cloneElement(s,i);var d;if(H(s)){if(d=q.createElement(s,i),q.isValidElement(d))return d}else d=IM(i);var y=qM(a),v=K(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return RM(i,d,v);var p=y?DM(i):NM(i);return S.createElement(rr,zn({className:J("recharts-label",l)},v,p,{breakAll:h}),d)}Ae.displayName="Label";var Xx=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,c=t.radius,s=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,d=t.top,y=t.left,v=t.width,p=t.height,g=t.clockWise,x=t.labelViewBox;if(x)return x;if(N(v)&&N(p)){if(N(l)&&N(h))return{x:l,y:h,width:v,height:p};if(N(d)&&N(y))return{x:d,y,width:v,height:p}}return N(l)&&N(h)?{x:l,y:h,width:0,height:0}:N(r)&&N(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:g}:t.viewBox?t.viewBox:{}},LM=function(t,r){return t?t===!0?S.createElement(Ae,{key:"label-implicit",viewBox:r}):Pe(t)?S.createElement(Ae,{key:"label-implicit",viewBox:r,value:t}):q.isValidElement(t)?t.type===Ae?q.cloneElement(t,{key:"label-implicit",viewBox:r}):S.createElement(Ae,{key:"label-implicit",content:t,viewBox:r}):H(t)?S.createElement(Ae,{key:"label-implicit",content:t,viewBox:r}):Jr(t)?S.createElement(Ae,zn({viewBox:r},t,{key:"label-implicit"})):null:null},BM=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=Xx(t),o=He(i,Ae).map(function(c,s){return q.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=LM(t.label,r||a);return[u].concat(_M(o))};Ae.parseViewBox=Xx;Ae.renderCallByParent=BM;var Bs,Wm;function FM(){if(Wm)return Bs;Wm=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Bs=e,Bs}var zM=FM();const UM=ue(zM);function Un(e){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Un(e)}var WM=["valueAccessor"],KM=["data","dataKey","clockWise","id","textBreakAll"];function GM(e){return YM(e)||XM(e)||VM(e)||HM()}function HM(){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 VM(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 XM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YM(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}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 Km(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?Km(Object(r),!0).forEach(function(n){ZM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Km(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZM(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=QM(e,"string");return Un(t)=="symbol"?t:t+""}function QM(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)}function Hm(e,t){if(e==null)return{};var r=e$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function e$(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var t$=function(t){return Array.isArray(t.value)?UM(t.value):t.value};function xt(e){var t=e.valueAccessor,r=t===void 0?t$:t,n=Hm(e,WM),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=Hm(n,KM);return!i||!i.length?null:S.createElement(te,{className:"recharts-label-list"},i.map(function(f,l){var h=Y(a)?r(f,l):Se(f&&f.payload,a),d=Y(u)?{}:{id:"".concat(u,"-").concat(l)};return S.createElement(Ae,aa({},K(f,!0),s,d,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Ae.parseViewBox(Y(o)?f:Gm(Gm({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}xt.displayName="LabelList";function r$(e,t){return e?e===!0?S.createElement(xt,{key:"labelList-implicit",data:t}):S.isValidElement(e)||H(e)?S.createElement(xt,{key:"labelList-implicit",data:t,content:e}):Jr(e)?S.createElement(xt,aa({data:t},e,{key:"labelList-implicit"})):null:null}function n$(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=He(n,xt).map(function(o,u){return q.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=r$(e.label,t);return[a].concat(GM(i))}xt.renderCallByParent=n$;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 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)}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){i$(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 i$(e,t,r){return t=a$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a$(e){var t=o$(e,"string");return Wn(t)=="symbol"?t:t+""}function o$(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var u$=function(t,r){var n=Ie(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Si=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,c=t.cornerRadius,s=t.cornerIsExternal,f=c*(u?1:-1)+i,l=Math.asin(c/f)/ia,h=s?a:a+o*l,d=le(r,n,f,h),y=le(r,n,i,h),v=s?a-o*l:a,p=le(r,n,f*Math.cos(l*ia),v);return{center:d,circleTangency:y,lineTangency:p,theta:l}},Yx=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,c=u$(o,u),s=o+c,f=le(r,n,a,o),l=le(r,n,a,s),h="M ".concat(f.x,",").concat(f.y,`
|
|
26
|
+
A `).concat(a,",").concat(a,`,0,
|
|
27
|
+
`).concat(+(Math.abs(c)>180),",").concat(+(o>s),`,
|
|
28
|
+
`).concat(l.x,",").concat(l.y,`
|
|
29
|
+
`);if(i>0){var d=le(r,n,i,o),y=le(r,n,i,s);h+="L ".concat(y.x,",").concat(y.y,`
|
|
30
|
+
A `).concat(i,",").concat(i,`,0,
|
|
31
|
+
`).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`,
|
|
32
|
+
`).concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},c$=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,c=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,l=Ie(f-s),h=Si({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),d=h.circleTangency,y=h.lineTangency,v=h.theta,p=Si({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),g=p.circleTangency,x=p.lineTangency,w=p.theta,O=c?Math.abs(s-f):Math.abs(s-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,`
|
|
33
|
+
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
|
34
|
+
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
|
35
|
+
`):Yx({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
|
|
36
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(d.x,",").concat(d.y,`
|
|
37
|
+
A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(g.x,",").concat(g.y,`
|
|
38
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
|
|
39
|
+
`);if(i>0){var b=Si({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=b.circleTangency,A=b.lineTangency,P=b.theta,j=Si({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),E=j.circleTangency,T=j.lineTangency,M=j.theta,$=c?Math.abs(s-f):Math.abs(s-f)-P-M;if($<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(T.x,",").concat(T.y,`
|
|
40
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(E.x,",").concat(E.y,`
|
|
41
|
+
A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
|
|
42
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},s$={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Zx=function(t){var r=Xm(Xm({},s$),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o<a||f===l)return null;var d=J("recharts-sector",h),y=o-a,v=ke(u,y,0,!0),p;return v>0&&Math.abs(f-l)<360?p=c$({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):p=Yx({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),S.createElement("path",tf({},K(r,!0),{className:d,d:p,role:"img"}))};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 rf(){return rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rf.apply(this,arguments)}function Ym(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ym(Object(r),!0).forEach(function(n){l$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ym(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l$(e,t,r){return t=f$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f$(e){var t=h$(e,"string");return Kn(t)=="symbol"?t:t+""}function h$(e,t){if(Kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jm={curveBasisClosed:L_,curveBasisOpen:B_,curveBasis:q_,curveBumpX:A_,curveBumpY:S_,curveLinearClosed:F_,curveLinear:qa,curveMonotoneX:z_,curveMonotoneY:U_,curveNatural:W_,curveStep:K_,curveStepAfter:H_,curveStepBefore:G_},Pi=function(t){return t.x===+t.x&&t.y===+t.y},fn=function(t){return t.x},hn=function(t){return t.y},p$=function(t,r){if(H(t))return t;var n="curve".concat(Da(t));return(n==="curveMonotone"||n==="curveBump")&&r?Jm["".concat(n).concat(r==="vertical"?"Y":"X")]:Jm[n]||qa},d$=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,c=t.connectNulls,s=c===void 0?!1:c,f=p$(n,u),l=s?a.filter(function(v){return Pi(v)}):a,h;if(Array.isArray(o)){var d=s?o.filter(function(v){return Pi(v)}):o,y=l.map(function(v,p){return Zm(Zm({},v),{},{base:d[p]})});return u==="vertical"?h=gi().y(hn).x1(fn).x0(function(v){return v.base.x}):h=gi().x(fn).y1(hn).y0(function(v){return v.base.y}),h.defined(Pi).curve(f),h(y)}return u==="vertical"&&N(o)?h=gi().y(hn).x1(fn).x0(o):N(o)?h=gi().x(fn).y1(hn).y0(o):h=Zb().x(fn).y(hn),h.defined(Pi).curve(f),h(l)},oa=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?d$(t):i;return q.createElement("path",rf({},K(t,!1),Ci(t),{className:J("recharts-curve",r),d:o,ref:a}))};const{getOwnPropertyNames:v$,getOwnPropertySymbols:y$}=Object,{hasOwnProperty:m$}=Object.prototype;function Fs(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Ti(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);const c=e(r,n,i);return a.delete(r),a.delete(n),c}}function g$(e){return e!=null?e[Symbol.toStringTag]:void 0}function Qm(e){return v$(e).concat(y$(e))}const b$=Object.hasOwn||((e,t)=>m$.call(e,t));function lr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const x$="__v",w$="__o",O$="_owner",{getOwnPropertyDescriptor:eg,keys:tg}=Object;function _$(e,t){return e.byteLength===t.byteLength&&ua(new Uint8Array(e),new Uint8Array(t))}function A$(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 S$(e,t){return e.byteLength===t.byteLength&&ua(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function P$(e,t){return lr(e.getTime(),t.getTime())}function T$(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function E$(e,t){return e===t}function rg(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,c=0;for(;(o=a.next())&&!o.done;){const s=t.entries();let f=!1,l=0;for(;(u=s.next())&&!u.done;){if(i[l]){l++;continue}const h=o.value,d=u.value;if(r.equals(h[0],d[0],c,l,e,t,r)&&r.equals(h[1],d[1],h[0],d[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;c++}return!0}const j$=lr;function M$(e,t,r){const n=tg(e);let i=n.length;if(tg(t).length!==i)return!1;for(;i-- >0;)if(!Jx(e,t,r,n[i]))return!1;return!0}function pn(e,t,r){const n=Qm(e);let i=n.length;if(Qm(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!Jx(e,t,r,a)||(o=eg(e,a),u=eg(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function $$(e,t){return lr(e.valueOf(),t.valueOf())}function C$(e,t){return e.source===t.source&&e.flags===t.flags}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.values();let o,u;for(;(o=a.next())&&!o.done;){const c=t.values();let s=!1,f=0;for(;(u=c.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function ua(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 I$(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 Jx(e,t,r,n){return(n===O$||n===w$||n===x$)&&(e.$$typeof||t.$$typeof)?!0:b$(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const k$="[object ArrayBuffer]",R$="[object Arguments]",D$="[object Boolean]",N$="[object DataView]",q$="[object Date]",L$="[object Error]",B$="[object Map]",F$="[object Number]",z$="[object Object]",U$="[object RegExp]",W$="[object Set]",K$="[object String]",G$={"[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},H$="[object URL]",V$=Object.prototype.toString;function X$({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:s,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:h,areUrlsEqual:d,unknownTagComparators:y}){return function(p,g,x){if(p===g)return!0;if(p==null||g==null)return!1;const w=typeof p;if(w!==typeof g)return!1;if(w!=="object")return w==="number"?u(p,g,x):w==="function"?a(p,g,x):!1;const O=p.constructor;if(O!==g.constructor)return!1;if(O===Object)return c(p,g,x);if(Array.isArray(p))return t(p,g,x);if(O===Date)return n(p,g,x);if(O===RegExp)return f(p,g,x);if(O===Map)return o(p,g,x);if(O===Set)return l(p,g,x);const m=V$.call(p);if(m===q$)return n(p,g,x);if(m===U$)return f(p,g,x);if(m===B$)return o(p,g,x);if(m===W$)return l(p,g,x);if(m===z$)return typeof p.then!="function"&&typeof g.then!="function"&&c(p,g,x);if(m===H$)return d(p,g,x);if(m===L$)return i(p,g,x);if(m===R$)return c(p,g,x);if(G$[m])return h(p,g,x);if(m===k$)return e(p,g,x);if(m===N$)return r(p,g,x);if(m===D$||m===F$||m===K$)return s(p,g,x);if(y){let b=y[m];if(!b){const _=g$(p);_&&(b=y[_])}if(b)return b(p,g,x)}return!1}}function Y$({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:_$,areArraysEqual:r?pn:A$,areDataViewsEqual:S$,areDatesEqual:P$,areErrorsEqual:T$,areFunctionsEqual:E$,areMapsEqual:r?Fs(rg,pn):rg,areNumbersEqual:j$,areObjectsEqual:r?pn:M$,arePrimitiveWrappersEqual:$$,areRegExpsEqual:C$,areSetsEqual:r?Fs(ng,pn):ng,areTypedArraysEqual:r?Fs(ua,pn):ua,areUrlsEqual:I$,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Ti(n.areArraysEqual),a=Ti(n.areMapsEqual),o=Ti(n.areObjectsEqual),u=Ti(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function Z$(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function J$({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,c){const{cache:s=e?new WeakMap:void 0,meta:f}=r();return t(u,c,{cache:s,equals:n,meta:f,strict:i})};if(e)return function(u,c){return t(u,c,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,c){return t(u,c,a)}}const Q$=qt();qt({strict:!0});qt({circular:!0});qt({circular:!0,strict:!0});qt({createInternalComparator:()=>lr});qt({strict:!0,createInternalComparator:()=>lr});qt({circular:!0,createInternalComparator:()=>lr});qt({circular:!0,createInternalComparator:()=>lr,strict:!0});function qt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=Y$(e),o=X$(a),u=r?r(o):Z$(o);return J$({circular:t,comparator:o,createState:n,equals:u,strict:i})}function eC(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function ig(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):eC(i)};requestAnimationFrame(n)}function nf(e){"@babel/helpers - typeof";return nf=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},nf(e)}function tC(e){return aC(e)||iC(e)||nC(e)||rC()}function rC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
43
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nC(e,t){if(e){if(typeof e=="string")return ag(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 ag(e,t)}}function ag(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aC(e){if(Array.isArray(e))return e}function oC(){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=tC(o),c=u[0],s=u.slice(1);if(typeof c=="number"){ig(i.bind(null,s),c);return}i(c),ig(i.bind(null,s));return}nf(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Gn(e){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gn(e)}function og(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ug(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?og(Object(r),!0).forEach(function(n){Qx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):og(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qx(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=cC(e,"string");return Gn(t)==="symbol"?t:String(t)}function cC(e,t){if(Gn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sC=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},lC=function(t){return t},fC=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},wn=function(t,r){return Object.keys(r).reduce(function(n,i){return ug(ug({},n),{},Qx({},i,t(i,r[i])))},{})},cg=function(t,r,n){return t.map(function(i){return"".concat(fC(i)," ").concat(r,"ms ").concat(n)}).join(",")};function hC(e,t){return vC(e)||dC(e,t)||ew(e,t)||pC()}function pC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
44
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function vC(e){if(Array.isArray(e))return e}function yC(e){return bC(e)||gC(e)||ew(e)||mC()}function mC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
45
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ew(e,t){if(e){if(typeof e=="string")return af(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 af(e,t)}}function gC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bC(e){if(Array.isArray(e))return af(e)}function af(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 ca=1e-4,tw=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},rw=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},sg=function(t,r){return function(n){var i=tw(t,r);return rw(i,n)}},xC=function(t,r){return function(n){var i=tw(t,r),a=[].concat(yC(i.map(function(o,u){return o*u}).slice(1)),[0]);return rw(a,n)}},lg=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var s=c[1].split(")")[0].split(",").map(function(p){return parseFloat(p)}),f=hC(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=sg(i,o),h=sg(a,u),d=xC(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=d(w);if(Math.abs(m-x)<ca||b<ca)return h(w);w=y(w-m/b)}return h(w)};return v.isStepper=!1,v},wC=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,c=function(f,l,h){var d=-(f-l)*n,y=h*a,v=h+(d-y)*u/1e3,p=h*u/1e3+f;return Math.abs(p-l)<ca&&Math.abs(v)<ca?[l,0]:[p,v]};return c.isStepper=!0,c.dt=u,c},OC=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 lg(i);case"spring":return wC();default:if(i.split("(")[0]==="cubic-bezier")return lg(i)}return typeof i=="function"?i:null};function Hn(e){"@babel/helpers - typeof";return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(e)}function fg(e){return SC(e)||AC(e)||nw(e)||_C()}function _C(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
46
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SC(e){if(Array.isArray(e))return uf(e)}function hg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hg(Object(r),!0).forEach(function(n){of(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function of(e,t,r){return t=PC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PC(e){var t=TC(e,"string");return Hn(t)==="symbol"?t:String(t)}function TC(e,t){if(Hn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EC(e,t){return $C(e)||MC(e,t)||nw(e,t)||jC()}function jC(){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 nw(e,t){if(e){if(typeof e=="string")return uf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uf(e,t)}}function uf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function MC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function $C(e){if(Array.isArray(e))return e}var sa=function(t,r,n){return t+(r-t)*n},cf=function(t){var r=t.from,n=t.to;return r!==n},CC=function e(t,r,n){var i=wn(function(a,o){if(cf(o)){var u=t(o.from,o.to,o.velocity),c=EC(u,2),s=c[0],f=c[1];return Me(Me({},o),{},{from:s,velocity:f})}return o},r);return n<1?wn(function(a,o){return cf(o)?Me(Me({},o),{},{velocity:sa(o.velocity,i[a].velocity,n),from:sa(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const IC=(function(e,t,r,n,i){var a=sC(e,t),o=a.reduce(function(p,g){return Me(Me({},p),{},of({},g,[e[g],t[g]]))},{}),u=a.reduce(function(p,g){return Me(Me({},p),{},of({},g,{from:e[g],velocity:0,to:t[g]}))},{}),c=-1,s,f,l=function(){return null},h=function(){return wn(function(g,x){return x.from},u)},d=function(){return!Object.values(u).filter(cf).length},y=function(g){s||(s=g);var x=g-s,w=x/r.dt;u=CC(r,u,w),i(Me(Me(Me({},e),t),h())),s=g,d()||(c=requestAnimationFrame(l))},v=function(g){f||(f=g);var x=(g-f)/n,w=wn(function(m,b){return sa.apply(void 0,fg(b).concat([r(x)]))},o);if(i(Me(Me(Me({},e),t),w)),x<1)c=requestAnimationFrame(l);else{var O=wn(function(m,b){return sa.apply(void 0,fg(b).concat([r(1)]))},o);i(Me(Me(Me({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}});function kr(e){"@babel/helpers - typeof";return kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kr(e)}var kC=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function RC(e,t){if(e==null)return{};var r=DC(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 DC(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 zs(e){return BC(e)||LC(e)||qC(e)||NC()}function NC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
48
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qC(e,t){if(e){if(typeof e=="string")return sf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sf(e,t)}}function LC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BC(e){if(Array.isArray(e))return sf(e)}function sf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function 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 rt(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){mn(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 mn(e,t,r){return t=iw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iw(n.key),n)}}function UC(e,t,r){return t&&zC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iw(e){var t=WC(e,"string");return kr(t)==="symbol"?t:String(t)}function WC(e,t){if(kr(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function KC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lf(e,t)}function lf(e,t){return lf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lf(e,t)}function GC(e){var t=HC();return function(){var n=la(e),i;if(t){var a=la(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return ff(this,i)}}function ff(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 hf(e)}function hf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HC(){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 la(e){return la=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},la(e)}var ft=(function(e){KC(r,e);var t=GC(r);function r(n,i){var a;FC(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,s=o.from,f=o.to,l=o.steps,h=o.children,d=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(hf(a)),a.changeStyle=a.changeStyle.bind(hf(a)),!u||d<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),ff(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof h=="function")return a.state={style:s},ff(a);a.state={style:c?mn({},c,s):s}}else a.state={style:{}};return a}return UC(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,c=a.attributeName,s=a.shouldReAnimate,f=a.to,l=a.from,h=this.state.style;if(u){if(!o){var d={style:c?mn({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(d);return}if(!(Q$(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||s?l:i.to;if(this.state&&h){var p={style:c?mn({},c,v):v};(c&&h[c]!==v||!c&&h!==v)&&this.setState(p)}this.runAnimation(rt(rt({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,s=i.easing,f=i.begin,l=i.onAnimationEnd,h=i.onAnimationStart,d=IC(o,u,OC(s),c,this.changeStyle),y=function(){a.stopJSAnimation=d()};this.manager.start([h,f,y,c,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,s=o[0],f=s.style,l=s.duration,h=l===void 0?0:l,d=function(v,p,g){if(g===0)return v;var x=p.duration,w=p.easing,O=w===void 0?"ease":w,m=p.style,b=p.properties,_=p.onAnimationEnd,A=g>0?o[g-1]:p,P=b||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(zs(v),[a.runJSAnimation.bind(a,{from:A.style,to:m,duration:x,easing:O}),x]);var j=cg(P,x,O),E=rt(rt(rt({},A.style),m),{},{transition:j});return[].concat(zs(v),[E,x,_]).filter(lC)};return this.manager.start([c].concat(zs(o.reduce(d,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=oC());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,d=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof s=="function"||typeof d=="function"||s==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?mn({},u,c):c,p=cg(Object.keys(v),o,s);y.start([f,a,rt(rt({},v),{},{transition:p}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=RC(i,kC),s=q.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var l=function(d){var y=d.props,v=y.style,p=v===void 0?{}:v,g=y.className,x=q.cloneElement(d,rt(rt({},c),{},{style:rt(rt({},p),f),className:g}));return x};return s===1?l(q.Children.only(a)):S.createElement("div",null,q.Children.map(a,function(h){return l(h)}))}}]),r})(q.PureComponent);ft.displayName="Animate";ft.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ft.propTypes={from:ne.oneOfType([ne.object,ne.string]),to:ne.oneOfType([ne.object,ne.string]),attributeName:ne.string,duration:ne.number,begin:ne.number,easing:ne.oneOfType([ne.string,ne.func]),steps:ne.arrayOf(ne.shape({duration:ne.number.isRequired,style:ne.object.isRequired,easing:ne.oneOfType([ne.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ne.func]),properties:ne.arrayOf("string"),onAnimationEnd:ne.func})),children:ne.oneOfType([ne.node,ne.func]),isActive:ne.bool,canBegin:ne.bool,onAnimationEnd:ne.func,shouldReAnimate:ne.bool,onAnimationStart:ne.func,onAnimationReStart:ne.func};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 fa(){return fa=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},fa.apply(this,arguments)}function VC(e,t){return JC(e)||ZC(e,t)||YC(e,t)||XC()}function XC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
49
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YC(e,t){if(e){if(typeof e=="string")return dg(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 dg(e,t)}}function dg(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 ZC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function JC(e){if(Array.isArray(e))return e}function vg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vg(Object(r),!0).forEach(function(n){QC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QC(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 Vn(t)=="symbol"?t:t+""}function tI(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 mg=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,c=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],h=0,d=4;h<d;h++)l[h]=a[h]>o?o:a[h];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+c*l[0],",").concat(r)),f+="L ".concat(t+n-c*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,`,
|
|
50
|
+
`).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,`,
|
|
51
|
+
`).concat(t+n-c*l[2],",").concat(r+i)),f+="L ".concat(t+c*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,`,
|
|
52
|
+
`).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,`
|
|
53
|
+
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+c*y,",").concat(r,`
|
|
54
|
+
L `).concat(t+n-c*y,",").concat(r,`
|
|
55
|
+
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*y,`
|
|
56
|
+
L `).concat(t+n,",").concat(r+i-u*y,`
|
|
57
|
+
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-c*y,",").concat(r+i,`
|
|
58
|
+
L `).concat(t+c*y,",").concat(r+i,`
|
|
59
|
+
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},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,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+c),h=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=h}return!1},nI={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},kh=function(t){var r=yg(yg({},nI),t),n=q.useRef(),i=q.useState(-1),a=VC(i,2),o=a[0],u=a[1];q.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var c=r.x,s=r.y,f=r.width,l=r.height,h=r.radius,d=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,g=r.isAnimationActive,x=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var w=J("recharts-rectangle",d);return x?S.createElement(ft,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:v,animationEasing:y,isActive:x},function(O){var m=O.width,b=O.height,_=O.x,A=O.y;return S.createElement(ft,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,isActive:g,easing:y},S.createElement("path",fa({},K(r,!0),{className:w,d:mg(_,A,m,b,h),ref:n})))}):S.createElement("path",fa({},K(r,!0),{className:w,d:mg(c,s,f,l,h)}))},iI=["points","className","baseLinePoints","connectNulls"];function gr(){return gr=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},gr.apply(this,arguments)}function aI(e,t){if(e==null)return{};var r=oI(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 oI(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 gg(e){return lI(e)||sI(e)||cI(e)||uI()}function uI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
60
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cI(e,t){if(e){if(typeof e=="string")return pf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pf(e,t)}}function sI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lI(e){if(Array.isArray(e))return pf(e)}function pf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var bg=function(t){return t&&t.x===+t.x&&t.y===+t.y},fI=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){bg(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),bg(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},On=function(t,r){var n=fI(t);r&&(n=[n.reduce(function(a,o){return[].concat(gg(a),gg(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,c){return"".concat(o).concat(c===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},hI=function(t,r,n){var i=On(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(On(r.reverse(),n).slice(1))},pI=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=aI(t,iI);if(!r||!r.length)return null;var u=J("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",s=hI(r,i,a);return S.createElement("g",{className:u},S.createElement("path",gr({},K(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:s})),c?S.createElement("path",gr({},K(o,!0),{fill:"none",d:On(r,a)})):null,c?S.createElement("path",gr({},K(o,!0),{fill:"none",d:On(i,a)})):null)}var f=On(r,a);return S.createElement("path",gr({},K(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};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)}var to=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=J("recharts-dot",a);return r===+r&&n===+n&&i===+i?q.createElement("circle",df({},K(t,!1),Ci(t),{className:o,cx:r,cy:n,r:i})):null};function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}var dI=["x","y","top","left","width","height","className"];function vf(){return vf=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},vf.apply(this,arguments)}function xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xg(Object(r),!0).forEach(function(n){yI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yI(e,t,r){return t=mI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mI(e){var t=gI(e,"string");return Xn(t)=="symbol"?t:t+""}function gI(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bI(e,t){if(e==null)return{};var r=xI(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 xI(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 wI=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},OI=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,c=t.left,s=c===void 0?0:c,f=t.width,l=f===void 0?0:f,h=t.height,d=h===void 0?0:h,y=t.className,v=bI(t,dI),p=vI({x:n,y:a,top:u,left:s,width:l,height:d},v);return!N(n)||!N(a)||!N(l)||!N(d)||!N(u)||!N(s)?null:S.createElement("path",vf({},K(p,!0),{className:J("recharts-cross",y),d:wI(n,a,l,d,u,s)}))},Us,wg;function _I(){if(wg)return Us;wg=1;var e=Ya(),t=bx(),r=pt();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Us=n,Us}var AI=_I();const SI=ue(AI);var Ws,Og;function PI(){if(Og)return Ws;Og=1;var e=Ya(),t=pt(),r=xx();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return Ws=n,Ws}var TI=PI();const EI=ue(TI);var jI=["cx","cy","angle","ticks","axisLine"],MI=["ticks","tick","angle","tickFormatter","stroke"];function Rr(e){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}function _n(){return _n=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},_n.apply(this,arguments)}function _g(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 Ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_g(Object(r),!0).forEach(function(n){ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ag(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 CI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sg(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,ow(n.key),n)}}function II(e,t,r){return t&&Sg(e.prototype,t),r&&Sg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kI(e,t,r){return t=ha(t),RI(e,aw()?Reflect.construct(t,r||[],ha(e).constructor):t.apply(e,r))}function RI(e,t){if(t&&(Rr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DI(e)}function DI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aw=function(){return!!e})()}function ha(e){return ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ha(e)}function NI(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&&yf(e,t)}function yf(e,t){return yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yf(e,t)}function ro(e,t,r){return t=ow(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ow(e){var t=qI(e,"string");return Rr(t)=="symbol"?t:t+""}function qI(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var no=(function(e){function t(){return CI(this,t),kI(this,t,arguments)}return NI(t,e),II(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,c=a.cy;return le(u,c,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,c=SI(u,function(f){return f.coordinate||0}),s=EI(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:s.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,c=n.axisLine,s=Ag(n,jI),f=u.reduce(function(y,v){return[Math.min(y[0],v.coordinate),Math.max(y[1],v.coordinate)]},[1/0,-1/0]),l=le(i,a,f[0],o),h=le(i,a,f[1],o),d=Ut(Ut(Ut({},K(s,!1)),{},{fill:"none"},K(c,!1)),{},{x1:l.x,y1:l.y,x2:h.x,y2:h.y});return S.createElement("line",_n({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,c=i.tickFormatter,s=i.stroke,f=Ag(i,MI),l=this.getTickTextAnchor(),h=K(f,!1),d=K(o,!1),y=a.map(function(v,p){var g=n.getTickValueCoord(v),x=Ut(Ut(Ut(Ut({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(g.x,", ").concat(g.y,")")},h),{},{stroke:"none",fill:s},d),{},{index:p},g),{},{payload:v});return S.createElement(te,_n({className:J("recharts-polar-radius-axis-tick",Vx(o)),key:"tick-".concat(v.coordinate)},tr(n.props,v,p)),t.renderTickItem(o,x,c?c(v.value,p):v.value))});return S.createElement(te,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:S.createElement(te,{className:J("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Ae.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):H(n)?o=n(i):o=S.createElement(rr,_n({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(q.PureComponent);ro(no,"displayName","PolarRadiusAxis");ro(no,"axisType","radiusAxis");ro(no,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Dr(e){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(e)}function Ht(){return Ht=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},Ht.apply(this,arguments)}function Pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wt(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){io(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 LI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tg(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 BI(e,t,r){return t&&Tg(e.prototype,t),r&&Tg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function FI(e,t,r){return t=pa(t),zI(e,uw()?Reflect.construct(t,r||[],pa(e).constructor):t.apply(e,r))}function zI(e,t){if(t&&(Dr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UI(e)}function UI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uw=function(){return!!e})()}function pa(e){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pa(e)}function WI(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&&mf(e,t)}function mf(e,t){return mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mf(e,t)}function io(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=KI(e,"string");return Dr(t)=="symbol"?t:t+""}function KI(e,t){if(Dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GI=Math.PI/180,Eg=1e-5,ao=(function(e){function t(){return LI(this,t),FI(this,t,arguments)}return WI(t,e),BI(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,c=i.orientation,s=i.tickSize,f=s||8,l=le(a,o,u,n.coordinate),h=le(a,o,u+(c==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*GI),o;return a>Eg?o=i==="outer"?"start":"end":a<-Eg?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,c=n.axisLineType,s=Wt(Wt({},K(this.props,!1)),{},{fill:"none"},K(u,!1));if(c==="circle")return S.createElement(to,Ht({className:"recharts-polar-angle-axis-line"},s,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(h){return le(i,a,o,h.coordinate)});return S.createElement(pI,Ht({className:"recharts-polar-angle-axis-line"},s,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,c=i.tickFormatter,s=i.stroke,f=K(this.props,!1),l=K(o,!1),h=Wt(Wt({},f),{},{fill:"none"},K(u,!1)),d=a.map(function(y,v){var p=n.getTickLineCoord(y),g=n.getTickTextAnchor(y),x=Wt(Wt(Wt({textAnchor:g},f),{},{stroke:"none",fill:s},l),{},{index:v,payload:y,x:p.x2,y:p.y2});return S.createElement(te,Ht({className:J("recharts-polar-angle-axis-tick",Vx(o)),key:"tick-".concat(y.coordinate)},tr(n.props,y,v)),u&&S.createElement("line",Ht({className:"recharts-polar-angle-axis-tick-line"},h,p)),o&&t.renderTickItem(o,x,c?c(y.value,v):y.value))});return S.createElement(te,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:S.createElement(te,{className:J("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):H(n)?o=n(i):o=S.createElement(rr,Ht({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(q.PureComponent);io(ao,"displayName","PolarAngleAxis");io(ao,"axisType","angleAxis");io(ao,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Ks,jg;function HI(){if(jg)return Ks;jg=1;var e=x0(),t=e(Object.getPrototypeOf,Object);return Ks=t,Ks}var Gs,Mg;function VI(){if(Mg)return Gs;Mg=1;var e=At(),t=HI(),r=St(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,c=o.call(Object);function s(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var h=u.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==c}return Gs=s,Gs}var XI=VI();const YI=ue(XI);var Hs,$g;function ZI(){if($g)return Hs;$g=1;var e=At(),t=St(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Hs=n,Hs}var JI=ZI();const QI=ue(JI);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 da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},da.apply(this,arguments)}function ek(e,t){return ik(e)||nk(e,t)||rk(e,t)||tk()}function tk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
61
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rk(e,t){if(e){if(typeof e=="string")return Cg(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 Cg(e,t)}}function Cg(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 nk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function ik(e){if(Array.isArray(e))return 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){ak(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 ak(e,t,r){return t=ok(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ok(e){var t=uk(e,"string");return Yn(t)=="symbol"?t:t+""}function uk(e,t){if(Yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rg=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},ck={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sk=function(t){var r=kg(kg({},ck),t),n=q.useRef(),i=q.useState(-1),a=ek(i,2),o=a[0],u=a[1];q.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var c=r.x,s=r.y,f=r.upperWidth,l=r.lowerWidth,h=r.height,d=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,g=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var x=J("recharts-trapezoid",d);return g?S.createElement(ft,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:h,x:c,y:s},duration:v,animationEasing:y,isActive:g},function(w){var O=w.upperWidth,m=w.lowerWidth,b=w.height,_=w.x,A=w.y;return S.createElement(ft,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:y},S.createElement("path",da({},K(r,!0),{className:x,d:Rg(_,A,O,m,b),ref:n})))}):S.createElement("g",null,S.createElement("path",da({},K(r,!0),{className:x,d:Rg(c,s,f,l,h)})))},lk=["option","shapeType","propTransformer","activeClassName","isActive"];function Zn(e){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(e)}function fk(e,t){if(e==null)return{};var r=hk(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 hk(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 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 va(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){pk(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 pk(e,t,r){return t=dk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dk(e){var t=vk(e,"string");return Zn(t)=="symbol"?t:t+""}function vk(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)}function yk(e,t){return va(va({},t),e)}function mk(e,t){return e==="symbols"}function Ng(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return S.createElement(kh,r);case"trapezoid":return S.createElement(sk,r);case"sector":return S.createElement(Zx,r);case"symbols":if(mk(t))return S.createElement(Qf,r);break;default:return null}}function gk(e){return q.isValidElement(e)?e.props:e}function sw(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?yk:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=fk(e,lk),s;if(q.isValidElement(t))s=q.cloneElement(t,va(va({},c),gk(t)));else if(H(t))s=t(c);else if(YI(t)&&!QI(t)){var f=i(t,c);s=S.createElement(Ng,{shapeType:r,elementProps:f})}else{var l=c;s=S.createElement(Ng,{shapeType:r,elementProps:l})}return u?S.createElement(te,{className:o},s):s}function oo(e,t){return t!=null&&"trapezoids"in e.props}function uo(e,t){return t!=null&&"sectors"in e.props}function Jn(e,t){return t!=null&&"points"in e.props}function bk(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 xk(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function wk(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function Ok(e,t){var r;return oo(e,t)?r=bk:uo(e,t)?r=xk:Jn(e,t)&&(r=wk),r}function _k(e,t){var r;return oo(e,t)?r="trapezoids":uo(e,t)?r="sectors":Jn(e,t)&&(r="points"),r}function Ak(e,t){if(oo(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(uo(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Jn(e,t)?t.payload:{}}function Sk(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=_k(r,t),a=Ak(r,t),o=n.filter(function(c,s){var f=hi(a,c),l=r.props[i].filter(function(y){var v=Ok(r,t);return v(y,t)}),h=r.props[i].indexOf(l[l.length-1]),d=s===h;return f&&d}),u=n.indexOf(o[o.length-1]);return u}var Mi;function Nr(e){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nr(e)}function br(){return br=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},br.apply(this,arguments)}function qg(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?qg(Object(r),!0).forEach(function(n){Je(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lg(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 Tk(e,t,r){return t&&Lg(e.prototype,t),r&&Lg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ek(e,t,r){return t=ya(t),jk(e,lw()?Reflect.construct(t,r||[],ya(e).constructor):t.apply(e,r))}function jk(e,t){if(t&&(Nr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mk(e)}function Mk(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 ya(e){return ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ya(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&&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 Je(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=Ck(e,"string");return Nr(t)=="symbol"?t:t+""}function Ck(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Tt=(function(e){function t(r){var n;return Pk(this,t),n=Ek(this,t,[r]),Je(n,"pieRef",null),Je(n,"sectorRefs",[]),Je(n,"id",Qr("recharts-pie-")),Je(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),H(i)&&i()}),Je(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),H(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return $k(t,e),Tk(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,c=a.dataKey,s=a.valueKey,f=K(this.props,!1),l=K(o,!1),h=K(u,!1),d=o&&o.offsetRadius||20,y=n.map(function(v,p){var g=(v.startAngle+v.endAngle)/2,x=le(v.cx,v.cy,v.outerRadius+d,g),w=ce(ce(ce(ce({},f),v),{},{stroke:"none"},l),{},{index:p,textAnchor:t.getTextAnchor(x.x,v.cx)},x),O=ce(ce(ce(ce({},f),v),{},{fill:"none",stroke:v.fill},h),{},{index:p,points:[le(v.cx,v.cy,v.outerRadius,g),x]}),m=c;return Y(c)&&Y(s)?m="value":Y(c)&&(m=s),S.createElement(te,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(p)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,w,Se(v,m)))});return S.createElement(te,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,c=a.inactiveShape;return n.map(function(s,f){if((s==null?void 0:s.startAngle)===0&&(s==null?void 0:s.endAngle)===0&&n.length!==1)return null;var l=i.isActiveIndex(f),h=c&&i.hasActiveIndex()?c:null,d=l?o:h,y=ce(ce({},s),{},{stroke:u?s.fill:s.stroke,tabIndex:-1});return S.createElement(te,br({ref:function(p){p&&!i.sectorRefs.includes(p)&&i.sectorRefs.push(p)},tabIndex:-1,className:"recharts-pie-sector"},tr(i.props,s,f),{key:"sector-".concat(s==null?void 0:s.startAngle,"-").concat(s==null?void 0:s.endAngle,"-").concat(s.midAngle,"-").concat(f)}),S.createElement(sw,br({option:d,isActive:l,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,f=i.animationId,l=this.state,h=l.prevSectors,d=l.prevIsAnimationActive;return S.createElement(ft,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var v=y.t,p=[],g=a&&a[0],x=g.startAngle;return a.forEach(function(w,O){var m=h&&h[O],b=O>0?Ge(w,"paddingAngle",0):0;if(m){var _=We(m.endAngle-m.startAngle,w.endAngle-w.startAngle),A=ce(ce({},w),{},{startAngle:x+b,endAngle:x+_(v)+b});p.push(A),x=A.endAngle}else{var P=w.endAngle,j=w.startAngle,E=We(0,P-j),T=E(v),M=ce(ce({},w),{},{startAngle:x+b,endAngle:x+T+b});p.push(M),x=M.endAngle}}),S.createElement(te,null,n.renderSectorsStatically(p))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!hi(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,c=i.label,s=i.cx,f=i.cy,l=i.innerRadius,h=i.outerRadius,d=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!N(s)||!N(f)||!N(l)||!N(h))return null;var v=J("recharts-pie",u);return S.createElement(te,{tabIndex:this.props.rootTabIndex,className:v,ref:function(g){n.pieRef=g}},this.renderSectors(),c&&this.renderLabels(o),Ae.renderCallByParent(this.props,null,!1),(!d||y)&&xt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);if(H(n))return n(i);var o=J("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return S.createElement(oa,br({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);var o=a;if(H(n)&&(o=n(i),S.isValidElement(o)))return o;var u=J("recharts-pie-label-text",typeof n!="boolean"&&!H(n)?n.className:"");return S.createElement(rr,br({},i,{alignmentBaseline:"middle",className:u}),o)}}])})(q.PureComponent);Mi=Tt;Je(Tt,"displayName","Pie");Je(Tt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ur.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Je(Tt,"parseDeltaAngle",function(e,t){var r=Ie(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Je(Tt,"getRealPieData",function(e){var t=e.data,r=e.children,n=K(e,!1),i=He(r,Ua);return t&&t.length?t.map(function(a,o){return ce(ce(ce({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return ce(ce({},n),a.props)}):[]});Je(Tt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=Hx(i,a),u=n+ke(e.cx,i,i/2),c=r+ke(e.cy,a,a/2),s=ke(e.innerRadius,o,0),f=ke(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:c,innerRadius:s,outerRadius:f,maxRadius:l}});Je(Tt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?ce(ce({},t.type.defaultProps),t.props):t.props,i=Mi.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,c=n.paddingAngle,s=n.dataKey,f=n.nameKey,l=n.valueKey,h=n.tooltipType,d=Math.abs(n.minAngle),y=Mi.parseCoordinateOfPie(n,r),v=Mi.parseDeltaAngle(o,u),p=Math.abs(v),g=s;Y(s)&&Y(l)?(kt(!1,`Use "dataKey" to specify the value of pie,
|
|
62
|
+
the props "valueKey" will be deprecated in 1.1.0`),g="value"):Y(s)&&(kt(!1,`Use "dataKey" to specify the value of pie,
|
|
63
|
+
the props "valueKey" will be deprecated in 1.1.0`),g=l);var x=i.filter(function(A){return Se(A,g,0)!==0}).length,w=(p>=360?x:x-1)*c,O=p-x*d-w,m=i.reduce(function(A,P){var j=Se(P,g,0);return A+(N(j)?j:0)},0),b;if(m>0){var _;b=i.map(function(A,P){var j=Se(A,g,0),E=Se(A,f,P),T=(N(j)?j:0)/m,M;P?M=_.endAngle+Ie(v)*c*(j!==0?1:0):M=o;var $=M+Ie(v)*((j!==0?d:0)+T*O),I=(M+$)/2,k=(y.innerRadius+y.outerRadius)/2,D=[{name:E,value:j,payload:A,dataKey:g,type:h}],L=le(y.cx,y.cy,k,I);return _=ce(ce(ce({percent:T,cornerRadius:a,name:E,tooltipPayload:D,midAngle:I,middleRadius:k,tooltipPosition:L},A),y),{},{value:Se(A,g),startAngle:M,endAngle:$,payload:A,paddingAngle:Ie(v)*c}),_})}return ce(ce({},y),{},{sectors:b,data:i})});var Vs,Bg;function Ik(){if(Bg)return Vs;Bg=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,c=t(e((i-n)/(a||1)),0),s=Array(c);c--;)s[o?c:++u]=n,n+=a;return s}return Vs=r,Vs}var Xs,Fg;function hw(){if(Fg)return Xs;Fg=1;var e=D0(),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 Xs=n,Xs}var Ys,zg;function kk(){if(zg)return Ys;zg=1;var e=Ik(),t=za(),r=hw();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 Ys=n,Ys}var Zs,Ug;function Rk(){if(Ug)return Zs;Ug=1;var e=kk(),t=e();return Zs=t,Zs}var Dk=Rk();const ma=ue(Dk);function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}function Wg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wg(Object(r),!0).forEach(function(n){pw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pw(e,t,r){return t=Nk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nk(e){var t=qk(e,"string");return Qn(t)=="symbol"?t:t+""}function qk(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lk=["Webkit","Moz","O","ms"],Bk=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=Lk.reduce(function(a,o){return Kg(Kg({},a),{},pw({},o+n,r))},{});return i[t]=r,i};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 ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ga.apply(this,arguments)}function 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 Js(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){ze(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 Fk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hg(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 zk(e,t,r){return t&&Hg(e.prototype,t),r&&Hg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uk(e,t,r){return t=ba(t),Wk(e,dw()?Reflect.construct(t,r||[],ba(e).constructor):t.apply(e,r))}function Wk(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 Kk(e)}function Kk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dw=function(){return!!e})()}function ba(e){return ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ba(e)}function Gk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bf(e,t)}function bf(e,t){return bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bf(e,t)}function ze(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=Hk(e,"string");return qr(t)=="symbol"?t:t+""}function Hk(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 Vk=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,s=bn().domain(ma(0,c)).range([a,a+o-u]),f=s.domain().map(function(l){return s(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(i),scale:s,scaleValues:f}},Vg=function(t){return t.changedTouches&&!!t.changedTouches.length},Lr=(function(e){function t(r){var n;return Fk(this,t),n=Uk(this,t,[r]),ze(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),ze(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),ze(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()}),ze(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ze(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ze(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ze(n,"handleSlideDragStart",function(i){var a=Vg(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 Gk(t,e),zk(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),h=Math.max(i,a),d=t.getIndexInRange(o,l),y=t.getIndexInRange(o,h);return{startIndex:d-d%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=Se(a[n],u,n);return H(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,c=this.props,s=c.x,f=c.width,l=c.travellerWidth,h=c.startIndex,d=c.endIndex,y=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,s+f-l-u,s+f-l-o):v<0&&(v=Math.max(v,s-o,s-u));var p=this.getIndex({startX:o+v,endX:u+v});(p.startIndex!==h||p.endIndex!==d)&&y&&y(p),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Vg(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,c=i.startX,s=this.state[o],f=this.props,l=f.x,h=f.width,d=f.travellerWidth,y=f.onChange,v=f.gap,p=f.data,g={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+h-d-s):x<0&&(x=Math.max(x,l-s)),g[o]=s+x;var w=this.getIndex(g),O=w.startIndex,m=w.endIndex,b=function(){var A=p.length-1;return o==="startX"&&(u>c?O%v===0:m%v===0)||u<c&&m===A||o==="endX"&&(u>c?m%v===0:O%v===0)||u>c&&m===A};this.setState(ze(ze({},o,s+x),"brushMoveStartX",n.pageX),function(){y&&b()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,s=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var h=l+n;if(!(h===-1||h>=u.length)){var d=u[h];i==="startX"&&d>=s||i==="endX"&&d<=c||this.setState(ze({},i,d),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.fill,s=n.stroke;return S.createElement("rect",{stroke:s,fill:c,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.data,s=n.children,f=n.padding,l=q.Children.only(s);return l?S.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,c=this.props,s=c.y,f=c.travellerWidth,l=c.height,h=c.traveller,d=c.ariaLabel,y=c.data,v=c.startIndex,p=c.endIndex,g=Math.max(n,this.props.x),x=Js(Js({},K(this.props,!1)),{},{x:g,y:s,width:f,height:l}),w=d||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[p])===null||o===void 0?void 0:o.name);return S.createElement(te,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,l=Math.max(Math.abs(i-n)-s,0);return S.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,c=n.travellerWidth,s=n.stroke,f=this.state,l=f.startX,h=f.endX,d=5,y={pointerEvents:"none",fill:s};return S.createElement(te,{className:"recharts-brush-texts"},S.createElement(rr,ga({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-d,y:o+u/2},y),this.getTextOfTick(i)),S.createElement(rr,ga({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+c+d,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,s=n.width,f=n.height,l=n.alwaysShowText,h=this.state,d=h.startX,y=h.endX,v=h.isTextActive,p=h.isSlideMoving,g=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!N(u)||!N(c)||!N(s)||!N(f)||s<=0||f<=0)return null;var w=J("recharts-brush",a),O=S.Children.count(o)===1,m=Bk("userSelect","none");return S.createElement(te,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(d,y),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(y,"endX"),(v||p||g||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,s=Math.floor(a+u/2)-1;return S.createElement(S.Fragment,null,S.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),S.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),S.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return S.isValidElement(n)?a=S.cloneElement(n,i):H(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return Js({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?Vk({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var h=i.scale.domain().map(function(d){return i.scale(d)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])})(q.PureComponent);ze(Lr,"displayName","Brush");ze(Lr,"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 Qs,Xg;function Xk(){if(Xg)return Qs;Xg=1;var e=oh();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Qs=t,Qs}var el,Yg;function Yk(){if(Yg)return el;Yg=1;var e=p0(),t=pt(),r=Xk(),n=Le(),i=za();function a(o,u,c){var s=n(o)?e:r;return c&&i(o,u,c)&&(u=void 0),s(o,t(u,3))}return el=a,el}var Zk=Yk();const Jk=ue(Zk);var st=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},tl,Zg;function Qk(){if(Zg)return tl;Zg=1;var e=$0();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return tl=t,tl}var rl,Jg;function eR(){if(Jg)return rl;Jg=1;var e=Qk(),t=j0(),r=pt();function n(i,a){var o={};return a=r(a,3),t(i,function(u,c,s){e(o,c,a(u,c,s))}),o}return rl=n,rl}var tR=eR();const rR=ue(tR);var nl,Qg;function nR(){if(Qg)return nl;Qg=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 nl=e,nl}var il,eb;function iR(){if(eb)return il;eb=1;var e=oh();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return il=t,il}var al,tb;function aR(){if(tb)return al;tb=1;var e=nR(),t=iR(),r=pt(),n=Le(),i=za();function a(o,u,c){var s=n(o)?e:t;return c&&i(o,u,c)&&(u=void 0),s(o,r(u,3))}return al=a,al}var oR=aR();const yw=ue(oR);var uR=["x","y"];function ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}function xf(){return xf=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},xf.apply(this,arguments)}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 dn(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){cR(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 cR(e,t,r){return t=sR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sR(e){var t=lR(e,"string");return ei(t)=="symbol"?t:t+""}function lR(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)}function fR(e,t){if(e==null)return{};var r=hR(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 hR(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 pR(e,t){var r=e.x,n=e.y,i=fR(e,uR),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),s="".concat(t.height||i.height),f=parseInt(s,10),l="".concat(t.width||i.width),h=parseInt(l,10);return dn(dn(dn(dn(dn({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function nb(e){return S.createElement(sw,xf({shapeType:"rectangle",propTransformer:pR,activeClassName:"recharts-active-bar"},e))}var dR=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=N(n)||KO(n);return a?t(n,i):(a||ir(),r)}},vR=["value","background"],mw;function Br(e){"@babel/helpers - typeof";return Br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Br(e)}function yR(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 xa(){return xa=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},xa.apply(this,arguments)}function ib(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?ib(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ib(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ab(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,bw(n.key),n)}}function bR(e,t,r){return t&&ab(e.prototype,t),r&&ab(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xR(e,t,r){return t=wa(t),wR(e,gw()?Reflect.construct(t,r||[],wa(e).constructor):t.apply(e,r))}function wR(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 OR(e)}function OR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gw=function(){return!!e})()}function wa(e){return wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wa(e)}function _R(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 $t(e,t,r){return t=bw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bw(e){var t=AR(e,"string");return Br(t)=="symbol"?t:t+""}function AR(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 fr=(function(e){function t(){var r;gR(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=xR(this,t,[].concat(i)),$t(r,"state",{isAnimationFinished:!1}),$t(r,"id",Qr("recharts-bar-")),$t(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),$t(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return _R(t,e),bR(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,c=a.activeIndex,s=a.activeBar,f=K(this.props,!1);return n&&n.map(function(l,h){var d=h===c,y=d?s:o,v=ge(ge(ge({},f),l),{},{isActive:d,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return S.createElement(te,xa({className:"recharts-bar-rectangle"},tr(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)}),S.createElement(nb,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,c=i.animationBegin,s=i.animationDuration,f=i.animationEasing,l=i.animationId,h=this.state.prevData;return S.createElement(ft,{begin:c,duration:s,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var y=d.t,v=a.map(function(p,g){var x=h&&h[g];if(x){var w=We(x.x,p.x),O=We(x.y,p.y),m=We(x.width,p.width),b=We(x.height,p.height);return ge(ge({},p),{},{x:w(y),y:O(y),width:m(y),height:b(y)})}if(o==="horizontal"){var _=We(0,p.height),A=_(y);return ge(ge({},p),{},{y:p.y+p.height-A,height:A})}var P=We(0,p.width),j=P(y);return ge(ge({},p),{},{width:j})});return S.createElement(te,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||!hi(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,c=K(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,h=yR(s,vR);if(!l)return null;var d=ge(ge(ge(ge(ge({},h),{},{fill:"#eee"},l),c),tr(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return S.createElement(nb,xa({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},d))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=He(f,pi);if(!l)return null;var h=s==="vertical"?o[0].height/2:o[0].width/2,d=function(p,g){var x=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:x,errorVal:Se(p,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(te,y,l.map(function(v){return S.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,offset:h,dataPointFormatter:d})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,c=n.yAxis,s=n.left,f=n.top,l=n.width,h=n.height,d=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,g=J("recharts-bar",o),x=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=x||w,m=Y(v)?this.id:v;return S.createElement(te,{className:g},x||w?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(m)},S.createElement("rect",{x:x?s:s-l/2,y:w?f:f-h/2,width:x?l:l*2,height:w?h:h*2}))):null,S.createElement(te,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!d||p)&&xt.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}}])})(q.PureComponent);mw=fr;$t(fr,"displayName","Bar");$t(fr,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ur.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});$t(fr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,c=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=Qj(n,r);if(!d)return null;var y=t.layout,v=r.type.defaultProps,p=v!==void 0?ge(ge({},v),r.props):r.props,g=p.dataKey,x=p.children,w=p.minPointSize,O=y==="horizontal"?o:a,m=s?O.scale.domain():null,b=oM({numericAxis:O}),_=He(x,Ua),A=l.map(function(P,j){var E,T,M,$,I,k;s?E=eM(s[f+j],m):(E=Se(P,g),Array.isArray(E)||(E=[b,E]));var D=dR(w,mw.defaultProps.minPointSize)(E[1],j);if(y==="horizontal"){var L,B=[o.scale(E[0]),o.scale(E[1])],W=B[0],V=B[1];T=Dm({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:P,index:j}),M=(L=V??W)!==null&&L!==void 0?L:void 0,$=d.size;var U=W-V;if(I=Number.isNaN(U)?0:U,k={x:T,y:o.y,width:$,height:o.height},Math.abs(D)>0&&Math.abs(I)<Math.abs(D)){var X=Ie(I||D)*(Math.abs(D)-Math.abs(I));M-=X,I+=X}}else{var fe=[a.scale(E[0]),a.scale(E[1])],me=fe[0],Be=fe[1];if(T=me,M=Dm({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:P,index:j}),$=Be-me,I=d.size,k={x:a.x,y:M,width:a.width,height:I},Math.abs(D)>0&&Math.abs($)<Math.abs(D)){var Lt=Ie($||D)*(Math.abs(D)-Math.abs($));$+=Lt}}return ge(ge(ge({},P),{},{x:T,y:M,width:$,height:I,value:s?E:E[1],payload:P,background:k},_&&_[j]&&_[j].props),{},{tooltipPayload:[Kx(r,P)],tooltipPosition:{x:T+$/2,y:M+I/2}})});return ge({data:A,layout:y},h)});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 SR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ob(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xw(n.key),n)}}function PR(e,t,r){return t&&ob(e.prototype,t),r&&ob(e,r),Object.defineProperty(e,"prototype",{writable:!1}),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 nt(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){co(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 co(e,t,r){return t=xw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xw(e){var t=TR(e,"string");return ti(t)=="symbol"?t:t+""}function TR(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)}var ww=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.layout,s=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},h=!!Ue(s,fr);return f.reduce(function(d,y){var v=r[y],p=v.orientation,g=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,b="".concat(p).concat(O?"Mirror":""),_,A,P,j,E;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var T=g[1]-g[0],M=1/0,$=v.categoricalDomain.sort(VO);if($.forEach(function(fe,me){me>0&&(M=Math.min((fe||0)-($[me-1]||0),M))}),Number.isFinite(M)){var I=M/T,k=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=I*k/2),v.padding==="no-gap"){var D=ke(t.barCategoryGap,I*k),L=I*k/2;_=L-D-(L-D)/k*D}}}i==="xAxis"?A=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?A=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:A=v.range,m&&(A=[A[1],A[0]]);var B=Fx(v,a,h),W=B.scale,V=B.realScaleType;W.domain(g).range(A),zx(W);var U=Ux(W,nt(nt({},v),{},{realScaleType:V}));i==="xAxis"?(E=p==="top"&&!O||p==="bottom"&&O,P=n.left,j=l[b]-E*v.height):i==="yAxis"&&(E=p==="left"&&!O||p==="right"&&O,P=l[b]-E*v.width,j=n.top);var X=nt(nt(nt({},v),U),{},{realScaleType:V,x:P,y:j,scale:W,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=na(X,U),!v.hide&&i==="xAxis"?l[b]+=(E?-1:1)*X.height:v.hide||(l[b]+=(E?-1:1)*X.width),nt(nt({},d),{},co({},y,X))},{})},Ow=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)}},ER=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Ow({x:r,y:n},{x:i,y:a})},_w=(function(){function e(t){SR(this,e),this.scale=t}return PR(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();co(_w,"EPS",1e-4);var Rh=function(t){var r=Object.keys(t).reduce(function(n,i){return nt(nt({},n),{},co({},i,_w.create(t[i])))},{});return nt(nt({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return rR(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return yw(i,function(a,o){return r[o].isInRange(a)})}})};function jR(e){return(e%180+180)%180}var MR=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=jR(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},ol,cb;function $R(){if(cb)return ol;cb=1;var e=pt(),t=ui(),r=Ba();function n(i){return function(a,o,u){var c=Object(a);if(!t(a)){var s=e(o,3);a=r(a),o=function(l){return s(c[l],l,c)}}var f=i(a,o,u);return f>-1?c[s?a[f]:f]:void 0}}return ol=n,ol}var ul,sb;function CR(){if(sb)return ul;sb=1;var e=hw();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return ul=t,ul}var cl,lb;function IR(){if(lb)return cl;lb=1;var e=A0(),t=pt(),r=CR(),n=Math.max;function i(a,o,u){var c=a==null?0:a.length;if(!c)return-1;var s=u==null?0:r(u);return s<0&&(s=n(c+s,0)),e(a,t(o,3),s)}return cl=i,cl}var sl,fb;function kR(){if(fb)return sl;fb=1;var e=$R(),t=IR(),r=e(t);return sl=r,sl}var RR=kR();const DR=ue(RR);var NR=Bb();const qR=ue(NR);var LR=qR(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Dh=q.createContext(void 0),Nh=q.createContext(void 0),Aw=q.createContext(void 0),Sw=q.createContext({}),Pw=q.createContext(void 0),Tw=q.createContext(0),Ew=q.createContext(0),hb=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,c=t.width,s=t.height,f=LR(a);return S.createElement(Dh.Provider,{value:n},S.createElement(Nh.Provider,{value:i},S.createElement(Sw.Provider,{value:a},S.createElement(Aw.Provider,{value:f},S.createElement(Pw.Provider,{value:o},S.createElement(Tw.Provider,{value:s},S.createElement(Ew.Provider,{value:c},u)))))))},BR=function(){return q.useContext(Pw)},jw=function(t){var r=q.useContext(Dh);r==null&&ir();var n=r[t];return n==null&&ir(),n},FR=function(){var t=q.useContext(Dh);return Mt(t)},zR=function(){var t=q.useContext(Nh),r=DR(t,function(n){return yw(n.domain,Number.isFinite)});return r||Mt(t)},Mw=function(t){var r=q.useContext(Nh);r==null&&ir();var n=r[t];return n==null&&ir(),n},UR=function(){var t=q.useContext(Aw);return t},WR=function(){return q.useContext(Sw)},qh=function(){return q.useContext(Ew)},Lh=function(){return q.useContext(Tw)};function Fr(e){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(e)}function KR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GR(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 HR(e,t,r){return t&&GR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VR(e,t,r){return t=Oa(t),XR(e,$w()?Reflect.construct(t,r||[],Oa(e).constructor):t.apply(e,r))}function XR(e,t){if(t&&(Fr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YR(e)}function YR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($w=function(){return!!e})()}function Oa(e){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oa(e)}function ZR(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&&Of(e,t)}function Of(e,t){return Of=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Of(e,t)}function pb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function db(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pb(Object(r),!0).forEach(function(n){Bh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bh(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=JR(e,"string");return Fr(t)=="symbol"?t:t+""}function JR(e,t){if(Fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function QR(e,t){return nD(e)||rD(e,t)||tD(e,t)||eD()}function eD(){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 tD(e,t){if(e){if(typeof e=="string")return vb(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 vb(e,t)}}function vb(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 rD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function nD(e){if(Array.isArray(e))return e}function _f(){return _f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_f.apply(this,arguments)}var iD=function(t,r){var n;return S.isValidElement(t)?n=S.cloneElement(t,r):H(t)?n=t(r):n=S.createElement("line",_f({},r,{className:"recharts-reference-line-line"})),n},aD=function(t,r,n,i,a,o,u,c,s){var f=a.x,l=a.y,h=a.width,d=a.height;if(n){var y=s.y,v=t.y.apply(y,{position:o});if(st(s,"discard")&&!t.y.isInRange(v))return null;var p=[{x:f+h,y:v},{x:f,y:v}];return c==="left"?p.reverse():p}if(r){var g=s.x,x=t.x.apply(g,{position:o});if(st(s,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+d},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=s.segment,m=O.map(function(b){return t.apply(b,{position:o})});return st(s,"discard")&&Jk(m,function(b){return!t.isInRange(b)})?null:m}return null};function oD(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,c=e.alwaysShow,s=BR(),f=jw(i),l=Mw(a),h=UR();if(!s||!h)return null;kt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Rh({x:f.scale,y:l.scale}),y=Pe(t),v=Pe(r),p=n&&n.length===2,g=aD(d,y,v,p,h,e.position,f.orientation,l.orientation,e);if(!g)return null;var x=QR(g,2),w=x[0],O=w.x,m=w.y,b=x[1],_=b.x,A=b.y,P=st(e,"hidden")?"url(#".concat(s,")"):void 0,j=db(db({clipPath:P},K(e,!0)),{},{x1:O,y1:m,x2:_,y2:A});return S.createElement(te,{className:J("recharts-reference-line",u)},iD(o,j),Ae.renderCallByParent(e,ER({x1:O,y1:m,x2:_,y2:A})))}var Fh=(function(e){function t(){return KR(this,t),VR(this,t,arguments)}return ZR(t,e),HR(t,[{key:"render",value:function(){return S.createElement(oD,this.props)}}])})(S.Component);Bh(Fh,"displayName","ReferenceLine");Bh(Fh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Af(){return Af=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},Af.apply(this,arguments)}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 yb(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 mb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yb(Object(r),!0).forEach(function(n){so(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cD(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,kw(n.key),n)}}function sD(e,t,r){return t&&cD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lD(e,t,r){return t=_a(t),fD(e,Iw()?Reflect.construct(t,r||[],_a(e).constructor):t.apply(e,r))}function fD(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 hD(e)}function hD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Iw=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_a(e)}function pD(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 so(e,t,r){return t=kw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kw(e){var t=dD(e,"string");return zr(t)=="symbol"?t:t+""}function dD(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 vD=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Rh({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return st(t,"discard")&&!o.isInRange(u)?null:u},lo=(function(e){function t(){return uD(this,t),lD(this,t,arguments)}return pD(t,e),sD(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,c=n.clipPathId,s=Pe(i),f=Pe(a);if(kt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=vD(this.props);if(!l)return null;var h=l.x,d=l.y,y=this.props,v=y.shape,p=y.className,g=st(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=mb(mb({clipPath:g},K(this.props,!0)),{},{cx:h,cy:d});return S.createElement(te,{className:J("recharts-reference-dot",p)},t.renderDot(v,x),Ae.renderCallByParent(this.props,{x:h-o,y:d-o,width:2*o,height:2*o}))}}])})(S.Component);so(lo,"displayName","ReferenceDot");so(lo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});so(lo,"renderDot",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):H(e)?r=e(t):r=S.createElement(to,Af({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});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 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 gb(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 bb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gb(Object(r),!0).forEach(function(n){fo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mD(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 gD(e,t,r){return t&&mD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bD(e,t,r){return t=Aa(t),xD(e,Rw()?Reflect.construct(t,r||[],Aa(e).constructor):t.apply(e,r))}function xD(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 wD(e)}function wD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rw=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Aa(e)}function OD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tf(e,t)}function Tf(e,t){return Tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tf(e,t)}function fo(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=_D(e,"string");return Ur(t)=="symbol"?t:t+""}function _D(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 AD=function(t,r,n,i,a){var o=a.x1,u=a.x2,c=a.y1,s=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=Rh({x:f.scale,y:l.scale}),d={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(c,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(s,{position:"end"}):h.y.rangeMax};return st(a,"discard")&&(!h.isInRange(d)||!h.isInRange(y))?null:Ow(d,y)},ho=(function(e){function t(){return yD(this,t),bD(this,t,arguments)}return OD(t,e),gD(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,c=n.className,s=n.alwaysShow,f=n.clipPathId;kt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Pe(i),h=Pe(a),d=Pe(o),y=Pe(u),v=this.props.shape;if(!l&&!h&&!d&&!y&&!v)return null;var p=AD(l,h,d,y,this.props);if(!p&&!v)return null;var g=st(this.props,"hidden")?"url(#".concat(f,")"):void 0;return S.createElement(te,{className:J("recharts-reference-area",c)},t.renderRect(v,bb(bb({clipPath:g},K(this.props,!0)),p)),Ae.renderCallByParent(this.props,p))}}])})(S.Component);fo(ho,"displayName","ReferenceArea");fo(ho,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});fo(ho,"renderRect",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):H(e)?r=e(t):r=S.createElement(kh,Pf({},t,{className:"recharts-reference-area-rect"})),r});function Nw(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 SD(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return MR(n,r)}function PD(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 Sa(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 TD(e,t){return Nw(e,t+1)}function ED(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,c=0,s=1,f=o,l=function(){var y=n==null?void 0:n[c];if(y===void 0)return{v:Nw(n,s)};var v=c,p,g=function(){return p===void 0&&(p=r(y,v)),p},x=y.coordinate,w=c===0||Sa(e,x,g,f,u);w||(c=0,f=o,s+=1),w&&(f=x+e*(g()/2+i),c+=s)},h;s<=a.length;)if(h=l(),h)return h.v;return[]}function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xb(Object(r),!0).forEach(function(n){jD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jD(e,t,r){return t=MD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MD(e){var t=$D(e,"string");return ri(t)=="symbol"?t:t+""}function $D(e,t){if(ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CD(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,c=t.end,s=function(h){var d=a[h],y,v=function(){return y===void 0&&(y=r(d,h)),y};if(h===o-1){var p=e*(d.coordinate+e*v()/2-c);a[h]=d=$e($e({},d),{},{tickCoord:p>0?d.coordinate-p*e:d.coordinate})}else a[h]=d=$e($e({},d),{},{tickCoord:d.coordinate});var g=Sa(e,d.tickCoord,v,u,c);g&&(c=d.tickCoord-e*(v()/2+i),a[h]=$e($e({},d),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function ID(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=t.start,s=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-s);o[u-1]=f=$e($e({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var d=Sa(e,f.tickCoord,function(){return l},c,s);d&&(s=f.tickCoord-e*(l/2+i),o[u-1]=$e($e({},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-c);o[x]=w=$e($e({},w),{},{tickCoord:b<0?w.coordinate-b*e:w.coordinate})}else o[x]=w=$e($e({},w),{},{tickCoord:w.coordinate});var _=Sa(e,w.tickCoord,m,c,s);_&&(c=w.tickCoord+e*(m()/2+i),o[x]=$e($e({},w),{},{isShow:!0}))},p=0;p<y;p++)v(p);return o}function zh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,c=e.interval,s=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(N(c)||ur.isSsr)return TD(i,typeof c=="number"&&N(c)?c:0);var h=[],d=u==="top"||u==="bottom"?"width":"height",y=f&&d==="width"?gn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=H(s)?s(w.value,O):w.value;return d==="width"?SD(gn(m,{fontSize:t,letterSpacing:r}),y,l):gn(m,{fontSize:t,letterSpacing:r})[d]},p=i.length>=2?Ie(i[1].coordinate-i[0].coordinate):1,g=PD(a,p,d);return c==="equidistantPreserveStart"?ED(p,g,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=ID(p,g,v,i,o,c==="preserveStartEnd"):h=CD(p,g,v,i,o),h.filter(function(x){return x.isShow}))}var kD=["viewBox"],RD=["viewBox"],DD=["ticks"];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 xr(){return xr=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},xr.apply(this,arguments)}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 Oe(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){Uh(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 ll(e,t){if(e==null)return{};var r=ND(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 ND(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 qD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ob(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lw(n.key),n)}}function LD(e,t,r){return t&&Ob(e.prototype,t),r&&Ob(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function BD(e,t,r){return t=Pa(t),FD(e,qw()?Reflect.construct(t,r||[],Pa(e).constructor):t.apply(e,r))}function FD(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 zD(e)}function zD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qw=function(){return!!e})()}function Pa(e){return Pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pa(e)}function UD(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&&Ef(e,t)}function Ef(e,t){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ef(e,t)}function Uh(e,t,r){return t=Lw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lw(e){var t=WD(e,"string");return Wr(t)=="symbol"?t:t+""}function WD(e,t){if(Wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var an=(function(e){function t(r){var n;return qD(this,t),n=BD(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return UD(t,e),LD(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=ll(n,kD),u=this.props,c=u.viewBox,s=ll(u,RD);return!Or(a,c)||!Or(o,s)||!Or(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,c=i.height,s=i.orientation,f=i.tickSize,l=i.mirror,h=i.tickMargin,d,y,v,p,g,x,w=l?-1:1,O=n.tickSize||f,m=N(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":d=y=n.coordinate,p=o+ +!l*c,v=p-w*O,x=v-w*h,g=m;break;case"left":v=p=n.coordinate,y=a+ +!l*u,d=y-w*O,g=d-w*h,x=m;break;case"right":v=p=n.coordinate,y=a+ +l*u,d=y+w*O,g=d+w*h,x=m;break;default:d=y=n.coordinate,p=o+ +l*c,v=p+w*O,x=v+w*h,g=m;break}return{line:{x1:d,y1:v,x2:y,y2:p},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,c=n.orientation,s=n.mirror,f=n.axisLine,l=Oe(Oe(Oe({},K(this.props,!1)),K(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!s||c==="bottom"&&s);l=Oe(Oe({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var d=+(c==="left"&&!s||c==="right"&&s);l=Oe(Oe({},l),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+u})}return S.createElement("line",xr({},l,{className:J("recharts-cartesian-axis-line",Ge(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,c=u.tickLine,s=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,d=zh(Oe(Oe({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=K(this.props,!1),g=K(f,!1),x=Oe(Oe({},p),{},{fill:"none"},K(c,!1)),w=d.map(function(O,m){var b=o.getTickLineCoord(O),_=b.line,A=b.tick,P=Oe(Oe(Oe(Oe({textAnchor:y,verticalAnchor:v},p),{},{stroke:"none",fill:s},g),A),{},{index:m,payload:O,visibleTicksCount:d.length,tickFormatter:l});return S.createElement(te,xr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},tr(o.props,O,m)),c&&S.createElement("line",xr({},x,_,{className:J("recharts-cartesian-axis-tick-line",Ge(c,"className"))})),f&&t.renderTickItem(f,P,"".concat(H(l)?l(O.value,m):O.value).concat(h||"")))});return S.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,c=i.ticksGenerator,s=i.className,f=i.hide;if(f)return null;var l=this.props,h=l.ticks,d=ll(l,DD),y=h;return H(c)&&(y=h&&h.length>0?c(this.props):c(d)),o<=0||u<=0||!y||!y.length?null:S.createElement(te,{className:J("recharts-cartesian-axis",s),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ae.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=J(i.className,"recharts-cartesian-axis-tick-value");return S.isValidElement(n)?o=S.cloneElement(n,Oe(Oe({},i),{},{className:u})):H(n)?o=n(Oe(Oe({},i),{},{className:u})):o=S.createElement(rr,xr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(q.Component);Uh(an,"displayName","CartesianAxis");Uh(an,"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 KD=["x1","y1","x2","y2","key"],GD=["offset"];function ar(e){"@babel/helpers - typeof";return ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ar(e)}function _b(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?_b(Object(r),!0).forEach(function(n){HD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HD(e,t,r){return t=VD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VD(e){var t=XD(e,"string");return ar(t)=="symbol"?t:t+""}function XD(e,t){if(ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yt.apply(this,arguments)}function Ab(e,t){if(e==null)return{};var r=YD(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 YD(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 ZD=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,c=t.ry;return S.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Bw(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(H(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,c=Ab(t,KD),s=K(c,!1);s.offset;var f=Ab(s,GD);r=S.createElement("line",Yt({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function JD(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=Ce(Ce({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return Bw(i,s)});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function QD(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=Ce(Ce({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return Bw(i,s)});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function eN(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,c=e.horizontal,s=c===void 0?!0:c;if(!s||!t||!t.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,d){return h-d});i!==f[0]&&f.unshift(0);var l=f.map(function(h,d){var y=!f[d+1],v=y?i+o-h:f[d+1]-h;if(v<=0)return null;var p=d%t.length;return S.createElement("rect",{key:"react-".concat(d),y:h,x:n,height:v,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function tN(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,c=e.height,s=e.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(h){return Math.round(h+a-a)}).sort(function(h,d){return h-d});a!==f[0]&&f.unshift(0);var l=f.map(function(h,d){var y=!f[d+1],v=y?a+u-h:f[d+1]-h;if(v<=0)return null;var p=d%n.length;return S.createElement("rect",{key:"react-".concat(d),x:h,y:o,width:v,height:c,stroke:"none",fill:n[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var rN=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Bx(zh(Ce(Ce(Ce({},an.defaultProps),n),{},{ticks:gt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},nN=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Bx(zh(Ce(Ce(Ce({},an.defaultProps),n),{},{ticks:gt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},vr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function jf(e){var t,r,n,i,a,o,u=qh(),c=Lh(),s=WR(),f=Ce(Ce({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:vr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:vr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:vr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:vr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:vr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:vr.verticalFill,x:N(e.x)?e.x:s.left,y:N(e.y)?e.y:s.top,width:N(e.width)?e.width:s.width,height:N(e.height)?e.height:s.height}),l=f.x,h=f.y,d=f.width,y=f.height,v=f.syncWithTicks,p=f.horizontalValues,g=f.verticalValues,x=FR(),w=zR();if(!N(d)||d<=0||!N(y)||y<=0||!N(l)||l!==+l||!N(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||rN,m=f.horizontalCoordinatesGenerator||nN,b=f.horizontalPoints,_=f.verticalPoints;if((!b||!b.length)&&H(m)){var A=p&&p.length,P=m({yAxis:w?Ce(Ce({},w),{},{ticks:A?p:w.ticks}):void 0,width:u,height:c,offset:s},A?!0:v);kt(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ar(P),"]")),Array.isArray(P)&&(b=P)}if((!_||!_.length)&&H(O)){var j=g&&g.length,E=O({xAxis:x?Ce(Ce({},x),{},{ticks:j?g:x.ticks}):void 0,width:u,height:c,offset:s},j?!0:v);kt(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ar(E),"]")),Array.isArray(E)&&(_=E)}return S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement(ZD,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),S.createElement(JD,Yt({},f,{offset:s,horizontalPoints:b,xAxis:x,yAxis:w})),S.createElement(QD,Yt({},f,{offset:s,verticalPoints:_,xAxis:x,yAxis:w})),S.createElement(eN,Yt({},f,{horizontalPoints:b})),S.createElement(tN,Yt({},f,{verticalPoints:_})))}jf.displayName="CartesianGrid";var iN=["type","layout","connectNulls","ref"],aN=["key"];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 Sb(e,t){if(e==null)return{};var r=oN(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 oN(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 An(){return An=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},An.apply(this,arguments)}function Pb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pb(Object(r),!0).forEach(function(n){it(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yr(e){return lN(e)||sN(e)||cN(e)||uN()}function uN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
65
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cN(e,t){if(e){if(typeof e=="string")return Mf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mf(e,t)}}function sN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lN(e){if(Array.isArray(e))return Mf(e)}function Mf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tb(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,zw(n.key),n)}}function hN(e,t,r){return t&&Tb(e.prototype,t),r&&Tb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pN(e,t,r){return t=Ta(t),dN(e,Fw()?Reflect.construct(t,r||[],Ta(e).constructor):t.apply(e,r))}function dN(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 vN(e)}function vN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fw=function(){return!!e})()}function Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(e)}function yN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$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 it(e,t,r){return t=zw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zw(e){var t=mN(e,"string");return Kr(t)=="symbol"?t:t+""}function mN(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 di=(function(e){function t(){var r;fN(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=pN(this,t,[].concat(i)),it(r,"state",{isAnimationFinished:!0,totalLength:0}),it(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),it(r,"getStrokeDasharray",function(o,u,c){var s=c.reduce(function(g,x){return g+x});if(!s)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/s),l=o%s,h=u-o,d=[],y=0,v=0;y<c.length;v+=c[y],++y)if(v+c[y]>l){d=[].concat(yr(c.slice(0,y)),[l-v]);break}var p=d.length%2===0?[0,h]:[h];return[].concat(yr(t.repeat(c,f)),yr(d),p).map(function(g){return"".concat(g,"px")}).join(", ")}),it(r,"id",Qr("recharts-line-")),it(r,"pathRef",function(o){r.mainCurve=o}),it(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),it(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return yN(t,e),hN(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=He(f,pi);if(!l)return null;var h=function(v,p){return{x:v.x,y:v.y,value:v.value,errorVal:Se(v.payload,p)}},d={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(te,d,l.map(function(y){return S.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,c=u.dot,s=u.points,f=u.dataKey,l=K(this.props,!1),h=K(c,!0),d=s.map(function(v,p){var g=Fe(Fe(Fe({key:"dot-".concat(p),r:3},l),h),{},{index:p,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:s});return t.renderDotItem(c,g)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(te,An({className:"recharts-line-dots",key:"dots"},y),d)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,c=u.type,s=u.layout,f=u.connectNulls;u.ref;var l=Sb(u,iN),h=Fe(Fe(Fe({},K(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:s,connectNulls:f});return S.createElement(oa,An({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.strokeDasharray,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,d=o.animationId,y=o.animateNewValues,v=o.width,p=o.height,g=this.state,x=g.prevPoints,w=g.totalLength;return S.createElement(ft,{begin:f,duration:l,isActive:s,easing:h,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var m=O.t;if(x){var b=x.length/u.length,_=u.map(function(T,M){var $=Math.floor(M*b);if(x[$]){var I=x[$],k=We(I.x,T.x),D=We(I.y,T.y);return Fe(Fe({},T),{},{x:k(m),y:D(m)})}if(y){var L=We(v*2,T.x),B=We(p/2,T.y);return Fe(Fe({},T),{},{x:L(m),y:B(m)})}return Fe(Fe({},T),{},{x:T.x,y:T.y})});return a.renderCurveStatically(_,n,i)}var A=We(0,w),P=A(m),j;if(c){var E="".concat(c).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});j=a.getStrokeDasharray(P,w,E)}else j=a.generateSimpleStrokeDasharray(w,P);return a.renderCurveStatically(u,n,i,{strokeDasharray:j})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,c=this.state,s=c.prevPoints,f=c.totalLength;return u&&o&&o.length&&(!s&&f>0||!hi(s,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,c=i.className,s=i.xAxis,f=i.yAxis,l=i.top,h=i.left,d=i.width,y=i.height,v=i.isAnimationActive,p=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,x=u.length===1,w=J("recharts-line",c),O=s&&s.allowDataOverflow,m=f&&f.allowDataOverflow,b=O||m,_=Y(p)?this.id:p,A=(n=K(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=A.r,j=P===void 0?3:P,E=A.strokeWidth,T=E===void 0?2:E,M=n_(o)?o:{},$=M.clipDot,I=$===void 0?!0:$,k=j*2+T;return S.createElement(te,{className:w},O||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(_)},S.createElement("rect",{x:O?h:h-d/2,y:m?l:l-y/2,width:O?d:d*2,height:m?y:y*2})),!I&&S.createElement("clipPath",{id:"clipPath-dots-".concat(_)},S.createElement("rect",{x:h-k/2,y:l-k/2,width:d+k,height:y+k}))):null,!x&&this.renderCurve(b,_),this.renderErrorBar(b,_),(x||o)&&this.renderDots(b,I,_),(!v||g)&&xt.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(yr(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(yr(o),yr(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(S.isValidElement(n))a=S.cloneElement(n,i);else if(H(n))a=n(i);else{var o=i.key,u=Sb(i,aN),c=J("recharts-line-dot",typeof n!="boolean"?n.className:"");a=S.createElement(to,An({key:o},u,{className:c}))}return a}}])})(q.PureComponent);it(di,"displayName","Line");it(di,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ur.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});it(di,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,u=e.bandSize,c=e.displayedData,s=e.offset,f=t.layout,l=c.map(function(h,d){var y=Se(h,o);return f==="horizontal"?{x:Rm({axis:r,ticks:i,bandSize:u,entry:h,index:d}),y:Y(y)?null:n.scale(y),value:y,payload:h}:{x:Y(y)?null:r.scale(y),y:Rm({axis:n,ticks:a,bandSize:u,entry:h,index:d}),value:y,payload:h}});return Fe({points:l,layout:f},s)});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 gN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bN(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,Kw(n.key),n)}}function xN(e,t,r){return t&&bN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wN(e,t,r){return t=Ea(t),ON(e,Uw()?Reflect.construct(t,r||[],Ea(e).constructor):t.apply(e,r))}function ON(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 _N(e)}function _N(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uw=function(){return!!e})()}function Ea(e){return Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ea(e)}function AN(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 Ww(e,t,r){return t=Kw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kw(e){var t=SN(e,"string");return Gr(t)=="symbol"?t:t+""}function SN(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)}function If(){return If=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},If.apply(this,arguments)}function PN(e){var t=e.xAxisId,r=qh(),n=Lh(),i=jw(t);return i==null?null:q.createElement(an,If({},i,{className:J("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return gt(o,!0)}}))}var Hr=(function(e){function t(){return gN(this,t),wN(this,t,arguments)}return AN(t,e),xN(t,[{key:"render",value:function(){return q.createElement(PN,this.props)}}])})(q.Component);Ww(Hr,"displayName","XAxis");Ww(Hr,"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 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 TN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Vw(n.key),n)}}function jN(e,t,r){return t&&EN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MN(e,t,r){return t=ja(t),$N(e,Gw()?Reflect.construct(t,r||[],ja(e).constructor):t.apply(e,r))}function $N(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 CN(e)}function CN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gw=function(){return!!e})()}function ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(e)}function IN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kf(e,t)}function kf(e,t){return kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kf(e,t)}function Hw(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=kN(e,"string");return Vr(t)=="symbol"?t:t+""}function kN(e,t){if(Vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rf.apply(this,arguments)}var RN=function(t){var r=t.yAxisId,n=qh(),i=Lh(),a=Mw(r);return a==null?null:q.createElement(an,Rf({},a,{className:J("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return gt(u,!0)}}))},vi=(function(e){function t(){return TN(this,t),MN(this,t,arguments)}return IN(t,e),jN(t,[{key:"render",value:function(){return q.createElement(RN,this.props)}}])})(q.Component);Hw(vi,"displayName","YAxis");Hw(vi,"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 Eb(e){return LN(e)||qN(e)||NN(e)||DN()}function DN(){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 NN(e,t){if(e){if(typeof e=="string")return Df(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Df(e,t)}}function qN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LN(e){if(Array.isArray(e))return Df(e)}function Df(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Nf=function(t,r,n,i,a){var o=He(t,Fh),u=He(t,lo),c=[].concat(Eb(o),Eb(u)),s=He(t,ho),f="".concat(i,"Id"),l=i[0],h=r;if(c.length&&(h=c.reduce(function(v,p){if(p.props[f]===n&&st(p.props,"extendDomain")&&N(p.props[l])){var g=p.props[l];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},h)),s.length){var d="".concat(l,"1"),y="".concat(l,"2");h=s.reduce(function(v,p){if(p.props[f]===n&&st(p.props,"extendDomain")&&N(p.props[d])&&N(p.props[y])){var g=p.props[d],x=p.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,p){return N(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},h)),h},fl={exports:{}},jb;function BN(){return jb||(jb=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function a(c,s,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new i(f,l||c,h),y=r?r+s:s;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],d]:c._events[y].push(d):(c._events[y]=d,c._eventsCount++),c}function o(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],f,l;if(this._eventsCount===0)return s;for(l in f=this._events)t.call(f,l)&&s.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},u.prototype.listeners=function(s){var f=r?r+s:s,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var h=0,d=l.length,y=new Array(d);h<d;h++)y[h]=l[h].fn;return y},u.prototype.listenerCount=function(s){var f=r?r+s:s,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(s,f,l,h,d,y){var v=r?r+s:s;if(!this._events[v])return!1;var p=this._events[v],g=arguments.length,x,w;if(p.fn){switch(p.once&&this.removeListener(s,p.fn,void 0,!0),g){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,l),!0;case 4:return p.fn.call(p.context,f,l,h),!0;case 5:return p.fn.call(p.context,f,l,h,d),!0;case 6:return p.fn.call(p.context,f,l,h,d,y),!0}for(w=1,x=new Array(g-1);w<g;w++)x[w-1]=arguments[w];p.fn.apply(p.context,x)}else{var O=p.length,m;for(w=0;w<O;w++)switch(p[w].once&&this.removeListener(s,p[w].fn,void 0,!0),g){case 1:p[w].fn.call(p[w].context);break;case 2:p[w].fn.call(p[w].context,f);break;case 3:p[w].fn.call(p[w].context,f,l);break;case 4:p[w].fn.call(p[w].context,f,l,h);break;default:if(!x)for(m=1,x=new Array(g-1);m<g;m++)x[m-1]=arguments[m];p[w].fn.apply(p[w].context,x)}}return!0},u.prototype.on=function(s,f,l){return a(this,s,f,l,!1)},u.prototype.once=function(s,f,l){return a(this,s,f,l,!0)},u.prototype.removeListener=function(s,f,l,h){var d=r?r+s:s;if(!this._events[d])return this;if(!f)return o(this,d),this;var y=this._events[d];if(y.fn)y.fn===f&&(!h||y.once)&&(!l||y.context===l)&&o(this,d);else{for(var v=0,p=[],g=y.length;v<g;v++)(y[v].fn!==f||h&&!y[v].once||l&&y[v].context!==l)&&p.push(y[v]);p.length?this._events[d]=p.length===1?p[0]:p:o(this,d)}return this},u.prototype.removeAllListeners=function(s){var f;return s?(f=r?r+s:s,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(fl)),fl.exports}var FN=BN();const zN=ue(FN);var hl=new zN,pl="recharts.syncMouseEvents";function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}function UN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WN(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,Xw(n.key),n)}}function KN(e,t,r){return t&&WN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dl(e,t,r){return t=Xw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xw(e){var t=GN(e,"string");return ni(t)=="symbol"?t:t+""}function GN(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var HN=(function(){function e(){UN(this,e),dl(this,"activeIndex",0),dl(this,"coordinateList",[]),dl(this,"layout","horizontal")}return KN(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,c=r.layout,s=c===void 0?null:c,f=r.offset,l=f===void 0?null:f,h=r.mouseHandlerCallback,d=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=s??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=d??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,c=this.coordinateList[this.activeIndex].coordinate,s=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+c+s,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])})();function VN(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&&N(n)&&N(i))return!0}return!1}function XN(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 Yw(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=le(t,r,n,i),u=le(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function YN(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,c=t.cy,s=t.innerRadius,f=t.outerRadius,l=t.angle,h=le(u,c,s,l),d=le(u,c,f,l);n=h.x,i=h.y,a=d.x,o=d.y}else return Yw(t);return[{x:n,y:i},{x:a,y:o}]}function ii(e){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(e)}function 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 Ei(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){ZN(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 ZN(e,t,r){return t=JN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JN(e){var t=QN(e,"string");return ii(t)=="symbol"?t:t+""}function QN(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 e2(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,c=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,h=e.chartName,d=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!d||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,v=oa;if(h==="ScatterChart")y=o,v=OI;else if(h==="BarChart")y=XN(l,o,c,f),v=kh;else if(l==="radial"){var p=Yw(o),g=p.cx,x=p.cy,w=p.radius,O=p.startAngle,m=p.endAngle;y={cx:g,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=Zx}else y={points:YN(l,o,c)},v=oa;var b=Ei(Ei(Ei(Ei({stroke:"#ccc",pointerEvents:"none"},c),y),K(d,!1)),{},{payload:u,payloadIndex:s,className:J("recharts-tooltip-cursor",d.className)});return q.isValidElement(d)?q.cloneElement(d,b):q.createElement(v,b)}var t2=["item"],r2=["children","className","width","height","style","compact","title","desc"];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 wr(){return wr=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},wr.apply(this,arguments)}function $b(e,t){return a2(e)||i2(e,t)||Jw(e,t)||n2()}function n2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
67
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function a2(e){if(Array.isArray(e))return e}function Cb(e,t){if(e==null)return{};var r=o2(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 o2(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 u2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c2(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,Qw(n.key),n)}}function s2(e,t,r){return t&&c2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l2(e,t,r){return t=Ma(t),f2(e,Zw()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}function f2(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 h2(e)}function h2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zw=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ma(e)}function p2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qf(e,t)}function qf(e,t){return qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qf(e,t)}function Yr(e){return y2(e)||v2(e)||Jw(e)||d2()}function d2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
68
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jw(e,t){if(e){if(typeof e=="string")return Lf(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 Lf(e,t)}}function v2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function y2(e){if(Array.isArray(e))return Lf(e)}function Lf(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 Ib(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ib(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ib(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G(e,t,r){return t=Qw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qw(e){var t=m2(e,"string");return Xr(t)=="symbol"?t:t+""}function m2(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(t==="string"?String:Number)(e)}var g2={xAxis:["bottom","top"],yAxis:["left","right"]},b2={width:"100%",height:"100%"},eO={x:0,y:0};function ji(e){return e}var x2=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},w2=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return C(C(C({},i),le(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return C(C(C({},i),le(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return eO},po=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,c){var s=c.props.data;return s&&s.length?[].concat(Yr(u),Yr(s)):u},[]);return o.length>0?o:t&&t.length&&N(i)&&N(a)?t.slice(i,a+1):[]};function tO(e){return e==="number"?[0,"auto"]:void 0}var Bf=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=po(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,s){var f,l=(f=s.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var d=l===void 0?u:l;h=$i(d,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Yr(c),[Kx(s,h)]):c},[])},kb=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=x2(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=Hj(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=Bf(t,r,f,l),d=w2(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:d}}return null},O2=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,d=Lx(f,a);return n.reduce(function(y,v){var p,g=v.type.defaultProps!==void 0?C(C({},v.type.defaultProps),v.props):v.props,x=g.type,w=g.dataKey,O=g.allowDataOverflow,m=g.allowDuplicatedCategory,b=g.scale,_=g.ticks,A=g.includeHidden,P=g[o];if(y[P])return y;var j=po(t.data,{graphicalItems:i.filter(function(U){var X,fe=o in U.props?U.props[o]:(X=U.type.defaultProps)===null||X===void 0?void 0:X[o];return fe===P}),dataStartIndex:c,dataEndIndex:s}),E=j.length,T,M,$;VN(g.domain,O,x)&&(T=Jl(g.domain,null,O),d&&(x==="number"||b!=="auto")&&($=xn(j,w,"category")));var I=tO(x);if(!T||T.length===0){var k,D=(k=g.domain)!==null&&k!==void 0?k:I;if(w){if(T=xn(j,w,x),x==="category"&&d){var L=HO(T);m&&L?(M=T,T=ma(0,E)):m||(T=Lm(D,T,v).reduce(function(U,X){return U.indexOf(X)>=0?U:[].concat(Yr(U),[X])},[]))}else if(x==="category")m?T=T.filter(function(U){return U!==""&&!Y(U)}):T=Lm(D,T,v).reduce(function(U,X){return U.indexOf(X)>=0||X===""||Y(X)?U:[].concat(Yr(U),[X])},[]);else if(x==="number"){var B=Jj(j,i.filter(function(U){var X,fe,me=o in U.props?U.props[o]:(X=U.type.defaultProps)===null||X===void 0?void 0:X[o],Be="hide"in U.props?U.props.hide:(fe=U.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return me===P&&(A||!Be)}),w,a,f);B&&(T=B)}d&&(x==="number"||b!=="auto")&&($=xn(j,w,"category"))}else d?T=ma(0,E):u&&u[P]&&u[P].hasStack&&x==="number"?T=h==="expand"?[0,1]:Wx(u[P].stackGroups,c,s):T=qx(j,i.filter(function(U){var X=o in U.props?U.props[o]:U.type.defaultProps[o],fe="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return X===P&&(A||!fe)}),x,f,!0);if(x==="number")T=Nf(l,T,P,a,_),D&&(T=Jl(D,T,O));else if(x==="category"&&D){var W=D,V=T.every(function(U){return W.indexOf(U)>=0});V&&(T=W)}}return C(C({},y),{},G({},P,C(C({},g),{},{axisType:a,domain:T,categoricalDomain:$,duplicateDomain:M,originalDomain:(p=g.domain)!==null&&p!==void 0?p:I,isCategorical:d,layout:f})))},{})},_2=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=po(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),d=h.length,y=Lx(f,a),v=-1;return n.reduce(function(p,g){var x=g.type.defaultProps!==void 0?C(C({},g.type.defaultProps),g.props):g.props,w=x[o],O=tO("number");if(!p[w]){v++;var m;return y?m=ma(0,d):u&&u[w]&&u[w].hasStack?(m=Wx(u[w].stackGroups,c,s),m=Nf(l,m,w,a)):(m=Jl(O,qx(h,n.filter(function(b){var _,A,P=o in b.props?b.props[o]:(_=b.type.defaultProps)===null||_===void 0?void 0:_[o],j="hide"in b.props?b.props.hide:(A=b.type.defaultProps)===null||A===void 0?void 0:A.hide;return P===w&&!j}),"number",f),i.defaultProps.allowDataOverflow),m=Nf(l,m,w,a)),C(C({},p),{},G({},w,C(C({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ge(g2,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return p},{})},A2=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=He(f,a),d={};return h&&h.length?d=O2(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(d=_2(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),d},S2=function(t){var r=Mt(t),n=gt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:uh(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:na(r,n)}},Rb=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ue(r,Lr),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}},P2=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ct(r&&r.type);return n&&n.indexOf("Bar")>=0})},Db=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"}},T2=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,h=n.margin||{},d=Ue(l,Lr),y=Ue(l,Zt),v=Object.keys(c).reduce(function(m,b){var _=c[b],A=_.orientation;return!_.mirror&&!_.hide?C(C({},m),{},G({},A,m[A]+_.width)):m},{left:h.left||0,right:h.right||0}),p=Object.keys(o).reduce(function(m,b){var _=o[b],A=_.orientation;return!_.mirror&&!_.hide?C(C({},m),{},G({},A,Ge(m,"".concat(A))+_.height)):m},{top:h.top||0,bottom:h.bottom||0}),g=C(C({},p),v),x=g.bottom;d&&(g.bottom+=d.props.height||Lr.defaultProps.height),y&&r&&(g=Yj(g,i,n,r));var w=s-g.left-g.right,O=f-g.top-g.bottom;return C(C({brushBottom:x},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},E2=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Wh=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(g,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,b=x.updateId,_=x.dataStartIndex,A=x.dataEndIndex,P=g.barSize,j=g.layout,E=g.barGap,T=g.barCategoryGap,M=g.maxBarSize,$=Db(j),I=$.numericAxisName,k=$.cateAxisName,D=P2(w),L=[];return w.forEach(function(B,W){var V=po(g.data,{graphicalItems:[B],dataStartIndex:_,dataEndIndex:A}),U=B.type.defaultProps!==void 0?C(C({},B.type.defaultProps),B.props):B.props,X=U.dataKey,fe=U.maxBarSize,me=U["".concat(I,"Id")],Be=U["".concat(k,"Id")],Lt={},De=c.reduce(function(Bt,Ft){var vo=x["".concat(Ft.axisType,"Map")],Kh=U["".concat(Ft.axisType,"Id")];vo&&vo[Kh]||Ft.axisType==="zAxis"||ir();var Gh=vo[Kh];return C(C({},Bt),{},G(G({},Ft.axisType,Gh),"".concat(Ft.axisType,"Ticks"),gt(Gh)))},Lt),F=De[k],Z=De["".concat(k,"Ticks")],Q=O&&O[me]&&O[me].hasStack&&uM(B,O[me].stackGroups),R=Ct(B.type).indexOf("Bar")>=0,de=na(F,Z),ee=[],xe=D&&Vj({barSize:P,stackGroups:O,totalSize:E2(De,k)});if(R){var we,Ne,Et=Y(fe)?M:fe,hr=(we=(Ne=na(F,Z,!0))!==null&&Ne!==void 0?Ne:Et)!==null&&we!==void 0?we:0;ee=Xj({barGap:E,barCategoryGap:T,bandSize:hr!==de?hr:de,sizeList:xe[Be],maxBarSize:Et}),hr!==de&&(ee=ee.map(function(Bt){return C(C({},Bt),{},{position:C(C({},Bt.position),{},{offset:Bt.position.offset-hr/2})})}))}var yi=B&&B.type&&B.type.getComposedData;yi&&L.push({props:C(C({},yi(C(C({},De),{},{displayedData:V,props:g,dataKey:X,item:B,bandSize:de,barPosition:ee,offset:m,stackedData:Q,layout:j,dataStartIndex:_,dataEndIndex:A}))),{},G(G(G({key:B.key||"item-".concat(W)},I,De[I]),k,De[k]),"animationId",b)),childIndex:o_(B,g.children),item:B})}),L},d=function(g,x){var w=g.props,O=g.dataStartIndex,m=g.dataEndIndex,b=g.updateId;if(!td({props:w}))return null;var _=w.children,A=w.layout,P=w.stackOffset,j=w.data,E=w.reverseStackOrder,T=Db(A),M=T.numericAxisName,$=T.cateAxisName,I=He(_,n),k=aM(j,I,"".concat(M,"Id"),"".concat($,"Id"),P,E),D=c.reduce(function(U,X){var fe="".concat(X.axisType,"Map");return C(C({},U),{},G({},fe,A2(w,C(C({},X),{},{graphicalItems:I,stackGroups:X.axisType===M&&k,dataStartIndex:O,dataEndIndex:m}))))},{}),L=T2(C(C({},D),{},{props:w,graphicalItems:I}),x==null?void 0:x.legendBBox);Object.keys(D).forEach(function(U){D[U]=f(w,D[U],L,U.replace("Map",""),r)});var B=D["".concat($,"Map")],W=S2(B),V=h(w,C(C({},D),{},{dataStartIndex:O,dataEndIndex:m,updateId:b,graphicalItems:I,stackGroups:k,offset:L}));return C(C({formattedGraphicalItems:V,graphicalItems:I,offset:L,stackGroups:k},W),D)},y=(function(p){function g(x){var w,O,m;return u2(this,g),m=l2(this,g,[x]),G(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),G(m,"accessibilityManager",new HN),G(m,"handleLegendBBoxUpdate",function(b){if(b){var _=m.state,A=_.dataStartIndex,P=_.dataEndIndex,j=_.updateId;m.setState(C({legendBBox:b},d({props:m.props,dataStartIndex:A,dataEndIndex:P,updateId:j},C(C({},m.state),{},{legendBBox:b}))))}}),G(m,"handleReceiveSyncEvent",function(b,_,A){if(m.props.syncId===b){if(A===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),G(m,"handleBrushChange",function(b){var _=b.startIndex,A=b.endIndex;if(_!==m.state.dataStartIndex||A!==m.state.dataEndIndex){var P=m.state.updateId;m.setState(function(){return C({dataStartIndex:_,dataEndIndex:A},d({props:m.props,dataStartIndex:_,dataEndIndex:A,updateId:P},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:A})}}),G(m,"handleMouseEnter",function(b){var _=m.getMouseInfo(b);if(_){var A=C(C({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var P=m.props.onMouseEnter;H(P)&&P(A,b)}}),G(m,"triggeredAfterMouseMove",function(b){var _=m.getMouseInfo(b),A=_?C(C({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var P=m.props.onMouseMove;H(P)&&P(A,b)}),G(m,"handleItemMouseEnter",function(b){m.setState(function(){return{isTooltipActive:!0,activeItem:b,activePayload:b.tooltipPayload,activeCoordinate:b.tooltipPosition||{x:b.cx,y:b.cy}}})}),G(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),G(m,"handleMouseMove",function(b){b.persist(),m.throttleTriggeredAfterMouseMove(b)}),G(m,"handleMouseLeave",function(b){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var A=m.props.onMouseLeave;H(A)&&A(_,b)}),G(m,"handleOuterEvent",function(b){var _=a_(b),A=Ge(m.props,"".concat(_));if(_&&H(A)){var P,j;/.*touch.*/i.test(_)?j=m.getMouseInfo(b.changedTouches[0]):j=m.getMouseInfo(b),A((P=j)!==null&&P!==void 0?P:{},b)}}),G(m,"handleClick",function(b){var _=m.getMouseInfo(b);if(_){var A=C(C({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var P=m.props.onClick;H(P)&&P(A,b)}}),G(m,"handleMouseDown",function(b){var _=m.props.onMouseDown;if(H(_)){var A=m.getMouseInfo(b);_(A,b)}}),G(m,"handleMouseUp",function(b){var _=m.props.onMouseUp;if(H(_)){var A=m.getMouseInfo(b);_(A,b)}}),G(m,"handleTouchMove",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(b.changedTouches[0])}),G(m,"handleTouchStart",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseDown(b.changedTouches[0])}),G(m,"handleTouchEnd",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseUp(b.changedTouches[0])}),G(m,"handleDoubleClick",function(b){var _=m.props.onDoubleClick;if(H(_)){var A=m.getMouseInfo(b);_(A,b)}}),G(m,"handleContextMenu",function(b){var _=m.props.onContextMenu;if(H(_)){var A=m.getMouseInfo(b);_(A,b)}}),G(m,"triggerSyncEvent",function(b){m.props.syncId!==void 0&&hl.emit(pl,m.props.syncId,b,m.eventEmitterSymbol)}),G(m,"applySyncEvent",function(b){var _=m.props,A=_.layout,P=_.syncMethod,j=m.state.updateId,E=b.dataStartIndex,T=b.dataEndIndex;if(b.dataStartIndex!==void 0||b.dataEndIndex!==void 0)m.setState(C({dataStartIndex:E,dataEndIndex:T},d({props:m.props,dataStartIndex:E,dataEndIndex:T,updateId:j},m.state)));else if(b.activeTooltipIndex!==void 0){var M=b.chartX,$=b.chartY,I=b.activeTooltipIndex,k=m.state,D=k.offset,L=k.tooltipTicks;if(!D)return;if(typeof P=="function")I=P(L,b);else if(P==="value"){I=-1;for(var B=0;B<L.length;B++)if(L[B].value===b.activeLabel){I=B;break}}var W=C(C({},D),{},{x:D.left,y:D.top}),V=Math.min(M,W.x+W.width),U=Math.min($,W.y+W.height),X=L[I]&&L[I].value,fe=Bf(m.state,m.props.data,I),me=L[I]?{x:A==="horizontal"?L[I].coordinate:V,y:A==="horizontal"?U:L[I].coordinate}:eO;m.setState(C(C({},b),{},{activeLabel:X,activeCoordinate:me,activePayload:fe,activeTooltipIndex:I}))}else m.setState(b)}),G(m,"renderCursor",function(b){var _,A=m.state,P=A.isTooltipActive,j=A.activeCoordinate,E=A.activePayload,T=A.offset,M=A.activeTooltipIndex,$=A.tooltipAxisBandSize,I=m.getTooltipEventType(),k=(_=b.props.active)!==null&&_!==void 0?_:P,D=m.props.layout,L=b.key||"_recharts-cursor";return S.createElement(e2,{key:L,activeCoordinate:j,activePayload:E,activeTooltipIndex:M,chartName:r,element:b,isActive:k,layout:D,offset:T,tooltipAxisBandSize:$,tooltipEventType:I})}),G(m,"renderPolarAxis",function(b,_,A){var P=Ge(b,"type.axisType"),j=Ge(m.state,"".concat(P,"Map")),E=b.type.defaultProps,T=E!==void 0?C(C({},E),b.props):b.props,M=j&&j[T["".concat(P,"Id")]];return q.cloneElement(b,C(C({},M),{},{className:J(P,M.className),key:b.key||"".concat(_,"-").concat(A),ticks:gt(M,!0)}))}),G(m,"renderPolarGrid",function(b){var _=b.props,A=_.radialLines,P=_.polarAngles,j=_.polarRadius,E=m.state,T=E.radiusAxisMap,M=E.angleAxisMap,$=Mt(T),I=Mt(M),k=I.cx,D=I.cy,L=I.innerRadius,B=I.outerRadius;return q.cloneElement(b,{polarAngles:Array.isArray(P)?P:gt(I,!0).map(function(W){return W.coordinate}),polarRadius:Array.isArray(j)?j:gt($,!0).map(function(W){return W.coordinate}),cx:k,cy:D,innerRadius:L,outerRadius:B,key:b.key||"polar-grid",radialLines:A})}),G(m,"renderLegend",function(){var b=m.state.formattedGraphicalItems,_=m.props,A=_.children,P=_.width,j=_.height,E=m.props.margin||{},T=P-(E.left||0)-(E.right||0),M=Dx({children:A,formattedGraphicalItems:b,legendWidth:T,legendContent:s});if(!M)return null;var $=M.item,I=Cb(M,t2);return q.cloneElement($,C(C({},I),{},{chartWidth:P,chartHeight:j,margin:E,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),G(m,"renderTooltip",function(){var b,_=m.props,A=_.children,P=_.accessibilityLayer,j=Ue(A,Ze);if(!j)return null;var E=m.state,T=E.isTooltipActive,M=E.activeCoordinate,$=E.activePayload,I=E.activeLabel,k=E.offset,D=(b=j.props.active)!==null&&b!==void 0?b:T;return q.cloneElement(j,{viewBox:C(C({},k),{},{x:k.left,y:k.top}),active:D,label:I,payload:D?$:[],coordinate:M,accessibilityLayer:P})}),G(m,"renderBrush",function(b){var _=m.props,A=_.margin,P=_.data,j=m.state,E=j.offset,T=j.dataStartIndex,M=j.dataEndIndex,$=j.updateId;return q.cloneElement(b,{key:b.key||"_recharts-brush",onChange:Ai(m.handleBrushChange,b.props.onChange),data:P,x:N(b.props.x)?b.props.x:E.left,y:N(b.props.y)?b.props.y:E.top+E.height+E.brushBottom-(A.bottom||0),width:N(b.props.width)?b.props.width:E.width,startIndex:T,endIndex:M,updateId:"brush-".concat($)})}),G(m,"renderReferenceElement",function(b,_,A){if(!b)return null;var P=m,j=P.clipPathId,E=m.state,T=E.xAxisMap,M=E.yAxisMap,$=E.offset,I=b.type.defaultProps||{},k=b.props,D=k.xAxisId,L=D===void 0?I.xAxisId:D,B=k.yAxisId,W=B===void 0?I.yAxisId:B;return q.cloneElement(b,{key:b.key||"".concat(_,"-").concat(A),xAxis:T[L],yAxis:M[W],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:j})}),G(m,"renderActivePoints",function(b){var _=b.item,A=b.activePoint,P=b.basePoint,j=b.childIndex,E=b.isRange,T=[],M=_.props.key,$=_.item.type.defaultProps!==void 0?C(C({},_.item.type.defaultProps),_.item.props):_.item.props,I=$.activeDot,k=$.dataKey,D=C(C({index:j,dataKey:k,cx:A.x,cy:A.y,r:4,fill:Ih(_.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},K(I,!1)),Ci(I));return T.push(g.renderActiveDot(I,D,"".concat(M,"-activePoint-").concat(j))),P?T.push(g.renderActiveDot(I,C(C({},D),{},{cx:P.x,cy:P.y}),"".concat(M,"-basePoint-").concat(j))):E&&T.push(null),T}),G(m,"renderGraphicChild",function(b,_,A){var P=m.filterFormatItem(b,_,A);if(!P)return null;var j=m.getTooltipEventType(),E=m.state,T=E.isTooltipActive,M=E.tooltipAxis,$=E.activeTooltipIndex,I=E.activeLabel,k=m.props.children,D=Ue(k,Ze),L=P.props,B=L.points,W=L.isRange,V=L.baseLine,U=P.item.type.defaultProps!==void 0?C(C({},P.item.type.defaultProps),P.item.props):P.item.props,X=U.activeDot,fe=U.hide,me=U.activeBar,Be=U.activeShape,Lt=!!(!fe&&T&&D&&(X||me||Be)),De={};j!=="axis"&&D&&D.props.trigger==="click"?De={onClick:Ai(m.handleItemMouseEnter,b.props.onClick)}:j!=="axis"&&(De={onMouseLeave:Ai(m.handleItemMouseLeave,b.props.onMouseLeave),onMouseEnter:Ai(m.handleItemMouseEnter,b.props.onMouseEnter)});var F=q.cloneElement(b,C(C({},P.props),De));function Z(Ft){return typeof M.dataKey=="function"?M.dataKey(Ft.payload):null}if(Lt)if($>=0){var Q,R;if(M.dataKey&&!M.allowDuplicatedCategory){var de=typeof M.dataKey=="function"?Z:"payload.".concat(M.dataKey.toString());Q=$i(B,de,I),R=W&&V&&$i(V,de,I)}else Q=B==null?void 0:B[$],R=W&&V&&V[$];if(Be||me){var ee=b.props.activeIndex!==void 0?b.props.activeIndex:$;return[q.cloneElement(b,C(C(C({},P.props),De),{},{activeIndex:ee})),null,null]}if(!Y(Q))return[F].concat(Yr(m.renderActivePoints({item:P,activePoint:Q,basePoint:R,childIndex:$,isRange:W})))}else{var xe,we=(xe=m.getItemByXY(m.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:F},Ne=we.graphicalItem,Et=Ne.item,hr=Et===void 0?b:Et,yi=Ne.childIndex,Bt=C(C(C({},P.props),De),{},{activeIndex:yi});return[q.cloneElement(hr,Bt),null,null]}return W?[F,null,null]:[F,null]}),G(m,"renderCustomized",function(b,_,A){return q.cloneElement(b,C(C({key:"recharts-customized-".concat(A)},m.props),m.state))}),G(m,"renderMap",{CartesianGrid:{handler:ji,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:ji},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:ji},YAxis:{handler:ji},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:Qr("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=CS(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return p2(g,p),s2(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,A=Ue(O,Ze);if(A){var P=A.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var j=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,E=Bf(this.state,m,P,j),T=this.state.tooltipTicks[P].coordinate,M=(this.state.offset.top+b)/2,$=_==="horizontal",I=$?{x:T,y:M}:{y:T,x:M},k=this.state.formattedGraphicalItems.find(function(L){var B=L.item;return B.type.name==="Scatter"});k&&(I=C(C({},I),k.props.points[P].tooltipPosition),E=k.props.points[P].tooltipPayload);var D={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:j,activePayload:E,activeCoordinate:I};this.setState(D),this.renderCursor(A),this.accessibilityManager.setIndex(P)}}}},{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){xl([Ue(w.children,Ze)],[Ue(this.props.children,Ze)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Ue(this.props.children,Ze);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=LS(m),_={chartX:Math.round(w.pageX-b.left),chartY:Math.round(w.pageY-b.top)},A=m.width/O.offsetWidth||1,P=this.inRange(_.chartX,_.chartY,A);if(!P)return null;var j=this.state,E=j.xAxisMap,T=j.yAxisMap,M=this.getTooltipEventType(),$=kb(this.state,this.props.data,this.props.layout,P);if(M!=="axis"&&E&&T){var I=Mt(E).scale,k=Mt(T).scale,D=I&&I.invert?I.invert(_.chartX):null,L=k&&k.invert?k.invert(_.chartY):null;return C(C({},_),{},{xValue:D,yValue:L},$)}return $?C(C({},_),$):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,A=O/m;if(b==="horizontal"||b==="vertical"){var P=this.state.offset,j=_>=P.left&&_<=P.left+P.width&&A>=P.top&&A<=P.top+P.height;return j?{x:_,y:A}:null}var E=this.state,T=E.angleAxisMap,M=E.radiusAxisMap;if(T&&M){var $=Mt(T);return zm({x:_,y:A},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=Ue(w,Ze),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 _=Ci(this.props,this.handleOuterEvent);return C(C({},_),b)}},{key:"addListener",value:function(){hl.on(pl,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){hl.removeListener(pl,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var b=this.state.formattedGraphicalItems,_=0,A=b.length;_<A;_++){var P=b[_];if(P.item===w||P.props.key===w.key||O===Ct(P.item.type)&&m===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,b=O.top,_=O.height,A=O.width;return S.createElement("defs",null,S.createElement("clipPath",{id:w},S.createElement("rect",{x:m,y:b,height:_,width:A})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=$b(m,2),_=b[0],A=b[1];return C(C({},O),{},G({},_,A.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=$b(m,2),_=b[0],A=b[1];return C(C({},O),{},G({},_,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,m=O.formattedGraphicalItems,b=O.activeItem;if(m&&m.length)for(var _=0,A=m.length;_<A;_++){var P=m[_],j=P.props,E=P.item,T=E.type.defaultProps!==void 0?C(C({},E.type.defaultProps),E.props):E.props,M=Ct(E.type);if(M==="Bar"){var $=(j.data||[]).find(function(L){return rI(w,L)});if($)return{graphicalItem:P,payload:$}}else if(M==="RadialBar"){var I=(j.data||[]).find(function(L){return zm(w,L)});if(I)return{graphicalItem:P,payload:I}}else if(oo(P,b)||uo(P,b)||Jn(P,b)){var k=Sk({graphicalItem:P,activeTooltipItem:b,itemData:T.data}),D=T.activeIndex===void 0?k:T.activeIndex;return{graphicalItem:C(C({},P),{},{childIndex:D}),payload:Jn(P,b)?T.data[k]:P.props.data[k]}}}return null}},{key:"render",value:function(){var w=this;if(!td(this))return null;var O=this.props,m=O.children,b=O.className,_=O.width,A=O.height,P=O.style,j=O.compact,E=O.title,T=O.desc,M=Cb(O,r2),$=K(M,!1);if(j)return S.createElement(hb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement(Ol,wr({},$,{width:_,height:A,title:E,desc:T}),this.renderClipPath(),nd(m,this.renderMap)));if(this.props.accessibilityLayer){var I,k;$.tabIndex=(I=this.props.tabIndex)!==null&&I!==void 0?I:0,$.role=(k=this.props.role)!==null&&k!==void 0?k:"application",$.onKeyDown=function(L){w.accessibilityManager.keyboardEvent(L)},$.onFocus=function(){w.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return S.createElement(hb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",wr({className:J("recharts-wrapper",b),style:C({position:"relative",cursor:"default",width:_,height:A},P)},D,{ref:function(B){w.container=B}}),S.createElement(Ol,wr({},$,{width:_,height:A,title:E,desc:T,style:b2}),this.renderClipPath(),nd(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(q.Component);G(y,"displayName",r),G(y,"defaultProps",C({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),G(y,"getDerivedStateFromProps",function(p,g){var x=p.dataKey,w=p.data,O=p.children,m=p.width,b=p.height,_=p.layout,A=p.stackOffset,P=p.margin,j=g.dataStartIndex,E=g.dataEndIndex;if(g.updateId===void 0){var T=Rb(p);return C(C(C({},T),{},{updateId:0},d(C(C({props:p},T),{},{updateId:0}),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:A,prevMargin:P,prevChildren:O})}if(x!==g.prevDataKey||w!==g.prevData||m!==g.prevWidth||b!==g.prevHeight||_!==g.prevLayout||A!==g.prevStackOffset||!Or(P,g.prevMargin)){var M=Rb(p),$={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},I=C(C({},kb(g,w,_)),{},{updateId:g.updateId+1}),k=C(C(C({},M),$),I);return C(C(C({},k),d(C({props:p},k),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:A,prevMargin:P,prevChildren:O})}if(!xl(O,g.prevChildren)){var D,L,B,W,V=Ue(O,Lr),U=V&&(D=(L=V.props)===null||L===void 0?void 0:L.startIndex)!==null&&D!==void 0?D:j,X=V&&(B=(W=V.props)===null||W===void 0?void 0:W.endIndex)!==null&&B!==void 0?B:E,fe=U!==j||X!==E,me=!Y(w),Be=me&&!fe?g.updateId:g.updateId+1;return C(C({updateId:Be},d(C(C({props:p},g),{},{updateId:Be,dataStartIndex:U,dataEndIndex:X}),g)),{},{prevChildren:O,dataStartIndex:U,dataEndIndex:X})}return null}),G(y,"renderActiveDot",function(p,g,x){var w;return q.isValidElement(p)?w=q.cloneElement(p,g):H(p)?w=p(g):w=S.createElement(to,g),S.createElement(te,{className:"recharts-active-dot",key:x},w)});var v=q.forwardRef(function(g,x){return S.createElement(y,wr({},g,{ref:x}))});return v.displayName=y.displayName,v},j2=Wh({chartName:"LineChart",GraphicalChild:di,axisComponents:[{axisType:"xAxis",AxisComp:Hr},{axisType:"yAxis",AxisComp:vi}],formatAxisMap:ww}),M2=Wh({chartName:"BarChart",GraphicalChild:fr,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Hr},{axisType:"yAxis",AxisComp:vi}],formatAxisMap:ww}),$2=Wh({chartName:"PieChart",GraphicalChild:Tt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:ao},{axisType:"radiusAxis",AxisComp:no}],formatAxisMap:mM,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const C2=2,I2=.62,k2=".recharts-yAxis .recharts-cartesian-axis-tick-value";function R2(e,t){return e.length*t*I2}function D2(e){return"getComputedTextLength"in e&&typeof e.getComputedTextLength=="function"}function N2(e,t){if(D2(e)){const r=e.getComputedTextLength();if(r>0)return r}return R2(e.textContent??"",t)}function q2(e,t,r){let n=0,i=null;return e.querySelectorAll(k2).forEach(a=>{const o=a.getAttribute("x");if(o===null)return;const u=Number(o);Number.isFinite(u)&&(i=u,n=Math.max(n,N2(a,r)))}),i===null?null:Math.ceil(n+(t-i)+C2)}function L2(){const e=S.useRef(null),[t,r]=S.useState(0);return S.useLayoutEffect(()=>{const n=e.current;if(!n)return;const i=()=>r(n.clientWidth);i();const a=new ResizeObserver(i);return a.observe(n),()=>a.disconnect()},[]),{ref:e,width:t}}const rO=11,B2=32;function F2(e,{type:t,data:r,height:n,containerWidth:i}){const[a,o]=S.useState(B2);return S.useLayoutEffect(()=>{const u=e.current;if(!u)return;const c=q2(u,a,rO);c!==null&&c!==a&&o(c)},[e,a,t,r,n,i]),a}const nO="hsl(var(--opencx-foreground, 240 10% 20%))",Nb=[90,70,50,30].map(e=>`color-mix(in oklch, ${nO} ${e}%, transparent)`),vl=e=>Nb[e%Nb.length]??nO,yl={borderRadius:8,border:"1px solid color-mix(in oklch, currentColor 15%, transparent)",fontSize:12};function W2({type:e,data:t,height:r,centerLabel:n}){const i=r??220,{ref:a,width:o}=L2(),u=F2(a,{type:e,data:t,height:i,containerWidth:o});if(t.length===0)return ye.jsx(z2,{height:i});const c=ye.jsx(vi,{tickLine:!1,axisLine:!1,fontSize:rO,width:u});return ye.jsx("div",{ref:a,className:"w-full text-foreground",style:{height:i},children:o>0&&(e==="pie"?ye.jsxs($2,{width:o,height:i,children:[ye.jsx(Ze,{contentStyle:yl}),ye.jsx(Zt,{verticalAlign:"bottom",iconType:"circle",iconSize:8,wrapperStyle:{fontSize:12}}),ye.jsxs(Tt,{data:t,dataKey:"value",nameKey:"label",outerRadius:"85%",innerRadius:"60%",children:[t.map((s,f)=>ye.jsx(Ua,{fill:vl(f)},f)),n&&ye.jsx(Ae,{position:"center",content:({viewBox:s})=>{if(s&&"cx"in s&&"cy"in s)return ye.jsx("text",{x:s.cx,y:s.cy,textAnchor:"middle",dominantBaseline:"middle",className:"fill-foreground text-2xl font-medium",children:n})}})]})]}):e==="line"?ye.jsxs(j2,{width:o,height:i,data:t,margin:{top:8,right:8,bottom:0,left:0},children:[ye.jsx(jf,{strokeOpacity:.15,vertical:!1}),ye.jsx(Hr,{dataKey:"label",tickLine:!1,axisLine:!1,tickMargin:10,fontSize:11}),c,ye.jsx(Ze,{contentStyle:yl}),ye.jsx(di,{type:"monotone",dataKey:"value",stroke:vl(0),strokeWidth:2,dot:!1})]}):ye.jsxs(M2,{width:o,height:i,data:t,margin:{top:8,right:8,bottom:0,left:0},children:[ye.jsx(jf,{strokeOpacity:.15,vertical:!1}),ye.jsx(Hr,{dataKey:"label",tickLine:!1,axisLine:!1,tickMargin:10,fontSize:11}),c,ye.jsx(Ze,{contentStyle:yl,cursor:{fillOpacity:.06}}),ye.jsx(fr,{dataKey:"value",fill:vl(0),radius:[4,4,0,0]})]}))})}function z2({height:e}){const{t}=iO();return ye.jsx("div",{className:"flex w-full items-center justify-center rounded-lg border border-muted-foreground/15 text-xs text-muted-foreground",style:{height:e},children:t("json_no_chart_data")})}export{W2 as default};
|