@gyramais/gyra-design 0.1.16 → 0.1.18
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.
- package/dist/components/Chart/index.js +5 -5
- package/dist/components/Chart/index.js.map +1 -1
- package/dist/components/Checkbox/index.js +7 -7
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/Collapse/index.js +3 -3
- package/dist/components/Collapse/index.js.map +1 -1
- package/dist/components/DropdownMenu/index.js +1 -1
- package/dist/components/DropdownMenu/index.js.map +1 -1
- package/dist/components/Filter/index.js +7 -7
- package/dist/components/Filter/index.js.map +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/HoverCard/index.js +1 -1
- package/dist/components/HoverCard/index.js.map +1 -1
- package/dist/components/Information/index.js +1 -1
- package/dist/components/Information/index.js.map +1 -1
- package/dist/components/Menubar/index.js +1 -1
- package/dist/components/Menubar/index.js.map +1 -1
- package/dist/components/Select/Select.d.ts +16 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.js +7 -0
- package/dist/components/Select/index.js.map +1 -0
- package/dist/components/Table/index.js +6 -6
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Tooltip/index.js.map +1 -1
- package/dist/index.css +106 -0
- package/dist/shadcn/select.d.ts +13 -0
- package/package.json +90 -90
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use client";import t,{isValidElement as e,Children as r,PureComponent as n,
|
|
1
|
+
"use client";import t,{isValidElement as e,Children as r,PureComponent as n,forwardRef as o,useRef as i,useImperativeHandle as a,useState as c,useCallback as u,useEffect as l,useMemo as s,cloneElement as f,createElement as p,useContext as h,createContext as y,Component as d}from"react";var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var b,g={exports:{}};
|
|
2
2
|
/*!
|
|
3
3
|
Copyright (c) 2018 Jed Watson.
|
|
4
4
|
Licensed under the MIT License (MIT), see
|
|
5
5
|
http://jedwatson.github.io/classnames
|
|
6
|
-
*/
|
|
6
|
+
*/b=g,function(){var t={}.hasOwnProperty;function e(){for(var t="",e=0;e<arguments.length;e++){var o=arguments[e];o&&(t=n(t,r(o)))}return t}function r(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return e.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var i in r)t.call(r,i)&&r[i]&&(o=n(o,i));return o}function n(t,e){return e?t?t+" "+e:t+e:t}b.exports?(e.default=e,b.exports=e):window.classNames=e}();var x=m(g.exports);function w(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=w(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function O(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=w(t))&&(n&&(n+=" "),n+=e);return n}var S=Array.isArray,j="object"==typeof v&&v&&v.Object===Object&&v,A=j,P="object"==typeof self&&self&&self.Object===Object&&self,E=A||P||Function("return this")(),k=E.Symbol,M=k,T=Object.prototype,_=T.hasOwnProperty,C=T.toString,I=M?M.toStringTag:void 0;var D=function(t){var e=_.call(t,I),r=t[I];try{t[I]=void 0;var n=!0}catch(t){}var o=C.call(t);return n&&(e?t[I]=r:delete t[I]),o},N=Object.prototype.toString;var B=D,R=function(t){return N.call(t)},L=k?k.toStringTag:void 0;var $=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":L&&L in Object(t)?B(t):R(t)};var z=function(t){return null!=t&&"object"==typeof t},F=$,U=z;var q=function(t){return"symbol"==typeof t||U(t)&&"[object Symbol]"==F(t)},W=S,V=q,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/;var K=function(t,e){if(W(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!V(t))||(H.test(t)||!X.test(t)||null!=e&&t in Object(e))};var G=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Y=m(G),Z=$,J=G;var Q,tt=function(t){if(!J(t))return!1;var e=Z(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},et=m(tt),rt=E["__core-js_shared__"],nt=(Q=/[^.]+$/.exec(rt&&rt.keys&&rt.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"";var ot=function(t){return!!nt&&nt in t},it=Function.prototype.toString;var at=function(t){if(null!=t){try{return it.call(t)}catch(t){}try{return t+""}catch(t){}}return""},ct=tt,ut=ot,lt=G,st=at,ft=/^\[object .+?Constructor\]$/,pt=Function.prototype,ht=Object.prototype,yt=pt.toString,dt=ht.hasOwnProperty,vt=RegExp("^"+yt.call(dt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var mt=function(t,e){return null==t?void 0:t[e]},bt=function(t){return!(!lt(t)||ut(t))&&(ct(t)?vt:ft).test(st(t))},gt=mt;var xt=function(t,e){var r=gt(t,e);return bt(r)?r:void 0},wt=xt(Object,"create"),Ot=wt;var St=function(){this.__data__=Ot?Ot(null):{},this.size=0};var jt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},At=wt,Pt=Object.prototype.hasOwnProperty;var Et=function(t){var e=this.__data__;if(At){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Pt.call(e,t)?e[t]:void 0},kt=wt,Mt=Object.prototype.hasOwnProperty;var Tt=wt;var _t=St,Ct=jt,It=Et,Dt=function(t){var e=this.__data__;return kt?void 0!==e[t]:Mt.call(e,t)},Nt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Tt&&void 0===e?"__lodash_hash_undefined__":e,this};function Bt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Bt.prototype.clear=_t,Bt.prototype.delete=Ct,Bt.prototype.get=It,Bt.prototype.has=Dt,Bt.prototype.set=Nt;var Rt=Bt;var Lt=function(){this.__data__=[],this.size=0};var $t=function(t,e){return t===e||t!=t&&e!=e},zt=$t;var Ft=function(t,e){for(var r=t.length;r--;)if(zt(t[r][0],e))return r;return-1},Ut=Ft,qt=Array.prototype.splice;var Wt=Ft;var Vt=Ft;var Xt=Ft;var Ht=Lt,Kt=function(t){var e=this.__data__,r=Ut(e,t);return!(r<0)&&(r==e.length-1?e.pop():qt.call(e,r,1),--this.size,!0)},Gt=function(t){var e=this.__data__,r=Wt(e,t);return r<0?void 0:e[r][1]},Yt=function(t){return Vt(this.__data__,t)>-1},Zt=function(t,e){var r=this.__data__,n=Xt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Jt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Jt.prototype.clear=Ht,Jt.prototype.delete=Kt,Jt.prototype.get=Gt,Jt.prototype.has=Yt,Jt.prototype.set=Zt;var Qt=Jt,te=xt(E,"Map"),ee=Rt,re=Qt,ne=te;var oe=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var ie=function(t,e){var r=t.__data__;return oe(e)?r["string"==typeof e?"string":"hash"]:r.map},ae=ie;var ce=ie;var ue=ie;var le=ie;var se=function(){this.size=0,this.__data__={hash:new ee,map:new(ne||re),string:new ee}},fe=function(t){var e=ae(this,t).delete(t);return this.size-=e?1:0,e},pe=function(t){return ce(this,t).get(t)},he=function(t){return ue(this,t).has(t)},ye=function(t,e){var r=le(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function de(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}de.prototype.clear=se,de.prototype.delete=fe,de.prototype.get=pe,de.prototype.has=he,de.prototype.set=ye;var ve=de,me=ve;function be(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(be.Cache||me),r}be.Cache=me;var ge=be,xe=m(ge),we=ge;var Oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Se=/\\(\\)?/g,je=function(t){var e=we(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Oe,(function(t,r,n,o){e.push(n?o.replace(Se,"$1"):r||t)})),e})),Ae=je;var Pe=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},Ee=Pe,ke=S,Me=q,Te=k?k.prototype:void 0,_e=Te?Te.toString:void 0;var Ce=function t(e){if("string"==typeof e)return e;if(ke(e))return Ee(e,t)+"";if(Me(e))return _e?_e.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r},Ie=Ce;var De=function(t){return null==t?"":Ie(t)},Ne=S,Be=K,Re=Ae,Le=De;var $e=function(t,e){return Ne(t)?t:Be(t,e)?[t]:Re(Le(t))},ze=q;var Fe=function(t){if("string"==typeof t||ze(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e},Ue=$e,qe=Fe;var We=function(t,e){for(var r=0,n=(e=Ue(e,t)).length;null!=t&&r<n;)t=t[qe(e[r++])];return r&&r==n?t:void 0},Ve=We;var Xe=function(t,e,r){var n=null==t?void 0:Ve(t,e);return void 0===n?r:n},He=m(Xe);var Ke=m((function(t){return null==t})),Ge=$,Ye=S,Ze=z;var Je,Qe=m((function(t){return"string"==typeof t||!Ye(t)&&Ze(t)&&"[object String]"==Ge(t)})),tr={exports:{}},er={};var rr,nr={};
|
|
7
7
|
/** @license React v16.13.1
|
|
8
8
|
* react-is.development.js
|
|
9
9
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/"production"===process.env.NODE_ENV?Ye.exports=function(){if(Ge)return Ze;Ge=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,d=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case u:case l:case n:case i:case o:case f:return t;default:switch(t=t&&t.$$typeof){case c:case s:case y:case h:case a:return t;default:return p}}case r:return p}}}function x(t){return g(t)===l}return Ze.AsyncMode=u,Ze.ConcurrentMode=l,Ze.ContextConsumer=c,Ze.ContextProvider=a,Ze.Element=e,Ze.ForwardRef=s,Ze.Fragment=n,Ze.Lazy=y,Ze.Memo=h,Ze.Portal=r,Ze.Profiler=i,Ze.StrictMode=o,Ze.Suspense=f,Ze.isAsyncMode=function(t){return x(t)||g(t)===u},Ze.isConcurrentMode=x,Ze.isContextConsumer=function(t){return g(t)===c},Ze.isContextProvider=function(t){return g(t)===a},Ze.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ze.isForwardRef=function(t){return g(t)===s},Ze.isFragment=function(t){return g(t)===n},Ze.isLazy=function(t){return g(t)===y},Ze.isMemo=function(t){return g(t)===h},Ze.isPortal=function(t){return g(t)===r},Ze.isProfiler=function(t){return g(t)===i},Ze.isStrictMode=function(t){return g(t)===o},Ze.isSuspense=function(t){return g(t)===f},Ze.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===b||t.$$typeof===d)},Ze.typeOf=g,Ze}():Ye.exports=(Je||(Je=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,d=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var d=t.type;switch(d){case u:case l:case n:case i:case o:case f:return d;default:var v=d&&d.$$typeof;switch(v){case c:case s:case y:case h:case a:return v;default:return p}}case r:return p}}}var x=u,w=l,O=c,S=a,j=e,A=s,P=n,k=y,E=h,M=r,T=i,_=o,C=f,I=!1;function D(t){return g(t)===l}Qe.AsyncMode=x,Qe.ConcurrentMode=w,Qe.ContextConsumer=O,Qe.ContextProvider=S,Qe.Element=j,Qe.ForwardRef=A,Qe.Fragment=P,Qe.Lazy=k,Qe.Memo=E,Qe.Portal=M,Qe.Profiler=T,Qe.StrictMode=_,Qe.Suspense=C,Qe.isAsyncMode=function(t){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(t)||g(t)===u},Qe.isConcurrentMode=D,Qe.isContextConsumer=function(t){return g(t)===c},Qe.isContextProvider=function(t){return g(t)===a},Qe.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Qe.isForwardRef=function(t){return g(t)===s},Qe.isFragment=function(t){return g(t)===n},Qe.isLazy=function(t){return g(t)===y},Qe.isMemo=function(t){return g(t)===h},Qe.isPortal=function(t){return g(t)===r},Qe.isProfiler=function(t){return g(t)===i},Qe.isStrictMode=function(t){return g(t)===o},Qe.isSuspense=function(t){return g(t)===f},Qe.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===b||t.$$typeof===d)},Qe.typeOf=g}()),Qe);var tr=Ye.exports,er=B,rr=L;var nr=function(t){return"number"==typeof t||rr(t)&&"[object Number]"==er(t)},or=d(nr),ir=nr;var ar=d((function(t){return ir(t)&&t!=+t})),cr=function(t){return 0===t?0:t>0?1:-1},ur=function(t){return Ke(t)&&t.indexOf("%")===t.length-1},lr=function(t){return or(t)&&!ar(t)},sr=function(t){return lr(t)||Ke(t)},fr=0,pr=function(t){var e=++fr;return"".concat(t||"").concat(e)},hr=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!lr(t)&&!Ke(t))return n;if(ur(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return ar(r)&&(r=n),o&&r>e&&(r=e),r},yr=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},dr=function(t,e){return lr(t)&&lr(e)?function(r){return t+r*(e-t)}:function(){return e}};function vr(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):We(t,e))===r})):null}function mr(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function br(t){"@babel/helpers - typeof";return br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},br(t)}var gr=["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"],xr=["points","pathLength"],wr={svg:["viewBox","children"],polygon:xr,polyline:xr},Or=["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"],Sr=function(t,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(e(t)&&(n=t.props),!G(n))return null;var o={};return Object.keys(n).forEach((function(t){Or.includes(t)&&(o[t]=r||function(e){return n[t](n,e)})})),o},jr=function(t,e,r){if(!G(t)||"object"!==br(t))return null;var n=null;return Object.keys(t).forEach((function(o){var i=t[o];Or.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t,e,r){return function(n){return t(e,r,n),null}}(i,e,r))})),n},Ar=["children"],Pr=["children"];function kr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Er(t){"@babel/helpers - typeof";return Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(t)}var Mr={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Tr=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},_r=null,Cr=null,Ir=function t(e){if(e===_r&&Array.isArray(Cr))return Cr;var n=[];return r.forEach(e,(function(e){qe(e)||(tr.isFragment(e)?n=n.concat(t(e.props.children)):n.push(e))})),Cr=n,_r=e,n};function Dr(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return Tr(t)})):[Tr(e)],Ir(t).forEach((function(t){var e=We(t,"type.displayName")||We(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function Nr(t,e){var r=Dr(t,e);return r&&r[0]}var Rr=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!lr(r)||r<=0||!lr(n)||n<=0)},Br=["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"],Lr=function(t,r,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var o=t;if(e(t)&&(o=t.props),!G(o))return null;var i={};return Object.keys(o).forEach((function(t){var e;(function(t,e,r,n){var o,i=null!==(o=null==wr?void 0:wr[n])&&void 0!==o?o:[];return!Q(t)&&(n&&i.includes(e)||gr.includes(e))||r&&Or.includes(e)})(null===(e=o)||void 0===e?void 0:e[t],t,r,n)&&(i[t]=o[t])})),i},$r=function t(e,n){if(e===n)return!0;var o=r.count(e);if(o!==r.count(n))return!1;if(0===o)return!0;if(1===o)return zr(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var i=0;i<o;i++){var a=e[i],c=n[i];if(Array.isArray(a)||Array.isArray(c)){if(!t(a,c))return!1}else if(!zr(a,c))return!1}return!0},zr=function(t,e){if(qe(t)&&qe(e))return!0;if(!qe(t)&&!qe(e)){var r=t.props||{},n=r.children,o=kr(r,Ar),i=e.props||{},a=i.children,c=kr(i,Pr);return n&&a?mr(o,c)&&$r(n,a):!n&&!a&&mr(o,c)}return!1},Fr=function(t,e){var r=[],n={};return Ir(t).forEach((function(t,o){if(function(t){return t&&t.type&&Ke(t.type)&&Br.indexOf(t.type)>=0}(t))r.push(t);else if(t){var i=Tr(t.type),a=e[i]||{},c=a.handler,u=a.once;if(c&&(!u||!n[i])){var l=c(t,i,o);r.push(l),n[i]=!0}}})),r},Ur=["children","width","height","viewBox","className","style","title","desc"];function Wr(){return Wr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Wr.apply(this,arguments)}function qr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Vr(e){var r=e.children,n=e.width,o=e.height,i=e.viewBox,a=e.className,c=e.style,u=e.title,l=e.desc,s=qr(e,Ur),f=i||{width:n,height:o,x:0,y:0},p=x("recharts-surface",a);return t.createElement("svg",Wr({},Lr(s,!0,"svg"),{className:p,width:n,height:o,style:c,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),t.createElement("title",null,u),t.createElement("desc",null,l),r)}var Xr=["children","className"];function Hr(){return Hr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hr.apply(this,arguments)}function Gr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Kr=t.forwardRef((function(e,r){var n=e.children,o=e.className,i=Gr(e,Xr),a=x("recharts-layer",o);return t.createElement("g",Hr({className:a},Lr(i,!0),{ref:r}),n)})),Yr="production"!==process.env.NODE_ENV,Zr=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(Yr&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(e.replace(/%s/g,(function(){return n[i++]})))}};var Jr=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i},Qr=Jr;var tn=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Qr(t,e,r)},en=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var rn=function(t){return en.test(t)};var nn=function(t){return t.split("")},on="\\ud800-\\udfff",an="["+on+"]",cn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",un="\\ud83c[\\udffb-\\udfff]",ln="[^"+on+"]",sn="(?:\\ud83c[\\udde6-\\uddff]){2}",fn="[\\ud800-\\udbff][\\udc00-\\udfff]",pn="(?:"+cn+"|"+un+")"+"?",hn="[\\ufe0e\\ufe0f]?",yn=hn+pn+("(?:\\u200d(?:"+[ln,sn,fn].join("|")+")"+hn+pn+")*"),dn="(?:"+[ln+cn+"?",cn,sn,fn,an].join("|")+")",vn=RegExp(un+"(?="+un+")|"+dn+yn,"g");var mn=function(t){return t.match(vn)||[]},bn=nn,gn=rn,xn=mn;var wn=function(t){return gn(t)?xn(t):bn(t)},On=tn,Sn=rn,jn=wn,An=Te;var Pn=function(t){return function(e){e=An(e);var r=Sn(e)?jn(e):void 0,n=r?r[0]:e.charAt(0),o=r?On(r,1).join(""):e.slice(1);return n[t]()+o}},kn=d(Pn("toUpperCase"));function En(t){return function(){return t}}const Mn=Math.cos,Tn=Math.sin,_n=Math.sqrt,Cn=Math.PI,In=2*Cn,Dn=Math.PI,Nn=2*Dn,Rn=1e-6,Bn=Nn-Rn;function Ln(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class $n{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Ln:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Ln;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,c=r-t,u=n-e,l=i-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>Rn)if(Math.abs(s*c-u*l)>Rn&&o){let p=r-i,h=n-a,y=c*c+u*u,d=p*p+h*h,v=Math.sqrt(y),m=Math.sqrt(f),b=o*Math.tan((Dn-Math.acos((y+f-d)/(2*v*m)))/2),g=b/m,x=b/v;Math.abs(g-1)>Rn&&this._append`L${t+g*l},${e+g*s}`,this._append`A${o},${o},0,0,${+(s*p>l*h)},${this._x1=t+x*c},${this._y1=e+x*u}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Rn||Math.abs(this._y1-l)>Rn)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Nn+Nn),f>Bn?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>Rn&&this._append`A${r},${r},0,${+(f>=Dn)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function zn(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new $n(e)}function Fn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Un(t){this._context=t}function Wn(t){return new Un(t)}function qn(t){return t[0]}function Vn(t){return t[1]}function Xn(t,e){var r=En(!0),n=null,o=Wn,i=null,a=zn(c);function c(c){var u,l,s,f=(c=Fn(c)).length,p=!1;for(null==n&&(i=o(s=a())),u=0;u<=f;++u)!(u<f&&r(l=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,u,c),+e(l,u,c));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?qn:En(t),e="function"==typeof e?e:void 0===e?Vn:En(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:En(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:En(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:En(!!t),c):r},c.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),c):o},c.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),c):n},c}function Hn(t,e,r){var n=null,o=En(!0),i=null,a=Wn,c=null,u=zn(l);function l(l){var s,f,p,h,y,d=(l=Fn(l)).length,v=!1,m=new Array(d),b=new Array(d);for(null==i&&(c=a(y=u())),s=0;s<=d;++s){if(!(s<d&&o(h=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(m[p],b[p]);c.lineEnd(),c.areaEnd()}v&&(m[s]=+t(h,s,l),b[s]=+e(h,s,l),c.point(n?+n(h,s,l):m[s],r?+r(h,s,l):b[s]))}if(y)return c=null,y+""||null}function s(){return Xn().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?qn:En(+t),e="function"==typeof e?e:En(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?Vn:En(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:En(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:En(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:En(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:En(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:En(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:En(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:En(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(c=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=c=null:c=a(i=t),l):i},l}Un.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};class Gn{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}var Kn={draw(t,e){const r=_n(e/Cn);t.moveTo(r,0),t.arc(0,0,r,0,In)}},Yn={draw(t,e){const r=_n(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}};const Zn=_n(1/3),Jn=2*Zn;var Qn={draw(t,e){const r=_n(e/Jn),n=r*Zn;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},to={draw(t,e){const r=_n(e),n=-r/2;t.rect(n,n,r,r)}};const eo=Tn(Cn/10)/Tn(7*Cn/10),ro=Tn(In/10)*eo,no=-Mn(In/10)*eo;var oo={draw(t,e){const r=_n(.8908130915292852*e),n=ro*r,o=no*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){const i=In*e/5,a=Mn(i),c=Tn(i);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*o,c*n+a*o)}t.closePath()}};const io=_n(3);var ao={draw(t,e){const r=-_n(e/(3*io));t.moveTo(0,2*r),t.lineTo(-io*r,-r),t.lineTo(io*r,-r),t.closePath()}};const co=-.5,uo=_n(3)/2,lo=1/_n(12),so=3*(lo/2+1);var fo={draw(t,e){const r=_n(e/so),n=r/2,o=r*lo,i=n,a=r*lo+r,c=-i,u=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(c,u),t.lineTo(co*n-uo*o,uo*n+co*o),t.lineTo(co*i-uo*a,uo*i+co*a),t.lineTo(co*c-uo*u,uo*c+co*u),t.lineTo(co*n+uo*o,co*o-uo*n),t.lineTo(co*i+uo*a,co*a-uo*i),t.lineTo(co*c+uo*u,co*u-uo*c),t.closePath()}};function po(){}function ho(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function yo(t){this._context=t}function vo(t){this._context=t}function mo(t){this._context=t}function bo(t){this._context=t}function go(t){return t<0?-1:1}function xo(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),c=(i*o+a*n)/(n+o);return(go(i)+go(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function wo(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Oo(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,c=(i-n)/3;t._context.bezierCurveTo(n+c,o+c*e,i-c,a-c*r,i,a)}function So(t){this._context=t}function jo(t){this._context=new Ao(t)}function Ao(t){this._context=t}function Po(t){this._context=t}function ko(t){var e,r,n=t.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function Eo(t,e){this._context=t,this._t=e}function Mo(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],c=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function To(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function _o(t,e){return t[e]}function Co(t){const e=[];return e.key=t,e}function Io(t){"@babel/helpers - typeof";return Io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Io(t)}yo.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:ho(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:ho(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},vo.prototype={areaStart:po,areaEnd:po,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)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ho(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},mo.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ho(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},bo.prototype={areaStart:po,areaEnd:po,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},So.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:Oo(this,this._t0,wo(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Oo(this,wo(this,r=xo(this,t,e)),r);break;default:Oo(this,this._t0,r=xo(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(jo.prototype=Object.create(So.prototype)).point=function(t,e){So.prototype.point.call(this,e,t)},Ao.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,o,i){this._context.bezierCurveTo(e,t,n,r,i,o)}},Po.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=ko(t),o=ko(e),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Eo.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var Do=["type","size","sizeType"];function No(){return No=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},No.apply(this,arguments)}function Ro(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ro(Object(r),!0).forEach((function(e){Lo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ro(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Lo(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Io(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Io(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Io(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $o(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var zo={symbolCircle:Kn,symbolCross:Yn,symbolDiamond:Qn,symbolSquare:to,symbolStar:oo,symbolTriangle:ao,symbolWye:fo},Fo=Math.PI/180,Uo=function(e){var r,n,o=e.type,i=void 0===o?"circle":o,a=e.size,c=void 0===a?64:a,u=e.sizeType,l=void 0===u?"area":u,s=Bo(Bo({},$o(e,Do)),{},{type:i,size:c,sizeType:l}),f=s.className,p=s.cx,h=s.cy,y=Lr(s,!0);return p===+p&&h===+h&&c===+c?t.createElement("path",No({},y,{className:x("recharts-symbols",f),transform:"translate(".concat(p,", ").concat(h,")"),d:(r=function(t){var e="symbol".concat(kn(t));return zo[e]||Kn}(i),n=function(t,e){let r=null,n=zn(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:En(t||Kn),e="function"==typeof e?e:En(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:En(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:En(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}().type(r).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*Fo;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(c,l,i)),n())})):null};function Wo(t){"@babel/helpers - typeof";return Wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wo(t)}function qo(){return qo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qo.apply(this,arguments)}function Vo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xo(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Zo(n.key),n)}}function Ho(t,e){return Ho=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ho(t,e)}function Go(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Ko(t);if(e){var o=Ko(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Wo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function Ko(t){return Ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ko(t)}function Yo(t,e,r){return(e=Zo(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zo(t){var e=function(t,e){if("object"!==Wo(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Wo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Wo(e)?e:String(e)}Uo.registerSymbol=function(t,e){zo["symbol".concat(kn(t))]=e};var Jo=32,Qo=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ho(t,e)}(c,n);var r,o,i,a=Go(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return r=c,o=[{key:"renderIcon",value:function(e){var r=this.props.inactiveColor,n=16,o=Jo/6,i=Jo/3,a=e.inactive?r:e.color;if("plainline"===e.type)return t.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:Jo,y2:n,className:"recharts-legend-icon"});if("line"===e.type)return t.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(Jo,"M").concat(2*i,",").concat(n,"\n A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===e.type)return t.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(Jo,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(t.isValidElement(e.legendIcon)){var c=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Vo(Object(r),!0).forEach((function(e){Yo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vo(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e);return delete c.legendIcon,t.cloneElement(e.legendIcon,c)}return t.createElement(Uo,{fill:a,cx:n,cy:n,size:Jo,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,r=this.props,n=r.payload,o=r.iconSize,i=r.layout,a=r.formatter,c=r.inactiveColor,u={x:0,y:0,width:Jo,height:Jo},l={display:"horizontal"===i?"inline-block":"block",marginRight:10},s={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(r,n){var i,f=r.formatter||a,p=x((Yo(i={"recharts-legend-item":!0},"legend-item-".concat(n),!0),Yo(i,"inactive",r.inactive),i));if("none"===r.type)return null;var h=Q(r.value)?null:r.value;Zr(!Q(r.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 y=r.inactive?c:r.color;return t.createElement("li",qo({className:p,style:l,key:"legend-item-".concat(n)},jr(e.props,r,n)),t.createElement(Vr,{width:o,height:o,viewBox:u,style:s},e.renderIcon(r)),t.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},f?f(h,r,n):h))}))}},{key:"render",value:function(){var e=this.props,r=e.payload,n=e.layout,o=e.align;if(!r||!r.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?o:"left"};return t.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],o&&Xo(r.prototype,o),i&&Xo(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();Yo(Qo,"displayName","Legend"),Yo(Qo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ti=Zt;var ei=Zt,ri=Jt,ni=ye;var oi=Zt,ii=function(){this.__data__=new ti,this.size=0},ai=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},ci=function(t){return this.__data__.get(t)},ui=function(t){return this.__data__.has(t)},li=function(t,e){var r=this.__data__;if(r instanceof ei){var n=r.__data__;if(!ri||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new ni(n)}return r.set(t,e),this.size=r.size,this};function si(t){var e=this.__data__=new oi(t);this.size=e.size}si.prototype.clear=ii,si.prototype.delete=ai,si.prototype.get=ci,si.prototype.has=ui,si.prototype.set=li;var fi=si;var pi=ye,hi=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},yi=function(t){return this.__data__.has(t)};function di(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new pi;++e<r;)this.add(t[e])}di.prototype.add=di.prototype.push=hi,di.prototype.has=yi;var vi=di;var mi=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var bi=function(t,e){return t.has(e)},gi=vi,xi=mi,wi=bi;var Oi=function(t,e,r,n,o,i){var a=1&r,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var l=i.get(t),s=i.get(e);if(l&&s)return l==e&&s==t;var f=-1,p=!0,h=2&r?new gi:void 0;for(i.set(t,e),i.set(e,t);++f<c;){var y=t[f],d=e[f];if(n)var v=a?n(d,y,f,e,t,i):n(y,d,f,t,e,i);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!xi(e,(function(t,e){if(!wi(h,e)&&(y===t||o(y,t,r,n,i)))return h.push(e)}))){p=!1;break}}else if(y!==d&&!o(y,d,r,n,i)){p=!1;break}}return i.delete(t),i.delete(e),p};var Si=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r};var ji=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r},Ai=A.Uint8Array,Pi=Bt,ki=Oi,Ei=Si,Mi=ji,Ti=P?P.prototype:void 0,_i=Ti?Ti.valueOf:void 0;var Ci=function(t,e,r,n,o,i,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Ai(t),new Ai(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Pi(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var c=Ei;case"[object Set]":var u=1&n;if(c||(c=Mi),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=2,a.set(t,e);var s=ki(c(t),c(e),n,o,i,a);return a.delete(t),s;case"[object Symbol]":if(_i)return _i.call(t)==_i.call(e)}return!1};var Ii=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},Di=Ii,Ni=w;var Ri=function(t,e,r){var n=e(t);return Ni(t)?n:Di(n,r(t))};var Bi=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i};var Li=Bi,$i=function(){return[]},zi=Object.prototype.propertyIsEnumerable,Fi=Object.getOwnPropertySymbols,Ui=Fi?function(t){return null==t?[]:(t=Object(t),Li(Fi(t),(function(e){return zi.call(t,e)})))}:$i,Wi=Ui;var qi=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},Vi=B,Xi=L;var Hi=function(t){return Xi(t)&&"[object Arguments]"==Vi(t)},Gi=L,Ki=Object.prototype,Yi=Ki.hasOwnProperty,Zi=Ki.propertyIsEnumerable,Ji=Hi(function(){return arguments}())?Hi:function(t){return Gi(t)&&Yi.call(t,"callee")&&!Zi.call(t,"callee")},Qi={exports:{}};var ta=function(){return!1};!function(t,e){var r=A,n=ta,o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;t.exports=c}(Qi,Qi.exports);var ea=Qi.exports,ra=/^(?:0|[1-9]\d*)$/;var na=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&ra.test(t))&&t>-1&&t%1==0&&t<e};var oa=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},ia=B,aa=oa,ca=L,ua={};ua["[object Float32Array]"]=ua["[object Float64Array]"]=ua["[object Int8Array]"]=ua["[object Int16Array]"]=ua["[object Int32Array]"]=ua["[object Uint8Array]"]=ua["[object Uint8ClampedArray]"]=ua["[object Uint16Array]"]=ua["[object Uint32Array]"]=!0,ua["[object Arguments]"]=ua["[object Array]"]=ua["[object ArrayBuffer]"]=ua["[object Boolean]"]=ua["[object DataView]"]=ua["[object Date]"]=ua["[object Error]"]=ua["[object Function]"]=ua["[object Map]"]=ua["[object Number]"]=ua["[object Object]"]=ua["[object RegExp]"]=ua["[object Set]"]=ua["[object String]"]=ua["[object WeakMap]"]=!1;var la=function(t){return ca(t)&&aa(t.length)&&!!ua[ia(t)]};var sa=function(t){return function(e){return t(e)}},fa={exports:{}};!function(t,e){var r=O,n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a}(fa,fa.exports);var pa=fa.exports,ha=la,ya=sa,da=pa&&pa.isTypedArray,va=da?ya(da):ha,ma=qi,ba=Ji,ga=w,xa=ea,wa=na,Oa=va,Sa=Object.prototype.hasOwnProperty;var ja=function(t,e){var r=ga(t),n=!r&&ba(t),o=!r&&!n&&xa(t),i=!r&&!n&&!o&&Oa(t),a=r||n||o||i,c=a?ma(t.length,String):[],u=c.length;for(var l in t)!e&&!Sa.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||wa(l,u))||c.push(l);return c},Aa=Object.prototype;var Pa=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Aa)};var ka=function(t,e){return function(r){return t(e(r))}},Ea=ka(Object.keys,Object),Ma=Pa,Ta=Ea,_a=Object.prototype.hasOwnProperty;var Ca=function(t){if(!Ma(t))return Ta(t);var e=[];for(var r in Object(t))_a.call(t,r)&&"constructor"!=r&&e.push(r);return e},Ia=J,Da=oa;var Na=function(t){return null!=t&&Da(t.length)&&!Ia(t)},Ra=ja,Ba=Ca,La=Na;var $a=function(t){return La(t)?Ra(t):Ba(t)},za=Ri,Fa=Wi,Ua=$a;var Wa=function(t){return za(t,Ua,Fa)},qa=Wa,Va=Object.prototype.hasOwnProperty;var Xa=function(t,e,r,n,o,i){var a=1&r,c=qa(t),u=c.length;if(u!=qa(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:Va.call(e,s)))return!1}var f=i.get(t),p=i.get(e);if(f&&p)return f==e&&p==t;var h=!0;i.set(t,e),i.set(e,t);for(var y=a;++l<u;){var d=t[s=c[l]],v=e[s];if(n)var m=a?n(v,d,s,e,t,i):n(d,v,s,t,e,i);if(!(void 0===m?d===v||o(d,v,r,n,i):m)){h=!1;break}y||(y="constructor"==s)}if(h&&!y){var b=t.constructor,g=e.constructor;b==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g||(h=!1)}return i.delete(t),i.delete(e),h},Ha=bt(A,"DataView"),Ga=bt(A,"Promise"),Ka=bt(A,"Set"),Ya=Ha,Za=Jt,Ja=Ga,Qa=Ka,tc=bt(A,"WeakMap"),ec=B,rc=ot,nc="[object Map]",oc="[object Promise]",ic="[object Set]",ac="[object WeakMap]",cc="[object DataView]",uc=rc(Ya),lc=rc(Za),sc=rc(Ja),fc=rc(Qa),pc=rc(tc),hc=ec;(Ya&&hc(new Ya(new ArrayBuffer(1)))!=cc||Za&&hc(new Za)!=nc||Ja&&hc(Ja.resolve())!=oc||Qa&&hc(new Qa)!=ic||tc&&hc(new tc)!=ac)&&(hc=function(t){var e=ec(t),r="[object Object]"==e?t.constructor:void 0,n=r?rc(r):"";if(n)switch(n){case uc:return cc;case lc:return nc;case sc:return oc;case fc:return ic;case pc:return ac}return e});var yc=fi,dc=Oi,vc=Ci,mc=Xa,bc=hc,gc=w,xc=ea,wc=va,Oc="[object Arguments]",Sc="[object Array]",jc="[object Object]",Ac=Object.prototype.hasOwnProperty;var Pc=function(t,e,r,n,o,i){var a=gc(t),c=gc(e),u=a?Sc:bc(t),l=c?Sc:bc(e),s=(u=u==Oc?jc:u)==jc,f=(l=l==Oc?jc:l)==jc,p=u==l;if(p&&xc(t)){if(!xc(e))return!1;a=!0,s=!1}if(p&&!s)return i||(i=new yc),a||wc(t)?dc(t,e,r,n,o,i):vc(t,e,u,r,n,o,i);if(!(1&r)){var h=s&&Ac.call(t,"__wrapped__"),y=f&&Ac.call(e,"__wrapped__");if(h||y){var d=h?t.value():t,v=y?e.value():e;return i||(i=new yc),o(d,v,r,n,i)}}return!!p&&(i||(i=new yc),mc(t,e,r,n,o,i))},kc=Pc,Ec=L;var Mc=function t(e,r,n,o,i){return e===r||(null==e||null==r||!Ec(e)&&!Ec(r)?e!=e&&r!=r:kc(e,r,n,o,t,i))},Tc=fi,_c=Mc;var Cc=function(t,e,r,n){var o=r.length,i=o,a=!n;if(null==t)return!i;for(t=Object(t);o--;){var c=r[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var u=(c=r[o])[0],l=t[u],s=c[1];if(a&&c[2]){if(void 0===l&&!(u in t))return!1}else{var f=new Tc;if(n)var p=n(l,s,u,t,e,f);if(!(void 0===p?_c(s,l,3,n,f):p))return!1}}return!0},Ic=H;var Dc=function(t){return t==t&&!Ic(t)},Nc=Dc,Rc=$a;var Bc=function(t){for(var e=Rc(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,Nc(o)]}return e};var Lc=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},$c=Cc,zc=Bc,Fc=Lc;var Uc=function(t){var e=zc(t);return 1==e.length&&e[0][2]?Fc(e[0][0],e[0][1]):function(r){return r===t||$c(r,t,e)}};var Wc=function(t,e){return null!=t&&e in Object(t)},qc=Ne,Vc=Ji,Xc=w,Hc=na,Gc=oa,Kc=Be;var Yc=function(t,e,r){for(var n=-1,o=(e=qc(e,t)).length,i=!1;++n<o;){var a=Kc(e[n]);if(!(i=null!=t&&r(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&Gc(o)&&Hc(a,o)&&(Xc(t)||Vc(t))},Zc=Wc,Jc=Yc;var Qc=function(t,e){return null!=t&&Jc(t,e,Zc)},tu=Mc,eu=Ue,ru=Qc,nu=X,ou=Dc,iu=Lc,au=Be;var cu=function(t,e){return nu(t)&&ou(e)?iu(au(t),e):function(r){var n=eu(r,t);return void 0===n&&n===e?ru(r,t):tu(e,n,3)}};var uu=function(t){return t};var lu=function(t){return function(e){return null==e?void 0:e[t]}},su=ze;var fu=function(t){return function(e){return su(e,t)}},pu=lu,hu=fu,yu=X,du=Be;var vu=Uc,mu=cu,bu=uu,gu=w,xu=function(t){return yu(t)?pu(du(t)):hu(t)};var wu=function(t){return"function"==typeof t?t:null==t?bu:"object"==typeof t?gu(t)?mu(t[0],t[1]):vu(t):xu(t)};var Ou=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1};var Su=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1},ju=Ou,Au=function(t){return t!=t},Pu=Su;var ku=function(t,e,r){return e==e?Pu(t,e,r):ju(t,Au,r)},Eu=ku;var Mu=function(t,e){return!!(null==t?0:t.length)&&Eu(t,e,0)>-1};var Tu=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1};var _u=Ka,Cu=function(){},Iu=_u&&1/ji(new _u([,-0]))[1]==1/0?function(t){return new _u(t)}:Cu,Du=vi,Nu=Mu,Ru=Tu,Bu=bi,Lu=Iu,$u=ji;var zu=function(t,e,r){var n=-1,o=Nu,i=t.length,a=!0,c=[],u=c;if(r)a=!1,o=Ru;else if(i>=200){var l=e?null:Lu(t);if(l)return $u(l);a=!1,o=Bu,u=new Du}else u=e?[]:c;t:for(;++n<i;){var s=t[n],f=e?e(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue t;e&&u.push(f),c.push(s)}else o(u,f,r)||(u!==c&&u.push(f),c.push(s))}return c},Fu=wu,Uu=zu;var Wu=function(t,e){return t&&t.length?Uu(t,Fu(e)):[]},qu=d(Wu);function Vu(t,e,r){return!0===e?qu(t,r):Q(e)?qu(t,e):t}function Xu(t){"@babel/helpers - typeof";return Xu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xu(t)}var Hu=["ref"];function Gu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ku(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gu(Object(r),!0).forEach((function(e){el(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yu(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,rl(n.key),n)}}function Zu(t,e){return Zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Zu(t,e)}function Ju(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=tl(t);if(e){var o=tl(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Xu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Qu(t)}(this,r)}}function Qu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tl(t){return tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tl(t)}function el(t,e,r){return(e=rl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rl(t){var e=function(t,e){if("object"!==Xu(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Xu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Xu(e)?e:String(e)}function nl(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ol(t){return t.value}var il=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zu(t,e)}(c,n);var r,o,i,a=Ju(c);function c(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return el(Qu(t=a.call.apply(a,[this].concat(r))),"lastBoundingBox",{width:-1,height:-1}),t}return r=c,i=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&lr(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(o=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e))}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ku({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Ku(Ku({},e),r)}},{key:"render",value:function(){var e=this,r=this.props,n=r.content,o=r.width,i=r.height,a=r.wrapperStyle,c=r.payloadUniqBy,u=r.payload,l=Ku(Ku({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return t.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,r){if(t.isValidElement(e))return t.cloneElement(e,r);if("function"==typeof e)return t.createElement(e,r);r.ref;var n=nl(r,Hu);return t.createElement(Qo,n)}(n,Ku(Ku({},this.props),{},{payload:Vu(u,c,ol)})))}}])&&Yu(r.prototype,o),i&&Yu(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();el(il,"displayName","Legend"),el(il,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var al=Ji,cl=w,ul=P?P.isConcatSpreadable:void 0;var ll=Ii,sl=function(t){return cl(t)||al(t)||!!(ul&&t&&t[ul])};var fl=function t(e,r,n,o,i){var a=-1,c=e.length;for(n||(n=sl),i||(i=[]);++a<c;){var u=e[a];r>0&&n(u)?r>1?t(u,r-1,n,o,i):ll(i,u):o||(i[i.length]=u)}return i};var pl=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}},hl=pl(),yl=$a;var dl=function(t,e){return t&&hl(t,e,yl)},vl=Na;var ml=function(t,e){return function(r,n){if(null==r)return r;if(!vl(r))return t(r,n);for(var o=r.length,i=e?o:-1,a=Object(r);(e?i--:++i<o)&&!1!==n(a[i],i,a););return r}}(dl),bl=ml,gl=Na;var xl=function(t,e){var r=-1,n=gl(t)?Array(t.length):[];return bl(t,(function(t,o,i){n[++r]=e(t,o,i)})),n};var wl=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},Ol=F;var Sl=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,o=t==t,i=Ol(t),a=void 0!==e,c=null===e,u=e==e,l=Ol(e);if(!c&&!l&&!i&&t>e||i&&a&&u&&!c&&!l||n&&a&&u||!r&&u||!o)return 1;if(!n&&!i&&!l&&t<e||l&&r&&o&&!n&&!i||c&&r&&o||!a&&o||!u)return-1}return 0};var jl=function(t,e,r){for(var n=-1,o=t.criteria,i=e.criteria,a=o.length,c=r.length;++n<a;){var u=Sl(o[n],i[n]);if(u)return n>=c?u:u*("desc"==r[n]?-1:1)}return t.index-e.index},Al=Oe,Pl=ze,kl=wu,El=xl,Ml=wl,Tl=sa,_l=jl,Cl=uu,Il=w;var Dl=function(t,e,r){e=e.length?Al(e,(function(t){return Il(t)?function(e){return Pl(e,1===t.length?t[0]:t)}:t})):[Cl];var n=-1;e=Al(e,Tl(kl));var o=El(t,(function(t,r,o){return{criteria:Al(e,(function(e){return e(t)})),index:++n,value:t}}));return Ml(o,(function(t,e){return _l(t,e,r)}))};var Nl=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)},Rl=Math.max;var Bl=function(t,e,r){return e=Rl(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=Rl(n.length-e,0),a=Array(i);++o<i;)a[o]=n[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=n[o];return c[e]=r(a),Nl(t,this,c)}};var Ll=function(t){return function(){return t}},$l=bt,zl=function(){try{var t=$l(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Fl=Ll,Ul=zl,Wl=Ul?function(t,e){return Ul(t,"toString",{configurable:!0,enumerable:!1,value:Fl(e),writable:!0})}:uu,ql=Wl,Vl=Date.now;var Xl=function(t){var e=0,r=0;return function(){var n=Vl(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ql),Hl=uu,Gl=Bl,Kl=Xl;var Yl=Bt,Zl=Na,Jl=na,Ql=H;var ts=function(t,e,r){if(!Ql(r))return!1;var n=typeof e;return!!("number"==n?Zl(r)&&Jl(e,r.length):"string"==n&&e in r)&&Yl(r[e],t)},es=fl,rs=Dl,ns=ts,os=d(function(t,e){return Kl(Gl(t,e,Hl),t+"")}((function(t,e){if(null==t)return[];var r=e.length;return r>1&&ns(t,e[0],e[1])?e=[]:r>2&&ns(e[0],e[1],e[2])&&(e=[e[0]]),rs(t,es(e,1),[])})));function is(t){"@babel/helpers - typeof";return is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},is(t)}function as(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return cs(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cs(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cs(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function us(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ls(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?us(Object(r),!0).forEach((function(e){ss(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):us(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ss(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==is(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==is(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===is(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fs(t){return Array.isArray(t)&&sr(t[0])&&sr(t[1])?t.join(" ~ "):t}var ps,hs=function(e){var r=e.separator,n=void 0===r?" : ":r,o=e.contentStyle,i=void 0===o?{}:o,a=e.itemStyle,c=void 0===a?{}:a,u=e.labelStyle,l=void 0===u?{}:u,s=e.payload,f=e.formatter,p=e.itemSorter,h=e.wrapperClassName,y=e.labelClassName,d=e.label,v=e.labelFormatter,m=ls({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),b=ls({margin:0},l),g=!qe(d),w=g?d:"",O=x("recharts-default-tooltip",h),S=x("recharts-tooltip-label",y);return g&&v&&null!=s&&(w=v(d,s)),t.createElement("div",{className:O,style:m},t.createElement("p",{className:S,style:b},t.isValidElement(w)?w:"".concat(w)),function(){if(s&&s.length){var e=(p?os(s,p):s).map((function(e,r){if("none"===e.type)return null;var o=ls({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},c),i=e.formatter||f||fs,a=e.value,u=e.name,l=a,p=u;if(i&&null!=l&&null!=p){var h=i(a,u,e,r,s);if(Array.isArray(h)){var y=as(h,2);l=y[0],p=y[1]}else l=h}return t.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(r),style:o},sr(p)?t.createElement("span",{className:"recharts-tooltip-item-name"},p):null,sr(p)?t.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,t.createElement("span",{className:"recharts-tooltip-item-value"},l),t.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return t.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())},ys={exports:{}},ds={exports:{}},vs={};var ms,bs,gs,xs,ws,Os,Ss,js,As,Ps,ks,Es,Ms,Ts,_s={};
|
|
14
|
+
*/"production"===process.env.NODE_ENV?tr.exports=function(){if(Je)return er;Je=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,d=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case u:case l:case n:case i:case o:case f:return t;default:switch(t=t&&t.$$typeof){case c:case s:case y:case h:case a:return t;default:return p}}case r:return p}}}function x(t){return g(t)===l}return er.AsyncMode=u,er.ConcurrentMode=l,er.ContextConsumer=c,er.ContextProvider=a,er.Element=e,er.ForwardRef=s,er.Fragment=n,er.Lazy=y,er.Memo=h,er.Portal=r,er.Profiler=i,er.StrictMode=o,er.Suspense=f,er.isAsyncMode=function(t){return x(t)||g(t)===u},er.isConcurrentMode=x,er.isContextConsumer=function(t){return g(t)===c},er.isContextProvider=function(t){return g(t)===a},er.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},er.isForwardRef=function(t){return g(t)===s},er.isFragment=function(t){return g(t)===n},er.isLazy=function(t){return g(t)===y},er.isMemo=function(t){return g(t)===h},er.isPortal=function(t){return g(t)===r},er.isProfiler=function(t){return g(t)===i},er.isStrictMode=function(t){return g(t)===o},er.isSuspense=function(t){return g(t)===f},er.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===b||t.$$typeof===d)},er.typeOf=g,er}():tr.exports=(rr||(rr=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,d=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var d=t.type;switch(d){case u:case l:case n:case i:case o:case f:return d;default:var v=d&&d.$$typeof;switch(v){case c:case s:case y:case h:case a:return v;default:return p}}case r:return p}}}var x=u,w=l,O=c,S=a,j=e,A=s,P=n,E=y,k=h,M=r,T=i,_=o,C=f,I=!1;function D(t){return g(t)===l}nr.AsyncMode=x,nr.ConcurrentMode=w,nr.ContextConsumer=O,nr.ContextProvider=S,nr.Element=j,nr.ForwardRef=A,nr.Fragment=P,nr.Lazy=E,nr.Memo=k,nr.Portal=M,nr.Profiler=T,nr.StrictMode=_,nr.Suspense=C,nr.isAsyncMode=function(t){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(t)||g(t)===u},nr.isConcurrentMode=D,nr.isContextConsumer=function(t){return g(t)===c},nr.isContextProvider=function(t){return g(t)===a},nr.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},nr.isForwardRef=function(t){return g(t)===s},nr.isFragment=function(t){return g(t)===n},nr.isLazy=function(t){return g(t)===y},nr.isMemo=function(t){return g(t)===h},nr.isPortal=function(t){return g(t)===r},nr.isProfiler=function(t){return g(t)===i},nr.isStrictMode=function(t){return g(t)===o},nr.isSuspense=function(t){return g(t)===f},nr.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===b||t.$$typeof===d)},nr.typeOf=g}()),nr);var or=tr.exports,ir=$,ar=z;var cr=function(t){return"number"==typeof t||ar(t)&&"[object Number]"==ir(t)},ur=m(cr),lr=cr;var sr=m((function(t){return lr(t)&&t!=+t})),fr=function(t){return 0===t?0:t>0?1:-1},pr=function(t){return Qe(t)&&t.indexOf("%")===t.length-1},hr=function(t){return ur(t)&&!sr(t)},yr=function(t){return hr(t)||Qe(t)},dr=0,vr=function(t){var e=++dr;return"".concat(t||"").concat(e)},mr=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!hr(t)&&!Qe(t))return n;if(pr(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return sr(r)&&(r=n),o&&r>e&&(r=e),r},br=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},gr=function(t,e){return hr(t)&&hr(e)?function(r){return t+r*(e-t)}:function(){return e}};function xr(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):He(t,e))===r})):null}function wr(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function Or(t){"@babel/helpers - typeof";return Or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Or(t)}var Sr=["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"],jr=["points","pathLength"],Ar={svg:["viewBox","children"],polygon:jr,polyline:jr},Pr=["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"],Er=function(t,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(e(t)&&(n=t.props),!Y(n))return null;var o={};return Object.keys(n).forEach((function(t){Pr.includes(t)&&(o[t]=r||function(e){return n[t](n,e)})})),o},kr=function(t,e,r){if(!Y(t)||"object"!==Or(t))return null;var n=null;return Object.keys(t).forEach((function(o){var i=t[o];Pr.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t,e,r){return function(n){return t(e,r,n),null}}(i,e,r))})),n},Mr=["children"],Tr=["children"];function _r(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Cr(t){"@babel/helpers - typeof";return Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(t)}var Ir={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Dr=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},Nr=null,Br=null,Rr=function t(e){if(e===Nr&&Array.isArray(Br))return Br;var n=[];return r.forEach(e,(function(e){Ke(e)||(or.isFragment(e)?n=n.concat(t(e.props.children)):n.push(e))})),Br=n,Nr=e,n};function Lr(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return Dr(t)})):[Dr(e)],Rr(t).forEach((function(t){var e=He(t,"type.displayName")||He(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function $r(t,e){var r=Lr(t,e);return r&&r[0]}var zr=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!hr(r)||r<=0||!hr(n)||n<=0)},Fr=["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"],Ur=function(t,r,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var o=t;if(e(t)&&(o=t.props),!Y(o))return null;var i={};return Object.keys(o).forEach((function(t){var e;(function(t,e,r,n){var o,i=null!==(o=null==Ar?void 0:Ar[n])&&void 0!==o?o:[];return!et(t)&&(n&&i.includes(e)||Sr.includes(e))||r&&Pr.includes(e)})(null===(e=o)||void 0===e?void 0:e[t],t,r,n)&&(i[t]=o[t])})),i},qr=function t(e,n){if(e===n)return!0;var o=r.count(e);if(o!==r.count(n))return!1;if(0===o)return!0;if(1===o)return Wr(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var i=0;i<o;i++){var a=e[i],c=n[i];if(Array.isArray(a)||Array.isArray(c)){if(!t(a,c))return!1}else if(!Wr(a,c))return!1}return!0},Wr=function(t,e){if(Ke(t)&&Ke(e))return!0;if(!Ke(t)&&!Ke(e)){var r=t.props||{},n=r.children,o=_r(r,Mr),i=e.props||{},a=i.children,c=_r(i,Tr);return n&&a?wr(o,c)&&qr(n,a):!n&&!a&&wr(o,c)}return!1},Vr=function(t,e){var r=[],n={};return Rr(t).forEach((function(t,o){if(function(t){return t&&t.type&&Qe(t.type)&&Fr.indexOf(t.type)>=0}(t))r.push(t);else if(t){var i=Dr(t.type),a=e[i]||{},c=a.handler,u=a.once;if(c&&(!u||!n[i])){var l=c(t,i,o);r.push(l),n[i]=!0}}})),r},Xr=["children","width","height","viewBox","className","style","title","desc"];function Hr(){return Hr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hr.apply(this,arguments)}function Kr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Gr(e){var r=e.children,n=e.width,o=e.height,i=e.viewBox,a=e.className,c=e.style,u=e.title,l=e.desc,s=Kr(e,Xr),f=i||{width:n,height:o,x:0,y:0},p=O("recharts-surface",a);return t.createElement("svg",Hr({},Ur(s,!0,"svg"),{className:p,width:n,height:o,style:c,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),t.createElement("title",null,u),t.createElement("desc",null,l),r)}var Yr=["children","className"];function Zr(){return Zr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Zr.apply(this,arguments)}function Jr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Qr=t.forwardRef((function(e,r){var n=e.children,o=e.className,i=Jr(e,Yr),a=O("recharts-layer",o);return t.createElement("g",Zr({className:a},Ur(i,!0),{ref:r}),n)})),tn="production"!==process.env.NODE_ENV,en=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(tn&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(e.replace(/%s/g,(function(){return n[i++]})))}};var rn=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i},nn=rn;var on=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:nn(t,e,r)},an=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var cn=function(t){return an.test(t)};var un=function(t){return t.split("")},ln="\\ud800-\\udfff",sn="["+ln+"]",fn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",pn="\\ud83c[\\udffb-\\udfff]",hn="[^"+ln+"]",yn="(?:\\ud83c[\\udde6-\\uddff]){2}",dn="[\\ud800-\\udbff][\\udc00-\\udfff]",vn="(?:"+fn+"|"+pn+")"+"?",mn="[\\ufe0e\\ufe0f]?",bn=mn+vn+("(?:\\u200d(?:"+[hn,yn,dn].join("|")+")"+mn+vn+")*"),gn="(?:"+[hn+fn+"?",fn,yn,dn,sn].join("|")+")",xn=RegExp(pn+"(?="+pn+")|"+gn+bn,"g");var wn=function(t){return t.match(xn)||[]},On=un,Sn=cn,jn=wn;var An=function(t){return Sn(t)?jn(t):On(t)},Pn=on,En=cn,kn=An,Mn=De;var Tn=function(t){return function(e){e=Mn(e);var r=En(e)?kn(e):void 0,n=r?r[0]:e.charAt(0),o=r?Pn(r,1).join(""):e.slice(1);return n[t]()+o}},_n=m(Tn("toUpperCase"));function Cn(t){return function(){return t}}const In=Math.cos,Dn=Math.sin,Nn=Math.sqrt,Bn=Math.PI,Rn=2*Bn,Ln=Math.PI,$n=2*Ln,zn=1e-6,Fn=$n-zn;function Un(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class qn{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Un:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Un;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,c=r-t,u=n-e,l=i-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>zn)if(Math.abs(s*c-u*l)>zn&&o){let p=r-i,h=n-a,y=c*c+u*u,d=p*p+h*h,v=Math.sqrt(y),m=Math.sqrt(f),b=o*Math.tan((Ln-Math.acos((y+f-d)/(2*v*m)))/2),g=b/m,x=b/v;Math.abs(g-1)>zn&&this._append`L${t+g*l},${e+g*s}`,this._append`A${o},${o},0,0,${+(s*p>l*h)},${this._x1=t+x*c},${this._y1=e+x*u}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>zn||Math.abs(this._y1-l)>zn)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%$n+$n),f>Fn?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>zn&&this._append`A${r},${r},0,${+(f>=Ln)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function Wn(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new qn(e)}function Vn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Xn(t){this._context=t}function Hn(t){return new Xn(t)}function Kn(t){return t[0]}function Gn(t){return t[1]}function Yn(t,e){var r=Cn(!0),n=null,o=Hn,i=null,a=Wn(c);function c(c){var u,l,s,f=(c=Vn(c)).length,p=!1;for(null==n&&(i=o(s=a())),u=0;u<=f;++u)!(u<f&&r(l=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,u,c),+e(l,u,c));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?Kn:Cn(t),e="function"==typeof e?e:void 0===e?Gn:Cn(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:Cn(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:Cn(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:Cn(!!t),c):r},c.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),c):o},c.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),c):n},c}function Zn(t,e,r){var n=null,o=Cn(!0),i=null,a=Hn,c=null,u=Wn(l);function l(l){var s,f,p,h,y,d=(l=Vn(l)).length,v=!1,m=new Array(d),b=new Array(d);for(null==i&&(c=a(y=u())),s=0;s<=d;++s){if(!(s<d&&o(h=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(m[p],b[p]);c.lineEnd(),c.areaEnd()}v&&(m[s]=+t(h,s,l),b[s]=+e(h,s,l),c.point(n?+n(h,s,l):m[s],r?+r(h,s,l):b[s]))}if(y)return c=null,y+""||null}function s(){return Yn().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?Kn:Cn(+t),e="function"==typeof e?e:Cn(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?Gn:Cn(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Cn(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Cn(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Cn(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Cn(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Cn(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Cn(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:Cn(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(c=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=c=null:c=a(i=t),l):i},l}Xn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};class Jn{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}var Qn={draw(t,e){const r=Nn(e/Bn);t.moveTo(r,0),t.arc(0,0,r,0,Rn)}},to={draw(t,e){const r=Nn(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}};const eo=Nn(1/3),ro=2*eo;var no={draw(t,e){const r=Nn(e/ro),n=r*eo;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},oo={draw(t,e){const r=Nn(e),n=-r/2;t.rect(n,n,r,r)}};const io=Dn(Bn/10)/Dn(7*Bn/10),ao=Dn(Rn/10)*io,co=-In(Rn/10)*io;var uo={draw(t,e){const r=Nn(.8908130915292852*e),n=ao*r,o=co*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){const i=Rn*e/5,a=In(i),c=Dn(i);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*o,c*n+a*o)}t.closePath()}};const lo=Nn(3);var so={draw(t,e){const r=-Nn(e/(3*lo));t.moveTo(0,2*r),t.lineTo(-lo*r,-r),t.lineTo(lo*r,-r),t.closePath()}};const fo=-.5,po=Nn(3)/2,ho=1/Nn(12),yo=3*(ho/2+1);var vo={draw(t,e){const r=Nn(e/yo),n=r/2,o=r*ho,i=n,a=r*ho+r,c=-i,u=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(c,u),t.lineTo(fo*n-po*o,po*n+fo*o),t.lineTo(fo*i-po*a,po*i+fo*a),t.lineTo(fo*c-po*u,po*c+fo*u),t.lineTo(fo*n+po*o,fo*o-po*n),t.lineTo(fo*i+po*a,fo*a-po*i),t.lineTo(fo*c+po*u,fo*u-po*c),t.closePath()}};function mo(){}function bo(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function go(t){this._context=t}function xo(t){this._context=t}function wo(t){this._context=t}function Oo(t){this._context=t}function So(t){return t<0?-1:1}function jo(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),c=(i*o+a*n)/(n+o);return(So(i)+So(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function Ao(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Po(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,c=(i-n)/3;t._context.bezierCurveTo(n+c,o+c*e,i-c,a-c*r,i,a)}function Eo(t){this._context=t}function ko(t){this._context=new Mo(t)}function Mo(t){this._context=t}function To(t){this._context=t}function _o(t){var e,r,n=t.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function Co(t,e){this._context=t,this._t=e}function Io(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],c=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Do(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function No(t,e){return t[e]}function Bo(t){const e=[];return e.key=t,e}function Ro(t){"@babel/helpers - typeof";return Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ro(t)}go.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:bo(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:bo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},xo.prototype={areaStart:mo,areaEnd:mo,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)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:bo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},wo.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:bo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Oo.prototype={areaStart:mo,areaEnd:mo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Eo.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:Po(this,this._t0,Ao(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Po(this,Ao(this,r=jo(this,t,e)),r);break;default:Po(this,this._t0,r=jo(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(ko.prototype=Object.create(Eo.prototype)).point=function(t,e){Eo.prototype.point.call(this,e,t)},Mo.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,o,i){this._context.bezierCurveTo(e,t,n,r,i,o)}},To.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=_o(t),o=_o(e),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Co.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var Lo=["type","size","sizeType"];function $o(){return $o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$o.apply(this,arguments)}function zo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Fo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zo(Object(r),!0).forEach((function(e){Uo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zo(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Uo(t,e,r){var n;return n=function(t,e){if("object"!=Ro(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ro(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ro(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qo(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Wo={symbolCircle:Qn,symbolCross:to,symbolDiamond:no,symbolSquare:oo,symbolStar:uo,symbolTriangle:so,symbolWye:vo},Vo=Math.PI/180,Xo=function(e){var r,n,o=e.type,i=void 0===o?"circle":o,a=e.size,c=void 0===a?64:a,u=e.sizeType,l=void 0===u?"area":u,s=Fo(Fo({},qo(e,Lo)),{},{type:i,size:c,sizeType:l}),f=s.className,p=s.cx,h=s.cy,y=Ur(s,!0);return p===+p&&h===+h&&c===+c?t.createElement("path",$o({},y,{className:O("recharts-symbols",f),transform:"translate(".concat(p,", ").concat(h,")"),d:(r=function(t){var e="symbol".concat(_n(t));return Wo[e]||Qn}(i),n=function(t,e){let r=null,n=Wn(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:Cn(t||Qn),e="function"==typeof e?e:Cn(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:Cn(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:Cn(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}().type(r).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*Vo;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(c,l,i)),n())})):null};function Ho(t){"@babel/helpers - typeof";return Ho="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ho(t)}function Ko(){return Ko=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ko.apply(this,arguments)}function Go(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Yo(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ri(n.key),n)}}function Zo(t,e,r){return e=Qo(e),function(t,e){if(e&&("object"===Ho(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Jo()?Reflect.construct(e,r||[],Qo(t).constructor):e.apply(t,r))}function Jo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Jo=function(){return!!t})()}function Qo(t){return Qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qo(t)}function ti(t,e){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ti(t,e)}function ei(t,e,r){return(e=ri(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ri(t){var e=function(t,e){if("object"!=Ho(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ho(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ho(e)?e:String(e)}Xo.registerSymbol=function(t,e){Wo["symbol".concat(_n(t))]=e};var ni=32,oi=function(e){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),Zo(this,r,arguments)}var o,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ti(t,e)}(r,n),o=r,i=[{key:"renderIcon",value:function(e){var r=this.props.inactiveColor,n=16,o=ni/6,i=ni/3,a=e.inactive?r:e.color;if("plainline"===e.type)return t.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:ni,y2:n,className:"recharts-legend-icon"});if("line"===e.type)return t.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(ni,"M").concat(2*i,",").concat(n,"\n A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===e.type)return t.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(ni,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(t.isValidElement(e.legendIcon)){var c=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Go(Object(r),!0).forEach((function(e){ei(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Go(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e);return delete c.legendIcon,t.cloneElement(e.legendIcon,c)}return t.createElement(Xo,{fill:a,cx:n,cy:n,size:ni,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,r=this.props,n=r.payload,o=r.iconSize,i=r.layout,a=r.formatter,c=r.inactiveColor,u={x:0,y:0,width:ni,height:ni},l={display:"horizontal"===i?"inline-block":"block",marginRight:10},s={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(r,n){var i=r.formatter||a,f=O(ei(ei({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",r.inactive));if("none"===r.type)return null;var p=et(r.value)?null:r.value;en(!et(r.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 h=r.inactive?c:r.color;return t.createElement("li",Ko({className:f,style:l,key:"legend-item-".concat(n)},kr(e.props,r,n)),t.createElement(Gr,{width:o,height:o,viewBox:u,style:s},e.renderIcon(r)),t.createElement("span",{className:"recharts-legend-item-text",style:{color:h}},i?i(p,r,n):p))}))}},{key:"render",value:function(){var e=this.props,r=e.payload,n=e.layout,o=e.align;if(!r||!r.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?o:"left"};return t.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],i&&Yo(o.prototype,i),a&&Yo(o,a),Object.defineProperty(o,"prototype",{writable:!1}),r}();ei(oi,"displayName","Legend"),ei(oi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ii=Qt;var ai=Qt,ci=te,ui=ve;var li=Qt,si=function(){this.__data__=new ii,this.size=0},fi=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},pi=function(t){return this.__data__.get(t)},hi=function(t){return this.__data__.has(t)},yi=function(t,e){var r=this.__data__;if(r instanceof ai){var n=r.__data__;if(!ci||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new ui(n)}return r.set(t,e),this.size=r.size,this};function di(t){var e=this.__data__=new li(t);this.size=e.size}di.prototype.clear=si,di.prototype.delete=fi,di.prototype.get=pi,di.prototype.has=hi,di.prototype.set=yi;var vi=di;var mi=ve,bi=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},gi=function(t){return this.__data__.has(t)};function xi(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new mi;++e<r;)this.add(t[e])}xi.prototype.add=xi.prototype.push=bi,xi.prototype.has=gi;var wi=xi;var Oi=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var Si=function(t,e){return t.has(e)},ji=wi,Ai=Oi,Pi=Si;var Ei=function(t,e,r,n,o,i){var a=1&r,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var l=i.get(t),s=i.get(e);if(l&&s)return l==e&&s==t;var f=-1,p=!0,h=2&r?new ji:void 0;for(i.set(t,e),i.set(e,t);++f<c;){var y=t[f],d=e[f];if(n)var v=a?n(d,y,f,e,t,i):n(y,d,f,t,e,i);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!Ai(e,(function(t,e){if(!Pi(h,e)&&(y===t||o(y,t,r,n,i)))return h.push(e)}))){p=!1;break}}else if(y!==d&&!o(y,d,r,n,i)){p=!1;break}}return i.delete(t),i.delete(e),p};var ki=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r};var Mi=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r},Ti=E.Uint8Array,_i=$t,Ci=Ei,Ii=ki,Di=Mi,Ni=k?k.prototype:void 0,Bi=Ni?Ni.valueOf:void 0;var Ri=function(t,e,r,n,o,i,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Ti(t),new Ti(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var c=Ii;case"[object Set]":var u=1&n;if(c||(c=Di),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=2,a.set(t,e);var s=Ci(c(t),c(e),n,o,i,a);return a.delete(t),s;case"[object Symbol]":if(Bi)return Bi.call(t)==Bi.call(e)}return!1};var Li=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},$i=Li,zi=S;var Fi=function(t,e,r){var n=e(t);return zi(t)?n:$i(n,r(t))};var Ui=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i};var qi=Ui,Wi=function(){return[]},Vi=Object.prototype.propertyIsEnumerable,Xi=Object.getOwnPropertySymbols,Hi=Xi?function(t){return null==t?[]:(t=Object(t),qi(Xi(t),(function(e){return Vi.call(t,e)})))}:Wi,Ki=Hi;var Gi=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},Yi=$,Zi=z;var Ji=function(t){return Zi(t)&&"[object Arguments]"==Yi(t)},Qi=z,ta=Object.prototype,ea=ta.hasOwnProperty,ra=ta.propertyIsEnumerable,na=Ji(function(){return arguments}())?Ji:function(t){return Qi(t)&&ea.call(t,"callee")&&!ra.call(t,"callee")},oa={exports:{}};var ia=function(){return!1};!function(t,e){var r=E,n=ia,o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;t.exports=c}(oa,oa.exports);var aa=oa.exports,ca=/^(?:0|[1-9]\d*)$/;var ua=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&ca.test(t))&&t>-1&&t%1==0&&t<e};var la=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},sa=$,fa=la,pa=z,ha={};ha["[object Float32Array]"]=ha["[object Float64Array]"]=ha["[object Int8Array]"]=ha["[object Int16Array]"]=ha["[object Int32Array]"]=ha["[object Uint8Array]"]=ha["[object Uint8ClampedArray]"]=ha["[object Uint16Array]"]=ha["[object Uint32Array]"]=!0,ha["[object Arguments]"]=ha["[object Array]"]=ha["[object ArrayBuffer]"]=ha["[object Boolean]"]=ha["[object DataView]"]=ha["[object Date]"]=ha["[object Error]"]=ha["[object Function]"]=ha["[object Map]"]=ha["[object Number]"]=ha["[object Object]"]=ha["[object RegExp]"]=ha["[object Set]"]=ha["[object String]"]=ha["[object WeakMap]"]=!1;var ya=function(t){return pa(t)&&fa(t.length)&&!!ha[sa(t)]};var da=function(t){return function(e){return t(e)}},va={exports:{}};!function(t,e){var r=j,n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a}(va,va.exports);var ma=va.exports,ba=ya,ga=da,xa=ma&&ma.isTypedArray,wa=xa?ga(xa):ba,Oa=Gi,Sa=na,ja=S,Aa=aa,Pa=ua,Ea=wa,ka=Object.prototype.hasOwnProperty;var Ma=function(t,e){var r=ja(t),n=!r&&Sa(t),o=!r&&!n&&Aa(t),i=!r&&!n&&!o&&Ea(t),a=r||n||o||i,c=a?Oa(t.length,String):[],u=c.length;for(var l in t)!e&&!ka.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Pa(l,u))||c.push(l);return c},Ta=Object.prototype;var _a=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ta)};var Ca=function(t,e){return function(r){return t(e(r))}},Ia=Ca(Object.keys,Object),Da=_a,Na=Ia,Ba=Object.prototype.hasOwnProperty;var Ra=function(t){if(!Da(t))return Na(t);var e=[];for(var r in Object(t))Ba.call(t,r)&&"constructor"!=r&&e.push(r);return e},La=tt,$a=la;var za=function(t){return null!=t&&$a(t.length)&&!La(t)},Fa=Ma,Ua=Ra,qa=za;var Wa=function(t){return qa(t)?Fa(t):Ua(t)},Va=Fi,Xa=Ki,Ha=Wa;var Ka=function(t){return Va(t,Ha,Xa)},Ga=Ka,Ya=Object.prototype.hasOwnProperty;var Za=function(t,e,r,n,o,i){var a=1&r,c=Ga(t),u=c.length;if(u!=Ga(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:Ya.call(e,s)))return!1}var f=i.get(t),p=i.get(e);if(f&&p)return f==e&&p==t;var h=!0;i.set(t,e),i.set(e,t);for(var y=a;++l<u;){var d=t[s=c[l]],v=e[s];if(n)var m=a?n(v,d,s,e,t,i):n(d,v,s,t,e,i);if(!(void 0===m?d===v||o(d,v,r,n,i):m)){h=!1;break}y||(y="constructor"==s)}if(h&&!y){var b=t.constructor,g=e.constructor;b==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g||(h=!1)}return i.delete(t),i.delete(e),h},Ja=xt(E,"DataView"),Qa=xt(E,"Promise"),tc=xt(E,"Set"),ec=Ja,rc=te,nc=Qa,oc=tc,ic=xt(E,"WeakMap"),ac=$,cc=at,uc="[object Map]",lc="[object Promise]",sc="[object Set]",fc="[object WeakMap]",pc="[object DataView]",hc=cc(ec),yc=cc(rc),dc=cc(nc),vc=cc(oc),mc=cc(ic),bc=ac;(ec&&bc(new ec(new ArrayBuffer(1)))!=pc||rc&&bc(new rc)!=uc||nc&&bc(nc.resolve())!=lc||oc&&bc(new oc)!=sc||ic&&bc(new ic)!=fc)&&(bc=function(t){var e=ac(t),r="[object Object]"==e?t.constructor:void 0,n=r?cc(r):"";if(n)switch(n){case hc:return pc;case yc:return uc;case dc:return lc;case vc:return sc;case mc:return fc}return e});var gc=vi,xc=Ei,wc=Ri,Oc=Za,Sc=bc,jc=S,Ac=aa,Pc=wa,Ec="[object Arguments]",kc="[object Array]",Mc="[object Object]",Tc=Object.prototype.hasOwnProperty;var _c=function(t,e,r,n,o,i){var a=jc(t),c=jc(e),u=a?kc:Sc(t),l=c?kc:Sc(e),s=(u=u==Ec?Mc:u)==Mc,f=(l=l==Ec?Mc:l)==Mc,p=u==l;if(p&&Ac(t)){if(!Ac(e))return!1;a=!0,s=!1}if(p&&!s)return i||(i=new gc),a||Pc(t)?xc(t,e,r,n,o,i):wc(t,e,u,r,n,o,i);if(!(1&r)){var h=s&&Tc.call(t,"__wrapped__"),y=f&&Tc.call(e,"__wrapped__");if(h||y){var d=h?t.value():t,v=y?e.value():e;return i||(i=new gc),o(d,v,r,n,i)}}return!!p&&(i||(i=new gc),Oc(t,e,r,n,o,i))},Cc=_c,Ic=z;var Dc=function t(e,r,n,o,i){return e===r||(null==e||null==r||!Ic(e)&&!Ic(r)?e!=e&&r!=r:Cc(e,r,n,o,t,i))},Nc=vi,Bc=Dc;var Rc=function(t,e,r,n){var o=r.length,i=o,a=!n;if(null==t)return!i;for(t=Object(t);o--;){var c=r[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var u=(c=r[o])[0],l=t[u],s=c[1];if(a&&c[2]){if(void 0===l&&!(u in t))return!1}else{var f=new Nc;if(n)var p=n(l,s,u,t,e,f);if(!(void 0===p?Bc(s,l,3,n,f):p))return!1}}return!0},Lc=G;var $c=function(t){return t==t&&!Lc(t)},zc=$c,Fc=Wa;var Uc=function(t){for(var e=Fc(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,zc(o)]}return e};var qc=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},Wc=Rc,Vc=Uc,Xc=qc;var Hc=function(t){var e=Vc(t);return 1==e.length&&e[0][2]?Xc(e[0][0],e[0][1]):function(r){return r===t||Wc(r,t,e)}};var Kc=function(t,e){return null!=t&&e in Object(t)},Gc=$e,Yc=na,Zc=S,Jc=ua,Qc=la,tu=Fe;var eu=function(t,e,r){for(var n=-1,o=(e=Gc(e,t)).length,i=!1;++n<o;){var a=tu(e[n]);if(!(i=null!=t&&r(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&Qc(o)&&Jc(a,o)&&(Zc(t)||Yc(t))},ru=Kc,nu=eu;var ou=function(t,e){return null!=t&&nu(t,e,ru)},iu=Dc,au=Xe,cu=ou,uu=K,lu=$c,su=qc,fu=Fe;var pu=function(t,e){return uu(t)&&lu(e)?su(fu(t),e):function(r){var n=au(r,t);return void 0===n&&n===e?cu(r,t):iu(e,n,3)}};var hu=function(t){return t};var yu=function(t){return function(e){return null==e?void 0:e[t]}},du=We;var vu=function(t){return function(e){return du(e,t)}},mu=yu,bu=vu,gu=K,xu=Fe;var wu=Hc,Ou=pu,Su=hu,ju=S,Au=function(t){return gu(t)?mu(xu(t)):bu(t)};var Pu=function(t){return"function"==typeof t?t:null==t?Su:"object"==typeof t?ju(t)?Ou(t[0],t[1]):wu(t):Au(t)};var Eu=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1};var ku=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1},Mu=Eu,Tu=function(t){return t!=t},_u=ku;var Cu=function(t,e,r){return e==e?_u(t,e,r):Mu(t,Tu,r)},Iu=Cu;var Du=function(t,e){return!!(null==t?0:t.length)&&Iu(t,e,0)>-1};var Nu=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1};var Bu=tc,Ru=function(){},Lu=Bu&&1/Mi(new Bu([,-0]))[1]==1/0?function(t){return new Bu(t)}:Ru,$u=wi,zu=Du,Fu=Nu,Uu=Si,qu=Lu,Wu=Mi;var Vu=function(t,e,r){var n=-1,o=zu,i=t.length,a=!0,c=[],u=c;if(r)a=!1,o=Fu;else if(i>=200){var l=e?null:qu(t);if(l)return Wu(l);a=!1,o=Uu,u=new $u}else u=e?[]:c;t:for(;++n<i;){var s=t[n],f=e?e(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue t;e&&u.push(f),c.push(s)}else o(u,f,r)||(u!==c&&u.push(f),c.push(s))}return c},Xu=Pu,Hu=Vu;var Ku=function(t,e){return t&&t.length?Hu(t,Xu(e)):[]},Gu=m(Ku);function Yu(t,e,r){return!0===e?Gu(t,r):et(e)?Gu(t,e):t}function Zu(t){"@babel/helpers - typeof";return Zu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zu(t)}var Ju=["ref"];function Qu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qu(Object(r),!0).forEach((function(e){cl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function el(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ul(n.key),n)}}function rl(t,e,r){return e=ol(e),function(t,e){if(e&&("object"===Zu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return il(t)}(t,nl()?Reflect.construct(e,r||[],ol(t).constructor):e.apply(t,r))}function nl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(nl=function(){return!!t})()}function ol(t){return ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ol(t)}function il(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function al(t,e){return al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},al(t,e)}function cl(t,e,r){return(e=ul(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ul(t){var e=function(t,e){if("object"!=Zu(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Zu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Zu(e)?e:String(e)}function ll(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function sl(t){return t.value}var fl=function(e){function r(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return cl(il(t=rl(this,r,[].concat(n))),"lastBoundingBox",{width:-1,height:-1}),t}var o,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&al(t,e)}(r,n),o=r,a=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&hr(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(i=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e))}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?tl({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),tl(tl({},e),r)}},{key:"render",value:function(){var e=this,r=this.props,n=r.content,o=r.width,i=r.height,a=r.wrapperStyle,c=r.payloadUniqBy,u=r.payload,l=tl(tl({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return t.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,r){if(t.isValidElement(e))return t.cloneElement(e,r);if("function"==typeof e)return t.createElement(e,r);r.ref;var n=ll(r,Ju);return t.createElement(oi,n)}(n,tl(tl({},this.props),{},{payload:Yu(u,c,sl)})))}}])&&el(o.prototype,i),a&&el(o,a),Object.defineProperty(o,"prototype",{writable:!1}),r}();cl(fl,"displayName","Legend"),cl(fl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var pl=na,hl=S,yl=k?k.isConcatSpreadable:void 0;var dl=Li,vl=function(t){return hl(t)||pl(t)||!!(yl&&t&&t[yl])};var ml=function t(e,r,n,o,i){var a=-1,c=e.length;for(n||(n=vl),i||(i=[]);++a<c;){var u=e[a];r>0&&n(u)?r>1?t(u,r-1,n,o,i):dl(i,u):o||(i[i.length]=u)}return i};var bl=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}},gl=bl(),xl=Wa;var wl=function(t,e){return t&&gl(t,e,xl)},Ol=za;var Sl=function(t,e){return function(r,n){if(null==r)return r;if(!Ol(r))return t(r,n);for(var o=r.length,i=e?o:-1,a=Object(r);(e?i--:++i<o)&&!1!==n(a[i],i,a););return r}}(wl),jl=Sl,Al=za;var Pl=function(t,e){var r=-1,n=Al(t)?Array(t.length):[];return jl(t,(function(t,o,i){n[++r]=e(t,o,i)})),n};var El=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},kl=q;var Ml=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,o=t==t,i=kl(t),a=void 0!==e,c=null===e,u=e==e,l=kl(e);if(!c&&!l&&!i&&t>e||i&&a&&u&&!c&&!l||n&&a&&u||!r&&u||!o)return 1;if(!n&&!i&&!l&&t<e||l&&r&&o&&!n&&!i||c&&r&&o||!a&&o||!u)return-1}return 0};var Tl=function(t,e,r){for(var n=-1,o=t.criteria,i=e.criteria,a=o.length,c=r.length;++n<a;){var u=Ml(o[n],i[n]);if(u)return n>=c?u:u*("desc"==r[n]?-1:1)}return t.index-e.index},_l=Pe,Cl=We,Il=Pu,Dl=Pl,Nl=El,Bl=da,Rl=Tl,Ll=hu,$l=S;var zl=function(t,e,r){e=e.length?_l(e,(function(t){return $l(t)?function(e){return Cl(e,1===t.length?t[0]:t)}:t})):[Ll];var n=-1;e=_l(e,Bl(Il));var o=Dl(t,(function(t,r,o){return{criteria:_l(e,(function(e){return e(t)})),index:++n,value:t}}));return Nl(o,(function(t,e){return Rl(t,e,r)}))};var Fl=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)},Ul=Math.max;var ql=function(t,e,r){return e=Ul(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=Ul(n.length-e,0),a=Array(i);++o<i;)a[o]=n[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=n[o];return c[e]=r(a),Fl(t,this,c)}};var Wl=function(t){return function(){return t}},Vl=xt,Xl=function(){try{var t=Vl(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Hl=Wl,Kl=Xl,Gl=Kl?function(t,e){return Kl(t,"toString",{configurable:!0,enumerable:!1,value:Hl(e),writable:!0})}:hu,Yl=Gl,Zl=Date.now;var Jl=function(t){var e=0,r=0;return function(){var n=Zl(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Yl),Ql=hu,ts=ql,es=Jl;var rs=$t,ns=za,os=ua,is=G;var as=function(t,e,r){if(!is(r))return!1;var n=typeof e;return!!("number"==n?ns(r)&&os(e,r.length):"string"==n&&e in r)&&rs(r[e],t)},cs=ml,us=zl,ls=as,ss=m(function(t,e){return es(ts(t,e,Ql),t+"")}((function(t,e){if(null==t)return[];var r=e.length;return r>1&&ls(t,e[0],e[1])?e=[]:r>2&&ls(e[0],e[1],e[2])&&(e=[e[0]]),us(t,cs(e,1),[])})));function fs(t){"@babel/helpers - typeof";return fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fs(t)}function ps(){return ps=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ps.apply(this,arguments)}function hs(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ys(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ys(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ys(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ds(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ds(Object(r),!0).forEach((function(e){ms(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ds(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ms(t,e,r){var n;return n=function(t,e){if("object"!=fs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==fs(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bs(t){return Array.isArray(t)&&yr(t[0])&&yr(t[1])?t.join(" ~ "):t}var gs=function(e){var r=e.separator,n=void 0===r?" : ":r,o=e.contentStyle,i=void 0===o?{}:o,a=e.itemStyle,c=void 0===a?{}:a,u=e.labelStyle,l=void 0===u?{}:u,s=e.payload,f=e.formatter,p=e.itemSorter,h=e.wrapperClassName,y=e.labelClassName,d=e.label,v=e.labelFormatter,m=e.accessibilityLayer,b=void 0!==m&&m,g=vs({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),x=vs({margin:0},l),w=!Ke(d),S=w?d:"",j=O("recharts-default-tooltip",h),A=O("recharts-tooltip-label",y);w&&v&&null!=s&&(S=v(d,s));var P=b?{role:"status","aria-live":"assertive"}:{};return t.createElement("div",ps({className:j,style:g},P),t.createElement("p",{className:A,style:x},t.isValidElement(S)?S:"".concat(S)),function(){if(s&&s.length){var e=(p?ss(s,p):s).map((function(e,r){if("none"===e.type)return null;var o=vs({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},c),i=e.formatter||f||bs,a=e.value,u=e.name,l=a,p=u;if(i&&null!=l&&null!=p){var h=i(a,u,e,r,s);if(Array.isArray(h)){var y=hs(h,2);l=y[0],p=y[1]}else l=h}return t.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(r),style:o},yr(p)?t.createElement("span",{className:"recharts-tooltip-item-name"},p):null,yr(p)?t.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,t.createElement("span",{className:"recharts-tooltip-item-value"},l),t.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return t.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function xs(t){"@babel/helpers - typeof";return xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xs(t)}function ws(t,e,r){var n;return n=function(t,e){if("object"!=xs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==xs(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Os="recharts-tooltip-wrapper",Ss={visibility:"hidden"};function js(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return O(Os,ws(ws(ws(ws({},"".concat(Os,"-right"),hr(r)&&e&&hr(e.x)&&r>=e.x),"".concat(Os,"-left"),hr(r)&&e&&hr(e.x)&&r<e.x),"".concat(Os,"-bottom"),hr(n)&&e&&hr(e.y)&&n>=e.y),"".concat(Os,"-top"),hr(n)&&e&&hr(e.y)&&n<e.y))}function As(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(i&&hr(i[n]))return i[n];var s=r[n]-c-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function Ps(t){"@babel/helpers - typeof";return Ps="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ps(t)}function Es(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ks(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Es(Object(r),!0).forEach((function(e){Ns(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Es(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ms(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Bs(n.key),n)}}function Ts(t,e,r){return e=Cs(e),function(t,e){if(e&&("object"===Ps(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Is(t)}(t,_s()?Reflect.construct(e,r||[],Cs(t).constructor):e.apply(t,r))}function _s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_s=function(){return!!t})()}function Cs(t){return Cs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cs(t)}function Is(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ds(t,e){return Ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ds(t,e)}function Ns(t,e,r){return(e=Bs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bs(t){var e=function(t,e){if("object"!=Ps(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ps(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ps(e)?e:String(e)}var Rs=function(e){function r(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Ns(Is(t=Ts(this,r,[].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Ns(Is(t),"lastBoundingBox",{width:-1,height:-1}),Ns(Is(t),"handleKeyDown",(function(e){var r,n,o,i;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=t.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),t}var o,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ds(t,e)}(r,n),o=r,(i=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.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 t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,r=this.props,n=r.active,o=r.allowEscapeViewBox,i=r.animationDuration,a=r.animationEasing,c=r.children,u=r.coordinate,l=r.hasPayload,s=r.isAnimationActive,f=r.offset,p=r.position,h=r.reverseDirection,y=r.useTranslate3d,d=r.viewBox,v=r.wrapperStyle,m=function(t){var e,r,n=t.allowEscapeViewBox,o=t.coordinate,i=t.offsetTopLeft,a=t.position,c=t.reverseDirection,u=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:u.height>0&&u.width>0&&o?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=As({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=As({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):Ss,cssClasses:js({translateX:e,translateY:r,coordinate:o})}}({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:f,position:p,reverseDirection:h,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:y,viewBox:d}),b=m.cssClasses,g=m.cssProperties,x=ks(ks({transition:s&&n?"transform ".concat(i,"ms ").concat(a):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&l?"visible":"hidden",position:"absolute",top:0,left:0},v);return t.createElement("div",{tabIndex:-1,className:b,style:x,ref:function(t){e.wrapperNode=t}},c)}}])&&Ms(o.prototype,i),a&&Ms(o,a),Object.defineProperty(o,"prototype",{writable:!1}),r}(),Ls={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return Ls[t]},set:function(t,e){if("string"==typeof t)Ls[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){Ls[e]=t[e]}))}}};function $s(t){"@babel/helpers - typeof";return $s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$s(t)}function zs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Fs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zs(Object(r),!0).forEach((function(e){Hs(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zs(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Us(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ks(n.key),n)}}function qs(t,e,r){return e=Vs(e),function(t,e){if(e&&("object"===$s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ws()?Reflect.construct(e,r||[],Vs(t).constructor):e.apply(t,r))}function Ws(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ws=function(){return!!t})()}function Vs(t){return Vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vs(t)}function Xs(t,e){return Xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xs(t,e)}function Hs(t,e,r){return(e=Ks(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ks(t){var e=function(t,e){if("object"!=$s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$s(e)?e:String(e)}function Gs(t){return t.dataKey}var Ys=function(e){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),qs(this,r,arguments)}var o,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xs(t,e)}(r,n),o=r,(i=[{key:"render",value:function(){var e=this,r=this.props,n=r.active,o=r.allowEscapeViewBox,i=r.animationDuration,a=r.animationEasing,c=r.content,u=r.coordinate,l=r.filterNull,s=r.isAnimationActive,f=r.offset,p=r.payload,h=r.payloadUniqBy,y=r.position,d=r.reverseDirection,v=r.useTranslate3d,m=r.viewBox,b=r.wrapperStyle,g=null!=p?p:[];l&&g.length&&(g=Yu(p.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),h,Gs));var x=g.length>0;return t.createElement(Rs,{allowEscapeViewBox:o,animationDuration:i,animationEasing:a,isAnimationActive:s,active:n,coordinate:u,hasPayload:x,offset:f,position:y,reverseDirection:d,useTranslate3d:v,viewBox:m,wrapperStyle:b},function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):"function"==typeof e?t.createElement(e,r):t.createElement(gs,r)}(c,Fs(Fs({},this.props),{},{payload:g})))}}])&&Us(o.prototype,i),a&&Us(o,a),Object.defineProperty(o,"prototype",{writable:!1}),r}();Hs(Ys,"displayName","Tooltip"),Hs(Ys,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ls.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 Zs=E,Js=/\s/;var Qs=function(t){for(var e=t.length;e--&&Js.test(t.charAt(e)););return e},tf=Qs,ef=/^\s+/;var rf=function(t){return t?t.slice(0,tf(t)+1).replace(ef,""):t},nf=rf,of=G,af=q,cf=/^[-+]0x[0-9a-f]+$/i,uf=/^0b[01]+$/i,lf=/^0o[0-7]+$/i,sf=parseInt;var ff=function(t){if("number"==typeof t)return t;if(af(t))return NaN;if(of(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=of(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=nf(t);var r=uf.test(t);return r||lf.test(t)?sf(t.slice(2),r?2:8):cf.test(t)?NaN:+t},pf=G,hf=function(){return Zs.Date.now()},yf=ff,df=Math.max,vf=Math.min;var mf=function(t,e,r){var n,o,i,a,c,u,l=0,s=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(e){var r=n,i=o;return n=o=void 0,l=e,a=t.apply(i,r)}function y(t){var r=t-u;return void 0===u||r>=e||r<0||f&&t-l>=i}function d(){var t=hf();if(y(t))return v(t);c=setTimeout(d,function(t){var r=e-(t-u);return f?vf(r,i-(t-l)):r}(t))}function v(t){return c=void 0,p&&n?h(t):(n=o=void 0,a)}function m(){var t=hf(),r=y(t);if(n=arguments,o=this,u=t,r){if(void 0===c)return function(t){return l=t,c=setTimeout(d,e),s?h(t):a}(u);if(f)return clearTimeout(c),c=setTimeout(d,e),h(u)}return void 0===c&&(c=setTimeout(d,e)),a}return e=yf(e)||0,pf(r)&&(s=!!r.leading,i=(f="maxWait"in r)?df(yf(r.maxWait)||0,e):i,p="trailing"in r?!!r.trailing:p),m.cancel=function(){void 0!==c&&clearTimeout(c),l=0,n=u=o=c=void 0},m.flush=function(){return void 0===c?a:v(hf())},m},bf=mf,gf=G;var xf=m((function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return gf(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),bf(t,e,{leading:n,maxWait:e,trailing:o})}));function wf(t){"@babel/helpers - typeof";return wf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wf(t)}function Of(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Sf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Of(Object(r),!0).forEach((function(e){jf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Of(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jf(t,e,r){var n;return n=function(t,e){if("object"!=wf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=wf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==wf(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Af(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Pf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pf(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ef=o((function(e,r){var n=e.aspect,o=e.initialDimension,p=void 0===o?{width:-1,height:-1}:o,h=e.width,y=void 0===h?"100%":h,d=e.height,v=void 0===d?"100%":d,m=e.minWidth,b=void 0===m?0:m,g=e.minHeight,x=e.maxHeight,w=e.children,S=e.debounce,j=void 0===S?0:S,A=e.id,P=e.className,E=e.onResize,k=e.style,M=void 0===k?{}:k,T=i(null),_=i();_.current=E,a(r,(function(){return Object.assign(T.current,{get current(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),T.current}})}));var C=Af(c({containerWidth:p.width,containerHeight:p.height}),2),I=C[0],D=C[1],N=u((function(t,e){D((function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}}))}),[]);l((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;N(n,o),null===(e=_.current)||void 0===e||e.call(_,n,o)};j>0&&(t=xf(t,j,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=T.current.getBoundingClientRect(),n=r.width,o=r.height;return N(n,o),e.observe(T.current),function(){e.disconnect()}}),[N,j]);var B=s((function(){var e=I.containerWidth,r=I.containerHeight;if(e<0||r<0)return null;en(pr(y)||pr(v),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,v),en(!n||n>0,"The aspect(%s) must be greater than zero.",n);var o=pr(y)?e:y,i=pr(v)?r:v;n&&n>0&&(o?i=o/n:i&&(o=i*n),x&&i>x&&(i=x)),en(o>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",o,i,y,v,b,g,n);var a=!Array.isArray(w)&&or.isElement(w)&&Dr(w.type).endsWith("Chart");return t.Children.map(w,(function(t){return or.isElement(t)?f(t,Sf({width:o,height:i},a?{style:Sf({height:"100%",width:"100%",maxHeight:i,maxWidth:o},t.props.style)}:{})):t}))}),[n,w,v,x,g,b,I,y]);return t.createElement("div",{id:A?"".concat(A):void 0,className:O("recharts-responsive-container",P),style:Sf(Sf({},M),{},{width:y,height:v,minWidth:b,minHeight:g,maxHeight:x}),ref:T},B)})),kf=function(t){return null};function Mf(t){"@babel/helpers - typeof";return Mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(t)}function Tf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Tf(Object(r),!0).forEach((function(e){Cf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Cf(t,e,r){var n;return n=function(t,e){if("object"!=Mf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Mf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Mf(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}kf.displayName="Cell";var If={widthCache:{},cacheCount:0},Df={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Nf="recharts_measurement_span";var Bf=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||Ls.isSsr)return{width:0,height:0};var r,n=(r=_f({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),o=JSON.stringify({text:t,copyStyle:n});if(If.widthCache[o])return If.widthCache[o];try{var i=document.getElementById(Nf);i||((i=document.createElement("span")).setAttribute("id",Nf),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=_f(_f({},Df),n);Object.assign(i.style,a),i.textContent="".concat(t);var c=i.getBoundingClientRect(),u={width:c.width,height:c.height};return If.widthCache[o]=u,++If.cacheCount>2e3&&(If.cacheCount=0,If.widthCache={}),u}catch(t){return{width:0,height:0}}};function Rf(t){"@babel/helpers - typeof";return Rf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rf(t)}function Lf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return $f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $f(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function zf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ff(n.key),n)}}function Ff(t){var e=function(t,e){if("object"!=Rf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Rf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Rf(e)?e:String(e)}var Uf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,qf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Wf=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Vf=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Xf={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Hf=Object.keys(Xf),Kf="NaN";var Gf=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||Wf.test(r)||(this.num=NaN,this.unit=""),Hf.includes(r)&&(this.num=function(t,e){return t*Xf[e]}(e,r),this.unit="px")}var e,r,n;return e=t,n=[{key:"parse",value:function(e){var r,n=Lf(null!==(r=Vf.exec(e))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new t(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&zf(e.prototype,r),n&&zf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Yf(t){if(t.includes(Kf))return Kf;for(var e=t;e.includes("*")||e.includes("/");){var r,n=Lf(null!==(r=Uf.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],c=Gf.parse(null!=o?o:""),u=Gf.parse(null!=a?a:""),l="*"===i?c.multiply(u):c.divide(u);if(l.isNaN())return Kf;e=e.replace(Uf,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Lf(null!==(s=qf.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],y=f[3],d=Gf.parse(null!=p?p:""),v=Gf.parse(null!=y?y:""),m="+"===h?d.add(v):d.subtract(v);if(m.isNaN())return Kf;e=e.replace(qf,m.toString())}return e}var Zf=/\(([^()]*)\)/;function Jf(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=Lf(Zf.exec(e),2)[1];e=e.replace(Zf,Yf(r))}return e}(e),e=Yf(e)}function Qf(t){var e=function(t){try{return Jf(t)}catch(t){return Kf}}(t.slice(5,-1));return e===Kf?"":e}var tp=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],ep=["dx","dy","angle","className","breakAll"];function rp(){return rp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},rp.apply(this,arguments)}function np(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function op(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ip(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ip(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ip(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ap=/[ \f\n\r\t\v\u2028\u2029]+/,cp=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return Ke(e)||(o=r?e.toString().split(""):e.toString().split(ap)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:Bf(t,n).width}})),spaceWidth:r?0:Bf(" ",n).width}}catch(t){return null}},up=function(t){return[{words:Ke(t)?[]:t.toString().split(ap)}]},lp=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!Ls.isSsr){var c=cp({breakAll:i,children:n,style:o});return c?function(t,e,r,n,o){var i=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=hr(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||o||c.width+a+r<Number(n)))c.words.push(i),c.width+=a+r;else{var u={words:[i],width:a};t.push(u)}return t}),[])},p=f(e);if(!l)return p;for(var h,y=function(t){var e=s.slice(0,t),r=cp({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>Number(n);return[a,o]},d=0,v=s.length-1,m=0;d<=v&&m<=s.length-1;){var b=Math.floor((d+v)/2),g=op(y(b-1),2),x=g[0],w=g[1],O=op(y(b),1)[0];if(x||O||(d=b+1),x&&O&&(v=b-1),!x&&O){h=w;break}m++}return h||p}({breakAll:i,children:n,maxLines:a,style:o},c.wordsWithComputedWidth,c.spaceWidth,e,r):up(n)}return up(n)},sp="#808080",fp=function(e){var r=e.x,n=void 0===r?0:r,o=e.y,i=void 0===o?0:o,a=e.lineHeight,c=void 0===a?"1em":a,u=e.capHeight,l=void 0===u?"0.71em":u,f=e.scaleToFit,p=void 0!==f&&f,h=e.textAnchor,y=void 0===h?"start":h,d=e.verticalAnchor,v=void 0===d?"end":d,m=e.fill,b=void 0===m?sp:m,g=np(e,tp),x=s((function(){return lp({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:p,style:g.style,width:g.width})}),[g.breakAll,g.children,g.maxLines,p,g.style,g.width]),w=g.dx,S=g.dy,j=g.angle,A=g.className,P=g.breakAll,E=np(g,ep);if(!yr(n)||!yr(i))return null;var k,M=n+(hr(w)?w:0),T=i+(hr(S)?S:0);switch(v){case"start":k=Qf("calc(".concat(l,")"));break;case"middle":k=Qf("calc(".concat((x.length-1)/2," * -").concat(c," + (").concat(l," / 2))"));break;default:k=Qf("calc(".concat(x.length-1," * -").concat(c,")"))}var _=[];if(p){var C=x[0].width,I=g.width;_.push("scale(".concat((hr(I)?I/C:1)/C,")"))}return j&&_.push("rotate(".concat(j,", ").concat(M,", ").concat(T,")")),_.length&&(E.transform=_.join(" ")),t.createElement("text",rp({},Ur(E,!0),{x:M,y:T,className:O("recharts-text",A),textAnchor:y,fill:b.includes("url")?sp:b}),x.map((function(e,r){var n=e.words.join(P?"":" ");return t.createElement("tspan",{x:M,dy:0===r?k:c,key:n},n)})))};function pp(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function hp(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function yp(t){let e,r,n;function o(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=pp,r=(e,r)=>pp(t(e),r),n=(e,r)=>t(e)-r):(e=t===pp||t===hp?t:dp,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<=0?o=e+1:i=e}while(o<i)}return o}}}function dp(){return 0}function vp(t){return null===t?NaN:+t}const mp=yp(pp).right;yp(vp).center;class bp extends Map{constructor(t,e=xp){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(gp(this,t))}has(t){return super.has(gp(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);t.has(n)&&(r=t.get(n),t.delete(n));return r}(this,t))}}function gp({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function xp(t){return null!==t&&"object"==typeof t?t.valueOf():t}function wp(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const Op=Math.sqrt(50),Sp=Math.sqrt(10),jp=Math.sqrt(2);function Ap(t,e,r){const n=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=Op?10:i>=Sp?5:i>=jp?2:1;let c,u,l;return o<0?(l=Math.pow(10,-o)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,o)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=r&&r<2?Ap(t,e,2*r):[c,u,l]}function Pp(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?Ap(e,t,r):Ap(t,e,r);if(!(i>=o))return[];const c=i-o+1,u=new Array(c);if(n)if(a<0)for(let t=0;t<c;++t)u[t]=(i-t)/-a;else for(let t=0;t<c;++t)u[t]=(i-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(o+t)/-a;else for(let t=0;t<c;++t)u[t]=(o+t)*a;return u}function Ep(t,e,r){return Ap(t=+t,e=+e,r=+r)[2]}function kp(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?Ep(e,t,r):Ep(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function Mp(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function Tp(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function _p(t,e,r=0,n=1/0,o){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(o=void 0===o?wp:function(t=pp){if(t===pp)return wp;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,c=Math.log(i),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(i-u)/i)*(a-i/2<0?-1:1);_p(t,e,Math.max(r,Math.floor(e-a*u/i+l)),Math.min(n,Math.floor(e+(i-a)*u/i+l)),o)}const i=t[e];let a=r,c=n;for(Cp(t,r,e),o(t[n],i)>0&&Cp(t,r,n);a<c;){for(Cp(t,a,c),++a,--c;o(t[a],i)<0;)++a;for(;o(t[c],i)>0;)--c}0===o(t[r],i)?Cp(t,r,c):(++c,Cp(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function Cp(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function Ip(t,e,r=vp){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}function Dp(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Np(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const Bp=Symbol("implicit");function Rp(){var t=new bp,e=[],r=[],n=Bp;function o(o){let i=t.get(o);if(void 0===i){if(n!==Bp)return n;t.set(o,i=e.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new bp;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return Rp(e,r).unknown(n)},Dp.apply(o,arguments),o}function Lp(){var t,e,r=Rp().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,h=f?i:a;t=(h-p)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),p+=(h-p-t*(r-u))*s,e=t*(1-u),c&&(p=Math.round(p),e=Math.round(e));var y=function(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),i=new Array(o);++n<o;)i[n]=t+n*r;return i}(r).map((function(e){return p+t*e}));return o(f?y.reverse():y)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return Lp(n(),[i,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},Dp.apply(f(),arguments)}function $p(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return $p(e())},t}function zp(){return $p(Lp.apply(null,arguments).paddingInner(1))}function Fp(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Up(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function qp(){}var Wp=.7,Vp=1/Wp,Xp="\\s*([+-]?\\d+)\\s*",Hp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gp=/^#([0-9a-f]{3,8})$/,Yp=new RegExp(`^rgb\\(${Xp},${Xp},${Xp}\\)$`),Zp=new RegExp(`^rgb\\(${Kp},${Kp},${Kp}\\)$`),Jp=new RegExp(`^rgba\\(${Xp},${Xp},${Xp},${Hp}\\)$`),Qp=new RegExp(`^rgba\\(${Kp},${Kp},${Kp},${Hp}\\)$`),th=new RegExp(`^hsl\\(${Hp},${Kp},${Kp}\\)$`),eh=new RegExp(`^hsla\\(${Hp},${Kp},${Kp},${Hp}\\)$`),rh={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};function nh(){return this.rgb().formatHex()}function oh(){return this.rgb().formatRgb()}function ih(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Gp.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?ah(e):3===r?new lh(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?ch(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?ch(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Yp.exec(t))?new lh(e[1],e[2],e[3],1):(e=Zp.exec(t))?new lh(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Jp.exec(t))?ch(e[1],e[2],e[3],e[4]):(e=Qp.exec(t))?ch(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=th.exec(t))?dh(e[1],e[2]/100,e[3]/100,1):(e=eh.exec(t))?dh(e[1],e[2]/100,e[3]/100,e[4]):rh.hasOwnProperty(t)?ah(rh[t]):"transparent"===t?new lh(NaN,NaN,NaN,0):null}function ah(t){return new lh(t>>16&255,t>>8&255,255&t,1)}function ch(t,e,r,n){return n<=0&&(t=e=r=NaN),new lh(t,e,r,n)}function uh(t,e,r,n){return 1===arguments.length?((o=t)instanceof qp||(o=ih(o)),o?new lh((o=o.rgb()).r,o.g,o.b,o.opacity):new lh):new lh(t,e,r,null==n?1:n);var o}function lh(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function sh(){return`#${yh(this.r)}${yh(this.g)}${yh(this.b)}`}function fh(){const t=ph(this.opacity);return`${1===t?"rgb(":"rgba("}${hh(this.r)}, ${hh(this.g)}, ${hh(this.b)}${1===t?")":`, ${t})`}`}function ph(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function hh(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function yh(t){return((t=hh(t))<16?"0":"")+t.toString(16)}function dh(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new mh(t,e,r,n)}function vh(t){if(t instanceof mh)return new mh(t.h,t.s,t.l,t.opacity);if(t instanceof qp||(t=ih(t)),!t)return new mh;if(t instanceof mh)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,c=i-o,u=(i+o)/2;return c?(a=e===i?(r-n)/c+6*(r<n):r===i?(n-e)/c+2:(e-r)/c+4,c/=u<.5?i+o:2-i-o,a*=60):c=u>0&&u<1?0:a,new mh(a,c,u,t.opacity)}function mh(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function bh(t){return(t=(t||0)%360)<0?t+360:t}function gh(t){return Math.max(0,Math.min(1,t||0))}function xh(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Fp(qp,ih,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:nh,formatHex:nh,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vh(this).formatHsl()},formatRgb:oh,toString:oh}),Fp(lh,uh,Up(qp,{brighter(t){return t=null==t?Vp:Math.pow(Vp,t),new lh(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Wp:Math.pow(Wp,t),new lh(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new lh(hh(this.r),hh(this.g),hh(this.b),ph(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:sh,formatHex:sh,formatHex8:function(){return`#${yh(this.r)}${yh(this.g)}${yh(this.b)}${yh(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fh,toString:fh})),Fp(mh,(function(t,e,r,n){return 1===arguments.length?vh(t):new mh(t,e,r,null==n?1:n)}),Up(qp,{brighter(t){return t=null==t?Vp:Math.pow(Vp,t),new mh(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Wp:Math.pow(Wp,t),new mh(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new lh(xh(t>=240?t-240:t+120,o,n),xh(t,o,n),xh(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new mh(bh(this.h),gh(this.s),gh(this.l),ph(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 t=ph(this.opacity);return`${1===t?"hsl(":"hsla("}${bh(this.h)}, ${100*gh(this.s)}%, ${100*gh(this.l)}%${1===t?")":`, ${t})`}`}}));var wh=t=>()=>t;function Oh(t){return 1==(t=+t)?Sh:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):wh(isNaN(e)?r:e)}}function Sh(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):wh(isNaN(t)?e:t)}var jh=function t(e){var r=Oh(e);function n(t,e){var n=r((t=uh(t)).r,(e=uh(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=Sh(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function Ah(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}}function Ph(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=Ih(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}function Eh(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function kh(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Mh(t,e){var r,n={},o={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=Ih(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var Th=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_h=new RegExp(Th.source,"g");function Ch(t,e){var r,n,o,i=Th.lastIndex=_h.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=Th.exec(t))&&(n=_h.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:kh(r,n)})),i=_h.lastIndex;return i<e.length&&(o=e.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function Ih(t,e){var r,n=typeof e;return null==e||"boolean"===n?wh(e):("number"===n?kh:"string"===n?(r=ih(e))?(e=r,jh):Ch:e instanceof ih?jh:e instanceof Date?Eh:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Ah:Array.isArray(e)?Ph:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Mh:kh)(t,e)}function Dh(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Nh(t,e){void 0===e&&(e=t,t=Ih);for(var r=0,n=e.length-1,o=e[0],i=new Array(n<0?0:n);r<n;)i[r]=t(o,o=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return i[e](t-e)}}function Bh(t){return+t}var Rh=[0,1];function Lh(t){return t}function $h(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function zh(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=$h(o,n),i=r(a,i)):(n=$h(n,o),i=r(i,a)),function(t){return i(n(t))}}function Fh(t,e,r){var n=Math.min(t.length,e.length)-1,o=new Array(n),i=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=$h(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=mp(t,e,1,n)-1;return i[r](o[r](e))}}function Uh(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function qh(){var t,e,r,n,o,i,a=Rh,c=Rh,u=Ih,l=Lh;function s(){var t=Math.min(a.length,c.length);return l!==Lh&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?Fh:zh,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(c,a.map(t),kh)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Bh),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=Dh,s()},f.clamp=function(t){return arguments.length?(l=!!t||Lh,s()):l!==Lh},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function Wh(){return qh()(Lh,Lh)}function Vh(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Xh(t){return(t=Vh(Math.abs(t)))?t[1]:NaN}var Hh,Kh=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Gh(t){if(!(e=Kh.exec(t)))throw new Error("invalid format: "+t);var e;return new Yh({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Yh(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Zh(t,e){var r=Vh(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}Gh.prototype=Yh.prototype,Yh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Jh={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Zh(100*t,e),r:Zh,s:function(t,e){var r=Vh(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(Hh=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+Vh(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Qh(t){return t}var ty,ey,ry,ny=Array.prototype.map,oy=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function iy(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?Qh:(e=ny.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),i.push(t.substring(o-=c,o+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?Qh:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(ny.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Gh(t)).fill,r=t.align,f=t.sign,p=t.symbol,h=t.zero,y=t.width,d=t.comma,v=t.precision,m=t.trim,b=t.type;"n"===b?(d=!0,b="g"):Jh[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var g="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===p?i:/[%p]/.test(b)?u:"",w=Jh[b],O=/[defgprs%]/.test(b);function S(t){var o,i,u,p=g,S=x;if("c"===b)S=w(t)+S,t="";else{var j=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:w(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),j&&0==+t&&"+"!==f&&(j=!1),p=(j?"("===f?f:l:"-"===f||"("===f?"":f)+p,S=("s"===b?oy[8+Hh/3]:"")+S+(j&&"("===f?")":""),O)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){S=(46===u?a+t.slice(o+1):t.slice(o))+S,t=t.slice(0,o);break}}d&&!h&&(t=n(t,1/0));var A=p.length+t.length+S.length,P=A<y?new Array(y-A+1).join(e):"";switch(d&&h&&(t=n(P+t,P.length?y-S.length:1/0),P=""),r){case"<":t=p+t+S+P;break;case"=":t=p+P+t+S;break;case"^":t=P.slice(0,A=P.length>>1)+p+t+S+P.slice(A);break;default:t=P+p+t+S}return c(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var r=f(((t=Gh(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(Xh(e)/3))),o=Math.pow(10,-n),i=oy[8+n/3];return function(t){return r(o*t)+i}}}}function ay(t,e,r,n){var o,i=kp(t,e,r);switch((n=Gh(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Xh(e)/3)))-Xh(Math.abs(t)))}(i,a))||(n.precision=o),ry(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Xh(e)-Xh(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(t){return Math.max(0,-Xh(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return ey(n)}function cy(t){var e=t.domain;return t.ticks=function(t){var r=e();return Pp(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return ay(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,c=i.length-1,u=i[a],l=i[c],s=10;for(l<u&&(o=u,u=l,l=o,o=a,a=c,c=o);s-- >0;){if((o=Ep(u,l,r))===n)return i[a]=u,i[c]=l,e(i);if(o>0)u=Math.floor(u/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function uy(){var t=Wh();return t.copy=function(){return Uh(t,uy())},Dp.apply(t,arguments),cy(t)}function ly(t,e){var r,n=0,o=(t=t.slice()).length-1,i=t[n],a=t[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),t[n]=e.floor(i),t[o]=e.ceil(a),t}function sy(t){return Math.log(t)}function fy(t){return Math.exp(t)}function py(t){return-Math.log(-t)}function hy(t){return-Math.exp(-t)}function yy(t){return isFinite(t)?+("1e"+t):t<0?0:t}function dy(t){return(e,r)=>-t(-e,r)}function vy(t){const e=t(sy,fy),r=e.domain;let n,o,i=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?yy:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=dy(n),o=dy(o),t(py,hy)):t(sy,fy),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),p=n(c);const h=null==t?10:+t;let y=[];if(!(i%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;y.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;y.push(s)}2*y.length<h&&(y=Pp(a,c,h))}else y=Pp(f,p,Math.min(p-f,h)).map(o);return u?y.reverse():y},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=Gh(r)).precision||(r.trim=!0),r=ey(r)),t===1/0)return r;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(n(t)));return e*i<i-.5&&(e*=i),e<=a?r(t):""}},e.nice=()=>r(ly(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function my(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function by(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function gy(t){var e=1,r=t(my(e),by(e));return r.constant=function(r){return arguments.length?t(my(e=+r),by(e)):e},cy(r)}function xy(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function wy(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Oy(t){return t<0?-t*t:t*t}function Sy(t){var e=t(Lh,Lh),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(Lh,Lh):.5===r?t(wy,Oy):t(xy(r),xy(1/r)):r},cy(e)}function jy(){var t=Sy(qh());return t.copy=function(){return Uh(t,jy()).exponent(t.exponent())},Dp.apply(t,arguments),t}function Ay(t){return Math.sign(t)*t*t}ty=iy({thousands:",",grouping:[3],currency:["$",""]}),ey=ty.format,ry=ty.formatPrefix;const Py=new Date,Ey=new Date;function ky(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let c;do{a.push(c=new Date(+r)),e(r,i),t(r)}while(c<r&&r<n);return a},o.filter=r=>ky((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(o.count=(e,n)=>(Py.setTime(+e),Ey.setTime(+n),t(Py),t(Ey),Math.floor(r(Py,Ey))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null)),o}const My=ky((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));My.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?ky((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):My:null),My.range;const Ty=1e3,_y=6e4,Cy=36e5,Iy=864e5,Dy=6048e5,Ny=2592e6,By=31536e6,Ry=ky((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Ty)}),((t,e)=>(e-t)/Ty),(t=>t.getUTCSeconds()));Ry.range;const Ly=ky((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ty)}),((t,e)=>{t.setTime(+t+e*_y)}),((t,e)=>(e-t)/_y),(t=>t.getMinutes()));Ly.range;const $y=ky((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*_y)}),((t,e)=>(e-t)/_y),(t=>t.getUTCMinutes()));$y.range;const zy=ky((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ty-t.getMinutes()*_y)}),((t,e)=>{t.setTime(+t+e*Cy)}),((t,e)=>(e-t)/Cy),(t=>t.getHours()));zy.range;const Fy=ky((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Cy)}),((t,e)=>(e-t)/Cy),(t=>t.getUTCHours()));Fy.range;const Uy=ky((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*_y)/Iy),(t=>t.getDate()-1));Uy.range;const qy=ky((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Iy),(t=>t.getUTCDate()-1));qy.range;const Wy=ky((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Iy),(t=>Math.floor(t/Iy)));function Vy(t){return ky((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*_y)/Dy))}Wy.range;const Xy=Vy(0),Hy=Vy(1),Ky=Vy(2),Gy=Vy(3),Yy=Vy(4),Zy=Vy(5),Jy=Vy(6);function Qy(t){return ky((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Dy))}Xy.range,Hy.range,Ky.range,Gy.range,Yy.range,Zy.range,Jy.range;const td=Qy(0),ed=Qy(1),rd=Qy(2),nd=Qy(3),od=Qy(4),id=Qy(5),ad=Qy(6);td.range,ed.range,rd.range,nd.range,od.range,id.range,ad.range;const cd=ky((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()));cd.range;const ud=ky((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()));ud.range;const ld=ky((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));ld.every=t=>isFinite(t=Math.floor(t))&&t>0?ky((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null,ld.range;const sd=ky((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function fd(t,e,r,n,o,i){const a=[[Ry,1,Ty],[Ry,5,5e3],[Ry,15,15e3],[Ry,30,3e4],[i,1,_y],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Cy],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,Iy],[n,2,1728e5],[r,1,Dy],[e,1,Ny],[e,3,7776e6],[t,1,By]];function c(e,r,n){const o=Math.abs(r-e)/n,i=yp((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(kp(e/By,r/By,n));if(0===i)return My.every(Math.max(kp(e,r,n),1));const[c,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return c.every(u)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:c(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},c]}sd.every=t=>isFinite(t=Math.floor(t))&&t>0?ky((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null,sd.range;const[pd,hd]=fd(sd,ud,td,Wy,Fy,$y),[yd,dd]=fd(ld,cd,Xy,Uy,zy,Ly);function vd(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function md(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function bd(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var gd,xd,wd,Od={"-":"",_:" ",0:"0"},Sd=/^\s*\d+/,jd=/^%/,Ad=/[\\^$*+?|[\]().{}]/g;function Pd(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function Ed(t){return t.replace(Ad,"\\$&")}function kd(t){return new RegExp("^(?:"+t.map(Ed).join("|")+")","i")}function Md(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Td(t,e,r){var n=Sd.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function _d(t,e,r){var n=Sd.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function Cd(t,e,r){var n=Sd.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function Id(t,e,r){var n=Sd.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Dd(t,e,r){var n=Sd.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Nd(t,e,r){var n=Sd.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Bd(t,e,r){var n=Sd.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Rd(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Ld(t,e,r){var n=Sd.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function $d(t,e,r){var n=Sd.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function zd(t,e,r){var n=Sd.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Fd(t,e,r){var n=Sd.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Ud(t,e,r){var n=Sd.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function qd(t,e,r){var n=Sd.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Wd(t,e,r){var n=Sd.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Vd(t,e,r){var n=Sd.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Xd(t,e,r){var n=Sd.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Hd(t,e,r){var n=jd.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Kd(t,e,r){var n=Sd.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Gd(t,e,r){var n=Sd.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Yd(t,e){return Pd(t.getDate(),e,2)}function Zd(t,e){return Pd(t.getHours(),e,2)}function Jd(t,e){return Pd(t.getHours()%12||12,e,2)}function Qd(t,e){return Pd(1+Uy.count(ld(t),t),e,3)}function tv(t,e){return Pd(t.getMilliseconds(),e,3)}function ev(t,e){return tv(t,e)+"000"}function rv(t,e){return Pd(t.getMonth()+1,e,2)}function nv(t,e){return Pd(t.getMinutes(),e,2)}function ov(t,e){return Pd(t.getSeconds(),e,2)}function iv(t){var e=t.getDay();return 0===e?7:e}function av(t,e){return Pd(Xy.count(ld(t)-1,t),e,2)}function cv(t){var e=t.getDay();return e>=4||0===e?Yy(t):Yy.ceil(t)}function uv(t,e){return t=cv(t),Pd(Yy.count(ld(t),t)+(4===ld(t).getDay()),e,2)}function lv(t){return t.getDay()}function sv(t,e){return Pd(Hy.count(ld(t)-1,t),e,2)}function fv(t,e){return Pd(t.getFullYear()%100,e,2)}function pv(t,e){return Pd((t=cv(t)).getFullYear()%100,e,2)}function hv(t,e){return Pd(t.getFullYear()%1e4,e,4)}function yv(t,e){var r=t.getDay();return Pd((t=r>=4||0===r?Yy(t):Yy.ceil(t)).getFullYear()%1e4,e,4)}function dv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Pd(e/60|0,"0",2)+Pd(e%60,"0",2)}function vv(t,e){return Pd(t.getUTCDate(),e,2)}function mv(t,e){return Pd(t.getUTCHours(),e,2)}function bv(t,e){return Pd(t.getUTCHours()%12||12,e,2)}function gv(t,e){return Pd(1+qy.count(sd(t),t),e,3)}function xv(t,e){return Pd(t.getUTCMilliseconds(),e,3)}function wv(t,e){return xv(t,e)+"000"}function Ov(t,e){return Pd(t.getUTCMonth()+1,e,2)}function Sv(t,e){return Pd(t.getUTCMinutes(),e,2)}function jv(t,e){return Pd(t.getUTCSeconds(),e,2)}function Av(t){var e=t.getUTCDay();return 0===e?7:e}function Pv(t,e){return Pd(td.count(sd(t)-1,t),e,2)}function Ev(t){var e=t.getUTCDay();return e>=4||0===e?od(t):od.ceil(t)}function kv(t,e){return t=Ev(t),Pd(od.count(sd(t),t)+(4===sd(t).getUTCDay()),e,2)}function Mv(t){return t.getUTCDay()}function Tv(t,e){return Pd(ed.count(sd(t)-1,t),e,2)}function _v(t,e){return Pd(t.getUTCFullYear()%100,e,2)}function Cv(t,e){return Pd((t=Ev(t)).getUTCFullYear()%100,e,2)}function Iv(t,e){return Pd(t.getUTCFullYear()%1e4,e,4)}function Dv(t,e){var r=t.getUTCDay();return Pd((t=r>=4||0===r?od(t):od.ceil(t)).getUTCFullYear()%1e4,e,4)}function Nv(){return"+0000"}function Bv(){return"%"}function Rv(t){return+t}function Lv(t){return Math.floor(+t/1e3)}function $v(t){return new Date(t)}function zv(t){return t instanceof Date?+t:+new Date(+t)}function Fv(t,e,r,n,o,i,a,c,u,l){var s=Wh(),f=s.invert,p=s.domain,h=l(".%L"),y=l(":%S"),d=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),b=l("%b %d"),g=l("%B"),x=l("%Y");function w(t){return(u(t)<t?h:c(t)<t?y:a(t)<t?d:i(t)<t?v:n(t)<t?o(t)<t?m:b:r(t)<t?g:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,zv)):p().map($v)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?w:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(ly(r,t)):s},s.copy=function(){return Uh(s,Fv(t,e,r,n,o,i,a,c,u,l))},s}function Uv(){var t,e,r,n,o,i=0,a=1,c=Lh,u=!1;function l(e){return null==e||isNaN(e=+e)?o:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(Ih),l.rangeRound=s(Dh),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),l}}function qv(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Wv(){var t=Sy(Uv());return t.copy=function(){return qv(t,Wv()).exponent(t.exponent())},Np.apply(t,arguments)}function Vv(){var t,e,r,n,o,i,a,c=0,u=.5,l=1,s=1,f=Lh,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function y(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=Nh(t,[r,n,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([c,u,l]=a,t=i(c=+c),e=i(u=+u),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h):[c,u,l]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=y(Ih),h.rangeRound=y(Dh),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function Xv(){var t=Sy(Vv());return t.copy=function(){return qv(t,Xv()).exponent(t.exponent())},Np.apply(t,arguments)}!function(t){gd=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=kd(o),s=Md(o),f=kd(i),p=Md(i),h=kd(a),y=Md(a),d=kd(c),v=Md(c),m=kd(u),b=Md(u),g={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:Yd,e:Yd,f:ev,g:pv,G:yv,H:Zd,I:Jd,j:Qd,L:tv,m:rv,M:nv,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Rv,s:Lv,S:ov,u:iv,U:av,V:uv,w:lv,W:sv,x:null,X:null,y:fv,Y:hv,Z:dv,"%":Bv},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:vv,e:vv,f:wv,g:Cv,G:Dv,H:mv,I:bv,j:gv,L:xv,m:Ov,M:Sv,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Rv,s:Lv,S:jv,u:Av,U:Pv,V:kv,w:Mv,W:Tv,x:null,X:null,y:_v,Y:Iv,Z:Nv,"%":Bv},w={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=y.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return j(t,e,r,n)},d:zd,e:zd,f:Xd,g:Bd,G:Nd,H:Ud,I:Ud,j:Fd,L:Vd,m:$d,M:qd,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:Ld,Q:Kd,s:Gd,S:Wd,u:_d,U:Cd,V:Id,w:Td,W:Dd,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:Bd,Y:Nd,Z:Rd,"%":Hd};function O(t,e){return function(r){var n,o,i,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(o=Od[n=t.charAt(++c)])?n=t.charAt(++c):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function S(t,e){return function(r){var n,o,i=bd(1900,void 0,1);if(j(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=md(bd(i.y,0,1))).getUTCDay(),n=o>4||0===o?ed.ceil(n):ed(n),n=qy.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=vd(bd(i.y,0,1))).getDay(),n=o>4||0===o?Hy.ceil(n):Hy(n),n=Uy.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?md(bd(i.y,0,1)).getUTCDay():vd(bd(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,md(i)):vd(i)}}function j(t,e,r,n){for(var o,i,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=w[o in Od?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return g.x=O(r,g),g.X=O(n,g),g.c=O(e,g),x.x=O(r,x),x.X=O(n,x),x.c=O(e,x),{format:function(t){var e=O(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}(t),xd=gd.format,gd.parse,wd=gd.utcFormat,gd.utcParse}({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"]});var Hv=Object.freeze({__proto__:null,scaleBand:Lp,scaleDiverging:function t(){var e=cy(Vv()(Lh));return e.copy=function(){return qv(e,t())},Np.apply(e,arguments)},scaleDivergingLog:function t(){var e=vy(Vv()).domain([.1,1,10]);return e.copy=function(){return qv(e,t()).base(e.base())},Np.apply(e,arguments)},scaleDivergingPow:Xv,scaleDivergingSqrt:function(){return Xv.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=gy(Vv());return e.copy=function(){return qv(e,t()).constant(e.constant())},Np.apply(e,arguments)},scaleIdentity:function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,Bh),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,Bh):[0,1],cy(n)},scaleImplicit:Bp,scaleLinear:uy,scaleLog:function t(){const e=vy(qh()).domain([1,10]);return e.copy=()=>Uh(e,t()).base(e.base()),Dp.apply(e,arguments),e},scaleOrdinal:Rp,scalePoint:zp,scalePow:jy,scaleQuantile:function t(){var e,r=[],n=[],o=[];function i(){var t=0,e=Math.max(1,n.length);for(o=new Array(e-1);++t<e;)o[t-1]=Ip(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[mp(o,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?o[e-1]:r[0],e<o.length?o[e]:r[r.length-1]]},a.domain=function(t){if(!arguments.length)return r.slice();r=[];for(let e of t)null==e||isNaN(e=+e)||r.push(e);return r.sort(pp),i()},a.range=function(t){return arguments.length?(n=Array.from(t),i()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return o.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},Dp.apply(a,arguments)},scaleQuantize:function t(){var e,r=0,n=1,o=1,i=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[mp(i,t,0,o)]:e}function u(){var t=-1;for(i=new Array(o);++t<o;)i[t]=((t+1)*n-(t-o)*r)/(o+1);return c}return c.domain=function(t){return arguments.length?([r,n]=t,r=+r,n=+n,u()):[r,n]},c.range=function(t){return arguments.length?(o=(a=Array.from(t)).length-1,u()):a.slice()},c.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,i[0]]:e>=o?[i[o-1],n]:[i[e-1],i[e]]},c.unknown=function(t){return arguments.length?(e=t,c):c},c.thresholds=function(){return i.slice()},c.copy=function(){return t().domain([r,n]).range(a).unknown(e)},Dp.apply(cy(c),arguments)},scaleRadial:function t(){var e,r=Wh(),n=[0,1],o=!1;function i(t){var n=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(r(t));return isNaN(n)?e:o?Math.round(n):n}return i.invert=function(t){return r.invert(Ay(t))},i.domain=function(t){return arguments.length?(r.domain(t),i):r.domain()},i.range=function(t){return arguments.length?(r.range((n=Array.from(t,Bh)).map(Ay)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(o=!!t,i):o},i.clamp=function(t){return arguments.length?(r.clamp(t),i):r.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t(r.domain(),n).round(o).clamp(r.clamp()).unknown(e)},Dp.apply(i,arguments),cy(i)},scaleSequential:function t(){var e=cy(Uv()(Lh));return e.copy=function(){return qv(e,t())},Np.apply(e,arguments)},scaleSequentialLog:function t(){var e=vy(Uv()).domain([1,10]);return e.copy=function(){return qv(e,t()).base(e.base())},Np.apply(e,arguments)},scaleSequentialPow:Wv,scaleSequentialQuantile:function t(){var e=[],r=Lh;function n(t){if(null!=t&&!isNaN(t=+t))return r((mp(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(pp),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map(((t,n)=>r(n/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((r,n)=>function(t,e,r){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,r)),(n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return Tp(t);if(e>=1)return Mp(t);var n,o=(n-1)*e,i=Math.floor(o),a=Mp(_p(t,i).subarray(0,i+1));return a+(Tp(t.subarray(i+1))-a)*(o-i)}}(e,n/t)))},n.copy=function(){return t(r).domain(e)},Np.apply(n,arguments)},scaleSequentialSqrt:function(){return Wv.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=gy(Uv());return e.copy=function(){return qv(e,t()).constant(e.constant())},Np.apply(e,arguments)},scaleSqrt:function(){return jy.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=gy(qh());return e.copy=function(){return Uh(e,t()).constant(e.constant())},Dp.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],o=1;function i(t){return null!=t&&t<=t?n[mp(r,t,0,o)]:e}return i.domain=function(t){return arguments.length?(r=Array.from(t),o=Math.min(r.length,n.length-1),i):r.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t().domain(r).range(n).unknown(e)},Dp.apply(i,arguments)},scaleTime:function(){return Dp.apply(Fv(yd,dd,ld,cd,Xy,Uy,zy,Ly,Ry,xd).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Dp.apply(Fv(pd,hd,sd,ud,td,qy,Fy,$y,Ry,wd).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:ay}),Kv=q;var Gv=function(t,e,r){for(var n=-1,o=t.length;++n<o;){var i=t[n],a=e(i);if(null!=a&&(void 0===c?a==a&&!Kv(a):r(a,c)))var c=a,u=i}return u};var Yv=function(t,e){return t>e},Zv=Gv,Jv=Yv,Qv=hu;var tm=function(t){return t&&t.length?Zv(t,Qv,Jv):void 0},em=m(tm);var rm=function(t,e){return t<e},nm=Gv,om=rm,im=hu;var am=function(t){return t&&t.length?nm(t,im,om):void 0},cm=m(am),um=Pe,lm=Pu,sm=Pl,fm=S;var pm=ml,hm=function(t,e){return(fm(t)?um:sm)(t,lm(e))};var ym=m((function(t,e){return pm(hm(t,e),1)})),dm=Dc;var vm,mm=m((function(t,e){return dm(t,e)})),bm=1e9,gm=!0,xm="[DecimalError] ",wm=xm+"Invalid argument: ",Om=xm+"Exponent out of range: ",Sm=Math.floor,jm=Math.pow,Am=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Pm=1e7,Em=7,km=9007199254740991,Mm=Sm(km/Em),Tm={};function _m(t,e){var r,n,o,i,a,c,u,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),gm?Fm(e,f):e;if(u=t.d,l=e.d,a=t.e,o=e.e,u=u.slice(),i=a-o){for(i<0?(n=u,i=-i,c=l.length):(n=l,o=a,c=u.length),i>(c=(a=Math.ceil(f/Em))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=u.length)-(i=l.length)<0&&(i=c,n=l,l=u,u=n),r=0;i;)r=(u[--i]=u[i]+l[i]+r)/Pm|0,u[i]%=Pm;for(r&&(u.unshift(r),++o),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=o,gm?Fm(e,f):e}function Cm(t,e,r){if(t!==~~t||t<e||t>r)throw Error(wm+t)}function Im(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)n=t[e]+"",(r=Em-n.length)&&(i+=Lm(r)),i+=n;a=t[e],(r=Em-(n=a+"").length)&&(i+=Lm(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}Tm.absoluteValue=Tm.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},Tm.comparedTo=Tm.cmp=function(t){var e,r,n,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,r=(n=i.d.length)<(o=t.d.length)?n:o;e<r;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},Tm.decimalPlaces=Tm.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*Em;if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},Tm.dividedBy=Tm.div=function(t){return Dm(this,new this.constructor(t))},Tm.dividedToIntegerBy=Tm.idiv=function(t){var e=this.constructor;return Fm(Dm(this,new e(t),0,1),e.precision)},Tm.equals=Tm.eq=function(t){return!this.cmp(t)},Tm.exponent=function(){return Bm(this)},Tm.greaterThan=Tm.gt=function(t){return this.cmp(t)>0},Tm.greaterThanOrEqualTo=Tm.gte=function(t){return this.cmp(t)>=0},Tm.isInteger=Tm.isint=function(){return this.e>this.d.length-2},Tm.isNegative=Tm.isneg=function(){return this.s<0},Tm.isPositive=Tm.ispos=function(){return this.s>0},Tm.isZero=function(){return 0===this.s},Tm.lessThan=Tm.lt=function(t){return this.cmp(t)<0},Tm.lessThanOrEqualTo=Tm.lte=function(t){return this.cmp(t)<1},Tm.logarithm=Tm.log=function(t){var e,r=this,n=r.constructor,o=n.precision,i=o+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(vm))throw Error(xm+"NaN");if(r.s<1)throw Error(xm+(r.s?"NaN":"-Infinity"));return r.eq(vm)?new n(0):(gm=!1,e=Dm($m(r,i),$m(t,i),i),gm=!0,Fm(e,o))},Tm.minus=Tm.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Um(e,t):_m(e,(t.s=-t.s,t))},Tm.modulo=Tm.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(xm+"NaN");return r.s?(gm=!1,e=Dm(r,t,0,1).times(t),gm=!0,r.minus(e)):Fm(new n(r),o)},Tm.naturalExponential=Tm.exp=function(){return Nm(this)},Tm.naturalLogarithm=Tm.ln=function(){return $m(this)},Tm.negated=Tm.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},Tm.plus=Tm.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?_m(e,t):Um(e,(t.s=-t.s,t))},Tm.precision=Tm.sd=function(t){var e,r,n,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(wm+t);if(e=Bm(o)+1,r=(n=o.d.length-1)*Em+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},Tm.squareRoot=Tm.sqrt=function(){var t,e,r,n,o,i,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(xm+"NaN")}for(t=Bm(c),gm=!1,0==(o=Math.sqrt(+c))||o==1/0?(((e=Im(c.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=Sm((t+1)/2)-(t<0||t%2),n=new u(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new u(o.toString()),o=a=(r=u.precision)+3;;)if(n=(i=n).plus(Dm(c,i,a+2)).times(.5),Im(i.d).slice(0,a)===(e=Im(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(Fm(i,r+1,0),i.times(i).eq(c)){n=i;break}}else if("9999"!=e)break;a+=4}return gm=!0,Fm(n,r)},Tm.times=Tm.mul=function(t){var e,r,n,o,i,a,c,u,l,s=this,f=s.constructor,p=s.d,h=(t=new f(t)).d;if(!s.s||!t.s)return new f(0);for(t.s*=s.s,r=s.e+t.e,(u=p.length)<(l=h.length)&&(i=p,p=h,h=i,a=u,u=l,l=a),i=[],n=a=u+l;n--;)i.push(0);for(n=l;--n>=0;){for(e=0,o=u+n;o>n;)c=i[o]+h[n]*p[o-n-1]+e,i[o--]=c%Pm|0,e=c/Pm|0;i[o]=(i[o]+e)%Pm|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,gm?Fm(t,f.precision):t},Tm.toDecimalPlaces=Tm.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(Cm(t,0,bm),void 0===e?e=n.rounding:Cm(e,0,8),Fm(r,t+Bm(r)+1,e))},Tm.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=qm(n,!0):(Cm(t,0,bm),void 0===e?e=o.rounding:Cm(e,0,8),r=qm(n=Fm(new o(n),t+1,e),!0,t+1)),r},Tm.toFixed=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?qm(o):(Cm(t,0,bm),void 0===e?e=i.rounding:Cm(e,0,8),r=qm((n=Fm(new i(o),t+Bm(o)+1,e)).abs(),!1,t+Bm(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},Tm.toInteger=Tm.toint=function(){var t=this,e=t.constructor;return Fm(new e(t),Bm(t)+1,e.rounding)},Tm.toNumber=function(){return+this},Tm.toPower=Tm.pow=function(t){var e,r,n,o,i,a,c=this,u=c.constructor,l=+(t=new u(t));if(!t.s)return new u(vm);if(!(c=new u(c)).s){if(t.s<1)throw Error(xm+"Infinity");return c}if(c.eq(vm))return c;if(n=u.precision,t.eq(vm))return Fm(c,n);if(a=(e=t.e)>=(r=t.d.length-1),i=c.s,a){if((r=l<0?-l:l)<=km){for(o=new u(vm),e=Math.ceil(n/Em+4),gm=!1;r%2&&Wm((o=o.times(c)).d,e),0!==(r=Sm(r/2));)Wm((c=c.times(c)).d,e);return gm=!0,t.s<0?new u(vm).div(o):Fm(o,n)}}else if(i<0)throw Error(xm+"NaN");return i=i<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,gm=!1,o=t.times($m(c,n+12)),gm=!0,(o=Nm(o)).s=i,o},Tm.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?n=qm(o,(r=Bm(o))<=i.toExpNeg||r>=i.toExpPos):(Cm(t,1,bm),void 0===e?e=i.rounding:Cm(e,0,8),n=qm(o=Fm(new i(o),t,e),t<=(r=Bm(o))||r<=i.toExpNeg,t)),n},Tm.toSignificantDigits=Tm.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(Cm(t,1,bm),void 0===e?e=r.rounding:Cm(e,0,8)),Fm(new r(this),t,e)},Tm.toString=Tm.valueOf=Tm.val=Tm.toJSON=Tm[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=Bm(t),r=t.constructor;return qm(t,e<=r.toExpNeg||e>=r.toExpPos)};var Dm=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%Pm|0,n=r/Pm|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*Pm+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,a){var c,u,l,s,f,p,h,y,d,v,m,b,g,x,w,O,S,j,A=n.constructor,P=n.s==o.s?1:-1,E=n.d,k=o.d;if(!n.s)return new A(n);if(!o.s)throw Error(xm+"Division by zero");for(u=n.e-o.e,S=k.length,w=E.length,y=(h=new A(P)).d=[],l=0;k[l]==(E[l]||0);)++l;if(k[l]>(E[l]||0)&&--u,(b=null==i?i=A.precision:a?i+(Bm(n)-Bm(o))+1:i)<0)return new A(0);if(b=b/Em+2|0,l=0,1==S)for(s=0,k=k[0],b++;(l<w||s)&&b--;l++)g=s*Pm+(E[l]||0),y[l]=g/k|0,s=g%k|0;else{for((s=Pm/(k[0]+1)|0)>1&&(k=t(k,s),E=t(E,s),S=k.length,w=E.length),x=S,v=(d=E.slice(0,S)).length;v<S;)d[v++]=0;(j=k.slice()).unshift(0),O=k[0],k[1]>=Pm/2&&++O;do{s=0,(c=e(k,d,S,v))<0?(m=d[0],S!=v&&(m=m*Pm+(d[1]||0)),(s=m/O|0)>1?(s>=Pm&&(s=Pm-1),1==(c=e(f=t(k,s),d,p=f.length,v=d.length))&&(s--,r(f,S<p?j:k,p))):(0==s&&(c=s=1),f=k.slice()),(p=f.length)<v&&f.unshift(0),r(d,f,v),-1==c&&(c=e(k,d,S,v=d.length))<1&&(s++,r(d,S<v?j:k,v)),v=d.length):0===c&&(s++,d=[0]),y[l++]=s,c&&d[0]?d[v++]=E[x]||0:(d=[E[x]],v=1)}while((x++<w||void 0!==d[0])&&b--)}return y[0]||y.shift(),h.e=u,Fm(h,a?i+Bm(h)+1:i)}}();function Nm(t,e){var r,n,o,i,a,c=0,u=0,l=t.constructor,s=l.precision;if(Bm(t)>16)throw Error(Om+Bm(t));if(!t.s)return new l(vm);for(null==e?(gm=!1,a=s):a=e,i=new l(.03125);t.abs().gte(.1);)t=t.times(i),u+=5;for(a+=Math.log(jm(2,u))/Math.LN10*2+5|0,r=n=o=new l(vm),l.precision=a;;){if(n=Fm(n.times(t),a),r=r.times(++c),Im((i=o.plus(Dm(n,r,a))).d).slice(0,a)===Im(o.d).slice(0,a)){for(;u--;)o=Fm(o.times(o),a);return l.precision=s,null==e?(gm=!0,Fm(o,s)):o}o=i}}function Bm(t){for(var e=t.e*Em,r=t.d[0];r>=10;r/=10)e++;return e}function Rm(t,e,r){if(e>t.LN10.sd())throw gm=!0,r&&(t.precision=r),Error(xm+"LN10 precision limit exceeded");return Fm(new t(t.LN10),e)}function Lm(t){for(var e="";t--;)e+="0";return e}function $m(t,e){var r,n,o,i,a,c,u,l,s,f=1,p=t,h=p.d,y=p.constructor,d=y.precision;if(p.s<1)throw Error(xm+(p.s?"NaN":"-Infinity"));if(p.eq(vm))return new y(0);if(null==e?(gm=!1,l=d):l=e,p.eq(10))return null==e&&(gm=!0),Rm(y,l);if(l+=10,y.precision=l,n=(r=Im(h)).charAt(0),i=Bm(p),!(Math.abs(i)<15e14))return u=Rm(y,l+2,d).times(i+""),p=$m(new y(n+"."+r.slice(1)),l-10).plus(u),y.precision=d,null==e?(gm=!0,Fm(p,d)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Im((p=p.times(t)).d)).charAt(0),f++;for(i=Bm(p),n>1?(p=new y("0."+r),i++):p=new y(n+"."+r.slice(1)),c=a=p=Dm(p.minus(vm),p.plus(vm),l),s=Fm(p.times(p),l),o=3;;){if(a=Fm(a.times(s),l),Im((u=c.plus(Dm(a,new y(o),l))).d).slice(0,l)===Im(c.d).slice(0,l))return c=c.times(2),0!==i&&(c=c.plus(Rm(y,l+2,d).times(i+""))),c=Dm(c,new y(f),l),y.precision=d,null==e?(gm=!0,Fm(c,d)):c;c=u,o+=2}}function zm(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=Sm(r/Em),t.d=[],n=(r+1)%Em,r<0&&(n+=Em),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=Em;n<o;)t.d.push(+e.slice(n,n+=Em));e=e.slice(n),n=Em-e.length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),gm&&(t.e>Mm||t.e<-Mm))throw Error(Om+r)}else t.s=0,t.e=0,t.d=[0];return t}function Fm(t,e,r){var n,o,i,a,c,u,l,s,f=t.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=Em,o=e,l=f[s=0];else{if((s=Math.ceil((n+1)/Em))>=(i=f.length))return t;for(l=i=f[s],a=1;i>=10;i/=10)a++;o=(n%=Em)-Em+a}if(void 0!==r&&(c=l/(i=jm(10,a-o-1))%10|0,u=e<0||void 0!==f[s+1]||l%i,u=r<4?(c||u)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||u||6==r&&(n>0?o>0?l/jm(10,a-o):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return u?(i=Bm(t),f.length=1,e=e-i-1,f[0]=jm(10,(Em-e%Em)%Em),t.e=Sm(-e/Em)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,i=1,s--):(f.length=s+1,i=jm(10,Em-n),f[s]=o>0?(l/jm(10,a-o)%jm(10,o)|0)*i:0),u)for(;;){if(0==s){(f[0]+=i)==Pm&&(f[0]=1,++t.e);break}if(f[s]+=i,f[s]!=Pm)break;f[s--]=0,i=1}for(n=f.length;0===f[--n];)f.pop();if(gm&&(t.e>Mm||t.e<-Mm))throw Error(Om+Bm(t));return t}function Um(t,e){var r,n,o,i,a,c,u,l,s,f,p=t.constructor,h=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),gm?Fm(e,h):e;if(u=t.d,f=e.d,n=e.e,l=t.e,u=u.slice(),a=l-n){for((s=a<0)?(r=u,a=-a,c=f.length):(r=f,n=l,c=u.length),a>(o=Math.max(Math.ceil(h/Em),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((s=(o=u.length)<(c=f.length))&&(c=o),o=0;o<c;o++)if(u[o]!=f[o]){s=u[o]<f[o];break}a=0}for(s&&(r=u,u=f,f=r,e.s=-e.s),c=u.length,o=f.length-c;o>0;--o)u[c++]=0;for(o=f.length;o>a;){if(u[--o]<f[o]){for(i=o;i&&0===u[--i];)u[i]=Pm-1;--u[i],u[o]+=Pm}u[o]-=f[o]}for(;0===u[--c];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=n,gm?Fm(e,h):e):new p(0)}function qm(t,e,r){var n,o=Bm(t),i=Im(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+Lm(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Lm(-o-1)+i,r&&(n=r-a)>0&&(i+=Lm(n))):o>=a?(i+=Lm(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+Lm(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=Lm(n))),t.s<0?"-"+i:i}function Wm(t,e){if(t.length>e)return t.length=e,!0}function Vm(t){if(!t||"object"!=typeof t)throw Error(xm+"Object expected");var e,r,n,o=["precision",1,bm,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(n=t[r=o[e]])){if(!(Sm(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(wm+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(wm+r+": "+n);this[r]=new this(n)}return this}var Xm=function t(e){var r,n,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(wm+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):zm(e,t.toString())}if("string"!=typeof t)throw Error(wm+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!Am.test(t))throw Error(wm+t);zm(e,t)}if(i.prototype=Tm,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=t,i.config=i.set=Vm,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return i.config(e),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});vm=new Xm(1);var Hm=Xm;function Km(t){return function(t){if(Array.isArray(t))return Gm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Gm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gm(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ym=function(t){return t},Zm={"@@functional/placeholder":!0},Jm=function(t){return t===Zm},Qm=function(t){return function e(){return 0===arguments.length||1===arguments.length&&Jm(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},tb=function t(e,r){return 1===e?r:Qm((function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter((function(t){return t!==Zm})).length;return a>=e?r.apply(void 0,o):t(e-a,Qm((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=o.map((function(t){return Jm(t)?e.shift():t}));return r.apply(void 0,Km(i).concat(e))})))}))},eb=function(t){return tb(t.length,t)},rb=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},nb=eb((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),ob=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return Ym;var n=e.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce((function(t,e){return e(t)}),o.apply(void 0,arguments))}},ib=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},ab=function(t){var e=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e&&o.every((function(t,r){return t===e[r]}))?r:(e=o,r=t.apply(void 0,o))}};var cb=eb((function(t,e,r){var n=+t;return n+r*(+e-n)})),ub=eb((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),lb=eb((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))})),sb={rangeStep:function(t,e,r){for(var n=new Hm(t),o=0,i=[];n.lt(e)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},getDigitCount:function(t){return 0===t?1:Math.floor(new Hm(t).abs().log(10).toNumber())+1},interpolateNumber:cb,uninterpolateNumber:ub,uninterpolateTruncation:lb};function fb(t){return function(t){if(Array.isArray(t))return yb(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||hb(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pb(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(t,e)||hb(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hb(t,e){if(t){if("string"==typeof t)return yb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yb(t,e):void 0}}function yb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function db(t){var e=pb(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function vb(t,e,r){if(t.lte(0))return new Hm(0);var n=sb.getDigitCount(t.toNumber()),o=new Hm(10).pow(n),i=t.div(o),a=1!==n?.05:.1,c=new Hm(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?c:new Hm(Math.ceil(c))}function mb(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new Hm(0),tickMin:new Hm(0),tickMax:new Hm(0)};var i,a=vb(new Hm(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new Hm(0):(i=new Hm(t).add(e).div(2)).sub(new Hm(i).mod(a));var c=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new Hm(e).sub(i).div(a).toNumber()),l=c+u+1;return l>r?mb(t,e,r,n,o+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:i.sub(new Hm(c).mul(a)),tickMax:i.add(new Hm(u).mul(a))})}var bb=ab((function(t){var e=pb(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=pb(db([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(fb(rb(0,o-1).map((function(){return 1/0})))):[].concat(fb(rb(0,o-1).map((function(){return-1/0}))),[l]);return r>n?ib(s):s}if(u===l)return function(t,e,r){var n=1,o=new Hm(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new Hm(10).pow(sb.getDigitCount(t)-1),o=new Hm(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new Hm(Math.floor(t)))}else 0===t?o=new Hm(Math.floor((e-1)/2)):r||(o=new Hm(Math.floor(t)));var a=Math.floor((e-1)/2);return ob(nb((function(t){return o.add(new Hm(t-a).mul(n)).toNumber()})),rb)(0,e)}(u,o,i);var f=mb(u,l,a,i),p=f.step,h=f.tickMin,y=f.tickMax,d=sb.rangeStep(h,y.add(new Hm(.1).mul(p)),p);return r>n?ib(d):d})),gb=ab((function(t,e){var r=pb(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=pb(db([n,o]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,o];if(c===u)return[c];var l=Math.max(e,2),s=vb(new Hm(u).sub(c).div(l-1),i,0),f=[].concat(fb(sb.rangeStep(new Hm(c),new Hm(u).sub(new Hm(.99).mul(s)),s)),[u]);return n>o?ib(f):f})),xb="production"===process.env.NODE_ENV,wb="Invariant failed";function Ob(t,e){if(!t){if(xb)throw new Error(wb);var r="function"==typeof e?e():e,n=r?"".concat(wb,": ").concat(r):wb;throw new Error(n)}}var Sb=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function jb(){return jb=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jb.apply(this,arguments)}function Ab(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Pb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pb(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Eb(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function kb(e){var r=e.offset,n=e.layout,o=e.width,i=e.dataKey,a=e.data,c=e.dataPointFormatter,u=e.xAxis,l=e.yAxis,s=Eb(e,Sb),f=Ur(s,!1);"x"===e.direction&&"number"!==u.type&&("production"!==process.env.NODE_ENV?Ob(!1,'ErrorBar requires Axis type property to be "number".'):Ob(!1));var p=a.map((function(e){var a=c(e,i),s=a.x,p=a.y,h=a.value,y=a.errorVal;if(!y)return null;var d,v,m=[];if(Array.isArray(y)){var b=Ab(y,2);d=b[0],v=b[1]}else d=v=y;if("vertical"===n){var g=u.scale,x=p+r,w=x+o,O=x-o,S=g(h-d),j=g(h+v);m.push({x1:j,y1:w,x2:j,y2:O}),m.push({x1:S,y1:x,x2:j,y2:x}),m.push({x1:S,y1:w,x2:S,y2:O})}else if("horizontal"===n){var A=l.scale,P=s+r,E=P-o,k=P+o,M=A(h-d),T=A(h+v);m.push({x1:E,y1:T,x2:k,y2:T}),m.push({x1:P,y1:M,x2:P,y2:T}),m.push({x1:E,y1:M,x2:k,y2:M})}return t.createElement(Qr,jb({className:"recharts-errorBar",key:"bar-".concat(m.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},f),m.map((function(e){return t.createElement("line",jb({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return t.createElement(Qr,{className:"recharts-errorBars"},p)}function Mb(t){"@babel/helpers - typeof";return Mb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mb(t)}function Tb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _b(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Tb(Object(r),!0).forEach((function(e){Cb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Cb(t,e,r){var n;return n=function(t,e){if("object"!=Mb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Mb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Mb(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}kb.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},kb.displayName="ErrorBar";var Ib=function(t){var e,r=t.children,n=t.formattedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=$r(r,fl);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(n||[]).reduce((function(t,e){var r=e.item,n=e.props,o=n.sectors||n.data||[];return t.concat(o.map((function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(n||[]).map((function(t){var e=t.item,r=e.props,n=r.dataKey,o=r.name,i=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||i||"square",color:Ub(e),value:o||n,payload:e.props}})),_b(_b(_b({},a.props),fl.getWithHeight(a,o)),{},{payload:e,item:a})):null};function Db(t){"@babel/helpers - typeof";return Db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Db(t)}function Nb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nb(Object(r),!0).forEach((function(e){Rb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Rb(t,e,r){var n;return n=function(t,e){if("object"!=Db(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Db(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Db(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lb(t){return function(t){if(Array.isArray(t))return $b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return $b(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $b(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function zb(t,e,r){return Ke(t)||Ke(e)?r:yr(e)?He(t,e,r):et(e)?e(t):r}function Fb(t,e,r,n){var o=ym(t,(function(t){return zb(t,e)}));if("number"===r){var i=o.filter((function(t){return hr(t)||parseFloat(t)}));return i.length?[cm(i),em(i)]:[1/0,-1/0]}return(n?o.filter((function(t){return!Ke(t)})):o).map((function(t){return yr(t)||t instanceof Date?t:""}))}var Ub=function(t){var e,r=t.type.displayName,n=t.props,o=n.stroke,i=n.fill;switch(r){case"Line":e=o;break;case"Area":case"Radar":e=o&&"none"!==o?o:i;break;default:e=i}return e},qb=function(t,e,r,n,o){var i=Lr(e.props.children,kb).filter((function(t){return function(t,e,r){return!!Ke(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,o,t.props.direction)}));if(i&&i.length){var a=i.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=zb(e,r,0),o=Array.isArray(n)?[cm(n),em(n)]:[n,n],i=a.reduce((function(t,r){var n=zb(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},Wb=function(t,e,r,n,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===r&&i&&qb(t,e,i,n)||Fb(t,i,r,o)}));if("number"===r)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t}),[])},Vb=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Xb=function(t,e,r,n){if(n)return t.map((function(t){return t.coordinate}));var o,i,a=t.map((function(t){return t.coordinate===e&&(o=!0),t.coordinate===r&&(i=!0),t.coordinate}));return o||a.push(e),i||a.push(r),a},Hb=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*fr(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+u,value:t,offset:u}})).filter((function(t){return!sr(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+u,value:t,offset:u}})):n.domain().map((function(t,e){return{coordinate:n(t)+u,value:o?o[t]:t,index:e,offset:u}}))},Kb=new WeakMap,Gb=function(t,e){if("function"!=typeof e)return t;Kb.has(t)||Kb.set(t,new WeakMap);var r=Kb.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},Yb=function(t,e,r){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:Lp(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:uy(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:zp(),realScaleType:"point"}:"category"===o?{scale:Lp(),realScaleType:"band"}:{scale:uy(),realScaleType:"linear"};if(Qe(n)){var c="scale".concat(_n(n));return{scale:(Hv[c]||zp)(),realScaleType:Hv[c]?c:"point"}}return et(n)?{scale:n}:{scale:zp(),realScaleType:"point"}},Zb=1e-4,Jb=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-Zb,i=Math.max(n[0],n[1])+Zb,a=t(e[0]),c=t(e[r-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[r-1]])}},Qb={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var c=sr(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}Io(t,e)}},none:Io,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;o[n][1]+=o[n][0]=-c/2}Io(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var c=0,u=0,l=0;c<o;++c){for(var s=t[e[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<c;++h){var y=t[e[h]];p+=(y[a][1]||0)-(y[a-1][1]||0)}u+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,u&&(i-=l/u)}r[a-1][1]+=r[a-1][0]=i,Io(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0;i<e;++i){var a=sr(t[i][r][1])?t[i][r][0]:t[i][r][1];a>=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},tg=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),o=Qb[r],i=function(){var t=Cn([]),e=Do,r=Io,n=No;function o(o){var i,a,c=Array.from(t.apply(this,arguments),Bo),u=c.length,l=-1;for(const t of o)for(i=0,++l;i<u;++i)(c[i][l]=[0,+n(t,c[i].key,l,o)]).data=t;for(i=0,a=Vn(e(c));i<u;++i)c[a[i]].index=i;return r(c,a),c}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:Cn(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:Cn(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?Do:"function"==typeof t?t:Cn(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?Io:t,o):r},o}().keys(n).value((function(t,e){return+zb(t,e,0)})).order(Do).offset(o);return i(t)},eg=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var u=t.domain();if(!u.length)return null;var l=bb(u,o,a);return t.domain([cm(l),em(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:gb(s,o,a)}}return null};function rg(t){var e=t.axis,r=t.ticks,n=t.bandSize,o=t.entry,i=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!Ke(o[e.dataKey])){var c=xr(r,"value",o[e.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=zb(o,Ke(a)?e.dataKey:a);return Ke(u)?null:e.scale(u)}var ng=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=zb(i,e.dataKey,e.domain[a]);return Ke(c)?null:e.scale(c)-o/2+n},og=function(t,e,r){return Object.keys(t).reduce((function(n,o){var i=t[o].stackedData.reduce((function(t,n){var o=n.slice(e,r+1).reduce((function(t,e){return[cm(e.concat([t[0]]).filter(hr)),em(e.concat([t[1]]).filter(hr))]}),[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},ig=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ag=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cg=function(t,e,r){if(et(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(hr(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(ig.test(t[0])){var o=+ig.exec(t[0])[1];n[0]=e[0]-o}else et(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(hr(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(ag.test(t[1])){var i=+ag.exec(t[1])[1];n[1]=e[1]+i}else et(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},ug=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=ss(e,(function(t){return t.coordinate})),i=1/0,a=1,c=o.length;a<c;a++){var u=o[a],l=o[a-1];i=Math.min((u.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},lg=function(t,e,r){return t&&t.length?mm(t,He(r,"type.defaultProps.domain"))?e:t:e},sg=function(t,e){var r=t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType,l=r.hide;return Bb(Bb({},Ur(t,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:Ub(t),value:zb(e,n),type:c,payload:e,chartType:u,hide:l})};function fg(t){"@babel/helpers - typeof";return fg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fg(t)}function pg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function hg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pg(Object(r),!0).forEach((function(e){yg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yg(t,e,r){var n;return n=function(t,e){if("object"!=fg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==fg(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return vg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vg(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var mg=Math.PI/180,bg=function(t){return 180*t/Math.PI},gg=function(t,e,r,n){return{x:t+Math.cos(-mg*n)*r,y:e+Math.sin(-mg*n)*r}},xg=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(e-(r.top||0)-(r.bottom||0)))/2},wg=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var c=(r-o)/a,u=Math.acos(c);return n>i&&(u=2*Math.PI-u),{radius:a,angle:bg(u),angleInRadian:u}},Og=function(t,e){var r=e.startAngle,n=e.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return t+360*Math.min(o,i)},Sg=function(t,e){var r=t.x,n=t.y,o=wg({x:r,y:n},e),i=o.radius,a=o.angle,c=e.innerRadius,u=e.outerRadius;if(i<c||i>u)return!1;if(0===i)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),f=s.startAngle,p=s.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;l=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;l=h>=p&&h<=f}return l?hg(hg({},e),{},{radius:i,angle:Og(h,e)}):null};function jg(t){"@babel/helpers - typeof";return jg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jg(t)}var Ag=["offset"];function Pg(t){return function(t){if(Array.isArray(t))return Eg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Eg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Eg(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function kg(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Mg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Tg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mg(Object(r),!0).forEach((function(e){_g(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _g(t,e,r){var n;return n=function(t,e){if("object"!=jg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==jg(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cg(){return Cg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Cg.apply(this,arguments)}var Ig=function(t){var e=t.value,r=t.formatter,n=Ke(t.children)?e:t.children;return et(r)?r(n):n},Dg=function(e,r,n){var o,i,a=e.position,c=e.viewBox,u=e.offset,l=e.className,s=c,f=s.cx,p=s.cy,h=s.innerRadius,y=s.outerRadius,d=s.startAngle,v=s.endAngle,m=s.clockWise,b=(h+y)/2,g=function(t,e){return fr(e-t)*Math.min(Math.abs(e-t),360)}(d,v),x=g>=0?1:-1;"insideStart"===a?(o=d+x*u,i=m):"insideEnd"===a?(o=v-x*u,i=!m):"end"===a&&(o=v+x*u,i=m),i=g<=0?i:!i;var w=gg(f,p,b,o),S=gg(f,p,b,o+359*(i?1:-1)),j="M".concat(w.x,",").concat(w.y,"\n A").concat(b,",").concat(b,",0,1,").concat(i?0:1,",\n ").concat(S.x,",").concat(S.y),A=Ke(e.id)?vr("recharts-radial-line-"):e.id;return t.createElement("text",Cg({},n,{dominantBaseline:"central",className:O("recharts-radial-bar-label",l)}),t.createElement("defs",null,t.createElement("path",{id:A,d:j})),t.createElement("textPath",{xlinkHref:"#".concat(A)},r))},Ng=function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,c=o.innerRadius,u=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=gg(i,a,u+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=gg(i,a,(c+u)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},Bg=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,c=i.y,u=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",h=s>0?"start":"end",y=u>=0?1:-1,d=y*n,v=y>0?"end":"start",m=y>0?"start":"end";if("top"===o)return Tg(Tg({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===o)return Tg(Tg({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===o){var b={x:a-d,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return Tg(Tg({},b),r?{width:Math.max(b.x-r.x,0),height:l}:{})}if("right"===o){var g={x:a+u+d,y:c+l/2,textAnchor:m,verticalAnchor:"middle"};return Tg(Tg({},g),r?{width:Math.max(r.x+r.width-g.x,0),height:l}:{})}var x=r?{width:u,height:l}:{};return"insideLeft"===o?Tg({x:a+d,y:c+l/2,textAnchor:m,verticalAnchor:"middle"},x):"insideRight"===o?Tg({x:a+u-d,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===o?Tg({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:h},x):"insideBottom"===o?Tg({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===o?Tg({x:a+d,y:c+f,textAnchor:m,verticalAnchor:h},x):"insideTopRight"===o?Tg({x:a+u-d,y:c+f,textAnchor:v,verticalAnchor:h},x):"insideBottomLeft"===o?Tg({x:a+d,y:c+l-f,textAnchor:m,verticalAnchor:p},x):"insideBottomRight"===o?Tg({x:a+u-d,y:c+l-f,textAnchor:v,verticalAnchor:p},x):Y(o)&&(hr(o.x)||pr(o.x))&&(hr(o.y)||pr(o.y))?Tg({x:a+mr(o.x,u),y:c+mr(o.y,l),textAnchor:"end",verticalAnchor:"end"},x):Tg({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},x)},Rg=function(t){return"cx"in t&&hr(t.cx)};function Lg(r){var n,o=r.offset,i=Tg({offset:void 0===o?5:o},kg(r,Ag)),a=i.viewBox,c=i.position,u=i.value,l=i.children,s=i.content,h=i.className,y=void 0===h?"":h,d=i.textBreakAll;if(!a||Ke(u)&&Ke(l)&&!e(s)&&!et(s))return null;if(e(s))return f(s,i);if(et(s)){if(e(n=p(s,i)))return n}else n=Ig(i);var v=Rg(a),m=Ur(i,!0);if(v&&("insideStart"===c||"insideEnd"===c||"end"===c))return Dg(i,n,m);var b=v?Ng(i):Bg(i);return t.createElement(fp,Cg({className:O("recharts-label",y)},m,b,{breakAll:d}),n)}Lg.displayName="Label";var $g=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,h=t.left,y=t.width,d=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if(hr(y)&&hr(d)){if(hr(s)&&hr(f))return{x:s,y:f,width:y,height:d};if(hr(p)&&hr(h))return{x:p,y:h,width:y,height:d}}return hr(s)&&hr(f)?{x:s,y:f,width:0,height:0}:hr(e)&&hr(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};Lg.parseViewBox=$g,Lg.renderCallByParent=function(r,n){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!r||!r.children&&o&&!r.label)return null;var i=r.children,a=$g(r),c=Lr(i,Lg).map((function(t,e){return f(t,{viewBox:n||a,key:"label-".concat(e)})}));if(!o)return c;var u=function(r,n){return r?!0===r?t.createElement(Lg,{key:"label-implicit",viewBox:n}):yr(r)?t.createElement(Lg,{key:"label-implicit",viewBox:n,value:r}):e(r)?r.type===Lg?f(r,{key:"label-implicit",viewBox:n}):t.createElement(Lg,{key:"label-implicit",content:r,viewBox:n}):et(r)?t.createElement(Lg,{key:"label-implicit",content:r,viewBox:n}):Y(r)?t.createElement(Lg,Cg({viewBox:n},r,{key:"label-implicit"})):null:null}(r.label,n||a);return[u].concat(Pg(c))};var zg=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},Fg=m(zg);function Ug(t){"@babel/helpers - typeof";return Ug="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ug(t)}var qg=["valueAccessor"],Wg=["data","dataKey","clockWise","id","textBreakAll"];function Vg(t){return function(t){if(Array.isArray(t))return Xg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Xg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xg(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Hg(){return Hg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hg.apply(this,arguments)}function Kg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Gg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kg(Object(r),!0).forEach((function(e){Yg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yg(t,e,r){var n;return n=function(t,e){if("object"!=Ug(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ug(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ug(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zg(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Jg=function(t){return Array.isArray(t.value)?Fg(t.value):t.value};function Qg(e){var r=e.valueAccessor,n=void 0===r?Jg:r,o=Zg(e,qg),i=o.data,a=o.dataKey,c=o.clockWise,u=o.id,l=o.textBreakAll,s=Zg(o,Wg);return i&&i.length?t.createElement(Qr,{className:"recharts-label-list"},i.map((function(e,r){var o=Ke(a)?n(e,r):zb(e&&e.payload,a),i=Ke(u)?{}:{id:"".concat(u,"-").concat(r)};return t.createElement(Lg,Hg({},Ur(e,!0),s,i,{parentViewBox:e.parentViewBox,value:o,textBreakAll:l,viewBox:Lg.parseViewBox(Ke(c)?e:Gg(Gg({},e),{},{clockWise:c})),key:"label-".concat(r),index:r}))}))):null}function tx(t){"@babel/helpers - typeof";return tx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tx(t)}function ex(){return ex=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ex.apply(this,arguments)}function rx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function nx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rx(Object(r),!0).forEach((function(e){ox(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ox(t,e,r){var n;return n=function(t,e){if("object"!=tx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=tx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==tx(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Qg.displayName="LabelList",Qg.renderCallByParent=function(e,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var o=Lr(e.children,Qg).map((function(t,e){return f(t,{data:r,key:"labelList-".concat(e)})}));return n?[function(e,r){return e?!0===e?t.createElement(Qg,{key:"labelList-implicit",data:r}):t.isValidElement(e)||et(e)?t.createElement(Qg,{key:"labelList-implicit",data:r,content:e}):Y(e)?t.createElement(Qg,Hg({data:r},e,{key:"labelList-implicit"})):null:null}(e.label,r)].concat(Vg(o)):o};var ix=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/mg,f=u?o:o+i*s,p=u?o-i*s:o;return{center:gg(e,r,l,f),circleTangency:gg(e,r,n,f),lineTangency:gg(e,r,l*Math.cos(s*mg),p),theta:s}},ax=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return fr(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,u=gg(e,r,o,i),l=gg(e,r,o,c),s="M ".concat(u.x,",").concat(u.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=gg(e,r,n,i),p=gg(e,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},cx={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},ux=function(e){var r=nx(nx({},cx),e),n=r.cx,o=r.cy,i=r.innerRadius,a=r.outerRadius,c=r.cornerRadius,u=r.forceCornerRadius,l=r.cornerIsExternal,s=r.startAngle,f=r.endAngle,p=r.className;if(a<i||s===f)return null;var h,y=O("recharts-sector",p),d=a-i,v=mr(c,d,0,!0);return h=v>0&&Math.abs(s-f)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=fr(l-u),f=ix({cx:e,cy:r,radius:o,angle:u,sign:s,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,y=f.theta,d=ix({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:c}),v=d.circleTangency,m=d.lineTangency,b=d.theta,g=c?Math.abs(u-l):Math.abs(u-l)-y-b;if(g<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):ax({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:u,endAngle:l});var x="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(g>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var w=ix({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),O=w.circleTangency,S=w.lineTangency,j=w.theta,A=ix({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),P=A.circleTangency,E=A.lineTangency,k=A.theta,M=c?Math.abs(u-l):Math.abs(u-l)-j-k;if(M<0&&0===i)return"".concat(x,"L").concat(e,",").concat(r,"Z");x+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(P.x,",").concat(P.y,"\n A").concat(n,",").concat(n,",0,").concat(+(M>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else x+="L".concat(e,",").concat(r,"Z");return x}({cx:n,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(v,d/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:f}):ax({cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f}),t.createElement("path",ex({},Ur(r,!0),{className:y,d:h,role:"img"}))};function lx(t){"@babel/helpers - typeof";return lx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lx(t)}function sx(){return sx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},sx.apply(this,arguments)}function fx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function px(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fx(Object(r),!0).forEach((function(e){hx(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hx(t,e,r){var n;return n=function(t,e){if("object"!=lx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==lx(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var yx,dx={curveBasisClosed:function(t){return new xo(t)},curveBasisOpen:function(t){return new wo(t)},curveBasis:function(t){return new go(t)},curveBumpX:function(t){return new Jn(t,!0)},curveBumpY:function(t){return new Jn(t,!1)},curveLinearClosed:function(t){return new Oo(t)},curveLinear:Hn,curveMonotoneX:function(t){return new Eo(t)},curveMonotoneY:function(t){return new ko(t)},curveNatural:function(t){return new To(t)},curveStep:function(t){return new Co(t,.5)},curveStepAfter:function(t){return new Co(t,1)},curveStepBefore:function(t){return new Co(t,0)}},vx=function(t){return t.x===+t.x&&t.y===+t.y},mx=function(t){return t.x},bx=function(t){return t.y},gx=function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(et(t))return t;var r="curve".concat(_n(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?dx[r]||Hn:dx["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?i.filter((function(t){return vx(t)})):i;if(Array.isArray(a)){var p=l?a.filter((function(t){return vx(t)})):a,h=f.map((function(t,e){return px(px({},t),{},{base:p[e]})}));return(e="vertical"===c?Zn().y(bx).x1(mx).x0((function(t){return t.base.x})):Zn().x(mx).y1(bx).y0((function(t){return t.base.y}))).defined(vx).curve(s),e(h)}return(e="vertical"===c&&hr(a)?Zn().y(bx).x1(mx).x0(a):hr(a)?Zn().x(mx).y1(bx).y0(a):Yn().x(mx).y(bx)).defined(vx).curve(s),e(f)},xx=function(e){var r=e.className,n=e.points,o=e.path,i=e.pathRef;if(!(n&&n.length||o))return null;var a=n&&n.length?gx(e):o;return t.createElement("path",sx({},Ur(e,!1),Er(e),{className:O("recharts-curve",r),d:a,ref:i}))},wx={exports:{}},Ox={exports:{}},Sx={};var jx,Ax,Px,Ex,kx,Mx,Tx,_x,Cx,Ix,Dx,Nx,Bx,Rx,Lx={};
|
|
15
15
|
/** @license React v16.13.1
|
|
16
16
|
* react-is.development.js
|
|
17
17
|
*
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the MIT license found in the
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/function
|
|
22
|
+
*/function $x(){return Ax||(Ax=1,"production"===process.env.NODE_ENV?Ox.exports=function(){if(yx)return Sx;yx=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,d=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case u:case l:case n:case i:case o:case f:return t;default:switch(t=t&&t.$$typeof){case c:case s:case y:case h:case a:return t;default:return p}}case r:return p}}}function x(t){return g(t)===l}return Sx.AsyncMode=u,Sx.ConcurrentMode=l,Sx.ContextConsumer=c,Sx.ContextProvider=a,Sx.Element=e,Sx.ForwardRef=s,Sx.Fragment=n,Sx.Lazy=y,Sx.Memo=h,Sx.Portal=r,Sx.Profiler=i,Sx.StrictMode=o,Sx.Suspense=f,Sx.isAsyncMode=function(t){return x(t)||g(t)===u},Sx.isConcurrentMode=x,Sx.isContextConsumer=function(t){return g(t)===c},Sx.isContextProvider=function(t){return g(t)===a},Sx.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Sx.isForwardRef=function(t){return g(t)===s},Sx.isFragment=function(t){return g(t)===n},Sx.isLazy=function(t){return g(t)===y},Sx.isMemo=function(t){return g(t)===h},Sx.isPortal=function(t){return g(t)===r},Sx.isProfiler=function(t){return g(t)===i},Sx.isStrictMode=function(t){return g(t)===o},Sx.isSuspense=function(t){return g(t)===f},Sx.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===b||t.$$typeof===d)},Sx.typeOf=g,Sx}():Ox.exports=(jx||(jx=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,d=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var d=t.type;switch(d){case u:case l:case n:case i:case o:case f:return d;default:var v=d&&d.$$typeof;switch(v){case c:case s:case y:case h:case a:return v;default:return p}}case r:return p}}}var x=u,w=l,O=c,S=a,j=e,A=s,P=n,E=y,k=h,M=r,T=i,_=o,C=f,I=!1;function D(t){return g(t)===l}Lx.AsyncMode=x,Lx.ConcurrentMode=w,Lx.ContextConsumer=O,Lx.ContextProvider=S,Lx.Element=j,Lx.ForwardRef=A,Lx.Fragment=P,Lx.Lazy=E,Lx.Memo=k,Lx.Portal=M,Lx.Profiler=T,Lx.StrictMode=_,Lx.Suspense=C,Lx.isAsyncMode=function(t){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(t)||g(t)===u},Lx.isConcurrentMode=D,Lx.isContextConsumer=function(t){return g(t)===c},Lx.isContextProvider=function(t){return g(t)===a},Lx.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Lx.isForwardRef=function(t){return g(t)===s},Lx.isFragment=function(t){return g(t)===n},Lx.isLazy=function(t){return g(t)===y},Lx.isMemo=function(t){return g(t)===h},Lx.isPortal=function(t){return g(t)===r},Lx.isProfiler=function(t){return g(t)===i},Lx.isStrictMode=function(t){return g(t)===o},Lx.isSuspense=function(t){return g(t)===f},Lx.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===b||t.$$typeof===d)},Lx.typeOf=g}()),Lx)),Ox.exports}
|
|
23
23
|
/*
|
|
24
24
|
object-assign
|
|
25
25
|
(c) Sindre Sorhus
|
|
26
26
|
@license MIT
|
|
27
|
-
*/function Is(){if(xs)return gs;xs=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return gs=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,o){for(var i,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))e.call(i,l)&&(c[l]=i[l]);if(t){a=t(i);for(var s=0;s<a.length;s++)r.call(i,a[s])&&(c[a[s]]=i[a[s]])}}return c},gs}function Ds(){if(Os)return ws;Os=1;return ws="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ns(){return js?Ss:(js=1,Ss=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Rs=Cs();ys.exports=function(){if(Es)return ks;Es=1;var t=Cs(),e=Is(),r=Ds(),n=Ns(),o=function(){if(Ps)return As;Ps=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=Ds(),r={},n=Ns();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function o(o,i,a,c,u){if("production"!==process.env.NODE_ENV)for(var l in o)if(n(o,l)){var s;try{if("function"!=typeof o[l]){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=o[l](i,l,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var p=u?u():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},As=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),ks=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",f="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:d(a),arrayOf:function(t){return d((function(e,n,o,i,a){if("function"!=typeof t)return new y("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new y("Invalid "+i+" `"+a+"` of type `"+g(c)+"` supplied to `"+o+"`, expected an array.");for(var u=0;u<c.length;u++){var l=t(c,u,o,i,a+"["+u+"]",r);if(l instanceof Error)return l}return null}))},element:d((function(t,e,r,n,o){var i=t[e];return c(i)?null:new y("Invalid "+n+" `"+o+"` of type `"+g(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:d((function(e,r,n,o,i){var a=e[r];return t.isValidElementType(a)?null:new y("Invalid "+o+" `"+i+"` of type `"+g(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return d((function(e,r,n,o,i){if(!(e[r]instanceof t)){var a=t.name||f;return new y("Invalid "+o+" `"+i+"` of type `"+((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:d((function(t,e,r,n,o){return b(t[e])?null:new y("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return d((function(e,o,i,a,c){if("function"!=typeof t)return new y("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var u=e[o],l=g(u);if("object"!==l)return new y("Invalid "+a+" `"+c+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var s in u)if(n(u,s)){var f=t(u,s,i,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){return Array.isArray(t)?d((function(e,r,n,o,i){for(var a=e[r],c=0;c<t.length;c++)if(h(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===x(e)?String(e):e}));return new y("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var o=t[e];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+e+"."),a}return d((function(e,o,i,a,c){for(var u=[],l=0;l<t.length;l++){var s=(0,t[l])(e,o,i,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&u.push(s.data.expectedType)}return new y("Invalid "+a+" `"+c+"` supplied to `"+i+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return d((function(e,n,o,i,a){var c=e[n],u=g(c);if("object"!==u)return new y("Invalid "+i+" `"+a+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");for(var l in t){var s=t[l];if("function"!=typeof s)return m(o,i,a,l,x(s));var f=s(c,l,o,i,a+"."+l,r);if(f)return f}return null}))},exact:function(t){return d((function(o,i,a,c,u){var l=o[i],s=g(l);if("object"!==s)return new y("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},o[i],t);for(var p in f){var h=t[p];if(n(t,p)&&"function"!=typeof h)return m(a,c,u,p,x(h));if(!h)return new y("Invalid "+c+" `"+u+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var d=h(l,p,a,c,u+"."+p,r);if(d)return d}return null}))}};function h(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function y(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function d(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function o(o,a,c,l,s,p,h){if(l=l||f,p=p||c,h!==r){if(u){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+c;!e[v]&&n<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[v]=!0,n++)}}return null==a[c]?o?null===a[c]?new y("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new y("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,c,l,s,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function v(t){return d((function(e,r,n,o,i,a){var c=e[r];return g(c)!==t?new y("Invalid "+o+" `"+i+"` of type `"+x(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function m(t,e,r,n,o){return new y((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(b);if(null===t||c(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!b(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function g(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function x(t){if(null==t)return""+t;var e=g(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function w(t){var e=x(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return y.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},ks}()(Rs.isElement,!0)}else ys.exports=function(){if(Ts)return Ms;Ts=1;var t=Ds();function e(){}function r(){}return r.resetWarningCache=e,Ms=function(){function n(e,r,n,o,i,a){if(a!==t){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function o(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:e};return i.PropTypes=i,i}}()();var Bs=d(ys.exports),Ls=Object.getOwnPropertyNames,$s=Object.getOwnPropertySymbols,zs=Object.prototype.hasOwnProperty;function Fs(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function Us(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var c=t(e,r,n);return o.delete(e),o.delete(r),c}}function Ws(t){return Ls(t).concat($s(t))}var qs=Object.hasOwn||function(t,e){return zs.call(t,e)};function Vs(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var Xs="_owner",Hs=Object.getOwnPropertyDescriptor,Gs=Object.keys;function Ks(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function Ys(t,e){return Vs(t.getTime(),e.getTime())}function Zs(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(o=u.next())&&!o.done;){var f=n.value,p=f[0],h=f[1],y=o.value,d=y[0],v=y[1];l||i[s]||!(l=r.equals(p,d,c,s,t,e,r)&&r.equals(h,v,p,d,t,e,r))||(i[s]=!0),s++}if(!l)return!1;c++}return!0}function Js(t,e,r){var n,o=Gs(t),i=o.length;if(Gs(e).length!==i)return!1;for(;i-- >0;){if((n=o[i])===Xs&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!qs(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function Qs(t,e,r){var n,o,i,a=Ws(t),c=a.length;if(Ws(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===Xs&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!qs(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(o=Hs(t,n),i=Hs(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function tf(t,e){return Vs(t.valueOf(),e.valueOf())}function ef(t,e){return t.source===e.source&&t.flags===e.flags}function rf(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(o=c.next())&&!o.done;)u||i[l]||!(u=r.equals(n.value,o.value,n.value,o.value,t,e,r))||(i[l]=!0),l++;if(!u)return!1}return!0}function nf(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var of="[object Arguments]",af="[object Boolean]",cf="[object Date]",uf="[object Map]",lf="[object Number]",sf="[object Object]",ff="[object RegExp]",pf="[object Set]",hf="[object String]",yf=Array.isArray,df="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,vf=Object.assign,mf=Object.prototype.toString.call.bind(Object.prototype.toString);var bf=gf();function gf(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,o=t.createInternalComparator,i=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?Qs:Ks,areDatesEqual:Ys,areMapsEqual:n?Fs(Zs,Qs):Zs,areObjectsEqual:n?Qs:Js,arePrimitiveWrappersEqual:tf,areRegExpsEqual:ef,areSetsEqual:n?Fs(rf,Qs):rf,areTypedArraysEqual:n?Qs:nf};if(r&&(o=vf({},o,r(o))),e){var i=Us(o.areArraysEqual),a=Us(o.areMapsEqual),c=Us(o.areObjectsEqual),u=Us(o.areSetsEqual);o=vf({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return o}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,o=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return o(t,l,s);if(yf(t))return e(t,l,s);if(null!=df&&df(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var p=mf(t);return p===cf?r(t,l,s):p===ff?a(t,l,s):p===uf?n(t,l,s):p===pf?c(t,l,s):p===sf?"function"!=typeof t.then&&"function"!=typeof l.then&&o(t,l,s):p===of?o(t,l,s):(p===af||p===lf||p===hf)&&i(t,l,s)}}(u),s=o?o(l):(e=l,function(t,r,n,o,i,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:o,meta:s,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:i,equals:s,strict:c})}function xf(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>e?(t(o),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function wf(t){"@babel/helpers - typeof";return wf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wf(t)}function Of(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Sf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sf(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jf(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=Of(n),i=o[0],a=o.slice(1);return"number"==typeof i?void xf(r.bind(null,a),i):(r(i),void xf(r.bind(null,a)))}"object"===wf(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function Af(t){"@babel/helpers - typeof";return Af="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Af(t)}function Pf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function kf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pf(Object(r),!0).forEach((function(e){Ef(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ef(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Af(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Af(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Af(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}gf({strict:!0}),gf({circular:!0}),gf({circular:!0,strict:!0}),gf({createInternalComparator:function(){return Vs}}),gf({strict:!0,createInternalComparator:function(){return Vs}}),gf({circular:!0,createInternalComparator:function(){return Vs}}),gf({circular:!0,createInternalComparator:function(){return Vs},strict:!0});var Mf=["Webkit","Moz","O","ms"],Tf=["-webkit-","-moz-","-o-","-ms-"],_f=["transform","transformOrigin","transition"],Cf=function(t){return t},If=function(t,e){return Object.keys(e).reduce((function(r,n){return kf(kf({},r),{},Ef({},n,t(n,e[n])))}),{})},Df=function(t){return Object.keys(t).reduce((function(t,e){return kf(kf({},t),function(t,e){if(-1===_f.indexOf(t))return Ef({},t,Number.isNaN(e)?0:e);var r="transition"===t,n=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),o=e;return Mf.reduce((function(t,i,a){return r&&(o=e.replace(/(transform|transform-origin)/gim,"".concat(Tf[a],"$1"))),kf(kf({},t),{},Ef({},i+n,o))}),{})}(e,t[e]))}),t)},Nf=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")},Rf="production"!==process.env.NODE_ENV,Bf=function(t,e,r,n,o,i,a,c){if(Rf&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function Lf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||zf(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $f(t){return function(t){if(Array.isArray(t))return Ff(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||zf(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zf(t,e){if(t){if("string"==typeof t)return Ff(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ff(t,e):void 0}}function Ff(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Uf=1e-4,Wf=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},qf=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Vf=function(t,e){return function(r){var n=Wf(t,e);return qf(n,r)}},Xf=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),l=Lf(u,4);n=l[0],o=l[1],i=l[2],a=l[3]}else Bf(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",e)}Bf([n,i,o,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,p=Vf(n,i),h=Vf(o,a),y=(s=n,f=i,function(t){var e=Wf(s,f),r=[].concat($f(e.map((function(t,e){return t*e})).slice(1)),[0]);return qf(r,t)}),d=function(t){for(var e,r=t>1?1:t,n=r,o=0;o<8;++o){var i=p(n)-r,a=y(n);if(Math.abs(i-r)<Uf||a<Uf)return h(n);n=(e=n-i/a)>1?1:e<0?0:e}return h(n)};return d.isStepper=!1,d},Hf=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Xf(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,c=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Uf&&Math.abs(i)<Uf?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return Xf(n);Bf(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:(Bf(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function Gf(t){"@babel/helpers - typeof";return Gf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gf(t)}function Kf(t){return function(t){if(Array.isArray(t))return ep(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||tp(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yf(Object(r),!0).forEach((function(e){Jf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jf(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Gf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Gf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Gf(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||tp(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tp(t,e){if(t){if("string"==typeof t)return ep(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ep(t,e):void 0}}function ep(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var rp=function(t,e,r){return t+(e-t)*r},np=function(t){return t.from!==t.to},op=function t(e,r,n){var o=If((function(t,r){if(np(r)){var n=Qf(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return Zf(Zf({},r),{},{from:o,velocity:i})}return r}),r);return n<1?If((function(t,e){return np(e)?Zf(Zf({},e),{},{velocity:rp(e.velocity,o[t].velocity,n),from:rp(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)},ip=function(t,e,r,n,o){var i,a,c,u,l=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return Zf(Zf({},r),{},Jf({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return Zf(Zf({},r),{},Jf({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=op(r,f,i),o(Zf(Zf(Zf({},t),e),If((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(np).length&&(p=requestAnimationFrame(h))}:function(i){u||(u=i);var a=(i-u)/n,c=If((function(t,e){return rp.apply(void 0,Kf(e).concat([r(a)]))}),s);if(o(Zf(Zf(Zf({},t),e),c)),a<1)p=requestAnimationFrame(h);else{var l=If((function(t,e){return rp.apply(void 0,Kf(e).concat([r(1)]))}),s);o(Zf(Zf(Zf({},t),e),l))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function ap(t){"@babel/helpers - typeof";return ap="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ap(t)}var cp=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function up(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function lp(t){return function(t){if(Array.isArray(t))return sp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return sp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sp(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function fp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fp(Object(r),!0).forEach((function(e){hp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hp(t,e,r){return(e=dp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,dp(n.key),n)}}function dp(t){var e=function(t,e){if("object"!==ap(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ap(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ap(e)?e:String(e)}function vp(t,e){return vp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vp(t,e)}function mp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=xp(t);if(e){var o=xp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return bp(this,r)}}function bp(t,e){if(e&&("object"===ap(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return gp(t)}function gp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xp(t){return xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xp(t)}var wp=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vp(t,e)}(l,n);var i,a,c,u=mp(l);function l(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l);var n=(r=u.call(this,t,e)).props,o=n.isActive,i=n.attributeName,a=n.from,c=n.to,s=n.steps,f=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(gp(r)),r.changeStyle=r.changeStyle.bind(gp(r)),!o||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:c}),bp(r);if(s&&s.length)r.state={style:s[0].style};else if(a){if("function"==typeof f)return r.state={style:a},bp(r);r.state={style:i?hp({},i,a):a}}else r.state={style:{}};return r}return i=l,(a=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(bf(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||i?c:t.to;if(this.state&&u){var f={style:o?hp({},o,s):s};(o&&[o]!==s||!o&&u!==s)&&this.setState(f)}this.runAnimation(pp(pp({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?hp({},o,a):a};this.state&&u&&(o&&u[o]!==a||!o&&u!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,o=t.duration,i=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=ip(r,n,Hf(i),o,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},o,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,c=i.duration,u=void 0===c?0:c;return this.manager.start([o].concat(lp(r.reduce((function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(lp(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var h=Nf(p,i,c),y=pp(pp(pp({},f.style),u),{},{transition:h});return[].concat(lp(t),[y,i,s]).filter(Cf)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=jf());var e=t.begin,r=t.duration,n=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(u.length>1)this.runStepAnimation(t);else{var f=n?hp({},n,o):o,p=Nf(Object.keys(f),r,i);s.start([a,e,pp(pp({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var e=this.props,n=e.children;e.begin;var i=e.duration;e.attributeName,e.easing;var a=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var c=up(e,cp),u=r.count(n),l=Df(this.state.style);if("function"==typeof n)return n(l);if(!a||0===u||i<=0)return n;var s=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,i=e.className;return o(t,pp(pp({},c),{},{style:pp(pp({},n),l),className:i}))};return 1===u?s(r.only(n)):t.createElement("div",null,r.map(n,(function(t){return s(t)})))}}])&&yp(i.prototype,a),c&&yp(i,c),Object.defineProperty(i,"prototype",{writable:!1}),l}();function Op(t){"@babel/helpers - typeof";return Op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Op(t)}function Sp(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Op(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Op(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Op(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}wp.displayName="Animate",wp.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},wp.propTypes={from:Bs.oneOfType([Bs.object,Bs.string]),to:Bs.oneOfType([Bs.object,Bs.string]),attributeName:Bs.string,duration:Bs.number,begin:Bs.number,easing:Bs.oneOfType([Bs.string,Bs.func]),steps:Bs.arrayOf(Bs.shape({duration:Bs.number.isRequired,style:Bs.object.isRequired,easing:Bs.oneOfType([Bs.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Bs.func]),properties:Bs.arrayOf("string"),onAnimationEnd:Bs.func})),children:Bs.oneOfType([Bs.node,Bs.func]),isActive:Bs.bool,canBegin:Bs.bool,onAnimationEnd:Bs.func,shouldReAnimate:Bs.bool,onAnimationStart:Bs.func,onAnimationReStart:Bs.func},void 0===Number.isFinite&&(Number.isFinite=function(t){return"number"==typeof t&&isFinite(t)}),Bs.object,Bs.object,Bs.object,Bs.element,Bs.object,Bs.object,Bs.object,Bs.oneOfType([Bs.array,Bs.element]),Bs.any;var jp="recharts-tooltip-wrapper",Ap={visibility:"hidden"};function Pp(t){var e,r=t.coordinate,n=t.translateX,o=t.translateY;return x(jp,(Sp(e={},"".concat(jp,"-right"),lr(n)&&r&&lr(r.x)&&n>=r.x),Sp(e,"".concat(jp,"-left"),lr(n)&&r&&lr(r.x)&&n<r.x),Sp(e,"".concat(jp,"-bottom"),lr(o)&&r&&lr(r.y)&&o>=r.y),Sp(e,"".concat(jp,"-top"),lr(o)&&r&&lr(r.y)&&o<r.y),e))}function kp(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(i&&lr(i[n]))return i[n];var s=r[n]-c-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function Ep(t){var e,r,n,o=t.allowEscapeViewBox,i=t.coordinate,a=t.offsetTopLeft,c=t.position,u=t.reverseDirection,l=t.tooltipBox,s=t.useTranslate3d,f=t.viewBox;return e=l.height>0&&l.width>0&&i?function(t){var e=t.translateX,r=t.translateY,n=t.useTranslate3d;return Df({transform:n?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")})}({translateX:r=kp({allowEscapeViewBox:o,coordinate:i,key:"x",offsetTopLeft:a,position:c,reverseDirection:u,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),translateY:n=kp({allowEscapeViewBox:o,coordinate:i,key:"y",offsetTopLeft:a,position:c,reverseDirection:u,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),useTranslate3d:s}):Ap,{cssProperties:e,cssClasses:Pp({translateX:r,translateY:n,coordinate:i})}}function Mp(t){"@babel/helpers - typeof";return Mp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mp(t)}function Tp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Tp(Object(r),!0).forEach((function(e){Bp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Cp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Lp(n.key),n)}}function Ip(t,e){return Ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ip(t,e)}function Dp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Rp(t);if(e){var o=Rp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Mp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Np(t)}(this,r)}}function Np(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rp(t){return Rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rp(t)}function Bp(t,e,r){return(e=Lp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lp(t){var e=function(t,e){if("object"!==Mp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Mp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Mp(e)?e:String(e)}var $p=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ip(t,e)}(c,n);var r,o,i,a=Dp(c);function c(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Bp(Np(t=a.call.apply(a,[this].concat(r))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Bp(Np(t),"lastBoundingBox",{width:-1,height:-1}),Bp(Np(t),"handleKeyDown",(function(e){var r,n,o,i;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=t.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),t}return r=c,(o=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.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 t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,r=this.props,n=r.active,o=r.allowEscapeViewBox,i=r.animationDuration,a=r.animationEasing,c=r.children,u=r.coordinate,l=r.hasPayload,s=r.isAnimationActive,f=r.offset,p=r.position,h=r.reverseDirection,y=r.useTranslate3d,d=r.viewBox,v=r.wrapperStyle,m=Ep({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:f,position:p,reverseDirection:h,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:y,viewBox:d}),b=m.cssClasses,g=m.cssProperties,x=_p(_p(_p({},s&&n&&Df({transition:"transform ".concat(i,"ms ").concat(a)})),g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&l?"visible":"hidden",position:"absolute",top:0,left:0},v);return t.createElement("div",{tabIndex:-1,role:"dialog",className:b,style:x,ref:function(t){e.wrapperNode=t}},c)}}])&&Cp(r.prototype,o),i&&Cp(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}(),zp={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return zp[t]},set:function(t,e){if("string"==typeof t)zp[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){zp[e]=t[e]}))}}};function Fp(t){"@babel/helpers - typeof";return Fp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fp(t)}function Up(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Wp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Up(Object(r),!0).forEach((function(e){Gp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Up(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Kp(n.key),n)}}function Vp(t,e){return Vp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vp(t,e)}function Xp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Hp(t);if(e){var o=Hp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Fp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function Hp(t){return Hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hp(t)}function Gp(t,e,r){return(e=Kp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kp(t){var e=function(t,e){if("object"!==Fp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Fp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Fp(e)?e:String(e)}function Yp(t){return t.dataKey}var Zp=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vp(t,e)}(c,n);var r,o,i,a=Xp(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return r=c,(o=[{key:"render",value:function(){var e=this.props,r=e.active,n=e.allowEscapeViewBox,o=e.animationDuration,i=e.animationEasing,a=e.content,c=e.coordinate,u=e.filterNull,l=e.isAnimationActive,s=e.offset,f=e.payload,p=e.payloadUniqBy,h=e.position,y=e.reverseDirection,d=e.useTranslate3d,v=e.viewBox,m=e.wrapperStyle,b=null!=f?f:[];u&&b.length&&(b=Vu(f.filter((function(t){return null!=t.value})),p,Yp));var g=b.length>0;return t.createElement($p,{allowEscapeViewBox:n,animationDuration:o,animationEasing:i,isAnimationActive:l,active:r,coordinate:c,hasPayload:g,offset:s,position:h,reverseDirection:y,useTranslate3d:d,viewBox:v,wrapperStyle:m},function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):"function"==typeof e?t.createElement(e,r):t.createElement(hs,r)}(a,Wp(Wp({},this.props),{},{payload:b})))}}])&&qp(r.prototype,o),i&&qp(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();Gp(Zp,"displayName","Tooltip"),Gp(Zp,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!zp.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 Jp=A,Qp=/\s/;var th=function(t){for(var e=t.length;e--&&Qp.test(t.charAt(e)););return e},eh=th,rh=/^\s+/;var nh=function(t){return t?t.slice(0,eh(t)+1).replace(rh,""):t},oh=nh,ih=H,ah=F,ch=/^[-+]0x[0-9a-f]+$/i,uh=/^0b[01]+$/i,lh=/^0o[0-7]+$/i,sh=parseInt;var fh=function(t){if("number"==typeof t)return t;if(ah(t))return NaN;if(ih(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ih(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=oh(t);var r=uh.test(t);return r||lh.test(t)?sh(t.slice(2),r?2:8):ch.test(t)?NaN:+t},ph=H,hh=function(){return Jp.Date.now()},yh=fh,dh=Math.max,vh=Math.min;var mh=function(t,e,r){var n,o,i,a,c,u,l=0,s=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(e){var r=n,i=o;return n=o=void 0,l=e,a=t.apply(i,r)}function y(t){var r=t-u;return void 0===u||r>=e||r<0||f&&t-l>=i}function d(){var t=hh();if(y(t))return v(t);c=setTimeout(d,function(t){var r=e-(t-u);return f?vh(r,i-(t-l)):r}(t))}function v(t){return c=void 0,p&&n?h(t):(n=o=void 0,a)}function m(){var t=hh(),r=y(t);if(n=arguments,o=this,u=t,r){if(void 0===c)return function(t){return l=t,c=setTimeout(d,e),s?h(t):a}(u);if(f)return clearTimeout(c),c=setTimeout(d,e),h(u)}return void 0===c&&(c=setTimeout(d,e)),a}return e=yh(e)||0,ph(r)&&(s=!!r.leading,i=(f="maxWait"in r)?dh(yh(r.maxWait)||0,e):i,p="trailing"in r?!!r.trailing:p),m.cancel=function(){void 0!==c&&clearTimeout(c),l=0,n=u=o=c=void 0},m.flush=function(){return void 0===c?a:v(hh())},m},bh=mh,gh=H;var xh=d((function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return gh(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),bh(t,e,{leading:n,maxWait:e,trailing:o})}));function wh(t){"@babel/helpers - typeof";return wh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wh(t)}function Oh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Sh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Oh(Object(r),!0).forEach((function(e){jh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Oh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jh(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==wh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==wh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===wh(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ah(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ph(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ph(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ph(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var kh=i((function(e,r){var n=e.aspect,i=e.initialDimension,p=void 0===i?{width:-1,height:-1}:i,h=e.width,y=void 0===h?"100%":h,d=e.height,v=void 0===d?"100%":d,m=e.minWidth,b=void 0===m?0:m,g=e.minHeight,w=e.maxHeight,O=e.children,S=e.debounce,j=void 0===S?0:S,A=e.id,P=e.className,k=e.onResize,E=e.style,M=void 0===E?{}:E,T=a(null),_=a();_.current=k,c(r,(function(){return Object.assign(T.current,{get current(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),T.current}})}));var C=Ah(u({containerWidth:p.width,containerHeight:p.height}),2),I=C[0],D=C[1],N=l((function(t,e){D((function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}}))}),[]);s((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;N(n,o),null===(e=_.current)||void 0===e||e.call(_,n,o)};j>0&&(t=xh(t,j,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=T.current.getBoundingClientRect(),n=r.width,o=r.height;return N(n,o),e.observe(T.current),function(){e.disconnect()}}),[N,j]);var R=f((function(){var e=I.containerWidth,r=I.containerHeight;if(e<0||r<0)return null;Zr(ur(y)||ur(v),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,v),Zr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var i=ur(y)?e:y,a=ur(v)?r:v;n&&n>0&&(i?a=i/n:a&&(i=a*n),w&&a>w&&(a=w)),Zr(i>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",i,a,y,v,b,g,n);var c=!Array.isArray(O)&&tr.isElement(O)&&Tr(O.type).endsWith("Chart");return t.Children.map(O,(function(t){return tr.isElement(t)?o(t,Sh({width:i,height:a},c?{style:Sh({height:"100%",width:"100%",maxHeight:a,maxWidth:i},t.props.style)}:{})):t}))}),[n,O,v,w,g,b,I,y]);return t.createElement("div",{id:A?"".concat(A):void 0,className:x("recharts-responsive-container",P),style:Sh(Sh({},M),{},{width:y,height:v,minWidth:b,minHeight:g,maxHeight:w}),ref:T},R)})),Eh=function(t){return null};function Mh(t){"@babel/helpers - typeof";return Mh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mh(t)}function Th(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Th(Object(r),!0).forEach((function(e){Ch(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Th(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ch(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Mh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Mh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Mh(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Eh.displayName="Cell";var Ih={widthCache:{},cacheCount:0},Dh={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Nh="recharts_measurement_span";var Rh=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||zp.isSsr)return{width:0,height:0};var r,n=(r=_h({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),o=JSON.stringify({text:t,copyStyle:n});if(Ih.widthCache[o])return Ih.widthCache[o];try{var i=document.getElementById(Nh);i||((i=document.createElement("span")).setAttribute("id",Nh),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=_h(_h({},Dh),n);Object.assign(i.style,a),i.textContent="".concat(t);var c=i.getBoundingClientRect(),u={width:c.width,height:c.height};return Ih.widthCache[o]=u,++Ih.cacheCount>2e3&&(Ih.cacheCount=0,Ih.widthCache={}),u}catch(t){return{width:0,height:0}}};function Bh(t){"@babel/helpers - typeof";return Bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bh(t)}function Lh(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return $h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function zh(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==Bh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Bh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===Bh(i)?i:String(i)),n)}var o,i}var Fh=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Uh=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Wh=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,qh=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Vh={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Xh=Object.keys(Vh),Hh="NaN";var Gh=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||Wh.test(r)||(this.num=NaN,this.unit=""),Xh.includes(r)&&(this.num=function(t,e){return t*Vh[e]}(e,r),this.unit="px")}var e,r,n;return e=t,n=[{key:"parse",value:function(e){var r,n=Lh(null!==(r=qh.exec(e))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new t(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&zh(e.prototype,r),n&&zh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Kh(t){if(t.includes(Hh))return Hh;for(var e=t;e.includes("*")||e.includes("/");){var r,n=Lh(null!==(r=Fh.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],c=Gh.parse(null!=o?o:""),u=Gh.parse(null!=a?a:""),l="*"===i?c.multiply(u):c.divide(u);if(l.isNaN())return Hh;e=e.replace(Fh,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Lh(null!==(s=Uh.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],y=f[3],d=Gh.parse(null!=p?p:""),v=Gh.parse(null!=y?y:""),m="+"===h?d.add(v):d.subtract(v);if(m.isNaN())return Hh;e=e.replace(Uh,m.toString())}return e}var Yh=/\(([^()]*)\)/;function Zh(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=Lh(Yh.exec(e),2)[1];e=e.replace(Yh,Kh(r))}return e}(e),e=Kh(e)}function Jh(t){var e=function(t){try{return Zh(t)}catch(t){return Hh}}(t.slice(5,-1));return e===Hh?"":e}var Qh=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],ty=["dx","dy","angle","className","breakAll"];function ey(){return ey=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ey.apply(this,arguments)}function ry(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ny(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return oy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oy(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oy(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var iy=/[ \f\n\r\t\v\u2028\u2029]+/,ay=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return qe(e)||(o=r?e.toString().split(""):e.toString().split(iy)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:Rh(t,n).width}})),spaceWidth:r?0:Rh(" ",n).width}}catch(t){return null}},cy=function(t){return[{words:qe(t)?[]:t.toString().split(iy)}]},uy=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!zp.isSsr){var c=ay({breakAll:i,children:n,style:o});return c?function(t,e,r,n,o){var i=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=lr(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||o||c.width+a+r<Number(n)))c.words.push(i),c.width+=a+r;else{var u={words:[i],width:a};t.push(u)}return t}),[])},p=f(e);if(!l)return p;for(var h,y=function(t){var e=s.slice(0,t),r=ay({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>Number(n);return[a,o]},d=0,v=s.length-1,m=0;d<=v&&m<=s.length-1;){var b=Math.floor((d+v)/2),g=ny(y(b-1),2),x=g[0],w=g[1],O=ny(y(b),1)[0];if(x||O||(d=b+1),x&&O&&(v=b-1),!x&&O){h=w;break}m++}return h||p}({breakAll:i,children:n,maxLines:a,style:o},c.wordsWithComputedWidth,c.spaceWidth,e,r):cy(n)}return cy(n)},ly="#808080",sy=function(e){var r=e.x,n=void 0===r?0:r,o=e.y,i=void 0===o?0:o,a=e.lineHeight,c=void 0===a?"1em":a,u=e.capHeight,l=void 0===u?"0.71em":u,s=e.scaleToFit,p=void 0!==s&&s,h=e.textAnchor,y=void 0===h?"start":h,d=e.verticalAnchor,v=void 0===d?"end":d,m=e.fill,b=void 0===m?ly:m,g=ry(e,Qh),w=f((function(){return uy({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:p,style:g.style,width:g.width})}),[g.breakAll,g.children,g.maxLines,p,g.style,g.width]),O=g.dx,S=g.dy,j=g.angle,A=g.className,P=g.breakAll,k=ry(g,ty);if(!sr(n)||!sr(i))return null;var E,M=n+(lr(O)?O:0),T=i+(lr(S)?S:0);switch(v){case"start":E=Jh("calc(".concat(l,")"));break;case"middle":E=Jh("calc(".concat((w.length-1)/2," * -").concat(c," + (").concat(l," / 2))"));break;default:E=Jh("calc(".concat(w.length-1," * -").concat(c,")"))}var _=[];if(p){var C=w[0].width,I=g.width;_.push("scale(".concat((lr(I)?I/C:1)/C,")"))}return j&&_.push("rotate(".concat(j,", ").concat(M,", ").concat(T,")")),_.length&&(k.transform=_.join(" ")),t.createElement("text",ey({},Lr(k,!0),{x:M,y:T,className:x("recharts-text",A),textAnchor:y,fill:b.includes("url")?ly:b}),w.map((function(e,r){var n=e.words.join(P?"":" ");return t.createElement("tspan",{x:M,dy:0===r?E:c,key:n},n)})))};function fy(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function py(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function hy(t){let e,r,n;function o(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=fy,r=(e,r)=>fy(t(e),r),n=(e,r)=>t(e)-r):(e=t===fy||t===py?t:yy,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<=0?o=e+1:i=e}while(o<i)}return o}}}function yy(){return 0}function dy(t){return null===t?NaN:+t}const vy=hy(fy).right;hy(dy).center;class my extends Map{constructor(t,e=gy){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(by(this,t))}has(t){return super.has(by(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);t.has(n)&&(r=t.get(n),t.delete(n));return r}(this,t))}}function by({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function gy(t){return null!==t&&"object"==typeof t?t.valueOf():t}function xy(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const wy=Math.sqrt(50),Oy=Math.sqrt(10),Sy=Math.sqrt(2);function jy(t,e,r){const n=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=wy?10:i>=Oy?5:i>=Sy?2:1;let c,u,l;return o<0?(l=Math.pow(10,-o)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,o)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=r&&r<2?jy(t,e,2*r):[c,u,l]}function Ay(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?jy(e,t,r):jy(t,e,r);if(!(i>=o))return[];const c=i-o+1,u=new Array(c);if(n)if(a<0)for(let t=0;t<c;++t)u[t]=(i-t)/-a;else for(let t=0;t<c;++t)u[t]=(i-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(o+t)/-a;else for(let t=0;t<c;++t)u[t]=(o+t)*a;return u}function Py(t,e,r){return jy(t=+t,e=+e,r=+r)[2]}function ky(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?Py(e,t,r):Py(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function Ey(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function My(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function Ty(t,e,r=0,n=1/0,o){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(o=void 0===o?xy:function(t=fy){if(t===fy)return xy;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,c=Math.log(i),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(i-u)/i)*(a-i/2<0?-1:1);Ty(t,e,Math.max(r,Math.floor(e-a*u/i+l)),Math.min(n,Math.floor(e+(i-a)*u/i+l)),o)}const i=t[e];let a=r,c=n;for(_y(t,r,e),o(t[n],i)>0&&_y(t,r,n);a<c;){for(_y(t,a,c),++a,--c;o(t[a],i)<0;)++a;for(;o(t[c],i)>0;)--c}0===o(t[r],i)?_y(t,r,c):(++c,_y(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function _y(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function Cy(t,e,r=dy){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}function Iy(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Dy(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const Ny=Symbol("implicit");function Ry(){var t=new my,e=[],r=[],n=Ny;function o(o){let i=t.get(o);if(void 0===i){if(n!==Ny)return n;t.set(o,i=e.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new my;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return Ry(e,r).unknown(n)},Iy.apply(o,arguments),o}function By(){var t,e,r=Ry().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,h=f?i:a;t=(h-p)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),p+=(h-p-t*(r-u))*s,e=t*(1-u),c&&(p=Math.round(p),e=Math.round(e));var y=function(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),i=new Array(o);++n<o;)i[n]=t+n*r;return i}(r).map((function(e){return p+t*e}));return o(f?y.reverse():y)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return By(n(),[i,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},Iy.apply(f(),arguments)}function Ly(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ly(e())},t}function $y(){return Ly(By.apply(null,arguments).paddingInner(1))}function zy(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Fy(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Uy(){}var Wy=.7,qy=1/Wy,Vy="\\s*([+-]?\\d+)\\s*",Xy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gy=/^#([0-9a-f]{3,8})$/,Ky=new RegExp(`^rgb\\(${Vy},${Vy},${Vy}\\)$`),Yy=new RegExp(`^rgb\\(${Hy},${Hy},${Hy}\\)$`),Zy=new RegExp(`^rgba\\(${Vy},${Vy},${Vy},${Xy}\\)$`),Jy=new RegExp(`^rgba\\(${Hy},${Hy},${Hy},${Xy}\\)$`),Qy=new RegExp(`^hsl\\(${Xy},${Hy},${Hy}\\)$`),td=new RegExp(`^hsla\\(${Xy},${Hy},${Hy},${Xy}\\)$`),ed={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};function rd(){return this.rgb().formatHex()}function nd(){return this.rgb().formatRgb()}function od(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Gy.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?id(e):3===r?new ud(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?ad(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?ad(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ky.exec(t))?new ud(e[1],e[2],e[3],1):(e=Yy.exec(t))?new ud(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Zy.exec(t))?ad(e[1],e[2],e[3],e[4]):(e=Jy.exec(t))?ad(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Qy.exec(t))?yd(e[1],e[2]/100,e[3]/100,1):(e=td.exec(t))?yd(e[1],e[2]/100,e[3]/100,e[4]):ed.hasOwnProperty(t)?id(ed[t]):"transparent"===t?new ud(NaN,NaN,NaN,0):null}function id(t){return new ud(t>>16&255,t>>8&255,255&t,1)}function ad(t,e,r,n){return n<=0&&(t=e=r=NaN),new ud(t,e,r,n)}function cd(t,e,r,n){return 1===arguments.length?((o=t)instanceof Uy||(o=od(o)),o?new ud((o=o.rgb()).r,o.g,o.b,o.opacity):new ud):new ud(t,e,r,null==n?1:n);var o}function ud(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function ld(){return`#${hd(this.r)}${hd(this.g)}${hd(this.b)}`}function sd(){const t=fd(this.opacity);return`${1===t?"rgb(":"rgba("}${pd(this.r)}, ${pd(this.g)}, ${pd(this.b)}${1===t?")":`, ${t})`}`}function fd(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function pd(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function hd(t){return((t=pd(t))<16?"0":"")+t.toString(16)}function yd(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new vd(t,e,r,n)}function dd(t){if(t instanceof vd)return new vd(t.h,t.s,t.l,t.opacity);if(t instanceof Uy||(t=od(t)),!t)return new vd;if(t instanceof vd)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,c=i-o,u=(i+o)/2;return c?(a=e===i?(r-n)/c+6*(r<n):r===i?(n-e)/c+2:(e-r)/c+4,c/=u<.5?i+o:2-i-o,a*=60):c=u>0&&u<1?0:a,new vd(a,c,u,t.opacity)}function vd(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function md(t){return(t=(t||0)%360)<0?t+360:t}function bd(t){return Math.max(0,Math.min(1,t||0))}function gd(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}zy(Uy,od,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:rd,formatHex:rd,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return dd(this).formatHsl()},formatRgb:nd,toString:nd}),zy(ud,cd,Fy(Uy,{brighter(t){return t=null==t?qy:Math.pow(qy,t),new ud(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Wy:Math.pow(Wy,t),new ud(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ud(pd(this.r),pd(this.g),pd(this.b),fd(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:ld,formatHex:ld,formatHex8:function(){return`#${hd(this.r)}${hd(this.g)}${hd(this.b)}${hd(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:sd,toString:sd})),zy(vd,(function(t,e,r,n){return 1===arguments.length?dd(t):new vd(t,e,r,null==n?1:n)}),Fy(Uy,{brighter(t){return t=null==t?qy:Math.pow(qy,t),new vd(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Wy:Math.pow(Wy,t),new vd(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new ud(gd(t>=240?t-240:t+120,o,n),gd(t,o,n),gd(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new vd(md(this.h),bd(this.s),bd(this.l),fd(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 t=fd(this.opacity);return`${1===t?"hsl(":"hsla("}${md(this.h)}, ${100*bd(this.s)}%, ${100*bd(this.l)}%${1===t?")":`, ${t})`}`}}));var xd=t=>()=>t;function wd(t){return 1==(t=+t)?Od:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):xd(isNaN(e)?r:e)}}function Od(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):xd(isNaN(t)?e:t)}var Sd=function t(e){var r=wd(e);function n(t,e){var n=r((t=cd(t)).r,(e=cd(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=Od(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function jd(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}}function Ad(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=Cd(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}function Pd(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function kd(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ed(t,e){var r,n={},o={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=Cd(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var Md=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Td=new RegExp(Md.source,"g");function _d(t,e){var r,n,o,i=Md.lastIndex=Td.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=Md.exec(t))&&(n=Td.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:kd(r,n)})),i=Td.lastIndex;return i<e.length&&(o=e.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function Cd(t,e){var r,n=typeof e;return null==e||"boolean"===n?xd(e):("number"===n?kd:"string"===n?(r=od(e))?(e=r,Sd):_d:e instanceof od?Sd:e instanceof Date?Pd:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?jd:Array.isArray(e)?Ad:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ed:kd)(t,e)}function Id(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Dd(t,e){void 0===e&&(e=t,t=Cd);for(var r=0,n=e.length-1,o=e[0],i=new Array(n<0?0:n);r<n;)i[r]=t(o,o=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return i[e](t-e)}}function Nd(t){return+t}var Rd=[0,1];function Bd(t){return t}function Ld(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function $d(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=Ld(o,n),i=r(a,i)):(n=Ld(n,o),i=r(i,a)),function(t){return i(n(t))}}function zd(t,e,r){var n=Math.min(t.length,e.length)-1,o=new Array(n),i=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=Ld(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=vy(t,e,1,n)-1;return i[r](o[r](e))}}function Fd(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ud(){var t,e,r,n,o,i,a=Rd,c=Rd,u=Cd,l=Bd;function s(){var t=Math.min(a.length,c.length);return l!==Bd&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?zd:$d,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(c,a.map(t),kd)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Nd),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=Id,s()},f.clamp=function(t){return arguments.length?(l=!!t||Bd,s()):l!==Bd},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function Wd(){return Ud()(Bd,Bd)}function qd(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Vd(t){return(t=qd(Math.abs(t)))?t[1]:NaN}var Xd,Hd=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Gd(t){if(!(e=Hd.exec(t)))throw new Error("invalid format: "+t);var e;return new Kd({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Kd(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Yd(t,e){var r=qd(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}Gd.prototype=Kd.prototype,Kd.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Zd={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Yd(100*t,e),r:Yd,s:function(t,e){var r=qd(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(Xd=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+qd(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Jd(t){return t}var Qd,tv,ev,rv=Array.prototype.map,nv=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ov(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?Jd:(e=rv.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),i.push(t.substring(o-=c,o+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?Jd:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(rv.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Gd(t)).fill,r=t.align,f=t.sign,p=t.symbol,h=t.zero,y=t.width,d=t.comma,v=t.precision,m=t.trim,b=t.type;"n"===b?(d=!0,b="g"):Zd[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var g="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===p?i:/[%p]/.test(b)?u:"",w=Zd[b],O=/[defgprs%]/.test(b);function S(t){var o,i,u,p=g,S=x;if("c"===b)S=w(t)+S,t="";else{var j=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:w(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),j&&0==+t&&"+"!==f&&(j=!1),p=(j?"("===f?f:l:"-"===f||"("===f?"":f)+p,S=("s"===b?nv[8+Xd/3]:"")+S+(j&&"("===f?")":""),O)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){S=(46===u?a+t.slice(o+1):t.slice(o))+S,t=t.slice(0,o);break}}d&&!h&&(t=n(t,1/0));var A=p.length+t.length+S.length,P=A<y?new Array(y-A+1).join(e):"";switch(d&&h&&(t=n(P+t,P.length?y-S.length:1/0),P=""),r){case"<":t=p+t+S+P;break;case"=":t=p+P+t+S;break;case"^":t=P.slice(0,A=P.length>>1)+p+t+S+P.slice(A);break;default:t=P+p+t+S}return c(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var r=f(((t=Gd(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(Vd(e)/3))),o=Math.pow(10,-n),i=nv[8+n/3];return function(t){return r(o*t)+i}}}}function iv(t,e,r,n){var o,i=ky(t,e,r);switch((n=Gd(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Vd(e)/3)))-Vd(Math.abs(t)))}(i,a))||(n.precision=o),ev(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Vd(e)-Vd(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(t){return Math.max(0,-Vd(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return tv(n)}function av(t){var e=t.domain;return t.ticks=function(t){var r=e();return Ay(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return iv(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,c=i.length-1,u=i[a],l=i[c],s=10;for(l<u&&(o=u,u=l,l=o,o=a,a=c,c=o);s-- >0;){if((o=Py(u,l,r))===n)return i[a]=u,i[c]=l,e(i);if(o>0)u=Math.floor(u/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function cv(){var t=Wd();return t.copy=function(){return Fd(t,cv())},Iy.apply(t,arguments),av(t)}function uv(t,e){var r,n=0,o=(t=t.slice()).length-1,i=t[n],a=t[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),t[n]=e.floor(i),t[o]=e.ceil(a),t}function lv(t){return Math.log(t)}function sv(t){return Math.exp(t)}function fv(t){return-Math.log(-t)}function pv(t){return-Math.exp(-t)}function hv(t){return isFinite(t)?+("1e"+t):t<0?0:t}function yv(t){return(e,r)=>-t(-e,r)}function dv(t){const e=t(lv,sv),r=e.domain;let n,o,i=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?hv:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=yv(n),o=yv(o),t(fv,pv)):t(lv,sv),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),p=n(c);const h=null==t?10:+t;let y=[];if(!(i%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;y.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;y.push(s)}2*y.length<h&&(y=Ay(a,c,h))}else y=Ay(f,p,Math.min(p-f,h)).map(o);return u?y.reverse():y},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=Gd(r)).precision||(r.trim=!0),r=tv(r)),t===1/0)return r;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(n(t)));return e*i<i-.5&&(e*=i),e<=a?r(t):""}},e.nice=()=>r(uv(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function vv(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function mv(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function bv(t){var e=1,r=t(vv(e),mv(e));return r.constant=function(r){return arguments.length?t(vv(e=+r),mv(e)):e},av(r)}function gv(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function xv(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function wv(t){return t<0?-t*t:t*t}function Ov(t){var e=t(Bd,Bd),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(Bd,Bd):.5===r?t(xv,wv):t(gv(r),gv(1/r)):r},av(e)}function Sv(){var t=Ov(Ud());return t.copy=function(){return Fd(t,Sv()).exponent(t.exponent())},Iy.apply(t,arguments),t}function jv(t){return Math.sign(t)*t*t}Qd=ov({thousands:",",grouping:[3],currency:["$",""]}),tv=Qd.format,ev=Qd.formatPrefix;const Av=new Date,Pv=new Date;function kv(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let c;do{a.push(c=new Date(+r)),e(r,i),t(r)}while(c<r&&r<n);return a},o.filter=r=>kv((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(o.count=(e,n)=>(Av.setTime(+e),Pv.setTime(+n),t(Av),t(Pv),Math.floor(r(Av,Pv))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null)),o}const Ev=kv((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Ev.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?kv((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):Ev:null),Ev.range;const Mv=1e3,Tv=6e4,_v=36e5,Cv=864e5,Iv=6048e5,Dv=2592e6,Nv=31536e6,Rv=kv((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Mv)}),((t,e)=>(e-t)/Mv),(t=>t.getUTCSeconds()));Rv.range;const Bv=kv((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Mv)}),((t,e)=>{t.setTime(+t+e*Tv)}),((t,e)=>(e-t)/Tv),(t=>t.getMinutes()));Bv.range;const Lv=kv((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Tv)}),((t,e)=>(e-t)/Tv),(t=>t.getUTCMinutes()));Lv.range;const $v=kv((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Mv-t.getMinutes()*Tv)}),((t,e)=>{t.setTime(+t+e*_v)}),((t,e)=>(e-t)/_v),(t=>t.getHours()));$v.range;const zv=kv((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*_v)}),((t,e)=>(e-t)/_v),(t=>t.getUTCHours()));zv.range;const Fv=kv((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Tv)/Cv),(t=>t.getDate()-1));Fv.range;const Uv=kv((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Cv),(t=>t.getUTCDate()-1));Uv.range;const Wv=kv((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Cv),(t=>Math.floor(t/Cv)));function qv(t){return kv((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Tv)/Iv))}Wv.range;const Vv=qv(0),Xv=qv(1),Hv=qv(2),Gv=qv(3),Kv=qv(4),Yv=qv(5),Zv=qv(6);function Jv(t){return kv((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Iv))}Vv.range,Xv.range,Hv.range,Gv.range,Kv.range,Yv.range,Zv.range;const Qv=Jv(0),tm=Jv(1),em=Jv(2),rm=Jv(3),nm=Jv(4),om=Jv(5),im=Jv(6);Qv.range,tm.range,em.range,rm.range,nm.range,om.range,im.range;const am=kv((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()));am.range;const cm=kv((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()));cm.range;const um=kv((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));um.every=t=>isFinite(t=Math.floor(t))&&t>0?kv((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null,um.range;const lm=kv((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function sm(t,e,r,n,o,i){const a=[[Rv,1,Mv],[Rv,5,5e3],[Rv,15,15e3],[Rv,30,3e4],[i,1,Tv],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,_v],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,Cv],[n,2,1728e5],[r,1,Iv],[e,1,Dv],[e,3,7776e6],[t,1,Nv]];function c(e,r,n){const o=Math.abs(r-e)/n,i=hy((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(ky(e/Nv,r/Nv,n));if(0===i)return Ev.every(Math.max(ky(e,r,n),1));const[c,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return c.every(u)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:c(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},c]}lm.every=t=>isFinite(t=Math.floor(t))&&t>0?kv((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null,lm.range;const[fm,pm]=sm(lm,cm,Qv,Wv,zv,Lv),[hm,ym]=sm(um,am,Vv,Fv,$v,Bv);function dm(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function vm(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function mm(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var bm,gm,xm,wm={"-":"",_:" ",0:"0"},Om=/^\s*\d+/,Sm=/^%/,jm=/[\\^$*+?|[\]().{}]/g;function Am(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function Pm(t){return t.replace(jm,"\\$&")}function km(t){return new RegExp("^(?:"+t.map(Pm).join("|")+")","i")}function Em(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Mm(t,e,r){var n=Om.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Tm(t,e,r){var n=Om.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function _m(t,e,r){var n=Om.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function Cm(t,e,r){var n=Om.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Im(t,e,r){var n=Om.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Dm(t,e,r){var n=Om.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Nm(t,e,r){var n=Om.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Rm(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Bm(t,e,r){var n=Om.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function Lm(t,e,r){var n=Om.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function $m(t,e,r){var n=Om.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function zm(t,e,r){var n=Om.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Fm(t,e,r){var n=Om.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function Um(t,e,r){var n=Om.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Wm(t,e,r){var n=Om.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function qm(t,e,r){var n=Om.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Vm(t,e,r){var n=Om.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Xm(t,e,r){var n=Sm.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Hm(t,e,r){var n=Om.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Gm(t,e,r){var n=Om.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Km(t,e){return Am(t.getDate(),e,2)}function Ym(t,e){return Am(t.getHours(),e,2)}function Zm(t,e){return Am(t.getHours()%12||12,e,2)}function Jm(t,e){return Am(1+Fv.count(um(t),t),e,3)}function Qm(t,e){return Am(t.getMilliseconds(),e,3)}function tb(t,e){return Qm(t,e)+"000"}function eb(t,e){return Am(t.getMonth()+1,e,2)}function rb(t,e){return Am(t.getMinutes(),e,2)}function nb(t,e){return Am(t.getSeconds(),e,2)}function ob(t){var e=t.getDay();return 0===e?7:e}function ib(t,e){return Am(Vv.count(um(t)-1,t),e,2)}function ab(t){var e=t.getDay();return e>=4||0===e?Kv(t):Kv.ceil(t)}function cb(t,e){return t=ab(t),Am(Kv.count(um(t),t)+(4===um(t).getDay()),e,2)}function ub(t){return t.getDay()}function lb(t,e){return Am(Xv.count(um(t)-1,t),e,2)}function sb(t,e){return Am(t.getFullYear()%100,e,2)}function fb(t,e){return Am((t=ab(t)).getFullYear()%100,e,2)}function pb(t,e){return Am(t.getFullYear()%1e4,e,4)}function hb(t,e){var r=t.getDay();return Am((t=r>=4||0===r?Kv(t):Kv.ceil(t)).getFullYear()%1e4,e,4)}function yb(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Am(e/60|0,"0",2)+Am(e%60,"0",2)}function db(t,e){return Am(t.getUTCDate(),e,2)}function vb(t,e){return Am(t.getUTCHours(),e,2)}function mb(t,e){return Am(t.getUTCHours()%12||12,e,2)}function bb(t,e){return Am(1+Uv.count(lm(t),t),e,3)}function gb(t,e){return Am(t.getUTCMilliseconds(),e,3)}function xb(t,e){return gb(t,e)+"000"}function wb(t,e){return Am(t.getUTCMonth()+1,e,2)}function Ob(t,e){return Am(t.getUTCMinutes(),e,2)}function Sb(t,e){return Am(t.getUTCSeconds(),e,2)}function jb(t){var e=t.getUTCDay();return 0===e?7:e}function Ab(t,e){return Am(Qv.count(lm(t)-1,t),e,2)}function Pb(t){var e=t.getUTCDay();return e>=4||0===e?nm(t):nm.ceil(t)}function kb(t,e){return t=Pb(t),Am(nm.count(lm(t),t)+(4===lm(t).getUTCDay()),e,2)}function Eb(t){return t.getUTCDay()}function Mb(t,e){return Am(tm.count(lm(t)-1,t),e,2)}function Tb(t,e){return Am(t.getUTCFullYear()%100,e,2)}function _b(t,e){return Am((t=Pb(t)).getUTCFullYear()%100,e,2)}function Cb(t,e){return Am(t.getUTCFullYear()%1e4,e,4)}function Ib(t,e){var r=t.getUTCDay();return Am((t=r>=4||0===r?nm(t):nm.ceil(t)).getUTCFullYear()%1e4,e,4)}function Db(){return"+0000"}function Nb(){return"%"}function Rb(t){return+t}function Bb(t){return Math.floor(+t/1e3)}function Lb(t){return new Date(t)}function $b(t){return t instanceof Date?+t:+new Date(+t)}function zb(t,e,r,n,o,i,a,c,u,l){var s=Wd(),f=s.invert,p=s.domain,h=l(".%L"),y=l(":%S"),d=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),b=l("%b %d"),g=l("%B"),x=l("%Y");function w(t){return(u(t)<t?h:c(t)<t?y:a(t)<t?d:i(t)<t?v:n(t)<t?o(t)<t?m:b:r(t)<t?g:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,$b)):p().map(Lb)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?w:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(uv(r,t)):s},s.copy=function(){return Fd(s,zb(t,e,r,n,o,i,a,c,u,l))},s}function Fb(){var t,e,r,n,o,i=0,a=1,c=Bd,u=!1;function l(e){return null==e||isNaN(e=+e)?o:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(Cd),l.rangeRound=s(Id),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),l}}function Ub(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Wb(){var t=Ov(Fb());return t.copy=function(){return Ub(t,Wb()).exponent(t.exponent())},Dy.apply(t,arguments)}function qb(){var t,e,r,n,o,i,a,c=0,u=.5,l=1,s=1,f=Bd,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function y(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=Dd(t,[r,n,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([c,u,l]=a,t=i(c=+c),e=i(u=+u),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h):[c,u,l]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=y(Cd),h.rangeRound=y(Id),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function Vb(){var t=Ov(qb());return t.copy=function(){return Ub(t,Vb()).exponent(t.exponent())},Dy.apply(t,arguments)}!function(t){bm=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=km(o),s=Em(o),f=km(i),p=Em(i),h=km(a),y=Em(a),d=km(c),v=Em(c),m=km(u),b=Em(u),g={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:Km,e:Km,f:tb,g:fb,G:hb,H:Ym,I:Zm,j:Jm,L:Qm,m:eb,M:rb,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Rb,s:Bb,S:nb,u:ob,U:ib,V:cb,w:ub,W:lb,x:null,X:null,y:sb,Y:pb,Z:yb,"%":Nb},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:db,e:db,f:xb,g:_b,G:Ib,H:vb,I:mb,j:bb,L:gb,m:wb,M:Ob,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Rb,s:Bb,S:Sb,u:jb,U:Ab,V:kb,w:Eb,W:Mb,x:null,X:null,y:Tb,Y:Cb,Z:Db,"%":Nb},w={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=y.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return j(t,e,r,n)},d:$m,e:$m,f:Vm,g:Nm,G:Dm,H:Fm,I:Fm,j:zm,L:qm,m:Lm,M:Um,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:Bm,Q:Hm,s:Gm,S:Wm,u:Tm,U:_m,V:Cm,w:Mm,W:Im,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:Nm,Y:Dm,Z:Rm,"%":Xm};function O(t,e){return function(r){var n,o,i,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(o=wm[n=t.charAt(++c)])?n=t.charAt(++c):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function S(t,e){return function(r){var n,o,i=mm(1900,void 0,1);if(j(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=vm(mm(i.y,0,1))).getUTCDay(),n=o>4||0===o?tm.ceil(n):tm(n),n=Uv.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=dm(mm(i.y,0,1))).getDay(),n=o>4||0===o?Xv.ceil(n):Xv(n),n=Fv.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?vm(mm(i.y,0,1)).getUTCDay():dm(mm(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,vm(i)):dm(i)}}function j(t,e,r,n){for(var o,i,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=w[o in wm?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return g.x=O(r,g),g.X=O(n,g),g.c=O(e,g),x.x=O(r,x),x.X=O(n,x),x.c=O(e,x),{format:function(t){var e=O(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}(t),gm=bm.format,bm.parse,xm=bm.utcFormat,bm.utcParse}({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"]});var Xb=Object.freeze({__proto__:null,scaleBand:By,scaleDiverging:function t(){var e=av(qb()(Bd));return e.copy=function(){return Ub(e,t())},Dy.apply(e,arguments)},scaleDivergingLog:function t(){var e=dv(qb()).domain([.1,1,10]);return e.copy=function(){return Ub(e,t()).base(e.base())},Dy.apply(e,arguments)},scaleDivergingPow:Vb,scaleDivergingSqrt:function(){return Vb.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=bv(qb());return e.copy=function(){return Ub(e,t()).constant(e.constant())},Dy.apply(e,arguments)},scaleIdentity:function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,Nd),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,Nd):[0,1],av(n)},scaleImplicit:Ny,scaleLinear:cv,scaleLog:function t(){const e=dv(Ud()).domain([1,10]);return e.copy=()=>Fd(e,t()).base(e.base()),Iy.apply(e,arguments),e},scaleOrdinal:Ry,scalePoint:$y,scalePow:Sv,scaleQuantile:function t(){var e,r=[],n=[],o=[];function i(){var t=0,e=Math.max(1,n.length);for(o=new Array(e-1);++t<e;)o[t-1]=Cy(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[vy(o,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?o[e-1]:r[0],e<o.length?o[e]:r[r.length-1]]},a.domain=function(t){if(!arguments.length)return r.slice();r=[];for(let e of t)null==e||isNaN(e=+e)||r.push(e);return r.sort(fy),i()},a.range=function(t){return arguments.length?(n=Array.from(t),i()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return o.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},Iy.apply(a,arguments)},scaleQuantize:function t(){var e,r=0,n=1,o=1,i=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[vy(i,t,0,o)]:e}function u(){var t=-1;for(i=new Array(o);++t<o;)i[t]=((t+1)*n-(t-o)*r)/(o+1);return c}return c.domain=function(t){return arguments.length?([r,n]=t,r=+r,n=+n,u()):[r,n]},c.range=function(t){return arguments.length?(o=(a=Array.from(t)).length-1,u()):a.slice()},c.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,i[0]]:e>=o?[i[o-1],n]:[i[e-1],i[e]]},c.unknown=function(t){return arguments.length?(e=t,c):c},c.thresholds=function(){return i.slice()},c.copy=function(){return t().domain([r,n]).range(a).unknown(e)},Iy.apply(av(c),arguments)},scaleRadial:function t(){var e,r=Wd(),n=[0,1],o=!1;function i(t){var n=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(r(t));return isNaN(n)?e:o?Math.round(n):n}return i.invert=function(t){return r.invert(jv(t))},i.domain=function(t){return arguments.length?(r.domain(t),i):r.domain()},i.range=function(t){return arguments.length?(r.range((n=Array.from(t,Nd)).map(jv)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(o=!!t,i):o},i.clamp=function(t){return arguments.length?(r.clamp(t),i):r.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t(r.domain(),n).round(o).clamp(r.clamp()).unknown(e)},Iy.apply(i,arguments),av(i)},scaleSequential:function t(){var e=av(Fb()(Bd));return e.copy=function(){return Ub(e,t())},Dy.apply(e,arguments)},scaleSequentialLog:function t(){var e=dv(Fb()).domain([1,10]);return e.copy=function(){return Ub(e,t()).base(e.base())},Dy.apply(e,arguments)},scaleSequentialPow:Wb,scaleSequentialQuantile:function t(){var e=[],r=Bd;function n(t){if(null!=t&&!isNaN(t=+t))return r((vy(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(fy),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map(((t,n)=>r(n/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((r,n)=>function(t,e,r){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,r)),(n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return My(t);if(e>=1)return Ey(t);var n,o=(n-1)*e,i=Math.floor(o),a=Ey(Ty(t,i).subarray(0,i+1));return a+(My(t.subarray(i+1))-a)*(o-i)}}(e,n/t)))},n.copy=function(){return t(r).domain(e)},Dy.apply(n,arguments)},scaleSequentialSqrt:function(){return Wb.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=bv(Fb());return e.copy=function(){return Ub(e,t()).constant(e.constant())},Dy.apply(e,arguments)},scaleSqrt:function(){return Sv.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=bv(Ud());return e.copy=function(){return Fd(e,t()).constant(e.constant())},Iy.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],o=1;function i(t){return null!=t&&t<=t?n[vy(r,t,0,o)]:e}return i.domain=function(t){return arguments.length?(r=Array.from(t),o=Math.min(r.length,n.length-1),i):r.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t().domain(r).range(n).unknown(e)},Iy.apply(i,arguments)},scaleTime:function(){return Iy.apply(zb(hm,ym,um,am,Vv,Fv,$v,Bv,Rv,gm).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Iy.apply(zb(fm,pm,lm,cm,Qv,Uv,zv,Lv,Rv,xm).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:iv}),Hb=F;var Gb=function(t,e,r){for(var n=-1,o=t.length;++n<o;){var i=t[n],a=e(i);if(null!=a&&(void 0===c?a==a&&!Hb(a):r(a,c)))var c=a,u=i}return u};var Kb=function(t,e){return t>e},Yb=Gb,Zb=Kb,Jb=uu;var Qb=function(t){return t&&t.length?Yb(t,Jb,Zb):void 0},tg=d(Qb);var eg=function(t,e){return t<e},rg=Gb,ng=eg,og=uu;var ig=function(t){return t&&t.length?rg(t,og,ng):void 0},ag=d(ig),cg=Oe,ug=wu,lg=xl,sg=w;var fg=fl,pg=function(t,e){return(sg(t)?cg:lg)(t,ug(e))};var hg=d((function(t,e){return fg(pg(t,e),1)})),yg=Mc;var dg,vg=d((function(t,e){return yg(t,e)})),mg=1e9,bg=!0,gg="[DecimalError] ",xg=gg+"Invalid argument: ",wg=gg+"Exponent out of range: ",Og=Math.floor,Sg=Math.pow,jg=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ag=1e7,Pg=7,kg=9007199254740991,Eg=Og(kg/Pg),Mg={};function Tg(t,e){var r,n,o,i,a,c,u,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),bg?zg(e,f):e;if(u=t.d,l=e.d,a=t.e,o=e.e,u=u.slice(),i=a-o){for(i<0?(n=u,i=-i,c=l.length):(n=l,o=a,c=u.length),i>(c=(a=Math.ceil(f/Pg))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=u.length)-(i=l.length)<0&&(i=c,n=l,l=u,u=n),r=0;i;)r=(u[--i]=u[i]+l[i]+r)/Ag|0,u[i]%=Ag;for(r&&(u.unshift(r),++o),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=o,bg?zg(e,f):e}function _g(t,e,r){if(t!==~~t||t<e||t>r)throw Error(xg+t)}function Cg(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)n=t[e]+"",(r=Pg-n.length)&&(i+=Bg(r)),i+=n;a=t[e],(r=Pg-(n=a+"").length)&&(i+=Bg(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}Mg.absoluteValue=Mg.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},Mg.comparedTo=Mg.cmp=function(t){var e,r,n,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,r=(n=i.d.length)<(o=t.d.length)?n:o;e<r;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},Mg.decimalPlaces=Mg.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*Pg;if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},Mg.dividedBy=Mg.div=function(t){return Ig(this,new this.constructor(t))},Mg.dividedToIntegerBy=Mg.idiv=function(t){var e=this.constructor;return zg(Ig(this,new e(t),0,1),e.precision)},Mg.equals=Mg.eq=function(t){return!this.cmp(t)},Mg.exponent=function(){return Ng(this)},Mg.greaterThan=Mg.gt=function(t){return this.cmp(t)>0},Mg.greaterThanOrEqualTo=Mg.gte=function(t){return this.cmp(t)>=0},Mg.isInteger=Mg.isint=function(){return this.e>this.d.length-2},Mg.isNegative=Mg.isneg=function(){return this.s<0},Mg.isPositive=Mg.ispos=function(){return this.s>0},Mg.isZero=function(){return 0===this.s},Mg.lessThan=Mg.lt=function(t){return this.cmp(t)<0},Mg.lessThanOrEqualTo=Mg.lte=function(t){return this.cmp(t)<1},Mg.logarithm=Mg.log=function(t){var e,r=this,n=r.constructor,o=n.precision,i=o+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(dg))throw Error(gg+"NaN");if(r.s<1)throw Error(gg+(r.s?"NaN":"-Infinity"));return r.eq(dg)?new n(0):(bg=!1,e=Ig(Lg(r,i),Lg(t,i),i),bg=!0,zg(e,o))},Mg.minus=Mg.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Fg(e,t):Tg(e,(t.s=-t.s,t))},Mg.modulo=Mg.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(gg+"NaN");return r.s?(bg=!1,e=Ig(r,t,0,1).times(t),bg=!0,r.minus(e)):zg(new n(r),o)},Mg.naturalExponential=Mg.exp=function(){return Dg(this)},Mg.naturalLogarithm=Mg.ln=function(){return Lg(this)},Mg.negated=Mg.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},Mg.plus=Mg.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Tg(e,t):Fg(e,(t.s=-t.s,t))},Mg.precision=Mg.sd=function(t){var e,r,n,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(xg+t);if(e=Ng(o)+1,r=(n=o.d.length-1)*Pg+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},Mg.squareRoot=Mg.sqrt=function(){var t,e,r,n,o,i,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(gg+"NaN")}for(t=Ng(c),bg=!1,0==(o=Math.sqrt(+c))||o==1/0?(((e=Cg(c.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=Og((t+1)/2)-(t<0||t%2),n=new u(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new u(o.toString()),o=a=(r=u.precision)+3;;)if(n=(i=n).plus(Ig(c,i,a+2)).times(.5),Cg(i.d).slice(0,a)===(e=Cg(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(zg(i,r+1,0),i.times(i).eq(c)){n=i;break}}else if("9999"!=e)break;a+=4}return bg=!0,zg(n,r)},Mg.times=Mg.mul=function(t){var e,r,n,o,i,a,c,u,l,s=this,f=s.constructor,p=s.d,h=(t=new f(t)).d;if(!s.s||!t.s)return new f(0);for(t.s*=s.s,r=s.e+t.e,(u=p.length)<(l=h.length)&&(i=p,p=h,h=i,a=u,u=l,l=a),i=[],n=a=u+l;n--;)i.push(0);for(n=l;--n>=0;){for(e=0,o=u+n;o>n;)c=i[o]+h[n]*p[o-n-1]+e,i[o--]=c%Ag|0,e=c/Ag|0;i[o]=(i[o]+e)%Ag|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,bg?zg(t,f.precision):t},Mg.toDecimalPlaces=Mg.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(_g(t,0,mg),void 0===e?e=n.rounding:_g(e,0,8),zg(r,t+Ng(r)+1,e))},Mg.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=Ug(n,!0):(_g(t,0,mg),void 0===e?e=o.rounding:_g(e,0,8),r=Ug(n=zg(new o(n),t+1,e),!0,t+1)),r},Mg.toFixed=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?Ug(o):(_g(t,0,mg),void 0===e?e=i.rounding:_g(e,0,8),r=Ug((n=zg(new i(o),t+Ng(o)+1,e)).abs(),!1,t+Ng(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},Mg.toInteger=Mg.toint=function(){var t=this,e=t.constructor;return zg(new e(t),Ng(t)+1,e.rounding)},Mg.toNumber=function(){return+this},Mg.toPower=Mg.pow=function(t){var e,r,n,o,i,a,c=this,u=c.constructor,l=+(t=new u(t));if(!t.s)return new u(dg);if(!(c=new u(c)).s){if(t.s<1)throw Error(gg+"Infinity");return c}if(c.eq(dg))return c;if(n=u.precision,t.eq(dg))return zg(c,n);if(a=(e=t.e)>=(r=t.d.length-1),i=c.s,a){if((r=l<0?-l:l)<=kg){for(o=new u(dg),e=Math.ceil(n/Pg+4),bg=!1;r%2&&Wg((o=o.times(c)).d,e),0!==(r=Og(r/2));)Wg((c=c.times(c)).d,e);return bg=!0,t.s<0?new u(dg).div(o):zg(o,n)}}else if(i<0)throw Error(gg+"NaN");return i=i<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,bg=!1,o=t.times(Lg(c,n+12)),bg=!0,(o=Dg(o)).s=i,o},Mg.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?n=Ug(o,(r=Ng(o))<=i.toExpNeg||r>=i.toExpPos):(_g(t,1,mg),void 0===e?e=i.rounding:_g(e,0,8),n=Ug(o=zg(new i(o),t,e),t<=(r=Ng(o))||r<=i.toExpNeg,t)),n},Mg.toSignificantDigits=Mg.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(_g(t,1,mg),void 0===e?e=r.rounding:_g(e,0,8)),zg(new r(this),t,e)},Mg.toString=Mg.valueOf=Mg.val=Mg.toJSON=Mg[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=Ng(t),r=t.constructor;return Ug(t,e<=r.toExpNeg||e>=r.toExpPos)};var Ig=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%Ag|0,n=r/Ag|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*Ag+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,a){var c,u,l,s,f,p,h,y,d,v,m,b,g,x,w,O,S,j,A=n.constructor,P=n.s==o.s?1:-1,k=n.d,E=o.d;if(!n.s)return new A(n);if(!o.s)throw Error(gg+"Division by zero");for(u=n.e-o.e,S=E.length,w=k.length,y=(h=new A(P)).d=[],l=0;E[l]==(k[l]||0);)++l;if(E[l]>(k[l]||0)&&--u,(b=null==i?i=A.precision:a?i+(Ng(n)-Ng(o))+1:i)<0)return new A(0);if(b=b/Pg+2|0,l=0,1==S)for(s=0,E=E[0],b++;(l<w||s)&&b--;l++)g=s*Ag+(k[l]||0),y[l]=g/E|0,s=g%E|0;else{for((s=Ag/(E[0]+1)|0)>1&&(E=t(E,s),k=t(k,s),S=E.length,w=k.length),x=S,v=(d=k.slice(0,S)).length;v<S;)d[v++]=0;(j=E.slice()).unshift(0),O=E[0],E[1]>=Ag/2&&++O;do{s=0,(c=e(E,d,S,v))<0?(m=d[0],S!=v&&(m=m*Ag+(d[1]||0)),(s=m/O|0)>1?(s>=Ag&&(s=Ag-1),1==(c=e(f=t(E,s),d,p=f.length,v=d.length))&&(s--,r(f,S<p?j:E,p))):(0==s&&(c=s=1),f=E.slice()),(p=f.length)<v&&f.unshift(0),r(d,f,v),-1==c&&(c=e(E,d,S,v=d.length))<1&&(s++,r(d,S<v?j:E,v)),v=d.length):0===c&&(s++,d=[0]),y[l++]=s,c&&d[0]?d[v++]=k[x]||0:(d=[k[x]],v=1)}while((x++<w||void 0!==d[0])&&b--)}return y[0]||y.shift(),h.e=u,zg(h,a?i+Ng(h)+1:i)}}();function Dg(t,e){var r,n,o,i,a,c=0,u=0,l=t.constructor,s=l.precision;if(Ng(t)>16)throw Error(wg+Ng(t));if(!t.s)return new l(dg);for(null==e?(bg=!1,a=s):a=e,i=new l(.03125);t.abs().gte(.1);)t=t.times(i),u+=5;for(a+=Math.log(Sg(2,u))/Math.LN10*2+5|0,r=n=o=new l(dg),l.precision=a;;){if(n=zg(n.times(t),a),r=r.times(++c),Cg((i=o.plus(Ig(n,r,a))).d).slice(0,a)===Cg(o.d).slice(0,a)){for(;u--;)o=zg(o.times(o),a);return l.precision=s,null==e?(bg=!0,zg(o,s)):o}o=i}}function Ng(t){for(var e=t.e*Pg,r=t.d[0];r>=10;r/=10)e++;return e}function Rg(t,e,r){if(e>t.LN10.sd())throw bg=!0,r&&(t.precision=r),Error(gg+"LN10 precision limit exceeded");return zg(new t(t.LN10),e)}function Bg(t){for(var e="";t--;)e+="0";return e}function Lg(t,e){var r,n,o,i,a,c,u,l,s,f=1,p=t,h=p.d,y=p.constructor,d=y.precision;if(p.s<1)throw Error(gg+(p.s?"NaN":"-Infinity"));if(p.eq(dg))return new y(0);if(null==e?(bg=!1,l=d):l=e,p.eq(10))return null==e&&(bg=!0),Rg(y,l);if(l+=10,y.precision=l,n=(r=Cg(h)).charAt(0),i=Ng(p),!(Math.abs(i)<15e14))return u=Rg(y,l+2,d).times(i+""),p=Lg(new y(n+"."+r.slice(1)),l-10).plus(u),y.precision=d,null==e?(bg=!0,zg(p,d)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Cg((p=p.times(t)).d)).charAt(0),f++;for(i=Ng(p),n>1?(p=new y("0."+r),i++):p=new y(n+"."+r.slice(1)),c=a=p=Ig(p.minus(dg),p.plus(dg),l),s=zg(p.times(p),l),o=3;;){if(a=zg(a.times(s),l),Cg((u=c.plus(Ig(a,new y(o),l))).d).slice(0,l)===Cg(c.d).slice(0,l))return c=c.times(2),0!==i&&(c=c.plus(Rg(y,l+2,d).times(i+""))),c=Ig(c,new y(f),l),y.precision=d,null==e?(bg=!0,zg(c,d)):c;c=u,o+=2}}function $g(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=Og(r/Pg),t.d=[],n=(r+1)%Pg,r<0&&(n+=Pg),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=Pg;n<o;)t.d.push(+e.slice(n,n+=Pg));e=e.slice(n),n=Pg-e.length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),bg&&(t.e>Eg||t.e<-Eg))throw Error(wg+r)}else t.s=0,t.e=0,t.d=[0];return t}function zg(t,e,r){var n,o,i,a,c,u,l,s,f=t.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=Pg,o=e,l=f[s=0];else{if((s=Math.ceil((n+1)/Pg))>=(i=f.length))return t;for(l=i=f[s],a=1;i>=10;i/=10)a++;o=(n%=Pg)-Pg+a}if(void 0!==r&&(c=l/(i=Sg(10,a-o-1))%10|0,u=e<0||void 0!==f[s+1]||l%i,u=r<4?(c||u)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||u||6==r&&(n>0?o>0?l/Sg(10,a-o):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return u?(i=Ng(t),f.length=1,e=e-i-1,f[0]=Sg(10,(Pg-e%Pg)%Pg),t.e=Og(-e/Pg)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,i=1,s--):(f.length=s+1,i=Sg(10,Pg-n),f[s]=o>0?(l/Sg(10,a-o)%Sg(10,o)|0)*i:0),u)for(;;){if(0==s){(f[0]+=i)==Ag&&(f[0]=1,++t.e);break}if(f[s]+=i,f[s]!=Ag)break;f[s--]=0,i=1}for(n=f.length;0===f[--n];)f.pop();if(bg&&(t.e>Eg||t.e<-Eg))throw Error(wg+Ng(t));return t}function Fg(t,e){var r,n,o,i,a,c,u,l,s,f,p=t.constructor,h=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),bg?zg(e,h):e;if(u=t.d,f=e.d,n=e.e,l=t.e,u=u.slice(),a=l-n){for((s=a<0)?(r=u,a=-a,c=f.length):(r=f,n=l,c=u.length),a>(o=Math.max(Math.ceil(h/Pg),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((s=(o=u.length)<(c=f.length))&&(c=o),o=0;o<c;o++)if(u[o]!=f[o]){s=u[o]<f[o];break}a=0}for(s&&(r=u,u=f,f=r,e.s=-e.s),c=u.length,o=f.length-c;o>0;--o)u[c++]=0;for(o=f.length;o>a;){if(u[--o]<f[o]){for(i=o;i&&0===u[--i];)u[i]=Ag-1;--u[i],u[o]+=Ag}u[o]-=f[o]}for(;0===u[--c];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=n,bg?zg(e,h):e):new p(0)}function Ug(t,e,r){var n,o=Ng(t),i=Cg(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+Bg(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Bg(-o-1)+i,r&&(n=r-a)>0&&(i+=Bg(n))):o>=a?(i+=Bg(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+Bg(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=Bg(n))),t.s<0?"-"+i:i}function Wg(t,e){if(t.length>e)return t.length=e,!0}function qg(t){if(!t||"object"!=typeof t)throw Error(gg+"Object expected");var e,r,n,o=["precision",1,mg,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(n=t[r=o[e]])){if(!(Og(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(xg+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(xg+r+": "+n);this[r]=new this(n)}return this}var Vg=function t(e){var r,n,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(xg+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):$g(e,t.toString())}if("string"!=typeof t)throw Error(xg+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!jg.test(t))throw Error(xg+t);$g(e,t)}if(i.prototype=Mg,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=t,i.config=i.set=qg,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return i.config(e),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});dg=new Vg(1);var Xg=Vg;function Hg(t){return function(t){if(Array.isArray(t))return Gg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Gg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gg(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Kg=function(t){return t},Yg={"@@functional/placeholder":!0},Zg=function(t){return t===Yg},Jg=function(t){return function e(){return 0===arguments.length||1===arguments.length&&Zg(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},Qg=function t(e,r){return 1===e?r:Jg((function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter((function(t){return t!==Yg})).length;return a>=e?r.apply(void 0,o):t(e-a,Jg((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=o.map((function(t){return Zg(t)?e.shift():t}));return r.apply(void 0,Hg(i).concat(e))})))}))},tx=function(t){return Qg(t.length,t)},ex=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},rx=tx((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),nx=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return Kg;var n=e.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce((function(t,e){return e(t)}),o.apply(void 0,arguments))}},ox=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},ix=function(t){var e=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e&&o.every((function(t,r){return t===e[r]}))?r:(e=o,r=t.apply(void 0,o))}};var ax=tx((function(t,e,r){var n=+t;return n+r*(+e-n)})),cx=tx((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),ux=tx((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))})),lx={rangeStep:function(t,e,r){for(var n=new Xg(t),o=0,i=[];n.lt(e)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},getDigitCount:function(t){return 0===t?1:Math.floor(new Xg(t).abs().log(10).toNumber())+1},interpolateNumber:ax,uninterpolateNumber:cx,uninterpolateTruncation:ux};function sx(t){return function(t){if(Array.isArray(t))return hx(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||px(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fx(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(t,e)||px(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function px(t,e){if(t){if("string"==typeof t)return hx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hx(t,e):void 0}}function hx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function yx(t){var e=fx(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function dx(t,e,r){if(t.lte(0))return new Xg(0);var n=lx.getDigitCount(t.toNumber()),o=new Xg(10).pow(n),i=t.div(o),a=1!==n?.05:.1,c=new Xg(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?c:new Xg(Math.ceil(c))}function vx(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new Xg(0),tickMin:new Xg(0),tickMax:new Xg(0)};var i,a=dx(new Xg(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new Xg(0):(i=new Xg(t).add(e).div(2)).sub(new Xg(i).mod(a));var c=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new Xg(e).sub(i).div(a).toNumber()),l=c+u+1;return l>r?vx(t,e,r,n,o+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:i.sub(new Xg(c).mul(a)),tickMax:i.add(new Xg(u).mul(a))})}var mx=ix((function(t){var e=fx(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=fx(yx([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(sx(ex(0,o-1).map((function(){return 1/0})))):[].concat(sx(ex(0,o-1).map((function(){return-1/0}))),[l]);return r>n?ox(s):s}if(u===l)return function(t,e,r){var n=1,o=new Xg(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new Xg(10).pow(lx.getDigitCount(t)-1),o=new Xg(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new Xg(Math.floor(t)))}else 0===t?o=new Xg(Math.floor((e-1)/2)):r||(o=new Xg(Math.floor(t)));var a=Math.floor((e-1)/2);return nx(rx((function(t){return o.add(new Xg(t-a).mul(n)).toNumber()})),ex)(0,e)}(u,o,i);var f=vx(u,l,a,i),p=f.step,h=f.tickMin,y=f.tickMax,d=lx.rangeStep(h,y.add(new Xg(.1).mul(p)),p);return r>n?ox(d):d})),bx=ix((function(t,e){var r=fx(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=fx(yx([n,o]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,o];if(c===u)return[c];var l=Math.max(e,2),s=dx(new Xg(u).sub(c).div(l-1),i,0),f=[].concat(sx(lx.rangeStep(new Xg(c),new Xg(u).sub(new Xg(.99).mul(s)),s)),[u]);return n>o?ox(f):f})),gx=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function xx(){return xx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xx.apply(this,arguments)}function wx(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ox(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ox(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ox(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Sx(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function jx(e){var r=e.offset,n=e.layout,o=e.width,i=e.dataKey,a=e.data,c=e.dataPointFormatter,u=e.xAxis,l=e.yAxis,s=Sx(e,gx),f=Lr(s),p=a.map((function(e){var a=c(e,i),s=a.x,p=a.y,h=a.value,y=a.errorVal;if(!y)return null;var d,v,m=[];if(Array.isArray(y)){var b=wx(y,2);d=b[0],v=b[1]}else d=v=y;if("vertical"===n){var g=u.scale,x=p+r,w=x+o,O=x-o,S=g(h-d),j=g(h+v);m.push({x1:j,y1:w,x2:j,y2:O}),m.push({x1:S,y1:x,x2:j,y2:x}),m.push({x1:S,y1:w,x2:S,y2:O})}else if("horizontal"===n){var A=l.scale,P=s+r,k=P-o,E=P+o,M=A(h-d),T=A(h+v);m.push({x1:k,y1:T,x2:E,y2:T}),m.push({x1:P,y1:M,x2:P,y2:T}),m.push({x1:k,y1:M,x2:E,y2:M})}return t.createElement(Kr,xx({className:"recharts-errorBar",key:"bar-".concat(m.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},f),m.map((function(e){return t.createElement("line",xx({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return t.createElement(Kr,{className:"recharts-errorBars"},p)}function Ax(t){"@babel/helpers - typeof";return Ax="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ax(t)}function Px(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function kx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Px(Object(r),!0).forEach((function(e){Ex(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Px(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ex(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ax(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ax(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ax(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}jx.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},jx.displayName="ErrorBar";var Mx=function(t){var e,r=t.children,n=t.formattedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=Nr(r,il);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(n||[]).reduce((function(t,e){var r=e.item,n=e.props,o=n.sectors||n.data||[];return t.concat(o.map((function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(n||[]).map((function(t){var e=t.item,r=e.props,n=r.dataKey,o=r.name,i=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||i||"square",color:Lx(e),value:o||n,payload:e.props}})),kx(kx(kx({},a.props),il.getWithHeight(a,o)),{},{payload:e,item:a})):null};function Tx(t){"@babel/helpers - typeof";return Tx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tx(t)}function _x(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Cx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_x(Object(r),!0).forEach((function(e){Ix(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_x(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ix(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Tx(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Tx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Tx(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dx(t){return function(t){if(Array.isArray(t))return Nx(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Nx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nx(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Rx(t,e,r){return qe(t)||qe(e)?r:sr(e)?We(t,e,r):Q(e)?e(t):r}function Bx(t,e,r,n){var o=hg(t,(function(t){return Rx(t,e)}));if("number"===r){var i=o.filter((function(t){return lr(t)||parseFloat(t)}));return i.length?[ag(i),tg(i)]:[1/0,-1/0]}return(n?o.filter((function(t){return!qe(t)})):o).map((function(t){return sr(t)||t instanceof Date?t:""}))}var Lx=function(t){var e,r=t.type.displayName,n=t.props,o=n.stroke,i=n.fill;switch(r){case"Line":e=o;break;case"Area":case"Radar":e=o&&"none"!==o?o:i;break;default:e=i}return e},$x=function(t,e,r,n,o){var i=Dr(e.props.children,jx).filter((function(t){return function(t,e,r){return!!qe(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,o,t.props.direction)}));if(i&&i.length){var a=i.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=Rx(e,r,0),o=Array.isArray(n)?[ag(n),tg(n)]:[n,n],i=a.reduce((function(t,r){var n=Rx(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},zx=function(t,e,r,n,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===r&&i&&$x(t,e,i,n)||Bx(t,i,r,o)}));if("number"===r)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t}),[])},Fx=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Ux=function(t,e,r,n){if(n)return t.map((function(t){return t.coordinate}));var o,i,a=t.map((function(t){return t.coordinate===e&&(o=!0),t.coordinate===r&&(i=!0),t.coordinate}));return o||a.push(e),i||a.push(r),a},Wx=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*cr(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+u,value:t,offset:u}})).filter((function(t){return!ar(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+u,value:t,offset:u}})):n.domain().map((function(t,e){return{coordinate:n(t)+u,value:o?o[t]:t,index:e,offset:u}}))},qx=new WeakMap,Vx=function(t,e){if("function"!=typeof e)return t;qx.has(t)||qx.set(t,new WeakMap);var r=qx.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},Xx=function(t,e,r){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:By(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:cv(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:$y(),realScaleType:"point"}:"category"===o?{scale:By(),realScaleType:"band"}:{scale:cv(),realScaleType:"linear"};if(Ke(n)){var c="scale".concat(kn(n));return{scale:(Xb[c]||$y)(),realScaleType:Xb[c]?c:"point"}}return Q(n)?{scale:n}:{scale:$y(),realScaleType:"point"}},Hx=1e-4,Gx=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-Hx,i=Math.max(n[0],n[1])+Hx,a=t(e[0]),c=t(e[r-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[r-1]])}},Kx={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var c=ar(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}Mo(t,e)}},none:Mo,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;o[n][1]+=o[n][0]=-c/2}Mo(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var c=0,u=0,l=0;c<o;++c){for(var s=t[e[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<c;++h){var y=t[e[h]];p+=(y[a][1]||0)-(y[a-1][1]||0)}u+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,u&&(i-=l/u)}r[a-1][1]+=r[a-1][0]=i,Mo(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0;i<e;++i){var a=ar(t[i][r][1])?t[i][r][0]:t[i][r][1];a>=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},Yx=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),o=Kx[r],i=function(){var t=En([]),e=To,r=Mo,n=_o;function o(o){var i,a,c=Array.from(t.apply(this,arguments),Co),u=c.length,l=-1;for(const t of o)for(i=0,++l;i<u;++i)(c[i][l]=[0,+n(t,c[i].key,l,o)]).data=t;for(i=0,a=Fn(e(c));i<u;++i)c[a[i]].index=i;return r(c,a),c}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:En(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:En(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?To:"function"==typeof t?t:En(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?Mo:t,o):r},o}().keys(n).value((function(t,e){return+Rx(t,e,0)})).order(To).offset(o);return i(t)},Zx=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var u=t.domain();if(!u.length)return null;var l=mx(u,o,a);return t.domain([ag(l),tg(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:bx(s,o,a)}}return null},Jx=function(t){var e=t.axis,r=t.ticks,n=t.bandSize,o=t.entry,i=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!qe(o[e.dataKey])){var c=vr(r,"value",o[e.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=Rx(o,qe(a)?e.dataKey:a);return qe(u)?null:e.scale(u)},Qx=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=Rx(i,e.dataKey,e.domain[a]);return qe(c)?null:e.scale(c)-o/2+n},tw=function(t,e,r){return Object.keys(t).reduce((function(n,o){var i=t[o].stackedData.reduce((function(t,n){var o=n.slice(e,r+1).reduce((function(t,e){return[ag(e.concat([t[0]]).filter(lr)),tg(e.concat([t[1]]).filter(lr))]}),[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},ew=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,rw=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,nw=function(t,e,r){if(Q(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(lr(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(ew.test(t[0])){var o=+ew.exec(t[0])[1];n[0]=e[0]-o}else Q(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(lr(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(rw.test(t[1])){var i=+rw.exec(t[1])[1];n[1]=e[1]+i}else Q(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},ow=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=os(e,(function(t){return t.coordinate})),i=1/0,a=1,c=o.length;a<c;a++){var u=o[a],l=o[a-1];i=Math.min((u.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},iw=function(t,e,r){return t&&t.length?vg(t,We(r,"type.defaultProps.domain"))?e:t:e},aw=function(t,e){var r=t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType;return Cx(Cx({},Lr(t)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:Lx(t),value:Rx(e,n),type:c,payload:e,chartType:u})};function cw(t){"@babel/helpers - typeof";return cw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cw(t)}function uw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uw(Object(r),!0).forEach((function(e){sw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sw(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==cw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==cw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===cw(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fw(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return pw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pw(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var hw=Math.PI/180,yw=function(t){return 180*t/Math.PI},dw=function(t,e,r,n){return{x:t+Math.cos(-hw*n)*r,y:e+Math.sin(-hw*n)*r}},vw=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(e-(r.top||0)-(r.bottom||0)))/2},mw=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var c=(r-o)/a,u=Math.acos(c);return n>i&&(u=2*Math.PI-u),{radius:a,angle:yw(u),angleInRadian:u}},bw=function(t,e){var r=e.startAngle,n=e.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return t+360*Math.min(o,i)},gw=function(t,e){var r=t.x,n=t.y,o=mw({x:r,y:n},e),i=o.radius,a=o.angle,c=e.innerRadius,u=e.outerRadius;if(i<c||i>u)return!1;if(0===i)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),f=s.startAngle,p=s.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;l=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;l=h>=p&&h<=f}return l?lw(lw({},e),{},{radius:i,angle:bw(h,e)}):null};function xw(t){"@babel/helpers - typeof";return xw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xw(t)}var ww=["offset"];function Ow(t){return function(t){if(Array.isArray(t))return Sw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Sw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sw(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jw(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Aw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Pw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Aw(Object(r),!0).forEach((function(e){kw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Aw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function kw(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==xw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==xw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===xw(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ew(){return Ew=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ew.apply(this,arguments)}var Mw=function(t){var e=t.value,r=t.formatter,n=qe(t.children)?e:t.children;return Q(r)?r(n):n},Tw=function(e,r,n){var o,i,a=e.position,c=e.viewBox,u=e.offset,l=e.className,s=c,f=s.cx,p=s.cy,h=s.innerRadius,y=s.outerRadius,d=s.startAngle,v=s.endAngle,m=s.clockWise,b=(h+y)/2,g=function(t,e){return cr(e-t)*Math.min(Math.abs(e-t),360)}(d,v),w=g>=0?1:-1;"insideStart"===a?(o=d+w*u,i=m):"insideEnd"===a?(o=v-w*u,i=!m):"end"===a&&(o=v+w*u,i=m),i=g<=0?i:!i;var O=dw(f,p,b,o),S=dw(f,p,b,o+359*(i?1:-1)),j="M".concat(O.x,",").concat(O.y,"\n A").concat(b,",").concat(b,",0,1,").concat(i?0:1,",\n ").concat(S.x,",").concat(S.y),A=qe(e.id)?pr("recharts-radial-line-"):e.id;return t.createElement("text",Ew({},n,{dominantBaseline:"central",className:x("recharts-radial-bar-label",l)}),t.createElement("defs",null,t.createElement("path",{id:A,d:j})),t.createElement("textPath",{xlinkHref:"#".concat(A)},r))},_w=function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,c=o.innerRadius,u=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=dw(i,a,u+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=dw(i,a,(c+u)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},Cw=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,c=i.y,u=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",h=s>0?"start":"end",y=u>=0?1:-1,d=y*n,v=y>0?"end":"start",m=y>0?"start":"end";if("top"===o)return Pw(Pw({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===o)return Pw(Pw({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===o){var b={x:a-d,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return Pw(Pw({},b),r?{width:Math.max(b.x-r.x,0),height:l}:{})}if("right"===o){var g={x:a+u+d,y:c+l/2,textAnchor:m,verticalAnchor:"middle"};return Pw(Pw({},g),r?{width:Math.max(r.x+r.width-g.x,0),height:l}:{})}var x=r?{width:u,height:l}:{};return"insideLeft"===o?Pw({x:a+d,y:c+l/2,textAnchor:m,verticalAnchor:"middle"},x):"insideRight"===o?Pw({x:a+u-d,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===o?Pw({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:h},x):"insideBottom"===o?Pw({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===o?Pw({x:a+d,y:c+f,textAnchor:m,verticalAnchor:h},x):"insideTopRight"===o?Pw({x:a+u-d,y:c+f,textAnchor:v,verticalAnchor:h},x):"insideBottomLeft"===o?Pw({x:a+d,y:c+l-f,textAnchor:m,verticalAnchor:p},x):"insideBottomRight"===o?Pw({x:a+u-d,y:c+l-f,textAnchor:v,verticalAnchor:p},x):G(o)&&(lr(o.x)||ur(o.x))&&(lr(o.y)||ur(o.y))?Pw({x:a+hr(o.x,u),y:c+hr(o.y,l),textAnchor:"end",verticalAnchor:"end"},x):Pw({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},x)},Iw=function(t){return"cx"in t&&lr(t.cx)};function Dw(r){var n,i=r.offset,a=Pw({offset:void 0===i?5:i},jw(r,ww)),c=a.viewBox,u=a.position,l=a.value,s=a.children,f=a.content,h=a.className,y=void 0===h?"":h,d=a.textBreakAll;if(!c||qe(l)&&qe(s)&&!e(f)&&!Q(f))return null;if(e(f))return o(f,a);if(Q(f)){if(e(n=p(f,a)))return n}else n=Mw(a);var v=Iw(c),m=Lr(a,!0);if(v&&("insideStart"===u||"insideEnd"===u||"end"===u))return Tw(a,n,m);var b=v?_w(a):Cw(a);return t.createElement(sy,Ew({className:x("recharts-label",y)},m,b,{breakAll:d}),n)}Dw.displayName="Label";var Nw=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,h=t.left,y=t.width,d=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if(lr(y)&&lr(d)){if(lr(s)&&lr(f))return{x:s,y:f,width:y,height:d};if(lr(p)&&lr(h))return{x:p,y:h,width:y,height:d}}return lr(s)&&lr(f)?{x:s,y:f,width:0,height:0}:lr(e)&&lr(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};Dw.parseViewBox=Nw,Dw.renderCallByParent=function(r,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!r||!r.children&&i&&!r.label)return null;var a=r.children,c=Nw(r),u=Dr(a,Dw).map((function(t,e){return o(t,{viewBox:n||c,key:"label-".concat(e)})}));if(!i)return u;var l=function(r,n){return r?!0===r?t.createElement(Dw,{key:"label-implicit",viewBox:n}):sr(r)?t.createElement(Dw,{key:"label-implicit",viewBox:n,value:r}):e(r)?r.type===Dw?o(r,{key:"label-implicit",viewBox:n}):t.createElement(Dw,{key:"label-implicit",content:r,viewBox:n}):Q(r)?t.createElement(Dw,{key:"label-implicit",content:r,viewBox:n}):G(r)?t.createElement(Dw,Ew({viewBox:n},r,{key:"label-implicit"})):null:null}(r.label,n||c);return[l].concat(Ow(u))};var Rw=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},Bw=d(Rw);function Lw(t){"@babel/helpers - typeof";return Lw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lw(t)}var $w=["valueAccessor"],zw=["data","dataKey","clockWise","id","textBreakAll"];function Fw(t){return function(t){if(Array.isArray(t))return Uw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Uw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uw(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ww(){return Ww=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ww.apply(this,arguments)}function qw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qw(Object(r),!0).forEach((function(e){Xw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xw(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Lw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Lw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Lw(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hw(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Gw=function(t){return Array.isArray(t.value)?Bw(t.value):t.value};function Kw(e){var r=e.valueAccessor,n=void 0===r?Gw:r,o=Hw(e,$w),i=o.data,a=o.dataKey,c=o.clockWise,u=o.id,l=o.textBreakAll,s=Hw(o,zw);return i&&i.length?t.createElement(Kr,{className:"recharts-label-list"},i.map((function(e,r){var o=qe(a)?n(e,r):Rx(e&&e.payload,a),i=qe(u)?{}:{id:"".concat(u,"-").concat(r)};return t.createElement(Dw,Ww({},Lr(e,!0),s,i,{parentViewBox:e.parentViewBox,value:o,textBreakAll:l,viewBox:Dw.parseViewBox(qe(c)?e:Vw(Vw({},e),{},{clockWise:c})),key:"label-".concat(r),index:r}))}))):null}function Yw(t){"@babel/helpers - typeof";return Yw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yw(t)}function Zw(){return Zw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Zw.apply(this,arguments)}function Jw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jw(Object(r),!0).forEach((function(e){tO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tO(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Yw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yw(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Kw.displayName="LabelList",Kw.renderCallByParent=function(e,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var i=Dr(e.children,Kw).map((function(t,e){return o(t,{data:r,key:"labelList-".concat(e)})}));return n?[function(e,r){return e?!0===e?t.createElement(Kw,{key:"labelList-implicit",data:r}):t.isValidElement(e)||Q(e)?t.createElement(Kw,{key:"labelList-implicit",data:r,content:e}):G(e)?t.createElement(Kw,Ww({data:r},e,{key:"labelList-implicit"})):null:null}(e.label,r)].concat(Fw(i)):i};var eO=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/hw,f=u?o:o+i*s,p=u?o-i*s:o;return{center:dw(e,r,l,f),circleTangency:dw(e,r,n,f),lineTangency:dw(e,r,l*Math.cos(s*hw),p),theta:s}},rO=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return cr(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,u=dw(e,r,o,i),l=dw(e,r,o,c),s="M ".concat(u.x,",").concat(u.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=dw(e,r,n,i),p=dw(e,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},nO={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},oO=function(e){var r=Qw(Qw({},nO),e),n=r.cx,o=r.cy,i=r.innerRadius,a=r.outerRadius,c=r.cornerRadius,u=r.forceCornerRadius,l=r.cornerIsExternal,s=r.startAngle,f=r.endAngle,p=r.className;if(a<i||s===f)return null;var h,y=x("recharts-sector",p),d=a-i,v=hr(c,d,0,!0);return h=v>0&&Math.abs(s-f)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=cr(l-u),f=eO({cx:e,cy:r,radius:o,angle:u,sign:s,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,y=f.theta,d=eO({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:c}),v=d.circleTangency,m=d.lineTangency,b=d.theta,g=c?Math.abs(u-l):Math.abs(u-l)-y-b;if(g<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):rO({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:u,endAngle:l});var x="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(g>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var w=eO({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),O=w.circleTangency,S=w.lineTangency,j=w.theta,A=eO({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),P=A.circleTangency,k=A.lineTangency,E=A.theta,M=c?Math.abs(u-l):Math.abs(u-l)-j-E;if(M<0&&0===i)return"".concat(x,"L").concat(e,",").concat(r,"Z");x+="L".concat(k.x,",").concat(k.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(P.x,",").concat(P.y,"\n A").concat(n,",").concat(n,",0,").concat(+(M>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else x+="L".concat(e,",").concat(r,"Z");return x}({cx:n,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(v,d/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:f}):rO({cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f}),t.createElement("path",Zw({},Lr(r,!0),{className:y,d:h,role:"img"}))};function iO(t){"@babel/helpers - typeof";return iO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iO(t)}function aO(){return aO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},aO.apply(this,arguments)}function cO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function uO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cO(Object(r),!0).forEach((function(e){lO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lO(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==iO(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==iO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===iO(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var sO={curveBasisClosed:function(t){return new vo(t)},curveBasisOpen:function(t){return new mo(t)},curveBasis:function(t){return new yo(t)},curveBumpX:function(t){return new Gn(t,!0)},curveBumpY:function(t){return new Gn(t,!1)},curveLinearClosed:function(t){return new bo(t)},curveLinear:Wn,curveMonotoneX:function(t){return new So(t)},curveMonotoneY:function(t){return new jo(t)},curveNatural:function(t){return new Po(t)},curveStep:function(t){return new Eo(t,.5)},curveStepAfter:function(t){return new Eo(t,1)},curveStepBefore:function(t){return new Eo(t,0)}},fO=function(t){return t.x===+t.x&&t.y===+t.y},pO=function(t){return t.x},hO=function(t){return t.y},yO=function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(Q(t))return t;var r="curve".concat(kn(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?sO[r]||Wn:sO["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?i.filter((function(t){return fO(t)})):i;if(Array.isArray(a)){var p=l?a.filter((function(t){return fO(t)})):a,h=f.map((function(t,e){return uO(uO({},t),{},{base:p[e]})}));return(e="vertical"===c?Hn().y(hO).x1(pO).x0((function(t){return t.base.x})):Hn().x(pO).y1(hO).y0((function(t){return t.base.y}))).defined(fO).curve(s),e(h)}return(e="vertical"===c&&lr(a)?Hn().y(hO).x1(pO).x0(a):lr(a)?Hn().x(pO).y1(hO).y0(a):Xn().x(pO).y(hO)).defined(fO).curve(s),e(f)},dO=function(e){var r=e.className,n=e.points,o=e.path,i=e.pathRef;if(!(n&&n.length||o))return null;var a=n&&n.length?yO(e):o;return t.createElement("path",aO({},Lr(e),Sr(e),{className:x("recharts-curve",r),d:a,ref:i}))};function vO(t){"@babel/helpers - typeof";return vO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vO(t)}function mO(){return mO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},mO.apply(this,arguments)}function bO(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return gO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gO(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xO(Object(r),!0).forEach((function(e){OO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function OO(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==vO(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==vO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===vO(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var SO=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),i+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+c*s[1])),i+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),i+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-c*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+r-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*p,"\n L ").concat(t+r,",").concat(e+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-u*p,",").concat(e+n,"\n L ").concat(t+u*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},jO=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+c),f=Math.max(i,i+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},AO={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},PO=function(e){var r=wO(wO({},AO),e),n=a(),o=bO(u(-1),2),i=o[0],c=o[1];s((function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&c(t)}catch(t){}}),[]);var l=r.x,f=r.y,p=r.width,h=r.height,y=r.radius,d=r.className,v=r.animationEasing,m=r.animationDuration,b=r.animationBegin,g=r.isAnimationActive,w=r.isUpdateAnimationActive;if(l!==+l||f!==+f||p!==+p||h!==+h||0===p||0===h)return null;var O=x("recharts-rectangle",d);return w?t.createElement(wp,{canBegin:i>0,from:{width:p,height:h,x:l,y:f},to:{width:p,height:h,x:l,y:f},duration:m,animationEasing:v,isActive:w},(function(e){var o=e.width,a=e.height,c=e.x,u=e.y;return t.createElement(wp,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:m,isActive:g,easing:v},t.createElement("path",mO({},Lr(r,!0),{className:O,d:SO(c,u,o,a,y),ref:n})))})):t.createElement("path",mO({},Lr(r,!0),{className:O,d:SO(l,f,p,h,y)}))},kO=["points","className","baseLinePoints","connectNulls"];function EO(){return EO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},EO.apply(this,arguments)}function MO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function TO(t){return function(t){if(Array.isArray(t))return _O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _O(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _O(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _O(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var CO=function(t){return t&&t.x===+t.x&&t.y===+t.y},IO=function(t,e){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[[]];return t.forEach((function(t){CO(t)?e[e.length-1].push(t):e[e.length-1].length>0&&e.push([])})),CO(t[0])&&e[e.length-1].push(t[0]),e[e.length-1].length<=0&&(e=e.slice(0,-1)),e}(t);e&&(r=[r.reduce((function(t,e){return[].concat(TO(t),TO(e))}),[])]);var n=r.map((function(t){return t.reduce((function(t,e,r){return"".concat(t).concat(0===r?"M":"L").concat(e.x,",").concat(e.y)}),"")})).join("");return 1===r.length?"".concat(n,"Z"):n},DO=function(e){var r=e.points,n=e.className,o=e.baseLinePoints,i=e.connectNulls,a=MO(e,kO);if(!r||!r.length)return null;var c=x("recharts-polygon",n);if(o&&o.length){var u=a.stroke&&"none"!==a.stroke,l=function(t,e,r){var n=IO(t,r);return"".concat("Z"===n.slice(-1)?n.slice(0,-1):n,"L").concat(IO(e.reverse(),r).slice(1))}(r,o,i);return t.createElement("g",{className:c},t.createElement("path",EO({},Lr(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),u?t.createElement("path",EO({},Lr(a,!0),{fill:"none",d:IO(r,i)})):null,u?t.createElement("path",EO({},Lr(a,!0),{fill:"none",d:IO(o,i)})):null)}var s=IO(r,i);return t.createElement("path",EO({},Lr(a,!0),{fill:"Z"===s.slice(-1)?a.fill:"none",className:c,d:s}))};function NO(){return NO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},NO.apply(this,arguments)}var RO=function(e){var r=e.cx,n=e.cy,o=e.r,i=x("recharts-dot",e.className);return r===+r&&n===+n&&o===+o?t.createElement("circle",NO({},Lr(e),Sr(e),{className:i,cx:r,cy:n,r:o})):null};function BO(t){"@babel/helpers - typeof";return BO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},BO(t)}var LO=["x","y","top","left","width","height","className"];function $O(){return $O=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$O.apply(this,arguments)}function zO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function FO(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==BO(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==BO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===BO(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function UO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var WO=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},qO=function(e){var r=e.x,n=void 0===r?0:r,o=e.y,i=void 0===o?0:o,a=e.top,c=void 0===a?0:a,u=e.left,l=void 0===u?0:u,s=e.width,f=void 0===s?0:s,p=e.height,h=void 0===p?0:p,y=e.className,d=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zO(Object(r),!0).forEach((function(e){FO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:n,y:i,top:c,left:l,width:f,height:h},UO(e,LO));return lr(n)&&lr(i)&&lr(f)&&lr(h)&&lr(c)&&lr(l)?t.createElement("path",$O({},Lr(d,!0),{className:x("recharts-cross",y),d:WO(n,i,f,h,c,l)})):null},VO=Gb,XO=Kb,HO=wu;var GO=function(t,e){return t&&t.length?VO(t,HO(e),XO):void 0},KO=d(GO),YO=Gb,ZO=wu,JO=eg;var QO=function(t,e){return t&&t.length?YO(t,ZO(e),JO):void 0},tS=d(QO),eS=["cx","cy","angle","ticks","axisLine"],rS=["ticks","tick","angle","tickFormatter","stroke"];function nS(t){"@babel/helpers - typeof";return nS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nS(t)}function oS(){return oS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oS.apply(this,arguments)}function iS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function aS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iS(Object(r),!0).forEach((function(e){pS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cS(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function uS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,hS(n.key),n)}}function lS(t,e){return lS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lS(t,e)}function sS(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=fS(t);if(e){var o=fS(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===nS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function fS(t){return fS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fS(t)}function pS(t,e,r){return(e=hS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hS(t){var e=function(t,e){if("object"!==nS(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==nS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===nS(e)?e:String(e)}var yS=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lS(t,e)}(c,n);var r,o,i,a=sS(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return r=c,o=[{key:"getTickValueCoord",value:function(t){var e=t.coordinate,r=this.props,n=r.angle,o=r.cx,i=r.cy;return dw(o,i,e,n)}},{key:"getTickTextAnchor",value:function(){var t;switch(this.props.orientation){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"getViewBox",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.angle,o=t.ticks,i=KO(o,(function(t){return t.coordinate||0}));return{cx:e,cy:r,startAngle:n,endAngle:n,innerRadius:tS(o,(function(t){return t.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,r=e.cx,n=e.cy,o=e.angle,i=e.ticks,a=e.axisLine,c=cS(e,eS),u=i.reduce((function(t,e){return[Math.min(t[0],e.coordinate),Math.max(t[1],e.coordinate)]}),[1/0,-1/0]),l=dw(r,n,u[0],o),s=dw(r,n,u[1],o),f=aS(aS(aS({},Lr(c)),{},{fill:"none"},Lr(a)),{},{x1:l.x,y1:l.y,x2:s.x,y2:s.y});return t.createElement("line",oS({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,r=this.props,n=r.ticks,o=r.tick,i=r.angle,a=r.tickFormatter,u=r.stroke,l=cS(r,rS),s=this.getTickTextAnchor(),f=Lr(l),p=Lr(o),h=n.map((function(r,n){var l=e.getTickValueCoord(r),h=aS(aS(aS(aS({textAnchor:s,transform:"rotate(".concat(90-i,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:u},p),{},{index:n},l),{},{payload:r});return t.createElement(Kr,oS({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r.coordinate)},jr(e.props,r,n)),c.renderTickItem(o,h,a?a(r.value,n):r.value))}));return t.createElement(Kr,{className:"recharts-polar-radius-axis-ticks"},h)}},{key:"render",value:function(){var e=this.props,r=e.ticks,n=e.axisLine,o=e.tick;return r&&r.length?t.createElement(Kr,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),o&&this.renderTicks(),Dw.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(e,r,n){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):t.createElement(sy,oS({},r,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],o&&uS(r.prototype,o),i&&uS(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();function dS(t){"@babel/helpers - typeof";return dS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dS(t)}function vS(){return vS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},vS.apply(this,arguments)}function mS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mS(Object(r),!0).forEach((function(e){SS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jS(n.key),n)}}function xS(t,e){return xS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xS(t,e)}function wS(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=OS(t);if(e){var o=OS(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===dS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function OS(t){return OS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},OS(t)}function SS(t,e,r){return(e=jS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jS(t){var e=function(t,e){if("object"!==dS(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==dS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===dS(e)?e:String(e)}pS(yS,"displayName","PolarRadiusAxis"),pS(yS,"axisType","radiusAxis"),pS(yS,"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});var AS=Math.PI/180,PS=1e-5,kS=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xS(t,e)}(c,n);var r,o,i,a=wS(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return r=c,o=[{key:"getTickLineCoord",value:function(t){var e=this.props,r=e.cx,n=e.cy,o=e.radius,i=e.orientation,a=e.tickSize||8,c=dw(r,n,o,t.coordinate),u=dw(r,n,o+("inner"===i?-1:1)*a,t.coordinate);return{x1:c.x,y1:c.y,x2:u.x,y2:u.y}}},{key:"getTickTextAnchor",value:function(t){var e=this.props.orientation,r=Math.cos(-t.coordinate*AS);return r>PS?"outer"===e?"start":"end":r<-PS?"outer"===e?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,r=e.cx,n=e.cy,o=e.radius,i=e.axisLine,a=e.axisLineType,c=bS(bS({},Lr(this.props)),{},{fill:"none"},Lr(i));if("circle"===a)return t.createElement(RO,vS({className:"recharts-polar-angle-axis-line"},c,{cx:r,cy:n,r:o}));var u=this.props.ticks.map((function(t){return dw(r,n,o,t.coordinate)}));return t.createElement(DO,vS({className:"recharts-polar-angle-axis-line"},c,{points:u}))}},{key:"renderTicks",value:function(){var e=this,r=this.props,n=r.ticks,o=r.tick,i=r.tickLine,a=r.tickFormatter,u=r.stroke,l=Lr(this.props),s=Lr(o),f=bS(bS({},l),{},{fill:"none"},Lr(i)),p=n.map((function(r,n){var p=e.getTickLineCoord(r),h=bS(bS(bS({textAnchor:e.getTickTextAnchor(r)},l),{},{stroke:"none",fill:u},s),{},{index:n,payload:r,x:p.x2,y:p.y2});return t.createElement(Kr,vS({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r.coordinate)},jr(e.props,r,n)),i&&t.createElement("line",vS({className:"recharts-polar-angle-axis-tick-line"},f,p)),o&&c.renderTickItem(o,h,a?a(r.value,n):r.value))}));return t.createElement(Kr,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,r=e.ticks,n=e.radius,o=e.axisLine;return n<=0||!r||!r.length?null:t.createElement(Kr,{className:"recharts-polar-angle-axis"},o&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(e,r,n){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):t.createElement(sy,vS({},r,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],o&&gS(r.prototype,o),i&&gS(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();SS(kS,"displayName","PolarAngleAxis"),SS(kS,"axisType","angleAxis"),SS(kS,"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 ES=ka(Object.getPrototypeOf,Object),MS=B,TS=ES,_S=L,CS=Function.prototype,IS=Object.prototype,DS=CS.toString,NS=IS.hasOwnProperty,RS=DS.call(Object);var BS=d((function(t){if(!_S(t)||"[object Object]"!=MS(t))return!1;var e=TS(t);if(null===e)return!0;var r=NS.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&DS.call(r)==RS})),LS=B,$S=L;var zS=d((function(t){return!0===t||!1===t||$S(t)&&"[object Boolean]"==LS(t)}));function FS(t){"@babel/helpers - typeof";return FS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},FS(t)}function US(){return US=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},US.apply(this,arguments)}function WS(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return qS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qS(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qS(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function VS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function XS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?VS(Object(r),!0).forEach((function(e){HS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function HS(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==FS(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==FS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===FS(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var GS,KS=function(t,e,r,n,o){var i,a=r-n;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+r,",").concat(e),i+="L ".concat(t+r-a/2,",").concat(e+o),i+="L ".concat(t+r-a/2-n,",").concat(e+o),i+="L ".concat(t,",").concat(e," Z")},YS={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ZS=function(e){var r=XS(XS({},YS),e),n=a(),o=WS(u(-1),2),i=o[0],c=o[1];s((function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&c(t)}catch(t){}}),[]);var l=r.x,f=r.y,p=r.upperWidth,h=r.lowerWidth,y=r.height,d=r.className,v=r.animationEasing,m=r.animationDuration,b=r.animationBegin,g=r.isUpdateAnimationActive;if(l!==+l||f!==+f||p!==+p||h!==+h||y!==+y||0===p&&0===h||0===y)return null;var w=x("recharts-trapezoid",d);return g?t.createElement(wp,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:y,x:l,y:f},to:{upperWidth:p,lowerWidth:h,height:y,x:l,y:f},duration:m,animationEasing:v,isActive:g},(function(e){var o=e.upperWidth,a=e.lowerWidth,c=e.height,u=e.x,l=e.y;return t.createElement(wp,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:m,easing:v},t.createElement("path",US({},Lr(r,!0),{className:w,d:KS(u,l,o,a,c),ref:n})))})):t.createElement("g",null,t.createElement("path",US({},Lr(r,!0),{className:w,d:KS(l,f,p,h,y)})))},JS=["option","shapeType","propTransformer","activeClassName","isActive"];function QS(t){"@babel/helpers - typeof";return QS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},QS(t)}function tj(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ej(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ej(Object(r),!0).forEach((function(e){nj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ej(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==QS(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==QS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===QS(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oj(t,e){return rj(rj({},e),t)}function ij(e){var r=e.shapeType,n=e.elementProps;switch(r){case"rectangle":return t.createElement(PO,n);case"trapezoid":return t.createElement(ZS,n);case"sector":return t.createElement(oO,n);case"symbols":if(function(t,e){return"symbols"===t}(r))return t.createElement(Uo,n);break;default:return null}}function aj(r){var n,i=r.option,a=r.shapeType,c=r.propTransformer,u=void 0===c?oj:c,l=r.activeClassName,s=void 0===l?"recharts-active-shape":l,f=r.isActive,p=tj(r,JS);if(e(i))n=o(i,rj(rj({},p),function(t){return e(t)?t.props:t}(i)));else if(Q(i))n=i(p);else if(BS(i)&&!zS(i)){var h=u(i,p);n=t.createElement(ij,{shapeType:a,elementProps:h})}else{var y=p;n=t.createElement(ij,{shapeType:a,elementProps:y})}return f?t.createElement(Kr,{className:s},n):n}function cj(t,e){return null!=e&&"trapezoids"in t.props}function uj(t,e){return null!=e&&"sectors"in t.props}function lj(t,e){return null!=e&&"points"in t.props}function sj(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function fj(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function pj(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function hj(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return cj(t,e)?r="trapezoids":uj(t,e)?r="sectors":lj(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return cj(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:uj(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:lj(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=vg(i,t),c=r.props[o].filter((function(t){var n=function(t,e){var r;return cj(t,e)?r=sj:uj(t,e)?r=fj:lj(t,e)&&(r=pj),r}(r,e);return n(t,e)})),u=r.props[o].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}function yj(t){"@babel/helpers - typeof";return yj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yj(t)}function dj(){return dj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},dj.apply(this,arguments)}function vj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vj(Object(r),!0).forEach((function(e){Sj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bj(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jj(n.key),n)}}function gj(t,e){return gj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gj(t,e)}function xj(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Oj(t);if(e){var o=Oj(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===yj(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wj(t)}(this,r)}}function wj(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Oj(t){return Oj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Oj(t)}function Sj(t,e,r){return(e=jj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jj(t){var e=function(t,e){if("object"!==yj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==yj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===yj(e)?e:String(e)}var Aj=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gj(t,e)}(c,n);var r,o,i,a=xj(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),Sj(wj(e=a.call(this,t)),"pieRef",null),Sj(wj(e),"sectorRefs",[]),Sj(wj(e),"id",pr("recharts-pie-")),Sj(wj(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Q(t)&&t()})),Sj(wj(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Q(t)&&t()})),e.state={isAnimationFinished:!t.isAnimationActive,prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,sectorToFocus:0},e}return r=c,i=[{key:"getDerivedStateFromProps",value:function(t,e){return e.prevIsAnimationActive!==t.isAnimationActive?{prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:[],isAnimationFinished:!0}:t.isAnimationActive&&t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:e.curSectors,isAnimationFinished:!0}:t.sectors!==e.curSectors?{curSectors:t.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(t,e){return t>e?"start":t<e?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):t.createElement(dO,dj({},r,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,r,n){if(t.isValidElement(e))return t.cloneElement(e,r);var o=n;return Q(e)&&(o=e(r),t.isValidElement(o))?o:t.createElement(sy,dj({},r,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}}],(o=[{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"hasActiveIndex",value:function(){var t=this.props.activeIndex;return Array.isArray(t)?0!==t.length:t||0===t}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.label,o=r.labelLine,i=r.dataKey,a=r.valueKey,u=Lr(this.props),l=Lr(n),s=Lr(o),f=n&&n.offsetRadius||20,p=e.map((function(e,r){var p=(e.startAngle+e.endAngle)/2,h=dw(e.cx,e.cy,e.outerRadius+f,p),y=mj(mj(mj(mj({},u),e),{},{stroke:"none"},l),{},{index:r,textAnchor:c.getTextAnchor(h.x,e.cx)},h),d=mj(mj(mj(mj({},u),e),{},{fill:"none",stroke:e.fill},s),{},{index:r,points:[dw(e.cx,e.cy,e.outerRadius,p),h],key:"line"}),v=i;return qe(i)&&qe(a)?v="value":qe(i)&&(v=a),t.createElement(Kr,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle)},o&&c.renderLabelLineItem(o,d),c.renderLabelItem(n,y,Rx(e,v)))}));return t.createElement(Kr,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var r=this,n=this.props,o=n.activeShape,i=n.blendStroke,a=n.inactiveShape;return e.map((function(n,c){if(0===(null==n?void 0:n.startAngle)&&0===(null==n?void 0:n.endAngle)&&1!==e.length)return null;var u=r.isActiveIndex(c),l=a&&r.hasActiveIndex()?a:null,s=u?o:l,f=mj(mj({},n),{},{stroke:i?n.fill:n.stroke,tabIndex:-1});return t.createElement(Kr,dj({ref:function(t){t&&!r.sectorRefs.includes(t)&&r.sectorRefs.push(t)},tabIndex:-1,className:"recharts-pie-sector"},jr(r.props,n,c),{key:"sector-".concat(null==n?void 0:n.startAngle,"-").concat(null==n?void 0:n.endAngle,"-").concat(n.midAngle)}),t.createElement(aj,dj({option:s,isActive:u,shapeType:"sector"},f)))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,r=this.props,n=r.sectors,o=r.isAnimationActive,i=r.animationBegin,a=r.animationDuration,c=r.animationEasing,u=r.animationId,l=this.state,s=l.prevSectors,f=l.prevIsAnimationActive;return t.createElement(wp,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var o=r.t,i=[],a=(n&&n[0]).startAngle;return n.forEach((function(t,e){var r=s&&s[e],n=e>0?We(t,"paddingAngle",0):0;if(r){var c=dr(r.endAngle-r.startAngle,t.endAngle-t.startAngle),u=mj(mj({},t),{},{startAngle:a+n,endAngle:a+c(o)+n});i.push(u),a=u.endAngle}else{var l=t.endAngle,f=t.startAngle,p=dr(0,l-f)(o),h=mj(mj({},t),{},{startAngle:a+n,endAngle:a+p+n});i.push(h),a=h.endAngle}})),t.createElement(Kr,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(t){var e=this;t.onkeydown=function(t){if(!t.altKey)switch(t.key){case"ArrowLeft":var r=++e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[r].focus(),e.setState({sectorToFocus:r});break;case"ArrowRight":var n=--e.state.sectorToFocus<0?e.sectorRefs.length-1:e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[n].focus(),e.setState({sectorToFocus:n});break;case"Escape":e.sectorRefs[e.state.sectorToFocus].blur(),e.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var t=this.props,e=t.sectors,r=t.isAnimationActive,n=this.state.prevSectors;return!(r&&e&&e.length)||n&&vg(n,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,r=this.props,n=r.hide,o=r.sectors,i=r.className,a=r.label,c=r.cx,u=r.cy,l=r.innerRadius,s=r.outerRadius,f=r.isAnimationActive,p=this.state.isAnimationFinished;if(n||!o||!o.length||!lr(c)||!lr(u)||!lr(l)||!lr(s))return null;var h=x("recharts-pie",i);return t.createElement(Kr,{tabIndex:this.props.rootTabIndex,className:h,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),Dw.renderCallByParent(this.props,null,!1),(!f||p)&&Kw.renderCallByParent(this.props,o,!1))}}])&&bj(r.prototype,o),i&&bj(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();GS=Aj,Sj(Aj,"displayName","Pie"),Sj(Aj,"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:!zp.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),Sj(Aj,"parseDeltaAngle",(function(t,e){return cr(e-t)*Math.min(Math.abs(e-t),360)})),Sj(Aj,"getRealPieData",(function(t){var e=t.props,r=e.data,n=e.children,o=Lr(t.props),i=Dr(n,Eh);return r&&r.length?r.map((function(t,e){return mj(mj(mj({payload:t},o),t),i&&i[e]&&i[e].props)})):i&&i.length?i.map((function(t){return mj(mj({},o),t.props)})):[]})),Sj(Aj,"parseCoordinateOfPie",(function(t,e){var r=e.top,n=e.left,o=e.width,i=e.height,a=vw(o,i);return{cx:n+hr(t.props.cx,o,o/2),cy:r+hr(t.props.cy,i,i/2),innerRadius:hr(t.props.innerRadius,a,0),outerRadius:hr(t.props.outerRadius,a,.8*a),maxRadius:t.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),Sj(Aj,"getComposedData",(function(t){var e=t.item,r=t.offset,n=GS.getRealPieData(e);if(!n||!n.length)return null;var o=e.props,i=o.cornerRadius,a=o.startAngle,c=o.endAngle,u=o.paddingAngle,l=o.dataKey,s=o.nameKey,f=o.valueKey,p=o.tooltipType,h=Math.abs(e.props.minAngle),y=GS.parseCoordinateOfPie(e,r),d=GS.parseDeltaAngle(a,c),v=Math.abs(d),m=l;qe(l)&&qe(f)?(Zr(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),m="value"):qe(l)&&(Zr(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),m=f);var b,g,x=n.filter((function(t){return 0!==Rx(t,m,0)})).length,w=v-x*h-(v>=360?x:x-1)*u,O=n.reduce((function(t,e){var r=Rx(e,m,0);return t+(lr(r)?r:0)}),0);O>0&&(b=n.map((function(t,e){var r,n=Rx(t,m,0),o=Rx(t,s,e),c=(lr(n)?n:0)/O,l=(r=e?g.endAngle+cr(d)*u*(0!==n?1:0):a)+cr(d)*((0!==n?h:0)+c*w),f=(r+l)/2,v=(y.innerRadius+y.outerRadius)/2,b=[{name:o,value:n,payload:t,dataKey:m,type:p}],x=dw(y.cx,y.cy,v,f);return g=mj(mj(mj({percent:c,cornerRadius:i,name:o,tooltipPayload:b,midAngle:f,middleRadius:v,tooltipPosition:x},t),y),{},{value:Rx(t,m),startAngle:r,endAngle:l,payload:t,paddingAngle:cr(d)*u})})));return mj(mj({},y),{},{sectors:b,data:n})}));var Pj=Math.ceil,kj=Math.max;var Ej=fh,Mj=1/0;var Tj=function(t){return t?(t=Ej(t))===Mj||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},_j=function(t,e,r,n){for(var o=-1,i=kj(Pj((e-t)/(r||1)),0),a=Array(i);i--;)a[n?i:++o]=t,t+=r;return a},Cj=ts,Ij=Tj;var Dj=d(function(t){return function(e,r,n){return n&&"number"!=typeof n&&Cj(e,r,n)&&(r=n=void 0),e=Ij(e),void 0===r?(r=e,e=0):r=Ij(r),n=void 0===n?e<r?1:-1:Ij(n),_j(e,r,n,t)}}());function Nj(t){"@babel/helpers - typeof";return Nj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nj(t)}function Rj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rj(Object(r),!0).forEach((function(e){Lj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Lj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Nj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Nj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Nj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $j=["Webkit","Moz","O","ms"];function zj(t){"@babel/helpers - typeof";return zj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zj(t)}function Fj(){return Fj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fj.apply(this,arguments)}function Uj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Wj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uj(Object(r),!0).forEach((function(e){Kj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qj(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Yj(n.key),n)}}function Vj(t,e){return Vj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vj(t,e)}function Xj(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Gj(t);if(e){var o=Gj(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===zj(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Hj(t)}(this,r)}}function Hj(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gj(t){return Gj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gj(t)}function Kj(t,e,r){return(e=Yj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yj(t){var e=function(t,e){if("object"!==zj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==zj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===zj(e)?e:String(e)}var Zj=function(t){return t.changedTouches&&!!t.changedTouches.length},Jj=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vj(t,e)}(u,n);var o,i,a,c=Xj(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),Kj(Hj(e=c.call(this,t)),"handleDrag",(function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)})),Kj(Hj(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),Kj(Hj(e),"handleDragEnd",(function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=e.props,r=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:r,startIndex:o})})),e.detachDragEndListener()})),Kj(Hj(e),"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),Kj(Hj(e),"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),Kj(Hj(e),"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),Kj(Hj(e),"handleSlideDragStart",(function(t){var r=Zj(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(Hj(e),"startX"),endX:e.handleTravellerDragStart.bind(Hj(e),"endX")},e.state={},e}return o=u,i=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,n=this.state.scaleValues,o=this.props,i=o.gap,a=o.data.length-1,c=Math.min(e,r),l=Math.max(e,r),s=u.getIndexInRange(n,c),f=u.getIndexInRange(n,l);return{startIndex:s-s%i,endIndex:f===a?a:f-f%i}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=Rx(r[t],o,t);return Q(n)?n(i,t):i}},{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(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-u-o,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-o));var h=this.getIndex({startX:n+p,endX:o+p});h.startIndex===l&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=Zj(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e,r=this.state,n=r.brushMoveStartX,o=r.movingTravellerId,i=r.endX,a=r.startX,c=this.state[o],u=this.props,l=u.x,s=u.width,f=u.travellerWidth,p=u.onChange,h=u.gap,y=u.data,d={startX:this.state.startX,endX:this.state.endX},v=t.pageX-n;v>0?v=Math.min(v,l+s-f-c):v<0&&(v=Math.max(v,l-c)),d[o]=c+v;var m=this.getIndex(d),b=m.startIndex,g=m.endIndex;this.setState((Kj(e={},o,c+v),Kj(e,"brushMoveStartX",t.pageX),e),(function(){var t;p&&(t=y.length-1,("startX"===o&&(i>a?b%h==0:g%h==0)||i<a&&g===t||"endX"===o&&(i>a?g%h==0:b%h==0)||i>a&&g===t)&&p(m))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,c=this.state[e],u=o.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(Kj({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,r=e.x,n=e.y,o=e.width,i=e.height,a=e.fill,c=e.stroke;return t.createElement("rect",{stroke:c,fill:a,x:r,y:n,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,o=e.y,i=e.width,a=e.height,c=e.data,u=e.children,l=e.padding,s=r.only(u);return s?t.cloneElement(s,{x:n,y:o,width:i,height:a,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(e,r){var n=this,o=this.props,i=o.y,a=o.travellerWidth,c=o.height,l=o.traveller,s=o.ariaLabel,f=o.data,p=o.startIndex,h=o.endIndex,y=Math.max(e,this.props.x),d=Wj(Wj({},Lr(this.props)),{},{x:y,y:i,width:a,height:c}),v=s||"Min value: ".concat(f[p].name,", Max value: ").concat(f[h].name);return t.createElement(Kr,{tabIndex:0,role:"slider","aria-label":v,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},u.renderTraveller(l,d))}},{key:"renderSlide",value:function(e,r){var n=this.props,o=n.y,i=n.height,a=n.stroke,c=n.travellerWidth,u=Math.min(e,r)+c,l=Math.max(Math.abs(r-e)-c,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:o,width:l,height:i})}},{key:"renderText",value:function(){var e=this.props,r=e.startIndex,n=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,c=e.stroke,u=this.state,l=u.startX,s=u.endX,f={pointerEvents:"none",fill:c};return t.createElement(Kr,{className:"recharts-brush-texts"},t.createElement(sy,Fj({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:o+i/2},f),this.getTextOfTick(r)),t.createElement(sy,Fj({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+a+5,y:o+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,r=e.data,n=e.className,o=e.children,i=e.x,a=e.y,c=e.width,u=e.height,l=e.alwaysShowText,s=this.state,f=s.startX,p=s.endX,h=s.isTextActive,y=s.isSlideMoving,d=s.isTravellerMoving,v=s.isTravellerFocused;if(!r||!r.length||!lr(i)||!lr(a)||!lr(c)||!lr(u)||c<=0||u<=0)return null;var m=x("recharts-brush",n),b=1===t.Children.count(o),g=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=$j.reduce((function(t,n){return Bj(Bj({},t),{},Lj({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return t.createElement(Kr,{className:m,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||y||d||v||l)&&this.renderText())}}],a=[{key:"renderDefaultTraveller",value:function(e){var r=e.x,n=e.y,o=e.width,i=e.height,a=e.stroke,c=Math.floor(n+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:r,y:n,width:o,height:i,fill:a,stroke:"none"}),t.createElement("line",{x1:r+1,y1:c,x2:r+o-1,y2:c,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:r+1,y1:c+2,x2:r+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):u.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return Wj({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=$y().domain(Dj(0,c)).range([o,o+i-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:o,travellerWidth:i,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var o=Math.floor((r+n)/2);t[o]>e?n=o:r=o}return e>=t[n]?n:r}}],i&&qj(o.prototype,i),a&&qj(o,a),Object.defineProperty(o,"prototype",{writable:!1}),u}();Kj(Jj,"displayName","Brush"),Kj(Jj,"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 Qj=ml;var tA=mi,eA=wu,rA=function(t,e){var r;return Qj(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r},nA=w,oA=ts;var iA=d((function(t,e,r){var n=nA(t)?tA:rA;return r&&oA(t,e,r)&&(e=void 0),n(t,eA(e))})),aA=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},cA=zl;var uA=function(t,e,r){"__proto__"==e&&cA?cA(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},lA=uA,sA=dl,fA=wu;var pA=function(t,e){var r={};return e=fA(e),sA(t,(function(t,n,o){lA(r,n,e(t,n,o))})),r},hA=d(pA);var yA=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0},dA=ml;var vA=yA,mA=function(t,e){var r=!0;return dA(t,(function(t,n,o){return r=!!e(t,n,o)})),r},bA=wu,gA=w,xA=ts;var wA=d((function(t,e,r){var n=gA(t)?vA:mA;return r&&xA(t,e,r)&&(e=void 0),n(t,bA(e))}));function OA(t){"@babel/helpers - typeof";return OA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OA(t)}var SA=["x","y"];function jA(){return jA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jA.apply(this,arguments)}function AA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function PA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?AA(Object(r),!0).forEach((function(e){kA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):AA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function kA(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==OA(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==OA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===OA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function EA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function MA(t,e){var r=t.x,n=t.y,o=EA(t,SA),i="".concat(r),a=parseInt(i,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||o.height),s=parseInt(l,10),f="".concat(e.width||o.width),p=parseInt(f,10);return PA(PA(PA(PA(PA({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function TA(e){return t.createElement(aj,jA({shapeType:"rectangle",propTransformer:MA,activeClassName:"recharts-active-bar"},e))}var _A=["value","background"];function CA(t){"@babel/helpers - typeof";return CA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},CA(t)}function IA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function DA(){return DA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},DA.apply(this,arguments)}function NA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function RA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?NA(Object(r),!0).forEach((function(e){UA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function BA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,WA(n.key),n)}}function LA(t,e){return LA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},LA(t,e)}function $A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=FA(t);if(e){var o=FA(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===CA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return zA(t)}(this,r)}}function zA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function FA(t){return FA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},FA(t)}function UA(t,e,r){return(e=WA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function WA(t){var e=function(t,e){if("object"!==CA(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==CA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===CA(e)?e:String(e)}var qA=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&LA(t,e)}(c,n);var r,o,i,a=$A(c);function c(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return UA(zA(t=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!1}),UA(zA(t),"id",pr("recharts-bar-")),UA(zA(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),UA(zA(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return r=c,i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],(o=[{key:"renderRectanglesStatically",value:function(e){var r=this,n=this.props,o=n.shape,i=n.dataKey,a=n.activeIndex,c=n.activeBar,u=Lr(this.props);return e&&e.map((function(e,n){var l=n===a,s=l?c:o,f=RA(RA(RA({},u),e),{},{isActive:l,option:s,index:n,dataKey:i,onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd});return t.createElement(Kr,DA({className:"recharts-bar-rectangle"},jr(r.props,e,n),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value)}),t.createElement(TA,f))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,r=this.props,n=r.data,o=r.layout,i=r.isAnimationActive,a=r.animationBegin,c=r.animationDuration,u=r.animationEasing,l=r.animationId,s=this.state.prevData;return t.createElement(wp,{begin:a,duration:c,isActive:i,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var i=r.t,a=n.map((function(t,e){var r=s&&s[e];if(r){var n=dr(r.x,t.x),a=dr(r.y,t.y),c=dr(r.width,t.width),u=dr(r.height,t.height);return RA(RA({},t),{},{x:n(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===o){var l=dr(0,t.height)(i);return RA(RA({},t),{},{y:t.y+t.height-l,height:l})}var f=dr(0,t.width)(i);return RA(RA({},t),{},{width:f})}));return t.createElement(Kr,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&vg(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,r=this.props,n=r.data,o=r.dataKey,i=r.activeIndex,a=Lr(this.props.background);return n.map((function(r,n){r.value;var c=r.background,u=IA(r,_A);if(!c)return null;var l=RA(RA(RA(RA(RA({},u),{},{fill:"#eee"},c),a),jr(e.props,r,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return t.createElement(TA,DA({option:e.props.background,isActive:n===i},l))}))}},{key:"renderErrorBar",value:function(e,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.data,i=n.xAxis,a=n.yAxis,c=n.layout,u=Dr(n.children,jx);if(!u)return null;var l="vertical"===c?o[0].height/2:o[0].width/2,s=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:Rx(t,e)}},f={clipPath:e?"url(#clipPath-".concat(r,")"):null};return t.createElement(Kr,f,u.map((function(e){return t.cloneElement(e,{key:"error-bar-".concat(r,"-").concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:c,offset:l,dataPointFormatter:s})})))}},{key:"render",value:function(){var e=this.props,r=e.hide,n=e.data,o=e.className,i=e.xAxis,a=e.yAxis,c=e.left,u=e.top,l=e.width,s=e.height,f=e.isAnimationActive,p=e.background,h=e.id;if(r||!n||!n.length)return null;var y=this.state.isAnimationFinished,d=x("recharts-bar",o),v=i&&i.allowDataOverflow,m=a&&a.allowDataOverflow,b=v||m,g=qe(h)?this.id:h;return t.createElement(Kr,{className:d},v||m?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(g)},t.createElement("rect",{x:v?c:c-l/2,y:m?u:u-s/2,width:v?l:2*l,height:m?s:2*s}))):null,t.createElement(Kr,{className:"recharts-bar-rectangles",clipPath:b?"url(#clipPath-".concat(g,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(b,g),(!f||y)&&Kw.renderCallByParent(this.props,n))}}])&&BA(r.prototype,o),i&&BA(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();function VA(t){"@babel/helpers - typeof";return VA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VA(t)}function XA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,YA(n.key),n)}}function HA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function GA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?HA(Object(r),!0).forEach((function(e){KA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):HA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function KA(t,e,r){return(e=YA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function YA(t){var e=function(t,e){if("object"!==VA(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==VA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===VA(e)?e:String(e)}UA(qA,"displayName","Bar"),UA(qA,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!zp.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),UA(qA,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,h=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!h)return null;var y=e.layout,d=r.props,v=d.dataKey,m=d.children,b=d.minPointSize,g="horizontal"===y?a:i,x=l?g.scale.domain():null,w=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:g}),O=Dr(m,Eh),S=f.map((function(t,e){var n,f,p,d,m,g;if(l?n=function(t,e){if(!e||2!==e.length||!lr(e[0])||!lr(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),o=[t[0],t[1]];return(!lr(t[0])||t[0]<r)&&(o[0]=r),(!lr(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(l[s+e],x):(n=Rx(t,v),Array.isArray(n)||(n=[w,n])),"horizontal"===y){var S,j=[a.scale(n[0]),a.scale(n[1])],A=j[0],P=j[1];f=Qx({axis:i,ticks:c,bandSize:o,offset:h.offset,entry:t,index:e}),p=null!==(S=null!=P?P:A)&&void 0!==S?S:void 0,d=h.size;var k=A-P;if(m=Number.isNaN(k)?0:k,g={x:f,y:a.y,width:d,height:a.height},Math.abs(b)>0&&Math.abs(m)<Math.abs(b)){var E=cr(m||b)*(Math.abs(b)-Math.abs(m));p-=E,m+=E}}else{var M=[i.scale(n[0]),i.scale(n[1])],T=M[0],_=M[1];if(f=T,p=Qx({axis:a,ticks:u,bandSize:o,offset:h.offset,entry:t,index:e}),d=_-T,m=h.size,g={x:i.x,y:p,width:i.width,height:m},Math.abs(b)>0&&Math.abs(d)<Math.abs(b))d+=cr(d||b)*(Math.abs(b)-Math.abs(d))}return RA(RA(RA({},t),{},{x:f,y:p,width:d,height:m,value:l?n:n[1],payload:t,background:g},O&&O[e]&&O[e].props),{},{tooltipPayload:[aw(r,t)],tooltipPosition:{x:f+d/2,y:p+m/2}})}));return RA({data:S,layout:y},p)}));var ZA=function(t,e,r,n,o){var i=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!Nr(u,qA);return l.reduce((function(i,a){var u,l,p,h,y,d=e[a],v=d.orientation,m=d.domain,b=d.padding,g=void 0===b?{}:b,x=d.mirror,w=d.reversed,O="".concat(v).concat(x?"Mirror":"");if("number"===d.type&&("gap"===d.padding||"no-gap"===d.padding)){var S=m[1]-m[0],j=1/0,A=d.categoricalDomain.sort();A.forEach((function(t,e){e>0&&(j=Math.min((t||0)-(A[e-1]||0),j))}));var P=j/S,k="vertical"===d.layout?r.height:r.width;if("gap"===d.padding&&(u=P*k/2),"no-gap"===d.padding){var E=hr(t.barCategoryGap,P*k),M=P*k/2;u=M-E-(M-E)/k*E}}l="xAxis"===n?[r.left+(g.left||0)+(u||0),r.left+r.width-(g.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(g.bottom||0),r.top+(g.top||0)]:[r.top+(g.top||0)+(u||0),r.top+r.height-(g.bottom||0)-(u||0)]:d.range,w&&(l=[l[1],l[0]]);var T=Xx(d,o,f),_=T.scale,C=T.realScaleType;_.domain(m).range(l),Gx(_);var I=Zx(_,GA(GA({},d),{},{realScaleType:C}));"xAxis"===n?(y="top"===v&&!x||"bottom"===v&&x,p=r.left,h=s[O]-y*d.height):"yAxis"===n&&(y="left"===v&&!x||"right"===v&&x,p=s[O]-y*d.width,h=r.top);var D=GA(GA(GA({},d),I),{},{realScaleType:C,x:p,y:h,scale:_,width:"xAxis"===n?r.width:d.width,height:"yAxis"===n?r.height:d.height});return D.bandSize=ow(D,I),d.hide||"xAxis"!==n?d.hide||(s[O]+=(y?-1:1)*D.width):s[O]+=(y?-1:1)*D.height,GA(GA({},i),{},KA({},a,D))}),{})},JA=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},QA=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}var e,r,n;return e=t,r=[{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(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&XA(e.prototype,r),n&&XA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();KA(QA,"EPS",1e-4);var tP=function(t){var e=Object.keys(t).reduce((function(e,r){return GA(GA({},e),{},KA({},r,QA.create(t[r])))}),{});return GA(GA({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return hA(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return wA(t,(function(t,r){return e[r].isInRange(t)}))}})};var eP=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/e),a=o>i&&o<Math.PI-i?r/Math.sin(o):e/Math.cos(o);return Math.abs(a)};function rP(t){"@babel/helpers - typeof";return rP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rP(t)}function nP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function oP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nP(Object(r),!0).forEach((function(e){iP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function iP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==rP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==rP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return cP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cP(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function uP(){return uP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},uP.apply(this,arguments)}function lP(e){var r=e.x,n=e.y,o=e.segment,i=e.xAxis,a=e.yAxis,c=e.shape,u=e.className,l=e.alwaysShow,s=e.clipPathId;Zr(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(t,e,r,n,o){var i=o.viewBox,a=i.x,c=i.y,u=i.width,l=i.height,s=o.position;if(r){var f=o.y,p=o.yAxis.orientation,h=t.y.apply(f,{position:s});if(aA(o,"discard")&&!t.y.isInRange(h))return null;var y=[{x:a+u,y:h},{x:a,y:h}];return"left"===p?y.reverse():y}if(e){var d=o.x,v=o.xAxis.orientation,m=t.x.apply(d,{position:s});if(aA(o,"discard")&&!t.x.isInRange(m))return null;var b=[{x:m,y:c+l},{x:m,y:c}];return"top"===v?b.reverse():b}if(n){var g=o.segment.map((function(e){return t.apply(e,{position:s})}));return aA(o,"discard")&&iA(g,(function(e){return!t.isInRange(e)}))?null:g}return null}(tP({x:i.scale,y:a.scale}),sr(r),sr(n),o&&2===o.length,e);if(!f)return null;var p=aP(f,2),h=p[0],y=h.x,d=h.y,v=p[1],m=v.x,b=v.y,g=oP(oP({clipPath:aA(e,"hidden")?"url(#".concat(s,")"):void 0},Lr(e,!0)),{},{x1:y,y1:d,x2:m,y2:b});return t.createElement(Kr,{className:x("recharts-reference-line",u)},function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):t.createElement("line",uP({},r,{className:"recharts-reference-line-line"}))}(c,g),Dw.renderCallByParent(e,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return JA({x:e,y:r},{x:n,y:o})}({x1:y,y1:d,x2:m,y2:b})))}function sP(t){"@babel/helpers - typeof";return sP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sP(t)}function fP(){return fP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fP.apply(this,arguments)}function pP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function hP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pP(Object(r),!0).forEach((function(e){yP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==sP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==sP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===sP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}lP.displayName="ReferenceLine",lP.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function dP(e){var r=e.x,n=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,c=sr(r),u=sr(n);if(Zr(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=tP({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return aA(t,"discard")&&!i.isInRange(a)?null:a}(e);if(!l)return null;var s=l.x,f=l.y,p=e.shape,h=e.className,y=hP(hP({clipPath:aA(e,"hidden")?"url(#".concat(a,")"):void 0},Lr(e,!0)),{},{cx:s,cy:f});return t.createElement(Kr,{className:x("recharts-reference-dot",h)},dP.renderDot(p,y),Dw.renderCallByParent(e,{x:s-o,y:f-o,width:2*o,height:2*o}))}function vP(t){"@babel/helpers - typeof";return vP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vP(t)}function mP(){return mP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},mP.apply(this,arguments)}function bP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bP(Object(r),!0).forEach((function(e){xP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==vP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==vP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===vP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}dP.displayName="ReferenceDot",dP.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},dP.renderDot=function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):t.createElement(RO,fP({},r,{cx:r.cx,cy:r.cy,className:"recharts-reference-dot-dot"}))};function wP(e){var r=e.x1,n=e.x2,o=e.y1,i=e.y2,a=e.className,c=e.alwaysShow,u=e.clipPathId;Zr(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=sr(r),s=sr(n),f=sr(o),p=sr(i),h=e.shape;if(!(l||s||f||p||h))return null;var y=function(t,e,r,n,o){var i=o.x1,a=o.x2,c=o.y1,u=o.y2,l=o.xAxis,s=o.yAxis;if(!l||!s)return null;var f=tP({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!aA(o,"discard")||f.isInRange(p)&&f.isInRange(h)?JA(p,h):null}(l,s,f,p,e);if(!y&&!h)return null;var d=aA(e,"hidden")?"url(#".concat(u,")"):void 0;return t.createElement(Kr,{className:x("recharts-reference-area",a)},wP.renderRect(h,gP(gP({clipPath:d},Lr(e,!0)),y)),Dw.renderCallByParent(e,y))}function OP(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e){if(void 0!==r&&!0!==r(t[o]))return;n.push(t[o])}return n}function SP(t,e,r,n,o){if(t*e<t*n||t*e>t*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function jP(t){"@babel/helpers - typeof";return jP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jP(t)}function AP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function PP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?AP(Object(r),!0).forEach((function(e){kP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):AP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function kP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==jP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==jP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===jP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function EP(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(lr(u)||zp.isSsr)return function(t,e){return OP(t,e+1)}(o,"number"==typeof u&&lr(u)?u:0);var p=[],h="top"===c||"bottom"===c?"width":"height",y=s&&"width"===h?Rh(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},d=function(t,n){var o=Q(l)?l(t.value,n):t.value;return"width"===h?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return eP(n,r)}(Rh(o,{fontSize:e,letterSpacing:r}),y,f):Rh(o,{fontSize:e,letterSpacing:r})[h]},v=o.length>=2?cr(o[1].coordinate-o[0].coordinate):1,m=function(t,e,r){var n="width"===r,o=t.x,i=t.y,a=t.width,c=t.height;return 1===e?{start:n?o:i,end:n?o+a:i+c}:{start:n?o+a:i+c,end:n?o:i}}(i,v,h);return"equidistantPreserveStart"===u?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:OP(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},h=e.coordinate,y=0===l||SP(t,h,p,f,u);y||(l=0,f=c,s+=1),y&&(f=h+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,m,d,o,a):(p="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,o,i){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(i){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=PP(PP({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),SP(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+o),a[c-1]=PP(PP({},s),{},{isShow:!0}))}for(var h=i?c-1:c,y=function(e){var n,i=a[e],c=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var s=t*(i.coordinate-t*c()/2-u);a[e]=i=PP(PP({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=PP(PP({},i),{},{tickCoord:i.coordinate});SP(t,i.tickCoord,c,u,l)&&(u=i.tickCoord+t*(c()/2+o),a[e]=PP(PP({},i),{},{isShow:!0}))},d=0;d<h;d++)y(d);return a}(v,m,d,o,a,"preserveStartEnd"===u):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,c=e.start,u=e.end,l=function(e){var n,l=i[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);i[e]=l=PP(PP({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=PP(PP({},l),{},{tickCoord:l.coordinate});SP(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+o),i[e]=PP(PP({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(v,m,d,o,a),p.filter((function(t){return t.isShow})))}wP.displayName="ReferenceArea",wP.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},wP.renderRect=function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):t.createElement(PO,mP({},r,{className:"recharts-reference-area-rect"}))};var MP=["viewBox"],TP=["viewBox"],_P=["ticks"];function CP(t){"@babel/helpers - typeof";return CP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},CP(t)}function IP(){return IP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},IP.apply(this,arguments)}function DP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function NP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?DP(Object(r),!0).forEach((function(e){FP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function RP(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function BP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,UP(n.key),n)}}function LP(t,e){return LP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},LP(t,e)}function $P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=zP(t);if(e){var o=zP(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===CP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function zP(t){return zP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zP(t)}function FP(t,e,r){return(e=UP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function UP(t){var e=function(t,e){if("object"!==CP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==CP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===CP(e)?e:String(e)}var WP=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&LP(t,e)}(a,h);var r,n,o,i=$P(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).state={fontSize:"",letterSpacing:""},e}return r=a,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=RP(t,MP),o=this.props,i=o.viewBox,a=RP(o,TP);return!mr(r,i)||!mr(n,a)||!mr(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,h=c.tickSize,y=c.mirror,d=c.tickMargin,v=y?-1:1,m=t.tickSize||h,b=lr(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!y*f)-v*m)-v*d,i=b;break;case"left":n=o=t.coordinate,i=(e=(r=u+ +!y*s)-v*m)-v*d,a=b;break;case"right":n=o=t.coordinate,i=(e=(r=u+ +y*s)+v*m)+v*d,a=b;break;default:e=r=t.coordinate,a=(n=(o=l+ +y*f)+v*m)+v*d,i=b}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var e=this.props,r=e.x,n=e.y,o=e.width,i=e.height,a=e.orientation,c=e.mirror,u=e.axisLine,l=NP(NP(NP({},Lr(this.props)),Lr(u)),{},{fill:"none"});if("top"===a||"bottom"===a){var s=+("top"===a&&!c||"bottom"===a&&c);l=NP(NP({},l),{},{x1:r,y1:n+s*i,x2:r+o,y2:n+s*i})}else{var f=+("left"===a&&!c||"right"===a&&c);l=NP(NP({},l),{},{x1:r+f*o,y1:n,x2:r+f*o,y2:n+i})}return t.createElement("line",IP({},l,{className:x("recharts-cartesian-axis-line",We(u,"className"))}))}},{key:"renderTicks",value:function(e,r,n){var o=this,i=this.props,c=i.tickLine,u=i.stroke,l=i.tick,s=i.tickFormatter,f=i.unit,p=EP(NP(NP({},this.props),{},{ticks:e}),r,n),h=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),d=Lr(this.props),v=Lr(l),m=NP(NP({},d),{},{fill:"none"},Lr(c)),b=p.map((function(e,r){var n=o.getTickLineCoord(e),i=n.line,b=n.tick,g=NP(NP(NP(NP({textAnchor:h,verticalAnchor:y},d),{},{stroke:"none",fill:u},v),b),{},{index:r,payload:e,visibleTicksCount:p.length,tickFormatter:s});return t.createElement(Kr,IP({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},jr(o.props,e,r)),c&&t.createElement("line",IP({},m,i,{className:x("recharts-cartesian-axis-tick-line",We(c,"className"))})),l&&a.renderTickItem(l,g,"".concat(Q(s)?s(e.value,r):e.value).concat(f||"")))}));return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var e=this,r=this.props,n=r.axisLine,o=r.width,i=r.height,a=r.ticksGenerator,c=r.className;if(r.hide)return null;var u=this.props,l=u.ticks,s=RP(u,_P),f=l;return Q(a)&&(f=l&&l.length>0?a(this.props):a(s)),o<=0||i<=0||!f||!f.length?null:t.createElement(Kr,{className:x("recharts-cartesian-axis",c),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),Dw.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(e,r,n){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):t.createElement(sy,IP({},r,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&BP(r.prototype,n),o&&BP(r,o),Object.defineProperty(r,"prototype",{writable:!1}),a}();FP(WP,"displayName","CartesianAxis"),FP(WP,"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 qP=["x1","y1","x2","y2","key"],VP=["offset"];function XP(t){"@babel/helpers - typeof";return XP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},XP(t)}function HP(){return HP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},HP.apply(this,arguments)}function GP(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function KP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function YP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?KP(Object(r),!0).forEach((function(e){ek(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):KP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ZP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,rk(n.key),n)}}function JP(t,e){return JP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},JP(t,e)}function QP(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=tk(t);if(e){var o=tk(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===XP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function tk(t){return tk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tk(t)}function ek(t,e,r){return(e=rk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rk(t){var e=function(t,e){if("object"!==XP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==XP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===XP(e)?e:String(e)}var nk=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&JP(t,e)}(c,n);var r,o,i,a=QP(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return r=c,o=[{key:"renderHorizontal",value:function(e){var r=this,n=this.props,o=n.x,i=n.width,a=n.horizontal;if(!e||!e.length)return null;var u=e.map((function(t,e){var n=YP(YP({},r.props),{},{x1:o,y1:t,x2:o+i,y2:t,key:"line-".concat(e),index:e});return c.renderLineItem(a,n)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}},{key:"renderVertical",value:function(e){var r=this,n=this.props,o=n.y,i=n.height,a=n.vertical;if(!e||!e.length)return null;var u=e.map((function(t,e){var n=YP(YP({},r.props),{},{x1:t,y1:o,x2:t,y2:o+i,key:"line-".concat(e),index:e});return c.renderLineItem(a,n)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}},{key:"renderVerticalStripes",value:function(e){var r=this.props.verticalFill;if(!r||!r.length)return null;var n=this.props,o=n.fillOpacity,i=n.x,a=n.y,c=n.width,u=n.height,l=e.map((function(t){return Math.round(t+i-i)})).sort((function(t,e){return t-e}));i!==l[0]&&l.unshift(0);var s=l.map((function(e,n){var s=l[n+1]?l[n+1]-e:i+c-e;if(s<=0)return null;var f=n%r.length;return t.createElement("rect",{key:"react-".concat(n),x:e,y:a,width:s,height:u,stroke:"none",fill:r[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},s)}},{key:"renderHorizontalStripes",value:function(e){var r=this.props.horizontalFill;if(!r||!r.length)return null;var n=this.props,o=n.fillOpacity,i=n.x,a=n.y,c=n.width,u=n.height,l=e.map((function(t){return Math.round(t+a-a)})).sort((function(t,e){return t-e}));a!==l[0]&&l.unshift(0);var s=l.map((function(e,n){var s=l[n+1]?l[n+1]-e:a+u-e;if(s<=0)return null;var f=n%r.length;return t.createElement("rect",{key:"react-".concat(n),y:e,x:i,height:s,width:c,stroke:"none",fill:r[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},s)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var r=this.props,n=r.fillOpacity,o=r.x,i=r.y,a=r.width,c=r.height;return t.createElement("rect",{x:o,y:i,width:a,height:c,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,r=e.x,n=e.y,o=e.width,i=e.height,a=e.horizontal,c=e.vertical,u=e.horizontalCoordinatesGenerator,l=e.verticalCoordinatesGenerator,s=e.xAxis,f=e.yAxis,p=e.offset,h=e.chartWidth,y=e.chartHeight,d=e.syncWithTicks,v=e.horizontalValues,m=e.verticalValues;if(!lr(o)||o<=0||!lr(i)||i<=0||!lr(r)||r!==+r||!lr(n)||n!==+n)return null;var b=this.props,g=b.horizontalPoints,x=b.verticalPoints;if((!g||!g.length)&&Q(u)){var w=v&&v.length;g=u({yAxis:f?YP(YP({},f),{},{ticks:w?v:f.ticks}):void 0,width:h,height:y,offset:p},!!w||d)}if((!x||!x.length)&&Q(l)){var O=m&&m.length;x=l({xAxis:s?YP(YP({},s),{},{ticks:O?m:s.ticks}):void 0,width:h,height:y,offset:p},!!O||d)}return t.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(g),c&&this.renderVertical(x),a&&this.renderHorizontalStripes(g),c&&this.renderVerticalStripes(x))}}],i=[{key:"renderLineItem",value:function(e,r){var n;if(t.isValidElement(e))n=t.cloneElement(e,r);else if(Q(e))n=e(r);else{var o=r.x1,i=r.y1,a=r.x2,c=r.y2,u=r.key,l=GP(r,qP),s=Lr(l);s.offset;var f=GP(s,VP);n=t.createElement("line",HP({},f,{x1:o,y1:i,x2:a,y2:c,fill:"none",key:u}))}return n}}],o&&ZP(r.prototype,o),i&&ZP(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();ek(nk,"displayName","CartesianGrid"),ek(nk,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var ok=["type","layout","connectNulls","ref"];function ik(t){"@babel/helpers - typeof";return ik="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ik(t)}function ak(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ck(){return ck=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ck.apply(this,arguments)}function uk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uk(Object(r),!0).forEach((function(e){mk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sk(t){return function(t){if(Array.isArray(t))return fk(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return fk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fk(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function pk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bk(n.key),n)}}function hk(t,e){return hk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},hk(t,e)}function yk(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=vk(t);if(e){var o=vk(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===ik(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return dk(t)}(this,r)}}function dk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vk(t){return vk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vk(t)}function mk(t,e,r){return(e=bk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bk(t){var e=function(t,e){if("object"!==ik(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ik(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ik(e)?e:String(e)}var gk=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hk(t,e)}(c,n);var r,o,i,a=yk(c);function c(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return mk(dk(t=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!0,totalLength:0}),mk(dk(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),mk(dk(t),"getStrokeDasharray",(function(e,r,n){var o=n.reduce((function(t,e){return t+e}));if(!o)return t.generateSimpleStrokeDasharray(r,e);for(var i=Math.floor(e/o),a=e%o,u=r-e,l=[],s=0,f=0;s<n.length;f+=n[s],++s)if(f+n[s]>a){l=[].concat(sk(n.slice(0,s)),[a-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(sk(c.repeat(n,i)),sk(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),mk(dk(t),"id",pr("recharts-line-")),mk(dk(t),"pathRef",(function(e){t.mainCurve=e})),mk(dk(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),mk(dk(t),"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}return r=c,o=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(e,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.points,i=n.xAxis,a=n.yAxis,c=n.layout,u=Dr(n.children,jx);if(!u)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Rx(t.payload,e)}},s={clipPath:e?"url(#clipPath-".concat(r,")"):null};return t.createElement(Kr,s,u.map((function(e){return t.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:c,dataPointFormatter:l})})))}},{key:"renderDots",value:function(e,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.dot,a=o.points,u=o.dataKey,l=Lr(this.props),s=Lr(i,!0),f=a.map((function(t,e){var r=lk(lk(lk({key:"dot-".concat(e),r:3},l),s),{},{value:t.value,dataKey:u,cx:t.x,cy:t.y,index:e,payload:t.payload});return c.renderDotItem(i,r)})),p={clipPath:e?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return t.createElement(Kr,ck({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(e,r,n,o){var i=this.props,a=i.type,c=i.layout,u=i.connectNulls;i.ref;var l=ak(i,ok),s=lk(lk(lk({},Lr(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:r?"url(#clipPath-".concat(n,")"):null,points:e},o),{},{type:a,layout:c,connectNulls:u});return t.createElement(dO,ck({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,r){var n=this,o=this.props,i=o.points,a=o.strokeDasharray,c=o.isAnimationActive,u=o.animationBegin,l=o.animationDuration,s=o.animationEasing,f=o.animationId,p=o.animateNewValues,h=o.width,y=o.height,d=this.state,v=d.prevPoints,m=d.totalLength;return t.createElement(wp,{begin:u,duration:l,isActive:c,easing:s,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(v){var c=v.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],i=dr(n.x,t.x),a=dr(n.y,t.y);return lk(lk({},t),{},{x:i(o),y:a(o)})}if(p){var u=dr(2*h,t.x),l=dr(y/2,t.y);return lk(lk({},t),{},{x:u(o),y:l(o)})}return lk(lk({},t),{},{x:t.x,y:t.y})}));return n.renderCurveStatically(u,e,r)}var l,s=dr(0,m)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=n.getStrokeDasharray(s,m,f)}else l=n.generateSimpleStrokeDasharray(m,s);return n.renderCurveStatically(i,e,r,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,c=i.totalLength;return o&&n&&n.length&&(!a&&c>0||!vg(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var e,r=this.props,n=r.hide,o=r.dot,i=r.points,a=r.className,c=r.xAxis,u=r.yAxis,l=r.top,s=r.left,f=r.width,p=r.height,h=r.isAnimationActive,y=r.id;if(n||!i||!i.length)return null;var d=this.state.isAnimationFinished,v=1===i.length,m=x("recharts-line",a),b=c&&c.allowDataOverflow,g=u&&u.allowDataOverflow,w=b||g,O=qe(y)?this.id:y,S=null!==(e=Lr(o))&&void 0!==e?e:{r:3,strokeWidth:2},j=S.r,A=void 0===j?3:j,P=S.strokeWidth,k=void 0===P?2:P,E=(function(t){return t&&"object"===Er(t)&&"cx"in t&&"cy"in t&&"r"in t}(o)?o:{}).clipDot,M=void 0===E||E,T=2*A+k;return t.createElement(Kr,{className:m},b||g?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(O)},t.createElement("rect",{x:b?s:s-f/2,y:g?l:l-p/2,width:b?f:2*f,height:g?p:2*p})),!M&&t.createElement("clipPath",{id:"clipPath-dots-".concat(O)},t.createElement("rect",{x:s-T/2,y:l-T/2,width:f+T,height:p+T}))):null,!v&&this.renderCurve(w,O),this.renderErrorBar(w,O),(v||o)&&this.renderDots(w,M,O),(!h||d)&&Kw.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(sk(t),[0]):t,n=[],o=0;o<e;++o)n=[].concat(sk(n),sk(r));return n}},{key:"renderDotItem",value:function(e,r){var n;if(t.isValidElement(e))n=t.cloneElement(e,r);else if(Q(e))n=e(r);else{var o=x("recharts-line-dot",e?e.className:"");n=t.createElement(RO,ck({},r,{className:o}))}return n}}],o&&pk(r.prototype,o),i&&pk(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();mk(gk,"displayName","Line"),mk(gk,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!zp.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),mk(gk,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,o=t.xAxisTicks,i=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return lk({points:u.map((function(t,e){var u=Rx(t,a);return"horizontal"===s?{x:Jx({axis:r,ticks:o,bandSize:c,entry:t,index:e}),y:qe(u)?null:n.scale(u),value:u,payload:t}:{x:qe(u)?null:r.scale(u),y:Jx({axis:n,ticks:i,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var xk=function(){return null};xk.displayName="XAxis",xk.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};var wk=function(){return null};wk.displayName="YAxis",wk.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};var Ok=wu,Sk=Na,jk=$a;var Ak=function(t){return function(e,r,n){var o=Object(e);if(!Sk(e)){var i=Ok(r);e=jk(e),r=function(t){return i(o[t],t,o)}}var a=t(e,r,n);return a>-1?o[i?e[a]:a]:void 0}},Pk=Tj;var kk=Ou,Ek=wu,Mk=function(t){var e=Pk(t),r=e%1;return e==e?r?e-r:e:0},Tk=Math.max;var _k=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:Mk(r);return o<0&&(o=Tk(n+o,0)),kk(t,Ek(e),o)},Ck=d(Ak(_k)),Ik="production"===process.env.NODE_ENV,Dk="Invariant failed";function Nk(t,e){if(!t){if(Ik)throw new Error(Dk);var r="function"==typeof e?e():e,n=r?"".concat(Dk,": ").concat(r):Dk;throw new Error(n)}}function Rk(t){return function(t){if(Array.isArray(t))return Bk(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Bk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bk(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Lk=function(t,e,r,n,o){var i=Dr(t,lP),a=Dr(t,dP),c=[].concat(Rk(i),Rk(a)),u=Dr(t,wP),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&aA(e.props,"extendDomain")&&lr(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var p="".concat(s,"1"),h="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&aA(e.props,"extendDomain")&&lr(e.props[p])&&lr(e.props[h])){var n=e.props[p],o=e.props[h];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return lr(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},$k={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,o,i,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,o),!0;case 5:return s.fn.call(s.context,e,n,o,i),!0;case 6:return s.fn.call(s.context,e,n,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,h=s.length;for(l=0;l<h;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==e||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||o&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}($k);var zk=new(d($k.exports)),Fk="recharts.syncMouseEvents";function Uk(t){"@babel/helpers - typeof";return Uk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uk(t)}function Wk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Vk(n.key),n)}}function qk(t,e,r){return(e=Vk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vk(t){var e=function(t,e){if("object"!==Uk(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Uk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Uk(e)?e:String(e)}var Xk=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),qk(this,"activeIndex",0),qk(this,"coordinateList",[]),qk(this,"layout","horizontal")}var e,r,n;return e=t,r=[{key:"setDetails",value:function(t){var e=t.coordinateList,r=void 0===e?[]:e,n=t.container,o=void 0===n?null:n,i=t.layout,a=void 0===i?null:i,c=t.offset,u=void 0===c?null:c,l=t.mouseHandlerCallback,s=void 0===l?null:l;this.coordinateList=null!=r?r:this.coordinateList,this.container=null!=o?o:this.container,this.layout=null!=a?a:this.layout,this.offset=null!=u?u:this.offset,this.mouseHandlerCallback=null!=s?s: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(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=o+this.offset.top+i/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}],r&&Wk(e.prototype,r),n&&Wk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Hk(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[dw(e,r,n,o),dw(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function Gk(t,e,r){var n,o,i,a;if("horizontal"===t)i=n=e.x,o=r.top,a=r.top+r.height;else if("vertical"===t)a=o=e.y,n=r.left,i=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return Hk(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=dw(c,u,l,f),h=dw(c,u,s,f);n=p.x,o=p.y,i=h.x,a=h.y}return[{x:n,y:o},{x:i,y:a}]}function Kk(t){"@babel/helpers - typeof";return Kk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kk(t)}function Yk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yk(Object(r),!0).forEach((function(e){Jk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jk(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Kk(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Kk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Kk(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qk(t){var r,n=t.element,i=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,u=t.activePayload,l=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,h=t.layout,y=t.chartName;if(!n||!n.props.cursor||!a||!c||"ScatterChart"!==y&&"axis"!==i)return null;var d=dO;if("ScatterChart"===y)r=c,d=qO;else if("BarChart"===y)r=function(t,e,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-o,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(h,c,l,f),d=PO;else if("radial"===h){var v=Hk(c),m=v.cx,b=v.cy,g=v.radius;r={cx:m,cy:b,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:g,outerRadius:g},d=oO}else r={points:Gk(h,c,l)},d=dO;var x=Zk(Zk(Zk(Zk({stroke:"#ccc",pointerEvents:"none"},l),r),Lr(n.props.cursor)),{},{payload:u,payloadIndex:s,className:"recharts-tooltip-cursor"});return e(n.props.cursor)?o(n.props.cursor,x):p(d,x)}var tE=["item"],eE=["children","className","width","height","style","compact","title","desc"];function rE(t){"@babel/helpers - typeof";return rE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rE(t)}function nE(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||pE(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oE(){return oE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oE.apply(this,arguments)}function iE(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function aE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mE(n.key),n)}}function cE(t,e){return cE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cE(t,e)}function uE(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=sE(t);if(e){var o=sE(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===rE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return lE(t)}(this,r)}}function lE(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sE(t){return sE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sE(t)}function fE(t){return function(t){if(Array.isArray(t))return hE(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||pE(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pE(t,e){if(t){if("string"==typeof t)return hE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hE(t,e):void 0}}function hE(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function yE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yE(Object(r),!0).forEach((function(e){vE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vE(t,e,r){return(e=mE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mE(t){var e=function(t,e){if("object"!==rE(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==rE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rE(e)?e:String(e)}var bE={xAxis:["bottom","top"],yAxis:["left","right"]},gE={width:"100%",height:"100%"},xE={x:0,y:0},wE=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,o=e.dataEndIndex,i=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(fE(t),fE(r)):t}),[]);return i.length>0?i:t&&t.length&&lr(n)&&lr(o)?t.slice(n,o+1):[]};function OE(t){return"number"===t?[0,"auto"]:void 0}var SE=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=wE(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,c){var u;if(c.props.hide)return o;var l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=vr(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(fE(o),[aw(c,l)]):o}),[])},jE=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(cr(s-l)!==cr(f-s)){var h=[];if(cr(f-s)===cr(c[1]-c[0])){p=f;var y=s+c[1]-c[0];h[0]=Math.min(y,(y+l)/2),h[1]=Math.max(y,(y+l)/2)}else{p=l;var d=f+c[1]-c[0];h[0]=Math.min(s,(d+s)/2),h[1]=Math.max(s,(d+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[u].index;break}}else{var m=Math.min(l,f),b=Math.max(l,f);if(t>(m+s)/2&&t<=(b+s)/2){i=n[u].index;break}}}else for(var g=0;g<a;g++)if(0===g&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g>0&&g<a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i}(i,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=SE(t,e,l,s),p=function(t,e,r,n){var o=e.find((function(t){return t&&t.index===r}));if(o){if("horizontal"===t)return{x:o.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=n.radius;return dE(dE(dE({},n),dw(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return dE(dE(dE({},n),dw(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return xE}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},AE=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=Fx(l,o);return r.reduce((function(e,r){var h,y=r.props,d=y.type,v=y.dataKey,m=y.allowDataOverflow,b=y.allowDuplicatedCategory,g=y.scale,x=y.ticks,w=y.includeHidden,O=r.props[i];if(e[O])return e;var S,j,A,P=wE(t.data,{graphicalItems:n.filter((function(t){return t.props[i]===O})),dataStartIndex:c,dataEndIndex:u}),k=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&lr(n)&&lr(o))return!0}return!1})(r.props.domain,m,d)&&(S=nw(r.props.domain,null,m),!p||"number"!==d&&"auto"===g||(A=Bx(P,v,"category")));var E=OE(d);if(!S||0===S.length){var M,T=null!==(M=r.props.domain)&&void 0!==M?M:E;if(v){if(S=Bx(P,v,d),"category"===d&&p){var _=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);b&&_?(j=S,S=Dj(0,k)):b||(S=iw(T,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(fE(t),[e])}),[]))}else if("category"===d)S=b?S.filter((function(t){return""!==t&&!qe(t)})):iw(T,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||qe(e)?t:[].concat(fE(t),[e])}),[]);else if("number"===d){var C=function(t,e,r,n,o){var i=e.map((function(e){return $x(t,e,r,o,n)})).filter((function(t){return!qe(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(P,n.filter((function(t){return t.props[i]===O&&(w||!t.props.hide)})),v,o,l);C&&(S=C)}!p||"number"!==d&&"auto"===g||(A=Bx(P,v,"category"))}else S=p?Dj(0,k):a&&a[O]&&a[O].hasStack&&"number"===d?"expand"===f?[0,1]:tw(a[O].stackGroups,c,u):zx(P,n.filter((function(t){return t.props[i]===O&&(w||!t.props.hide)})),d,l,!0);if("number"===d)S=Lk(s,S,O,o,x),T&&(S=nw(T,S,m));else if("category"===d&&T){var I=T;S.every((function(t){return I.indexOf(t)>=0}))&&(S=I)}}return dE(dE({},e),{},vE({},O,dE(dE({},r.props),{},{axisType:o,domain:S,categoricalDomain:A,duplicateDomain:j,originalDomain:null!==(h=r.props.domain)&&void 0!==h?h:E,isCategorical:p,layout:l})))}),{})},PE=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=Dr(l,o),p={};return f&&f.length?p=AE(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):i&&i.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=wE(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,h=Fx(l,o),y=-1;return r.reduce((function(t,e){var d,v=e.props[i],m=OE("number");return t[v]?t:(y++,h?d=Dj(0,p):a&&a[v]&&a[v].hasStack?(d=tw(a[v].stackGroups,c,u),d=Lk(s,d,v,o)):(d=nw(m,zx(f,r.filter((function(t){return t.props[i]===v&&!t.props.hide})),"number",l),n.defaultProps.allowDataOverflow),d=Lk(s,d,v,o)),dE(dE({},t),{},vE({},v,dE(dE({axisType:o},n.defaultProps),{},{hide:!0,orientation:We(bE,"".concat(o,".").concat(y%2),null),domain:d,originalDomain:m,isCategorical:h,layout:l}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},kE=function(t){var e=t.children,r=t.defaultShowTooltip,n=Nr(e,Jj),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},EE=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},ME=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),o=void 0===n?{}:n,i=t.yAxisMap,a=void 0===i?{}:i,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=Nr(l,Jj),p=Nr(l,il),h=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:dE(dE({},t),{},vE({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),y=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:dE(dE({},t),{},vE({},n,We(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),d=dE(dE({},y),h),v=d.bottom;f&&(d.bottom+=f.props.height||Jj.defaultProps.height),p&&e&&(d=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=Mx({children:o,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,h=u.verticalAlign,y=u.layout;if(("vertical"===y||"horizontal"===y&&"middle"===h)&&"center"!==p&&lr(t[p]))return Cx(Cx({},t),{},Ix({},p,t[p]+(s||0)));if(("horizontal"===y||"vertical"===y&&"center"===p)&&"middle"!==h&&lr(t[h]))return Cx(Cx({},t),{},Ix({},h,t[h]+(f||0)))}return t}(d,0,r,e));var m=c-d.left-d.right,b=u-d.top-d.bottom;return dE(dE({brushBottom:v},d),{},{width:Math.max(m,0),height:Math.max(b,0)})},TE=function(r){var n,i=r.chartName,a=r.GraphicalChild,c=r.defaultTooltipEventType,u=void 0===c?"axis":c,l=r.validateTooltipEventTypes,s=void 0===l?["axis"]:l,f=r.axisComponents,p=r.legendContent,y=r.formatAxisMap,d=r.defaultProps,v=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,u=t.barSize,l=t.layout,s=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,y=EE(l),d=y.numericAxisName,v=y.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=Tr(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),b=m&&function(t){var e=t.barSize,r=t.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var o={},i=Object.keys(n),a=0,c=i.length;a<c;a++)for(var u=n[i[a]].stackGroups,l=Object.keys(u),s=0,f=l.length;s<f;s++){var p=u[l[s]],h=p.items,y=p.cateAxisId,d=h.filter((function(t){return Tr(t.type).indexOf("Bar")>=0}));if(d&&d.length){var v=d[0].props.barSize,m=d[0].props[y];o[m]||(o[m]=[]),o[m].push({item:d[0],stackList:d.slice(1),barSize:qe(v)?e:v})}}return o}({barSize:u,stackGroups:n}),g=[];return r.forEach((function(r,u){var y=wE(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),m=r.props,x=m.dataKey,w=m.maxBarSize,O=r.props["".concat(d,"Id")],S=r.props["".concat(v,"Id")],j=f.reduce((function(t,n){var o,i,a,c=e["".concat(n.axisType,"Map")],u=r.props["".concat(n.axisType,"Id")];c&&c[u]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?Nk(!1,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==r||null===(i=r.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):Nk(!1));var l=c[u];return dE(dE({},t),{},(vE(a={},n.axisType,l),vE(a,"".concat(n.axisType,"Ticks"),Wx(l)),a))}),{}),A=j[v],P=j["".concat(v,"Ticks")],k=n&&n[O]&&n[O].hasStack&&function(t,e){var r=t.props.stackId;if(sr(r)){var n=e[r];if(n){var o=n.items.indexOf(t);return o>=0?n.stackedData[o]:null}}return null}(r,n[O].stackGroups),E=Tr(r.type).indexOf("Bar")>=0,M=ow(A,P),T=[];if(E){var _,C,I=qe(w)?h:w,D=null!==(_=null!==(C=ow(A,P,!0))&&void 0!==C?C:I)&&void 0!==_?_:0;T=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,c=i.length;if(c<1)return null;var u,l=hr(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,h=i.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(c-1)*l)>=n&&(h-=(c-1)*l,l=0),h>=n&&p>0&&(f=!0,h=c*(p*=.9));var y={offset:((n-h)/2>>0)-l,size:0};u=i.reduce((function(t,e){var r={item:e.item,position:{offset:y.offset+y.size+l,size:f?p:e.barSize}},n=[].concat(Dx(t),[r]);return y=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:y})})),n}),s)}else{var d=hr(r,n,0,!0);n-2*d-(c-1)*l<=0&&(l=0);var v=(n-2*d-(c-1)*l)/c;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;u=i.reduce((function(t,e,r){var n=[].concat(Dx(t),[{item:e.item,position:{offset:d+(v+l)*r+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return u}({barGap:s,barCategoryGap:p,bandSize:D!==M?D:M,sizeList:b[S],maxBarSize:I}),D!==M&&(T=T.map((function(t){return dE(dE({},t),{},{position:dE(dE({},t.position),{},{offset:t.position.offset-D/2})})})))}var N,R,B,L=r&&r.type&&r.type.getComposedData;L&&g.push({props:dE(dE({},L(dE(dE({},j),{},{displayedData:y,props:t,dataKey:x,item:r,bandSize:M,barPosition:T,offset:o,stackedData:k,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},(N={key:r.key||"item-".concat(u)},vE(N,d,j[d]),vE(N,v,j[v]),vE(N,"animationId",i),N)),childIndex:(R=r,B=t.children,Ir(B).indexOf(R)),item:r})})),g},m=function(t,e){var r=t.props,n=t.dataStartIndex,o=t.dataEndIndex,c=t.updateId;if(!Rr({props:r}))return null;var u=r.children,l=r.layout,s=r.stackOffset,p=r.data,h=r.reverseStackOrder,d=EE(l),m=d.numericAxisName,b=d.cateAxisName,g=Dr(u,a),x=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o=e.props,i=o.stackId;if(o.hide)return t;var a=e.props[r],c=t[a]||{hasStack:!1,stackGroups:{}};if(sr(i)){var u=c.stackGroups[i]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(e),c.hasStack=!0,c.stackGroups[i]=u}else c.stackGroups[pr("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return Cx(Cx({},t),{},Ix({},a,c))}),{});return Object.keys(a).reduce((function(e,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,i){var a=c.stackGroups[i];return Cx(Cx({},e),{},Ix({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:Yx(t,a.items,o)}))}),{})),Cx(Cx({},e),{},Ix({},i,c))}),{})}(p,g,"".concat(m,"Id"),"".concat(b,"Id"),s,h),w=f.reduce((function(t,e){var i="".concat(e.axisType,"Map");return dE(dE({},t),{},vE({},i,PE(r,dE(dE({},e),{},{graphicalItems:g,stackGroups:e.axisType===m&&x,dataStartIndex:n,dataEndIndex:o}))))}),{}),O=ME(dE(dE({},w),{},{props:r,graphicalItems:g}),null==e?void 0:e.legendBBox);Object.keys(w).forEach((function(t){w[t]=y(r,w[t],O,t.replace("Map",""),i)}));var S,j,A=w["".concat(b,"Map")],P=(S=yr(A),{tooltipTicks:j=Wx(S,!1,!0),orderedTooltipTicks:os(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:ow(S,j)}),k=v(r,dE(dE({},w),{},{dataStartIndex:n,dataEndIndex:o,updateId:c,graphicalItems:g,stackGroups:x,offset:O}));return dE(dE({formattedGraphicalItems:k,graphicalItems:g,offset:O,stackGroups:x},P),w)};return n=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cE(t,e)}(l,h);var r,n,a,c=uE(l);function l(e){var r,n,a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),vE(lE(a=c.call(this,e)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),vE(lE(a),"accessibilityManager",new Xk),vE(lE(a),"handleLegendBBoxUpdate",(function(t){if(t){var e=a.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;a.setState(dE({legendBBox:t},m({props:a.props,dataStartIndex:r,dataEndIndex:n,updateId:o},dE(dE({},a.state),{},{legendBBox:t}))))}})),vE(lE(a),"handleReceiveSyncEvent",(function(t,e,r){if(a.props.syncId===t){if(r===a.eventEmitterSymbol&&"function"!=typeof a.props.syncMethod)return;a.applySyncEvent(e)}})),vE(lE(a),"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==a.state.dataStartIndex||r!==a.state.dataEndIndex){var n=a.state.updateId;a.setState((function(){return dE({dataStartIndex:e,dataEndIndex:r},m({props:a.props,dataStartIndex:e,dataEndIndex:r,updateId:n},a.state))})),a.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),vE(lE(a),"handleMouseEnter",(function(t){var e=a.getMouseInfo(t);if(e){var r=dE(dE({},e),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseEnter;Q(n)&&n(r,t)}})),vE(lE(a),"triggeredAfterMouseMove",(function(t){var e=a.getMouseInfo(t),r=e?dE(dE({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseMove;Q(n)&&n(r,t)})),vE(lE(a),"handleItemMouseEnter",(function(t){a.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),vE(lE(a),"handleItemMouseLeave",(function(){a.setState((function(){return{isTooltipActive:!1}}))})),vE(lE(a),"handleMouseMove",(function(t){t.persist(),a.throttleTriggeredAfterMouseMove(t)})),vE(lE(a),"handleMouseLeave",(function(t){var e={isTooltipActive:!1};a.setState(e),a.triggerSyncEvent(e);var r=a.props.onMouseLeave;Q(r)&&r(e,t)})),vE(lE(a),"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&Mr[e]?Mr[e]:null}(t),n=We(a.props,"".concat(r));r&&Q(n)&&n(null!==(e=/.*touch.*/i.test(r)?a.getMouseInfo(t.changedTouches[0]):a.getMouseInfo(t))&&void 0!==e?e:{},t)})),vE(lE(a),"handleClick",(function(t){var e=a.getMouseInfo(t);if(e){var r=dE(dE({},e),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onClick;Q(n)&&n(r,t)}})),vE(lE(a),"handleMouseDown",(function(t){var e=a.props.onMouseDown;Q(e)&&e(a.getMouseInfo(t),t)})),vE(lE(a),"handleMouseUp",(function(t){var e=a.props.onMouseUp;Q(e)&&e(a.getMouseInfo(t),t)})),vE(lE(a),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),vE(lE(a),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.handleMouseDown(t.changedTouches[0])})),vE(lE(a),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.handleMouseUp(t.changedTouches[0])})),vE(lE(a),"triggerSyncEvent",(function(t){void 0!==a.props.syncId&&zk.emit(Fk,a.props.syncId,t,a.eventEmitterSymbol)})),vE(lE(a),"applySyncEvent",(function(t){var e=a.props,r=e.layout,n=e.syncMethod,o=a.state.updateId,i=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)a.setState(dE({dataStartIndex:i,dataEndIndex:c},m({props:a.props,dataStartIndex:i,dataEndIndex:c,updateId:o},a.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=a.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var y=0;y<h.length;y++)if(h[y].value===t.activeLabel){s=y;break}}var d=dE(dE({},p),{},{x:p.left,y:p.top}),v=Math.min(u,d.x+d.width),b=Math.min(l,d.y+d.height),g=h[s]&&h[s].value,x=SE(a.state,a.props.data,s),w=h[s]?{x:"horizontal"===r?h[s].coordinate:v,y:"horizontal"===r?b:h[s].coordinate}:xE;a.setState(dE(dE({},t),{},{activeLabel:g,activeCoordinate:w,activePayload:x,activeTooltipIndex:s}))}else a.setState(t)})),vE(lE(a),"verticalCoordinatesGenerator",(function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return Ux(EP(dE(dE(dE({},WP.defaultProps),r),{},{ticks:Wx(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)})),vE(lE(a),"horizontalCoordinatesGenerator",(function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return Ux(EP(dE(dE(dE({},WP.defaultProps),r),{},{ticks:Wx(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)})),vE(lE(a),"axesTicksGenerator",(function(t){return Wx(t,!0)})),vE(lE(a),"renderCursor",(function(e){var r,n=a.state,o=n.isTooltipActive,c=n.activeCoordinate,u=n.activePayload,l=n.offset,s=n.activeTooltipIndex,f=n.tooltipAxisBandSize,p=a.getTooltipEventType(),h=null!==(r=e.props.active)&&void 0!==r?r:o,y=a.props.layout,d=e.key||"_recharts-cursor";return t.createElement(Qk,{key:d,activeCoordinate:c,activePayload:u,activeTooltipIndex:s,chartName:i,element:e,isActive:h,layout:y,offset:l,tooltipAxisBandSize:f,tooltipEventType:p})})),vE(lE(a),"renderPolarAxis",(function(t,e,r){var n=We(t,"type.axisType"),i=We(a.state,"".concat(n,"Map")),c=i&&i[t.props["".concat(n,"Id")]];return o(t,dE(dE({},c),{},{className:n,key:t.key||"".concat(e,"-").concat(r),ticks:Wx(c,!0)}))})),vE(lE(a),"renderXAxis",(function(t,e,r){var n=a.state.xAxisMap[t.props.xAxisId];return a.renderAxis(n,t,e,r)})),vE(lE(a),"renderYAxis",(function(t,e,r){var n=a.state.yAxisMap[t.props.yAxisId];return a.renderAxis(n,t,e,r)})),vE(lE(a),"renderGrid",(function(t){var e=a.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,c=a.props,u=c.width,l=c.height,s=yr(r),f=Ck(n,(function(t){return wA(t.domain,Number.isFinite)}))||yr(n),p=t.props||{};return o(t,{key:t.key||"grid",x:lr(p.x)?p.x:i.left,y:lr(p.y)?p.y:i.top,width:lr(p.width)?p.width:i.width,height:lr(p.height)?p.height:i.height,xAxis:s,yAxis:f,offset:i,chartWidth:u,chartHeight:l,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||a.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||a.horizontalCoordinatesGenerator})})),vE(lE(a),"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,c=a.state,u=c.radiusAxisMap,l=c.angleAxisMap,s=yr(u),f=yr(l),p=f.cx,h=f.cy,y=f.innerRadius,d=f.outerRadius;return o(t,{polarAngles:Array.isArray(n)?n:Wx(f,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:Wx(s,!0).map((function(t){return t.coordinate})),cx:p,cy:h,innerRadius:y,outerRadius:d,key:t.key||"polar-grid",radialLines:r})})),vE(lE(a),"renderLegend",(function(){var t=a.state.formattedGraphicalItems,e=a.props,r=e.children,n=e.width,i=e.height,c=a.props.margin||{},u=n-(c.left||0)-(c.right||0),l=Mx({children:r,formattedGraphicalItems:t,legendWidth:u,legendContent:p});if(!l)return null;var s=l.item,f=iE(l,tE);return o(s,dE(dE({},f),{},{chartWidth:n,chartHeight:i,margin:c,onBBoxUpdate:a.handleLegendBBoxUpdate}))})),vE(lE(a),"renderTooltip",(function(){var t,e=Nr(a.props.children,Zp);if(!e)return null;var r=a.state,n=r.isTooltipActive,i=r.activeCoordinate,c=r.activePayload,u=r.activeLabel,l=r.offset,s=null!==(t=e.props.active)&&void 0!==t?t:n;return o(e,{viewBox:dE(dE({},l),{},{x:l.left,y:l.top}),active:s,label:u,payload:s?c:[],coordinate:i})})),vE(lE(a),"renderBrush",(function(t){var e=a.props,r=e.margin,n=e.data,i=a.state,c=i.offset,u=i.dataStartIndex,l=i.dataEndIndex,s=i.updateId;return o(t,{key:t.key||"_recharts-brush",onChange:Vx(a.handleBrushChange,t.props.onChange),data:n,x:lr(t.props.x)?t.props.x:c.left,y:lr(t.props.y)?t.props.y:c.top+c.height+c.brushBottom-(r.bottom||0),width:lr(t.props.width)?t.props.width:c.width,startIndex:u,endIndex:l,updateId:"brush-".concat(s)})})),vE(lE(a),"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=lE(a).clipPathId,i=a.state,c=i.xAxisMap,u=i.yAxisMap,l=i.offset,s=t.props,f=s.xAxisId,p=s.yAxisId;return o(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:c[f],yAxis:u[p],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})})),vE(lE(a),"renderActivePoints",(function(t){var e=t.item,r=t.activePoint,n=t.basePoint,o=t.childIndex,i=t.isRange,a=[],c=e.props.key,u=e.item.props,s=u.activeDot,f=dE(dE({index:o,dataKey:u.dataKey,cx:r.x,cy:r.y,r:4,fill:Lx(e.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(c,"-activePoint-").concat(o)},Lr(s)),Sr(s));return a.push(l.renderActiveDot(s,f)),n?a.push(l.renderActiveDot(s,dE(dE({},f),{},{cx:n.x,cy:n.y,key:"".concat(c,"-basePoint-").concat(o)}))):i&&a.push(null),a})),vE(lE(a),"renderGraphicChild",(function(t,e,r){var n=a.filterFormatItem(t,e,r);if(!n)return null;var i=a.getTooltipEventType(),c=a.state,u=c.isTooltipActive,l=c.tooltipAxis,s=c.activeTooltipIndex,f=c.activeLabel,p=Nr(a.props.children,Zp),h=n.props,y=h.points,d=h.isRange,v=h.baseLine,m=n.item.props,b=m.activeDot,g=m.hide,x=m.activeBar,w=m.activeShape,O=Boolean(!g&&u&&p&&(b||x||w)),S={};"axis"!==i&&p&&"click"===p.props.trigger?S={onClick:Vx(a.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(S={onMouseLeave:Vx(a.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:Vx(a.handleItemMouseEnter,t.props.onMouseEnter)});var j=o(t,dE(dE({},n.props),S));if(O){if(!(s>=0)){var A,P=(null!==(A=a.getItemByXY(a.state.activeCoordinate))&&void 0!==A?A:{graphicalItem:j}).graphicalItem,k=P.item,E=void 0===k?t:k,M=P.childIndex,T=dE(dE(dE({},n.props),S),{},{activeIndex:M});return[o(E,T),null,null]}var _,C;if(l.dataKey&&!l.allowDuplicatedCategory){var I="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());_=vr(y,I,f),C=d&&v&&vr(v,I,f)}else _=null==y?void 0:y[s],C=d&&v&&v[s];if(w||x){var D=void 0!==t.props.activeIndex?t.props.activeIndex:s;return[o(t,dE(dE(dE({},n.props),S),{},{activeIndex:D})),null,null]}if(!qe(_))return[j].concat(fE(a.renderActivePoints({item:n,activePoint:_,basePoint:C,childIndex:s,isRange:d})))}return d?[j,null,null]:[j,null]})),vE(lE(a),"renderCustomized",(function(t,e,r){return o(t,dE(dE({key:"recharts-customized-".concat(r)},a.props),a.state))})),vE(lE(a),"renderMap",{CartesianGrid:{handler:a.renderGrid,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:a.renderReferenceElement},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:a.renderXAxis},YAxis:{handler:a.renderYAxis},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(r=e.id)&&void 0!==r?r:pr("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=xh(a.triggeredAfterMouseMove,null!==(n=e.throttleDelay)&&void 0!==n?n:1e3/60),a.state={},a}return r=l,n=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Nr(this.props.children,Zp);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return s.indexOf(e)>=0?e:u}return u}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),o={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(t.pageX-o.left),chartY:Math.round(t.pageY-o.top)},a=n.width/r.offsetWidth||1,c=this.inRange(i.chartX,i.chartY,a);if(!c)return null;var u=this.state,l=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&s){var f=yr(l).scale,p=yr(s).scale,h=f&&f.invert?f.invert(i.chartX):null,y=p&&p.invert?p.invert(i.chartY):null;return dE(dE({},i),{},{xValue:h,yValue:y})}var d=jE(this.state,this.props.data,this.props.layout,c);return d?dE(dE({},i),d):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=yr(u);return gw({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Nr(t,Zp),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),dE(dE({},Sr(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){zk.on(Fk,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){zk.removeListener(Fk,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===t||a.props.key===t.key||e===Tr(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,r,n,o){var i=this.props,a=i.width,c=i.height;return t.createElement(WP,oE({},e,{className:x("recharts-".concat(e.axisType," ").concat(e.axisType),e.className),key:r.key||"".concat(n,"-").concat(o),viewBox:{x:0,y:0,width:a,height:c},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,r=this.state.offset,n=r.left,o=r.top,i=r.height,a=r.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:n,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=nE(e,2),n=r[0],o=r[1];return dE(dE({},t),{},vE({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=nE(e,2),n=r[0],o=r[1];return dE(dE({},t),{},vE({},n,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],c=a.props,u=a.item,l=Tr(u.type);if("Bar"===l){var s=(c.data||[]).find((function(e){return jO(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===l){var f=(c.data||[]).find((function(e){return gw(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(cj(a,n)||uj(a,n)||lj(a,n)){var p=hj({graphicalItem:a,activeTooltipItem:n,itemData:u.props.data}),h=void 0===u.props.activeIndex?p:u.props.activeIndex;return{graphicalItem:dE(dE({},a),{},{childIndex:h}),payload:lj(a,n)?u.props.data[p]:a.props.data[p]}}}return null}},{key:"render",value:function(){var e=this;if(!Rr(this))return null;var r,n,o=this.props,i=o.children,a=o.className,c=o.width,u=o.height,l=o.style,s=o.compact,f=o.title,p=o.desc,h=iE(o,eE),y=Lr(h);if(s)return t.createElement(Vr,oE({},y,{width:c,height:u,title:f,desc:p}),this.renderClipPath(),Fr(i,this.renderMap));this.props.accessibilityLayer&&(y.tabIndex=null!==(r=this.props.tabIndex)&&void 0!==r?r:0,y.role=null!==(n=this.props.role)&&void 0!==n?n:"img",y.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},y.onFocus=function(){e.accessibilityManager.focus()});var d=this.parseEventsOfWrapper();return t.createElement("div",oE({className:x("recharts-wrapper",a),style:dE({position:"relative",cursor:"default",width:c,height:u},l)},d,{ref:function(t){e.container=t},role:"region"}),t.createElement(Vr,oE({},y,{width:c,height:u,title:f,desc:p,style:gE}),this.renderClipPath(),Fr(i,this.renderMap)),this.renderLegend(),this.renderTooltip())}}],n&&aE(r.prototype,n),a&&aE(r,a),Object.defineProperty(r,"prototype",{writable:!1}),l}(),vE(n,"displayName",i),vE(n,"defaultProps",dE({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),vE(n,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var p=kE(t);return dE(dE(dE({},p),{},{updateId:0},m(dE(dE({props:t},p),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(r!==e.prevDataKey||n!==e.prevData||i!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!mr(l,e.prevMargin)){var h=kE(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},d=dE(dE({},jE(e,n,c)),{},{updateId:e.updateId+1}),v=dE(dE(dE({},h),y),d);return dE(dE(dE({},v),m(dE({props:t},v),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(!$r(o,e.prevChildren)){var b,g,x,w,O=Nr(o,Jj),S=O&&null!==(b=null===(g=O.props)||void 0===g?void 0:g.startIndex)&&void 0!==b?b:s,j=O&&null!==(x=null===(w=O.props)||void 0===w?void 0:w.endIndex)&&void 0!==x?x:f,A=S!==s||j!==f,P=!qe(n)&&!A?e.updateId:e.updateId+1;return dE(dE({updateId:P},m(dE(dE({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:j}),e)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:j})}return null})),vE(n,"renderActiveDot",(function(r,n){var i;return i=e(r)?o(r,n):Q(r)?r(n):t.createElement(RO,n),t.createElement(Kr,{className:"recharts-active-dot",key:n.key},i)})),n},_E=TE({chartName:"LineChart",GraphicalChild:gk,axisComponents:[{axisType:"xAxis",AxisComp:xk},{axisType:"yAxis",AxisComp:wk}],formatAxisMap:ZA}),CE=TE({chartName:"BarChart",GraphicalChild:qA,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:xk},{axisType:"yAxis",AxisComp:wk}],formatAxisMap:ZA}),IE=TE({chartName:"PieChart",GraphicalChild:Aj,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:kS},{axisType:"radiusAxis",AxisComp:yS}],formatAxisMap:function(t,e,r,n,o){var i=t.width,a=t.height,c=t.startAngle,u=t.endAngle,l=hr(t.cx,i,i/2),s=hr(t.cy,a,a/2),f=vw(i,a,r),p=hr(t.innerRadius,f,0),h=hr(t.outerRadius,f,.8*f);return Object.keys(e).reduce((function(t,r){var i,a=e[r],f=a.domain,y=a.reversed;if(qe(a.range))"angleAxis"===n?i=[c,u]:"radiusAxis"===n&&(i=[p,h]),y&&(i=[i[1],i[0]]);else{var d=fw(i=a.range,2);c=d[0],u=d[1]}var v=Xx(a,o),m=v.realScaleType,b=v.scale;b.domain(f).range(i),Gx(b);var g=Zx(b,lw(lw({},a),{},{realScaleType:m})),x=lw(lw(lw({},a),g),{},{range:i,radius:h,realScaleType:m,scale:b,cx:l,cy:s,innerRadius:p,outerRadius:h,startAngle:c,endAngle:u});return lw(lw({},t),{},sw({},r,x))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),DE=function(e){var r=Math.PI/180,n=e.cx,o=e.cy,i=e.midAngle,a=e.innerRadius,c=e.outerRadius,u=e.startAngle,l=e.endAngle,s=e.fill,f=e.payload,p=e.percent,h=e.value,y=Math.sin(-r*i),d=Math.cos(-r*i),v=n+(c+10)*d,m=o+(c+10)*y,b=n+(c+30)*d,g=o+(c+30)*y,x=b+22*(d>=0?1:-1),w=g,O=d>=0?"start":"end";return t.createElement("g",null,t.createElement("text",{x:n,y:o,dy:8,textAnchor:"middle",fill:s},f.name),t.createElement(oO,{cx:n,cy:o,innerRadius:a,outerRadius:c,startAngle:u,endAngle:l,fill:s}),t.createElement(oO,{cx:n,cy:o,startAngle:u,endAngle:l,innerRadius:c+6,outerRadius:c+10,fill:s}),t.createElement("path",{d:"M".concat(v,",").concat(m,"L").concat(b,",").concat(g,"L").concat(x,",").concat(w),stroke:s,fill:"none"}),t.createElement("circle",{cx:x,cy:w,r:2,fill:s,stroke:"none"}),t.createElement("text",{x:x+12*(d>=0?1:-1),y:w,textAnchor:O,fill:"#333"},"".concat(h)),t.createElement("text",{x:x+12*(d>=0?1:-1),y:w,dy:18,textAnchor:O,fill:"var(--dark-button-color)"},"(".concat((100*p).toFixed(2),"%)")))},NE=function(e){var r=e.id,n=e.className,o=e.type,i=void 0===o?"bar":o,a=e.layout,c=void 0===a?"vertical":a,l=e.barSize,s=void 0===l?24:l,f=e.barGap,p=void 0===f?16:f,h=e.indexes,y=void 0===h?[]:h,d=e.x,v=e.y,m=e.data,g=void 0===m?[]:m,x=u(0),w=x[0],O=x[1];return t.createElement(kh,{id:r,className:b("gyramais-chart","gyramais-chart-".concat(i),n),width:"100%",height:"100%"},function(){var e;return"bar"===i?t.createElement(CE,{barSize:s,barGap:p,layout:c,data:g},t.createElement(nk,null),t.createElement(xk,{fontSize:12,hide:"horizontal"===c,type:"horizontal"===c?"category":"number"}),t.createElement(wk,{fontSize:12,hide:"vertical"===c,type:"vertical"===c?"category":"number"}),t.createElement(Zp,{contentStyle:{borderRadius:12},labelStyle:{display:"none"},cursor:{fill:"#00000011"}}),t.createElement(il,{align:"vertical"===c?"left":"right",verticalAlign:"top",iconType:"square",iconSize:12,wrapperStyle:{paddingBottom:16}}),y.map((function(e,r){return t.createElement(qA,{key:"".concat(e,"-").concat(r),name:e.name,dataKey:e.key,stackId:e.stackId,fill:"var(--primary-button-color-".concat(r,"00)"),radius:"vertical"===c?[0,4,4,0]:[4,4,0,0]})}))):"pie"===i?t.createElement(IE,null,t.createElement(Aj,{activeIndex:w,activeShape:DE,onMouseEnter:function(t,e){return O(e)},data:g,dataKey:"value",cx:"50%",cy:"50%",outerRadius:90,innerRadius:70,fill:"var(--primary-button-color)"})):"line"===i?t.createElement(_E,{data:g},t.createElement(nk,null),d&&t.createElement(xk,{fontSize:12,dataKey:d.key,tickFormatter:d.formatter}),(null===(e=null==v?void 0:v.indexes)||void 0===e?void 0:e[0])&&t.createElement(wk,{fontSize:12,dataKey:v.indexes[0].key,tickFormatter:v.formatter}),t.createElement(Zp,{contentStyle:{borderRadius:12},labelStyle:{display:"none"},cursor:{fill:"#00000011"}}),((null==v?void 0:v.indexes)||[]).map((function(e,r){var n=e.key,o=e.name;return t.createElement(gk,{key:"".concat(n,"-").concat(r),type:"linear",dataKey:n,name:o,stroke:"var(--primary-button-color-".concat(r,"00)"),strokeWidth:2})}))):t.createElement("div",null)}())};export{NE as Chart};
|
|
27
|
+
*/function zx(){if(Ex)return Px;Ex=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return Px=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,o){for(var i,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))e.call(i,l)&&(c[l]=i[l]);if(t){a=t(i);for(var s=0;s<a.length;s++)r.call(i,a[s])&&(c[a[s]]=i[a[s]])}}return c},Px}function Fx(){if(Mx)return kx;Mx=1;return kx="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ux(){return _x?Tx:(_x=1,Tx=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var qx=$x();wx.exports=function(){if(Nx)return Dx;Nx=1;var t=$x(),e=zx(),r=Fx(),n=Ux(),o=function(){if(Ix)return Cx;Ix=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=Fx(),r={},n=Ux();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function o(o,i,a,c,u){if("production"!==process.env.NODE_ENV)for(var l in o)if(n(o,l)){var s;try{if("function"!=typeof o[l]){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=o[l](i,l,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var p=u?u():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},Cx=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),Dx=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",f="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:d(a),arrayOf:function(t){return d((function(e,n,o,i,a){if("function"!=typeof t)return new y("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new y("Invalid "+i+" `"+a+"` of type `"+g(c)+"` supplied to `"+o+"`, expected an array.");for(var u=0;u<c.length;u++){var l=t(c,u,o,i,a+"["+u+"]",r);if(l instanceof Error)return l}return null}))},element:d((function(t,e,r,n,o){var i=t[e];return c(i)?null:new y("Invalid "+n+" `"+o+"` of type `"+g(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:d((function(e,r,n,o,i){var a=e[r];return t.isValidElementType(a)?null:new y("Invalid "+o+" `"+i+"` of type `"+g(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return d((function(e,r,n,o,i){if(!(e[r]instanceof t)){var a=t.name||f;return new y("Invalid "+o+" `"+i+"` of type `"+((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:d((function(t,e,r,n,o){return b(t[e])?null:new y("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return d((function(e,o,i,a,c){if("function"!=typeof t)return new y("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var u=e[o],l=g(u);if("object"!==l)return new y("Invalid "+a+" `"+c+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var s in u)if(n(u,s)){var f=t(u,s,i,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){return Array.isArray(t)?d((function(e,r,n,o,i){for(var a=e[r],c=0;c<t.length;c++)if(h(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===x(e)?String(e):e}));return new y("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var o=t[e];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+e+"."),a}return d((function(e,o,i,a,c){for(var u=[],l=0;l<t.length;l++){var s=(0,t[l])(e,o,i,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&u.push(s.data.expectedType)}return new y("Invalid "+a+" `"+c+"` supplied to `"+i+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return d((function(e,n,o,i,a){var c=e[n],u=g(c);if("object"!==u)return new y("Invalid "+i+" `"+a+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");for(var l in t){var s=t[l];if("function"!=typeof s)return m(o,i,a,l,x(s));var f=s(c,l,o,i,a+"."+l,r);if(f)return f}return null}))},exact:function(t){return d((function(o,i,a,c,u){var l=o[i],s=g(l);if("object"!==s)return new y("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},o[i],t);for(var p in f){var h=t[p];if(n(t,p)&&"function"!=typeof h)return m(a,c,u,p,x(h));if(!h)return new y("Invalid "+c+" `"+u+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var d=h(l,p,a,c,u+"."+p,r);if(d)return d}return null}))}};function h(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function y(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function d(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function o(o,a,c,l,s,p,h){if(l=l||f,p=p||c,h!==r){if(u){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+c;!e[v]&&n<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[v]=!0,n++)}}return null==a[c]?o?null===a[c]?new y("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new y("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,c,l,s,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function v(t){return d((function(e,r,n,o,i,a){var c=e[r];return g(c)!==t?new y("Invalid "+o+" `"+i+"` of type `"+x(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function m(t,e,r,n,o){return new y((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(b);if(null===t||c(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!b(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function g(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function x(t){if(null==t)return""+t;var e=g(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function w(t){var e=x(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return y.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Dx}()(qx.isElement,!0)}else wx.exports=function(){if(Rx)return Bx;Rx=1;var t=Fx();function e(){}function r(){}return r.resetWarningCache=e,Bx=function(){function n(e,r,n,o,i,a){if(a!==t){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function o(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:e};return i.PropTypes=i,i}}()();var Wx=m(wx.exports),Vx=Object.getOwnPropertyNames,Xx=Object.getOwnPropertySymbols,Hx=Object.prototype.hasOwnProperty;function Kx(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function Gx(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var c=t(e,r,n);return o.delete(e),o.delete(r),c}}function Yx(t){return Vx(t).concat(Xx(t))}var Zx=Object.hasOwn||function(t,e){return Hx.call(t,e)};function Jx(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var Qx="_owner",tw=Object.getOwnPropertyDescriptor,ew=Object.keys;function rw(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function nw(t,e){return Jx(t.getTime(),e.getTime())}function ow(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(o=u.next())&&!o.done;){var f=n.value,p=f[0],h=f[1],y=o.value,d=y[0],v=y[1];l||i[s]||!(l=r.equals(p,d,c,s,t,e,r)&&r.equals(h,v,p,d,t,e,r))||(i[s]=!0),s++}if(!l)return!1;c++}return!0}function iw(t,e,r){var n,o=ew(t),i=o.length;if(ew(e).length!==i)return!1;for(;i-- >0;){if((n=o[i])===Qx&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!Zx(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function aw(t,e,r){var n,o,i,a=Yx(t),c=a.length;if(Yx(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===Qx&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!Zx(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(o=tw(t,n),i=tw(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function cw(t,e){return Jx(t.valueOf(),e.valueOf())}function uw(t,e){return t.source===e.source&&t.flags===e.flags}function lw(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(o=c.next())&&!o.done;)u||i[l]||!(u=r.equals(n.value,o.value,n.value,o.value,t,e,r))||(i[l]=!0),l++;if(!u)return!1}return!0}function sw(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var fw="[object Arguments]",pw="[object Boolean]",hw="[object Date]",yw="[object Map]",dw="[object Number]",vw="[object Object]",mw="[object RegExp]",bw="[object Set]",gw="[object String]",xw=Array.isArray,ww="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Ow=Object.assign,Sw=Object.prototype.toString.call.bind(Object.prototype.toString);var jw=Aw();function Aw(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,o=t.createInternalComparator,i=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?aw:rw,areDatesEqual:nw,areMapsEqual:n?Kx(ow,aw):ow,areObjectsEqual:n?aw:iw,arePrimitiveWrappersEqual:cw,areRegExpsEqual:uw,areSetsEqual:n?Kx(lw,aw):lw,areTypedArraysEqual:n?aw:sw};if(r&&(o=Ow({},o,r(o))),e){var i=Gx(o.areArraysEqual),a=Gx(o.areMapsEqual),c=Gx(o.areObjectsEqual),u=Gx(o.areSetsEqual);o=Ow({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return o}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,o=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return o(t,l,s);if(xw(t))return e(t,l,s);if(null!=ww&&ww(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var p=Sw(t);return p===hw?r(t,l,s):p===mw?a(t,l,s):p===yw?n(t,l,s):p===bw?c(t,l,s):p===vw?"function"!=typeof t.then&&"function"!=typeof l.then&&o(t,l,s):p===fw?o(t,l,s):(p===pw||p===dw||p===gw)&&i(t,l,s)}}(u),s=o?o(l):(e=l,function(t,r,n,o,i,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:o,meta:s,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:i,equals:s,strict:c})}function Pw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>e?(t(o),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function Ew(t){"@babel/helpers - typeof";return Ew="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ew(t)}function kw(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Mw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mw(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Tw(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=kw(n),i=o[0],a=o.slice(1);return"number"==typeof i?void Pw(r.bind(null,a),i):(r(i),void Pw(r.bind(null,a)))}"object"===Ew(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function _w(t){"@babel/helpers - typeof";return _w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_w(t)}function Cw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Iw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cw(Object(r),!0).forEach((function(e){Dw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Dw(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==_w(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==_w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===_w(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Aw({strict:!0}),Aw({circular:!0}),Aw({circular:!0,strict:!0}),Aw({createInternalComparator:function(){return Jx}}),Aw({strict:!0,createInternalComparator:function(){return Jx}}),Aw({circular:!0,createInternalComparator:function(){return Jx}}),Aw({circular:!0,createInternalComparator:function(){return Jx},strict:!0});var Nw=function(t){return t},Bw=function(t,e){return Object.keys(e).reduce((function(r,n){return Iw(Iw({},r),{},Dw({},n,t(n,e[n])))}),{})},Rw=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")},Lw="production"!==process.env.NODE_ENV,$w=function(t,e,r,n,o,i,a,c){if(Lw&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function zw(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||Uw(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fw(t){return function(t){if(Array.isArray(t))return qw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Uw(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uw(t,e){if(t){if("string"==typeof t)return qw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qw(t,e):void 0}}function qw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ww=1e-4,Vw=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Xw=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Hw=function(t,e){return function(r){var n=Vw(t,e);return Xw(n,r)}},Kw=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),l=zw(u,4);n=l[0],o=l[1],i=l[2],a=l[3]}else $w(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",e)}$w([n,i,o,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,p=Hw(n,i),h=Hw(o,a),y=(s=n,f=i,function(t){var e=Vw(s,f),r=[].concat(Fw(e.map((function(t,e){return t*e})).slice(1)),[0]);return Xw(r,t)}),d=function(t){for(var e,r=t>1?1:t,n=r,o=0;o<8;++o){var i=p(n)-r,a=y(n);if(Math.abs(i-r)<Ww||a<Ww)return h(n);n=(e=n-i/a)>1?1:e<0?0:e}return h(n)};return d.isStepper=!1,d},Gw=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Kw(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,c=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Ww&&Math.abs(i)<Ww?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return Kw(n);$w(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:($w(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function Yw(t){"@babel/helpers - typeof";return Yw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yw(t)}function Zw(t){return function(t){if(Array.isArray(t))return nO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||rO(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jw(Object(r),!0).forEach((function(e){tO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tO(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Yw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yw(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eO(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||rO(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rO(t,e){if(t){if("string"==typeof t)return nO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nO(t,e):void 0}}function nO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var oO=function(t,e,r){return t+(e-t)*r},iO=function(t){return t.from!==t.to},aO=function t(e,r,n){var o=Bw((function(t,r){if(iO(r)){var n=eO(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return Qw(Qw({},r),{},{from:o,velocity:i})}return r}),r);return n<1?Bw((function(t,e){return iO(e)?Qw(Qw({},e),{},{velocity:oO(e.velocity,o[t].velocity,n),from:oO(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)},cO=function(t,e,r,n,o){var i,a,c,u,l=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return Qw(Qw({},r),{},tO({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return Qw(Qw({},r),{},tO({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=aO(r,f,i),o(Qw(Qw(Qw({},t),e),Bw((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(iO).length&&(p=requestAnimationFrame(h))}:function(i){u||(u=i);var a=(i-u)/n,c=Bw((function(t,e){return oO.apply(void 0,Zw(e).concat([r(a)]))}),s);if(o(Qw(Qw(Qw({},t),e),c)),a<1)p=requestAnimationFrame(h);else{var l=Bw((function(t,e){return oO.apply(void 0,Zw(e).concat([r(1)]))}),s);o(Qw(Qw(Qw({},t),e),l))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function uO(t){"@babel/helpers - typeof";return uO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uO(t)}var lO=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function sO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function fO(t){return function(t){if(Array.isArray(t))return pO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return pO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pO(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function hO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hO(Object(r),!0).forEach((function(e){dO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dO(t,e,r){return(e=mO(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mO(n.key),n)}}function mO(t){var e=function(t,e){if("object"!==uO(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==uO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===uO(e)?e:String(e)}function bO(t,e){return bO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bO(t,e)}function gO(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=OO(t);if(e){var o=OO(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return xO(this,r)}}function xO(t,e){if(e&&("object"===uO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wO(t)}function wO(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function OO(t){return OO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},OO(t)}var SO=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bO(t,e)}(u,n);var o,i,a,c=gO(u);function u(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u);var n=(r=c.call(this,t,e)).props,o=n.isActive,i=n.attributeName,a=n.from,l=n.to,s=n.steps,f=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(wO(r)),r.changeStyle=r.changeStyle.bind(wO(r)),!o||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:l}),xO(r);if(s&&s.length)r.state={style:s[0].style};else if(a){if("function"==typeof f)return r.state={style:a},xO(r);r.state={style:i?dO({},i,a):a}}else r.state={style:{}};return r}return o=u,(i=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(jw(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||i?c:t.to;if(this.state&&u){var f={style:o?dO({},o,s):s};(o&&[o]!==s||!o&&u!==s)&&this.setState(f)}this.runAnimation(yO(yO({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?dO({},o,a):a};this.state&&u&&(o&&u[o]!==a||!o&&u!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,o=t.duration,i=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=cO(r,n,Gw(i),o,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},o,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,c=i.duration,u=void 0===c?0:c;return this.manager.start([o].concat(fO(r.reduce((function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(fO(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var h=Rw(p,i,c),y=yO(yO(yO({},f.style),u),{},{transition:h});return[].concat(fO(t),[y,i,s]).filter(Nw)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Tw());var e=t.begin,r=t.duration,n=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(u.length>1)this.runStepAnimation(t);else{var f=n?dO({},n,o):o,p=Rw(Object.keys(f),r,i);s.start([a,e,yO(yO({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var e=this.props,n=e.children;e.begin;var o=e.duration;e.attributeName,e.easing;var i=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var a=sO(e,lO),c=r.count(n),u=this.state.style;if("function"==typeof n)return n(u);if(!i||0===c||o<=0)return n;var l=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return f(t,yO(yO({},a),{},{style:yO(yO({},n),u),className:o}))};return 1===c?l(r.only(n)):t.createElement("div",null,r.map(n,(function(t){return l(t)})))}}])&&vO(o.prototype,i),a&&vO(o,a),Object.defineProperty(o,"prototype",{writable:!1}),u}();function jO(t){"@babel/helpers - typeof";return jO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jO(t)}function AO(){return AO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},AO.apply(this,arguments)}function PO(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return EO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return EO(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function kO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function MO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kO(Object(r),!0).forEach((function(e){TO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function TO(t,e,r){var n;return n=function(t,e){if("object"!=jO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==jO(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}SO.displayName="Animate",SO.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},SO.propTypes={from:Wx.oneOfType([Wx.object,Wx.string]),to:Wx.oneOfType([Wx.object,Wx.string]),attributeName:Wx.string,duration:Wx.number,begin:Wx.number,easing:Wx.oneOfType([Wx.string,Wx.func]),steps:Wx.arrayOf(Wx.shape({duration:Wx.number.isRequired,style:Wx.object.isRequired,easing:Wx.oneOfType([Wx.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Wx.func]),properties:Wx.arrayOf("string"),onAnimationEnd:Wx.func})),children:Wx.oneOfType([Wx.node,Wx.func]),isActive:Wx.bool,canBegin:Wx.bool,onAnimationEnd:Wx.func,shouldReAnimate:Wx.bool,onAnimationStart:Wx.func,onAnimationReStart:Wx.func},Wx.object,Wx.object,Wx.object,Wx.element,Wx.object,Wx.object,Wx.object,Wx.oneOfType([Wx.array,Wx.element]),Wx.any;var _O=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),i+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+c*s[1])),i+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),i+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-c*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+r-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*p,"\n L ").concat(t+r,",").concat(e+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-u*p,",").concat(e+n,"\n L ").concat(t+u*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},CO=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+c),f=Math.max(i,i+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},IO={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},DO=function(e){var r=MO(MO({},IO),e),n=i(),o=PO(c(-1),2),a=o[0],u=o[1];l((function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&u(t)}catch(t){}}),[]);var s=r.x,f=r.y,p=r.width,h=r.height,y=r.radius,d=r.className,v=r.animationEasing,m=r.animationDuration,b=r.animationBegin,g=r.isAnimationActive,x=r.isUpdateAnimationActive;if(s!==+s||f!==+f||p!==+p||h!==+h||0===p||0===h)return null;var w=O("recharts-rectangle",d);return x?t.createElement(SO,{canBegin:a>0,from:{width:p,height:h,x:s,y:f},to:{width:p,height:h,x:s,y:f},duration:m,animationEasing:v,isActive:x},(function(e){var o=e.width,i=e.height,c=e.x,u=e.y;return t.createElement(SO,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:m,isActive:g,easing:v},t.createElement("path",AO({},Ur(r,!0),{className:w,d:_O(c,u,o,i,y),ref:n})))})):t.createElement("path",AO({},Ur(r,!0),{className:w,d:_O(s,f,p,h,y)}))},NO=["points","className","baseLinePoints","connectNulls"];function BO(){return BO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},BO.apply(this,arguments)}function RO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function LO(t){return function(t){if(Array.isArray(t))return $O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return $O(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $O(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $O(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var zO=function(t){return t&&t.x===+t.x&&t.y===+t.y},FO=function(t,e){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[[]];return t.forEach((function(t){zO(t)?e[e.length-1].push(t):e[e.length-1].length>0&&e.push([])})),zO(t[0])&&e[e.length-1].push(t[0]),e[e.length-1].length<=0&&(e=e.slice(0,-1)),e}(t);e&&(r=[r.reduce((function(t,e){return[].concat(LO(t),LO(e))}),[])]);var n=r.map((function(t){return t.reduce((function(t,e,r){return"".concat(t).concat(0===r?"M":"L").concat(e.x,",").concat(e.y)}),"")})).join("");return 1===r.length?"".concat(n,"Z"):n},UO=function(e){var r=e.points,n=e.className,o=e.baseLinePoints,i=e.connectNulls,a=RO(e,NO);if(!r||!r.length)return null;var c=O("recharts-polygon",n);if(o&&o.length){var u=a.stroke&&"none"!==a.stroke,l=function(t,e,r){var n=FO(t,r);return"".concat("Z"===n.slice(-1)?n.slice(0,-1):n,"L").concat(FO(e.reverse(),r).slice(1))}(r,o,i);return t.createElement("g",{className:c},t.createElement("path",BO({},Ur(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),u?t.createElement("path",BO({},Ur(a,!0),{fill:"none",d:FO(r,i)})):null,u?t.createElement("path",BO({},Ur(a,!0),{fill:"none",d:FO(o,i)})):null)}var s=FO(r,i);return t.createElement("path",BO({},Ur(a,!0),{fill:"Z"===s.slice(-1)?a.fill:"none",className:c,d:s}))};function qO(){return qO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qO.apply(this,arguments)}var WO=function(e){var r=e.cx,n=e.cy,o=e.r,i=O("recharts-dot",e.className);return r===+r&&n===+n&&o===+o?t.createElement("circle",qO({},Ur(e,!1),Er(e),{className:i,cx:r,cy:n,r:o})):null};function VO(t){"@babel/helpers - typeof";return VO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VO(t)}var XO=["x","y","top","left","width","height","className"];function HO(){return HO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},HO.apply(this,arguments)}function KO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function GO(t,e,r){var n;return n=function(t,e){if("object"!=VO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=VO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==VO(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function YO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var ZO=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},JO=function(e){var r=e.x,n=void 0===r?0:r,o=e.y,i=void 0===o?0:o,a=e.top,c=void 0===a?0:a,u=e.left,l=void 0===u?0:u,s=e.width,f=void 0===s?0:s,p=e.height,h=void 0===p?0:p,y=e.className,d=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?KO(Object(r),!0).forEach((function(e){GO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):KO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:n,y:i,top:c,left:l,width:f,height:h},YO(e,XO));return hr(n)&&hr(i)&&hr(f)&&hr(h)&&hr(c)&&hr(l)?t.createElement("path",HO({},Ur(d,!0),{className:O("recharts-cross",y),d:ZO(n,i,f,h,c,l)})):null},QO=Gv,tS=Yv,eS=Pu;var rS=function(t,e){return t&&t.length?QO(t,eS(e),tS):void 0},nS=m(rS),oS=Gv,iS=Pu,aS=rm;var cS=function(t,e){return t&&t.length?oS(t,iS(e),aS):void 0},uS=m(cS),lS=["cx","cy","angle","ticks","axisLine"],sS=["ticks","tick","angle","tickFormatter","stroke"];function fS(t){"@babel/helpers - typeof";return fS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fS(t)}function pS(){return pS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pS.apply(this,arguments)}function hS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hS(Object(r),!0).forEach((function(e){wS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dS(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function vS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,OS(n.key),n)}}function mS(t,e,r){return e=gS(e),function(t,e){if(e&&("object"===fS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,bS()?Reflect.construct(e,r||[],gS(t).constructor):e.apply(t,r))}function bS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(bS=function(){return!!t})()}function gS(t){return gS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gS(t)}function xS(t,e){return xS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xS(t,e)}function wS(t,e,r){return(e=OS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function OS(t){var e=function(t,e){if("object"!=fS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fS(e)?e:String(e)}var SS=function(e){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),mS(this,r,arguments)}var o,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xS(t,e)}(r,n),o=r,i=[{key:"getTickValueCoord",value:function(t){var e=t.coordinate,r=this.props,n=r.angle,o=r.cx,i=r.cy;return gg(o,i,e,n)}},{key:"getTickTextAnchor",value:function(){var t;switch(this.props.orientation){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"getViewBox",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.angle,o=t.ticks,i=nS(o,(function(t){return t.coordinate||0}));return{cx:e,cy:r,startAngle:n,endAngle:n,innerRadius:uS(o,(function(t){return t.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,r=e.cx,n=e.cy,o=e.angle,i=e.ticks,a=e.axisLine,c=dS(e,lS),u=i.reduce((function(t,e){return[Math.min(t[0],e.coordinate),Math.max(t[1],e.coordinate)]}),[1/0,-1/0]),l=gg(r,n,u[0],o),s=gg(r,n,u[1],o),f=yS(yS(yS({},Ur(c,!1)),{},{fill:"none"},Ur(a,!1)),{},{x1:l.x,y1:l.y,x2:s.x,y2:s.y});return t.createElement("line",pS({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,n=this.props,o=n.ticks,i=n.tick,a=n.angle,c=n.tickFormatter,u=n.stroke,l=dS(n,sS),s=this.getTickTextAnchor(),f=Ur(l,!1),p=Ur(i,!1),h=o.map((function(n,o){var l=e.getTickValueCoord(n),h=yS(yS(yS(yS({textAnchor:s,transform:"rotate(".concat(90-a,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:u},p),{},{index:o},l),{},{payload:n});return t.createElement(Qr,pS({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(n.coordinate)},kr(e.props,n,o)),r.renderTickItem(i,h,c?c(n.value,o):n.value))}));return t.createElement(Qr,{className:"recharts-polar-radius-axis-ticks"},h)}},{key:"render",value:function(){var e=this.props,r=e.ticks,n=e.axisLine,o=e.tick;return r&&r.length?t.createElement(Qr,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),o&&this.renderTicks(),Lg.renderCallByParent(this.props,this.getViewBox())):null}}],a=[{key:"renderTickItem",value:function(e,r,n){return t.isValidElement(e)?t.cloneElement(e,r):et(e)?e(r):t.createElement(fp,pS({},r,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],i&&vS(o.prototype,i),a&&vS(o,a),Object.defineProperty(o,"prototype",{writable:!1}),r}();function jS(t){"@babel/helpers - typeof";return jS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jS(t)}function AS(){return AS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},AS.apply(this,arguments)}function PS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ES(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?PS(Object(r),!0).forEach((function(e){IS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):PS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function kS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,DS(n.key),n)}}function MS(t,e,r){return e=_S(e),function(t,e){if(e&&("object"===jS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,TS()?Reflect.construct(e,r||[],_S(t).constructor):e.apply(t,r))}function TS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(TS=function(){return!!t})()}function _S(t){return _S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_S(t)}function CS(t,e){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},CS(t,e)}function IS(t,e,r){return(e=DS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function DS(t){var e=function(t,e){if("object"!=jS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==jS(e)?e:String(e)}wS(SS,"displayName","PolarRadiusAxis"),wS(SS,"axisType","radiusAxis"),wS(SS,"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});var NS=Math.PI/180,BS=1e-5,RS=function(e){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),MS(this,r,arguments)}var o,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&CS(t,e)}(r,n),o=r,i=[{key:"getTickLineCoord",value:function(t){var e=this.props,r=e.cx,n=e.cy,o=e.radius,i=e.orientation,a=e.tickSize||8,c=gg(r,n,o,t.coordinate),u=gg(r,n,o+("inner"===i?-1:1)*a,t.coordinate);return{x1:c.x,y1:c.y,x2:u.x,y2:u.y}}},{key:"getTickTextAnchor",value:function(t){var e=this.props.orientation,r=Math.cos(-t.coordinate*NS);return r>BS?"outer"===e?"start":"end":r<-BS?"outer"===e?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,r=e.cx,n=e.cy,o=e.radius,i=e.axisLine,a=e.axisLineType,c=ES(ES({},Ur(this.props,!1)),{},{fill:"none"},Ur(i,!1));if("circle"===a)return t.createElement(WO,AS({className:"recharts-polar-angle-axis-line"},c,{cx:r,cy:n,r:o}));var u=this.props.ticks.map((function(t){return gg(r,n,o,t.coordinate)}));return t.createElement(UO,AS({className:"recharts-polar-angle-axis-line"},c,{points:u}))}},{key:"renderTicks",value:function(){var e=this,n=this.props,o=n.ticks,i=n.tick,a=n.tickLine,c=n.tickFormatter,u=n.stroke,l=Ur(this.props,!1),s=Ur(i,!1),f=ES(ES({},l),{},{fill:"none"},Ur(a,!1)),p=o.map((function(n,o){var p=e.getTickLineCoord(n),h=ES(ES(ES({textAnchor:e.getTickTextAnchor(n)},l),{},{stroke:"none",fill:u},s),{},{index:o,payload:n,x:p.x2,y:p.y2});return t.createElement(Qr,AS({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n.coordinate)},kr(e.props,n,o)),a&&t.createElement("line",AS({className:"recharts-polar-angle-axis-tick-line"},f,p)),i&&r.renderTickItem(i,h,c?c(n.value,o):n.value))}));return t.createElement(Qr,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,r=e.ticks,n=e.radius,o=e.axisLine;return n<=0||!r||!r.length?null:t.createElement(Qr,{className:"recharts-polar-angle-axis"},o&&this.renderAxisLine(),this.renderTicks())}}],a=[{key:"renderTickItem",value:function(e,r,n){return t.isValidElement(e)?t.cloneElement(e,r):et(e)?e(r):t.createElement(fp,AS({},r,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],i&&kS(o.prototype,i),a&&kS(o,a),Object.defineProperty(o,"prototype",{writable:!1}),r}();IS(RS,"displayName","PolarAngleAxis"),IS(RS,"axisType","angleAxis"),IS(RS,"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 LS=Ca(Object.getPrototypeOf,Object),$S=$,zS=LS,FS=z,US=Function.prototype,qS=Object.prototype,WS=US.toString,VS=qS.hasOwnProperty,XS=WS.call(Object);var HS=m((function(t){if(!FS(t)||"[object Object]"!=$S(t))return!1;var e=zS(t);if(null===e)return!0;var r=VS.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&WS.call(r)==XS})),KS=$,GS=z;var YS=m((function(t){return!0===t||!1===t||GS(t)&&"[object Boolean]"==KS(t)}));function ZS(t){"@babel/helpers - typeof";return ZS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZS(t)}function JS(){return JS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},JS.apply(this,arguments)}function QS(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return tj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tj(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ej(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ej(Object(r),!0).forEach((function(e){nj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ej(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nj(t,e,r){var n;return n=function(t,e){if("object"!=ZS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ZS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==ZS(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var oj,ij=function(t,e,r,n,o){var i,a=r-n;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+r,",").concat(e),i+="L ".concat(t+r-a/2,",").concat(e+o),i+="L ".concat(t+r-a/2-n,",").concat(e+o),i+="L ".concat(t,",").concat(e," Z")},aj={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},cj=function(e){var r=rj(rj({},aj),e),n=i(),o=QS(c(-1),2),a=o[0],u=o[1];l((function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&u(t)}catch(t){}}),[]);var s=r.x,f=r.y,p=r.upperWidth,h=r.lowerWidth,y=r.height,d=r.className,v=r.animationEasing,m=r.animationDuration,b=r.animationBegin,g=r.isUpdateAnimationActive;if(s!==+s||f!==+f||p!==+p||h!==+h||y!==+y||0===p&&0===h||0===y)return null;var x=O("recharts-trapezoid",d);return g?t.createElement(SO,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:y,x:s,y:f},to:{upperWidth:p,lowerWidth:h,height:y,x:s,y:f},duration:m,animationEasing:v,isActive:g},(function(e){var o=e.upperWidth,i=e.lowerWidth,c=e.height,u=e.x,l=e.y;return t.createElement(SO,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:m,easing:v},t.createElement("path",JS({},Ur(r,!0),{className:x,d:ij(u,l,o,i,c),ref:n})))})):t.createElement("g",null,t.createElement("path",JS({},Ur(r,!0),{className:x,d:ij(s,f,p,h,y)})))},uj=["option","shapeType","propTransformer","activeClassName","isActive"];function lj(t){"@babel/helpers - typeof";return lj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lj(t)}function sj(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function fj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fj(Object(r),!0).forEach((function(e){hj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hj(t,e,r){var n;return n=function(t,e){if("object"!=lj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==lj(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yj(t,e){return pj(pj({},e),t)}function dj(e){var r=e.shapeType,n=e.elementProps;switch(r){case"rectangle":return t.createElement(DO,n);case"trapezoid":return t.createElement(cj,n);case"sector":return t.createElement(ux,n);case"symbols":if(function(t,e){return"symbols"===t}(r))return t.createElement(Xo,n);break;default:return null}}function vj(r){var n,o=r.option,i=r.shapeType,a=r.propTransformer,c=void 0===a?yj:a,u=r.activeClassName,l=void 0===u?"recharts-active-shape":u,s=r.isActive,p=sj(r,uj);if(e(o))n=f(o,pj(pj({},p),function(t){return e(t)?t.props:t}(o)));else if(et(o))n=o(p);else if(HS(o)&&!YS(o)){var h=c(o,p);n=t.createElement(dj,{shapeType:i,elementProps:h})}else{var y=p;n=t.createElement(dj,{shapeType:i,elementProps:y})}return s?t.createElement(Qr,{className:l},n):n}function mj(t,e){return null!=e&&"trapezoids"in t.props}function bj(t,e){return null!=e&&"sectors"in t.props}function gj(t,e){return null!=e&&"points"in t.props}function xj(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function wj(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function Oj(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function Sj(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return mj(t,e)?r="trapezoids":bj(t,e)?r="sectors":gj(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return mj(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:bj(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:gj(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=mm(i,t),c=r.props[o].filter((function(t){var n=function(t,e){var r;return mj(t,e)?r=xj:bj(t,e)?r=wj:gj(t,e)&&(r=Oj),r}(r,e);return n(t,e)})),u=r.props[o].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}function jj(t){"@babel/helpers - typeof";return jj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jj(t)}function Aj(){return Aj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Aj.apply(this,arguments)}function Pj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ej(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pj(Object(r),!0).forEach((function(e){Dj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function kj(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Nj(n.key),n)}}function Mj(t,e,r){return e=_j(e),function(t,e){if(e&&("object"===jj(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Cj(t)}(t,Tj()?Reflect.construct(e,r||[],_j(t).constructor):e.apply(t,r))}function Tj(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Tj=function(){return!!t})()}function _j(t){return _j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_j(t)}function Cj(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ij(t,e){return Ij=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ij(t,e)}function Dj(t,e,r){return(e=Nj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Nj(t){var e=function(t,e){if("object"!=jj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==jj(e)?e:String(e)}var Bj=function(e){function r(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),Dj(Cj(e=Mj(this,r,[t])),"pieRef",null),Dj(Cj(e),"sectorRefs",[]),Dj(Cj(e),"id",vr("recharts-pie-")),Dj(Cj(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),et(t)&&t()})),Dj(Cj(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),et(t)&&t()})),e.state={isAnimationFinished:!t.isAnimationActive,prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,sectorToFocus:0},e}var o,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ij(t,e)}(r,n),o=r,a=[{key:"getDerivedStateFromProps",value:function(t,e){return e.prevIsAnimationActive!==t.isAnimationActive?{prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:[],isAnimationFinished:!0}:t.isAnimationActive&&t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:e.curSectors,isAnimationFinished:!0}:t.sectors!==e.curSectors?{curSectors:t.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(t,e){return t>e?"start":t<e?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):et(e)?e(r):t.createElement(xx,Aj({},r,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,r,n){if(t.isValidElement(e))return t.cloneElement(e,r);var o=n;return et(e)&&(o=e(r),t.isValidElement(o))?o:t.createElement(fp,Aj({},r,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}}],(i=[{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"hasActiveIndex",value:function(){var t=this.props.activeIndex;return Array.isArray(t)?0!==t.length:t||0===t}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.label,i=n.labelLine,a=n.dataKey,c=n.valueKey,u=Ur(this.props,!1),l=Ur(o,!1),s=Ur(i,!1),f=o&&o.offsetRadius||20,p=e.map((function(e,n){var p=(e.startAngle+e.endAngle)/2,h=gg(e.cx,e.cy,e.outerRadius+f,p),y=Ej(Ej(Ej(Ej({},u),e),{},{stroke:"none"},l),{},{index:n,textAnchor:r.getTextAnchor(h.x,e.cx)},h),d=Ej(Ej(Ej(Ej({},u),e),{},{fill:"none",stroke:e.fill},s),{},{index:n,points:[gg(e.cx,e.cy,e.outerRadius,p),h],key:"line"}),v=a;return Ke(a)&&Ke(c)?v="value":Ke(a)&&(v=c),t.createElement(Qr,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle)},i&&r.renderLabelLineItem(i,d),r.renderLabelItem(o,y,zb(e,v)))}));return t.createElement(Qr,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var r=this,n=this.props,o=n.activeShape,i=n.blendStroke,a=n.inactiveShape;return e.map((function(n,c){if(0===(null==n?void 0:n.startAngle)&&0===(null==n?void 0:n.endAngle)&&1!==e.length)return null;var u=r.isActiveIndex(c),l=a&&r.hasActiveIndex()?a:null,s=u?o:l,f=Ej(Ej({},n),{},{stroke:i?n.fill:n.stroke,tabIndex:-1});return t.createElement(Qr,Aj({ref:function(t){t&&!r.sectorRefs.includes(t)&&r.sectorRefs.push(t)},tabIndex:-1,className:"recharts-pie-sector"},kr(r.props,n,c),{key:"sector-".concat(null==n?void 0:n.startAngle,"-").concat(null==n?void 0:n.endAngle,"-").concat(n.midAngle,"-").concat(c)}),t.createElement(vj,Aj({option:s,isActive:u,shapeType:"sector"},f)))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,r=this.props,n=r.sectors,o=r.isAnimationActive,i=r.animationBegin,a=r.animationDuration,c=r.animationEasing,u=r.animationId,l=this.state,s=l.prevSectors,f=l.prevIsAnimationActive;return t.createElement(SO,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var o=r.t,i=[],a=(n&&n[0]).startAngle;return n.forEach((function(t,e){var r=s&&s[e],n=e>0?He(t,"paddingAngle",0):0;if(r){var c=gr(r.endAngle-r.startAngle,t.endAngle-t.startAngle),u=Ej(Ej({},t),{},{startAngle:a+n,endAngle:a+c(o)+n});i.push(u),a=u.endAngle}else{var l=t.endAngle,f=t.startAngle,p=gr(0,l-f)(o),h=Ej(Ej({},t),{},{startAngle:a+n,endAngle:a+p+n});i.push(h),a=h.endAngle}})),t.createElement(Qr,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(t){var e=this;t.onkeydown=function(t){if(!t.altKey)switch(t.key){case"ArrowLeft":var r=++e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[r].focus(),e.setState({sectorToFocus:r});break;case"ArrowRight":var n=--e.state.sectorToFocus<0?e.sectorRefs.length-1:e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[n].focus(),e.setState({sectorToFocus:n});break;case"Escape":e.sectorRefs[e.state.sectorToFocus].blur(),e.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var t=this.props,e=t.sectors,r=t.isAnimationActive,n=this.state.prevSectors;return!(r&&e&&e.length)||n&&mm(n,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,r=this.props,n=r.hide,o=r.sectors,i=r.className,a=r.label,c=r.cx,u=r.cy,l=r.innerRadius,s=r.outerRadius,f=r.isAnimationActive,p=this.state.isAnimationFinished;if(n||!o||!o.length||!hr(c)||!hr(u)||!hr(l)||!hr(s))return null;var h=O("recharts-pie",i);return t.createElement(Qr,{tabIndex:this.props.rootTabIndex,className:h,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),Lg.renderCallByParent(this.props,null,!1),(!f||p)&&Qg.renderCallByParent(this.props,o,!1))}}])&&kj(o.prototype,i),a&&kj(o,a),Object.defineProperty(o,"prototype",{writable:!1}),r}();oj=Bj,Dj(Bj,"displayName","Pie"),Dj(Bj,"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:!Ls.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),Dj(Bj,"parseDeltaAngle",(function(t,e){return fr(e-t)*Math.min(Math.abs(e-t),360)})),Dj(Bj,"getRealPieData",(function(t){var e=t.props,r=e.data,n=e.children,o=Ur(t.props,!1),i=Lr(n,kf);return r&&r.length?r.map((function(t,e){return Ej(Ej(Ej({payload:t},o),t),i&&i[e]&&i[e].props)})):i&&i.length?i.map((function(t){return Ej(Ej({},o),t.props)})):[]})),Dj(Bj,"parseCoordinateOfPie",(function(t,e){var r=e.top,n=e.left,o=e.width,i=e.height,a=xg(o,i);return{cx:n+mr(t.props.cx,o,o/2),cy:r+mr(t.props.cy,i,i/2),innerRadius:mr(t.props.innerRadius,a,0),outerRadius:mr(t.props.outerRadius,a,.8*a),maxRadius:t.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),Dj(Bj,"getComposedData",(function(t){var e=t.item,r=t.offset,n=oj.getRealPieData(e);if(!n||!n.length)return null;var o=e.props,i=o.cornerRadius,a=o.startAngle,c=o.endAngle,u=o.paddingAngle,l=o.dataKey,s=o.nameKey,f=o.valueKey,p=o.tooltipType,h=Math.abs(e.props.minAngle),y=oj.parseCoordinateOfPie(e,r),d=oj.parseDeltaAngle(a,c),v=Math.abs(d),m=l;Ke(l)&&Ke(f)?(en(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),m="value"):Ke(l)&&(en(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),m=f);var b,g,x=n.filter((function(t){return 0!==zb(t,m,0)})).length,w=v-x*h-(v>=360?x:x-1)*u,O=n.reduce((function(t,e){var r=zb(e,m,0);return t+(hr(r)?r:0)}),0);O>0&&(b=n.map((function(t,e){var r,n=zb(t,m,0),o=zb(t,s,e),c=(hr(n)?n:0)/O,l=(r=e?g.endAngle+fr(d)*u*(0!==n?1:0):a)+fr(d)*((0!==n?h:0)+c*w),f=(r+l)/2,v=(y.innerRadius+y.outerRadius)/2,b=[{name:o,value:n,payload:t,dataKey:m,type:p}],x=gg(y.cx,y.cy,v,f);return g=Ej(Ej(Ej({percent:c,cornerRadius:i,name:o,tooltipPayload:b,midAngle:f,middleRadius:v,tooltipPosition:x},t),y),{},{value:zb(t,m),startAngle:r,endAngle:l,payload:t,paddingAngle:fr(d)*u})})));return Ej(Ej({},y),{},{sectors:b,data:n})}));var Rj=Math.ceil,Lj=Math.max;var $j=ff,zj=1/0;var Fj=function(t){return t?(t=$j(t))===zj||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},Uj=function(t,e,r,n){for(var o=-1,i=Lj(Rj((e-t)/(r||1)),0),a=Array(i);i--;)a[n?i:++o]=t,t+=r;return a},qj=as,Wj=Fj;var Vj=m(function(t){return function(e,r,n){return n&&"number"!=typeof n&&qj(e,r,n)&&(r=n=void 0),e=Wj(e),void 0===r?(r=e,e=0):r=Wj(r),n=void 0===n?e<r?1:-1:Wj(n),Uj(e,r,n,t)}}());function Xj(t){"@babel/helpers - typeof";return Xj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xj(t)}function Hj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Kj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Hj(Object(r),!0).forEach((function(e){Gj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Gj(t,e,r){var n;return n=function(t,e){if("object"!=Xj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Xj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Xj(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Yj=["Webkit","Moz","O","ms"];function Zj(t){"@babel/helpers - typeof";return Zj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zj(t)}function Jj(){return Jj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Jj.apply(this,arguments)}function Qj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qj(Object(r),!0).forEach((function(e){cA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function eA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,uA(n.key),n)}}function rA(t,e,r){return e=oA(e),function(t,e){if(e&&("object"===Zj(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return iA(t)}(t,nA()?Reflect.construct(e,r||[],oA(t).constructor):e.apply(t,r))}function nA(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(nA=function(){return!!t})()}function oA(t){return oA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},oA(t)}function iA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function aA(t,e){return aA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},aA(t,e)}function cA(t,e,r){return(e=uA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uA(t){var e=function(t,e){if("object"!=Zj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Zj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Zj(e)?e:String(e)}var lA=function(t){return t.changedTouches&&!!t.changedTouches.length},sA=function(e){function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),cA(iA(e=rA(this,o,[t])),"handleDrag",(function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)})),cA(iA(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),cA(iA(e),"handleDragEnd",(function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=e.props,r=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:r,startIndex:o})})),e.detachDragEndListener()})),cA(iA(e),"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),cA(iA(e),"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),cA(iA(e),"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),cA(iA(e),"handleSlideDragStart",(function(t){var r=lA(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(iA(e),"startX"),endX:e.handleTravellerDragStart.bind(iA(e),"endX")},e.state={},e}var i,a,c;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&aA(t,e)}(o,n),i=o,a=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,n=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,u=Math.min(e,r),l=Math.max(e,r),s=o.getIndexInRange(n,u),f=o.getIndexInRange(n,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=zb(r[t],o,t);return et(n)?n(i,t):i}},{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(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-u-o,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-o));var h=this.getIndex({startX:n+p,endX:o+p});h.startIndex===l&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=lA(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,h=c.data,y={startX:this.state.startX,endX:this.state.endX},d=t.pageX-r;d>0?d=Math.min(d,u+l-s-a):d<0&&(d=Math.max(d,u-a)),y[n]=a+d;var v=this.getIndex(y),m=v.startIndex,b=v.endIndex;this.setState(cA(cA({},n,a+d),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=h.length-1,("startX"===n&&(o>i?m%p==0:b%p==0)||o<i&&b===t||"endX"===n&&(o>i?b%p==0:m%p==0)||o>i&&b===t)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,c=this.state[e],u=o.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(cA({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,r=e.x,n=e.y,o=e.width,i=e.height,a=e.fill,c=e.stroke;return t.createElement("rect",{stroke:c,fill:a,x:r,y:n,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,o=e.y,i=e.width,a=e.height,c=e.data,u=e.children,l=e.padding,s=r.only(u);return s?t.cloneElement(s,{x:n,y:o,width:i,height:a,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(e,r){var n=this,i=this.props,a=i.y,c=i.travellerWidth,u=i.height,l=i.traveller,s=i.ariaLabel,f=i.data,p=i.startIndex,h=i.endIndex,y=Math.max(e,this.props.x),d=tA(tA({},Ur(this.props,!1)),{},{x:y,y:a,width:c,height:u}),v=s||"Min value: ".concat(f[p].name,", Max value: ").concat(f[h].name);return t.createElement(Qr,{tabIndex:0,role:"slider","aria-label":v,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},o.renderTraveller(l,d))}},{key:"renderSlide",value:function(e,r){var n=this.props,o=n.y,i=n.height,a=n.stroke,c=n.travellerWidth,u=Math.min(e,r)+c,l=Math.max(Math.abs(r-e)-c,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:o,width:l,height:i})}},{key:"renderText",value:function(){var e=this.props,r=e.startIndex,n=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,c=e.stroke,u=this.state,l=u.startX,s=u.endX,f={pointerEvents:"none",fill:c};return t.createElement(Qr,{className:"recharts-brush-texts"},t.createElement(fp,Jj({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:o+i/2},f),this.getTextOfTick(r)),t.createElement(fp,Jj({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+a+5,y:o+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,r=e.data,n=e.className,o=e.children,i=e.x,a=e.y,c=e.width,u=e.height,l=e.alwaysShowText,s=this.state,f=s.startX,p=s.endX,h=s.isTextActive,y=s.isSlideMoving,d=s.isTravellerMoving,v=s.isTravellerFocused;if(!r||!r.length||!hr(i)||!hr(a)||!hr(c)||!hr(u)||c<=0||u<=0)return null;var m=O("recharts-brush",n),b=1===t.Children.count(o),g=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=Yj.reduce((function(t,n){return Kj(Kj({},t),{},Gj({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return t.createElement(Qr,{className:m,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||y||d||v||l)&&this.renderText())}}],c=[{key:"renderDefaultTraveller",value:function(e){var r=e.x,n=e.y,o=e.width,i=e.height,a=e.stroke,c=Math.floor(n+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:r,y:n,width:o,height:i,fill:a,stroke:"none"}),t.createElement("line",{x1:r+1,y1:c,x2:r+o-1,y2:c,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:r+1,y1:c+2,x2:r+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):et(e)?e(r):o.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return tA({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=zp().domain(Vj(0,c)).range([o,o+i-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:o,travellerWidth:i,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var o=Math.floor((r+n)/2);t[o]>e?n=o:r=o}return e>=t[n]?n:r}}],a&&eA(i.prototype,a),c&&eA(i,c),Object.defineProperty(i,"prototype",{writable:!1}),o}();cA(sA,"displayName","Brush"),cA(sA,"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 fA=Sl;var pA=Oi,hA=Pu,yA=function(t,e){var r;return fA(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r},dA=S,vA=as;var mA=m((function(t,e,r){var n=dA(t)?pA:yA;return r&&vA(t,e,r)&&(e=void 0),n(t,hA(e))})),bA=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},gA=Xl;var xA=function(t,e,r){"__proto__"==e&&gA?gA(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},wA=xA,OA=wl,SA=Pu;var jA=function(t,e){var r={};return e=SA(e),OA(t,(function(t,n,o){wA(r,n,e(t,n,o))})),r},AA=m(jA);var PA=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0},EA=Sl;var kA=PA,MA=function(t,e){var r=!0;return EA(t,(function(t,n,o){return r=!!e(t,n,o)})),r},TA=Pu,_A=S,CA=as;var IA=m((function(t,e,r){var n=_A(t)?kA:MA;return r&&CA(t,e,r)&&(e=void 0),n(t,TA(e))})),DA=["x","y"];function NA(t){"@babel/helpers - typeof";return NA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},NA(t)}function BA(){return BA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},BA.apply(this,arguments)}function RA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function LA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?RA(Object(r),!0).forEach((function(e){$A(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):RA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $A(t,e,r){var n;return n=function(t,e){if("object"!=NA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=NA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==NA(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function FA(t,e){var r=t.x,n=t.y,o=zA(t,DA),i="".concat(r),a=parseInt(i,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||o.height),s=parseInt(l,10),f="".concat(e.width||o.width),p=parseInt(f,10);return LA(LA(LA(LA(LA({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function UA(e){return t.createElement(vj,BA({shapeType:"rectangle",propTransformer:FA,activeClassName:"recharts-active-bar"},e))}var qA,WA=["value","background"];function VA(t){"@babel/helpers - typeof";return VA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VA(t)}function XA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function HA(){return HA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},HA.apply(this,arguments)}function KA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function GA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?KA(Object(r),!0).forEach((function(e){rP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):KA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function YA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nP(n.key),n)}}function ZA(t,e,r){return e=QA(e),function(t,e){if(e&&("object"===VA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return tP(t)}(t,JA()?Reflect.construct(e,r||[],QA(t).constructor):e.apply(t,r))}function JA(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(JA=function(){return!!t})()}function QA(t){return QA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},QA(t)}function tP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function eP(t,e){return eP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},eP(t,e)}function rP(t,e,r){return(e=nP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nP(t){var e=function(t,e){if("object"!=VA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=VA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==VA(e)?e:String(e)}var oP=function(e){function r(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return rP(tP(t=ZA(this,r,[].concat(n))),"state",{isAnimationFinished:!1}),rP(tP(t),"id",vr("recharts-bar-")),rP(tP(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),rP(tP(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}var o,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eP(t,e)}(r,n),o=r,a=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],(i=[{key:"renderRectanglesStatically",value:function(e){var r=this,n=this.props,o=n.shape,i=n.dataKey,a=n.activeIndex,c=n.activeBar,u=Ur(this.props,!1);return e&&e.map((function(e,n){var l=n===a,s=l?c:o,f=GA(GA(GA({},u),e),{},{isActive:l,option:s,index:n,dataKey:i,onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd});return t.createElement(Qr,HA({className:"recharts-bar-rectangle"},kr(r.props,e,n),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value)}),t.createElement(UA,f))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,r=this.props,n=r.data,o=r.layout,i=r.isAnimationActive,a=r.animationBegin,c=r.animationDuration,u=r.animationEasing,l=r.animationId,s=this.state.prevData;return t.createElement(SO,{begin:a,duration:c,isActive:i,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var i=r.t,a=n.map((function(t,e){var r=s&&s[e];if(r){var n=gr(r.x,t.x),a=gr(r.y,t.y),c=gr(r.width,t.width),u=gr(r.height,t.height);return GA(GA({},t),{},{x:n(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===o){var l=gr(0,t.height)(i);return GA(GA({},t),{},{y:t.y+t.height-l,height:l})}var f=gr(0,t.width)(i);return GA(GA({},t),{},{width:f})}));return t.createElement(Qr,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&mm(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,r=this.props,n=r.data,o=r.dataKey,i=r.activeIndex,a=Ur(this.props.background,!1);return n.map((function(r,n){r.value;var c=r.background,u=XA(r,WA);if(!c)return null;var l=GA(GA(GA(GA(GA({},u),{},{fill:"#eee"},c),a),kr(e.props,r,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return t.createElement(UA,HA({option:e.props.background,isActive:n===i},l))}))}},{key:"renderErrorBar",value:function(e,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.data,i=n.xAxis,a=n.yAxis,c=n.layout,u=Lr(n.children,kb);if(!u)return null;var l="vertical"===c?o[0].height/2:o[0].width/2,s=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:zb(t,e)}},f={clipPath:e?"url(#clipPath-".concat(r,")"):null};return t.createElement(Qr,f,u.map((function(e){return t.cloneElement(e,{key:"error-bar-".concat(r,"-").concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:c,offset:l,dataPointFormatter:s})})))}},{key:"render",value:function(){var e=this.props,r=e.hide,n=e.data,o=e.className,i=e.xAxis,a=e.yAxis,c=e.left,u=e.top,l=e.width,s=e.height,f=e.isAnimationActive,p=e.background,h=e.id;if(r||!n||!n.length)return null;var y=this.state.isAnimationFinished,d=O("recharts-bar",o),v=i&&i.allowDataOverflow,m=a&&a.allowDataOverflow,b=v||m,g=Ke(h)?this.id:h;return t.createElement(Qr,{className:d},v||m?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(g)},t.createElement("rect",{x:v?c:c-l/2,y:m?u:u-s/2,width:v?l:2*l,height:m?s:2*s}))):null,t.createElement(Qr,{className:"recharts-bar-rectangles",clipPath:b?"url(#clipPath-".concat(g,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(b,g),(!f||y)&&Qg.renderCallByParent(this.props,n))}}])&&YA(o.prototype,i),a&&YA(o,a),Object.defineProperty(o,"prototype",{writable:!1}),r}();function iP(t){"@babel/helpers - typeof";return iP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iP(t)}function aP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sP(n.key),n)}}function cP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function uP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cP(Object(r),!0).forEach((function(e){lP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lP(t,e,r){return(e=sP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sP(t){var e=function(t,e){if("object"!=iP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=iP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==iP(e)?e:String(e)}qA=oP,rP(oP,"displayName","Bar"),rP(oP,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ls.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),rP(oP,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,h=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!h)return null;var y=e.layout,d=r.props,v=d.dataKey,m=d.children,b=d.minPointSize,g="horizontal"===y?a:i,x=l?g.scale.domain():null,w=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:g}),O=Lr(m,kf),S=f.map((function(t,e){var n,f,p,d,m,g;l?n=function(t,e){if(!e||2!==e.length||!hr(e[0])||!hr(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),o=[t[0],t[1]];return(!hr(t[0])||t[0]<r)&&(o[0]=r),(!hr(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(l[s+e],x):(n=zb(t,v),Array.isArray(n)||(n=[w,n]));var S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||("production"!==process.env.NODE_ENV?Ob(!1,"minPointSize callback function received a value with type of ".concat(NA(r),". Currently only numbers are supported.")):Ob(!1)),e)}}(b,qA.defaultProps.minPointSize)(n[1],e);if("horizontal"===y){var j,A=[a.scale(n[0]),a.scale(n[1])],P=A[0],E=A[1];f=ng({axis:i,ticks:c,bandSize:o,offset:h.offset,entry:t,index:e}),p=null!==(j=null!=E?E:P)&&void 0!==j?j:void 0,d=h.size;var k=P-E;if(m=Number.isNaN(k)?0:k,g={x:f,y:a.y,width:d,height:a.height},Math.abs(S)>0&&Math.abs(m)<Math.abs(S)){var M=fr(m||S)*(Math.abs(S)-Math.abs(m));p-=M,m+=M}}else{var T=[i.scale(n[0]),i.scale(n[1])],_=T[0],C=T[1];if(f=_,p=ng({axis:a,ticks:u,bandSize:o,offset:h.offset,entry:t,index:e}),d=C-_,m=h.size,g={x:i.x,y:p,width:i.width,height:m},Math.abs(S)>0&&Math.abs(d)<Math.abs(S))d+=fr(d||S)*(Math.abs(S)-Math.abs(d))}return GA(GA(GA({},t),{},{x:f,y:p,width:d,height:m,value:l?n:n[1],payload:t,background:g},O&&O[e]&&O[e].props),{},{tooltipPayload:[sg(r,t)],tooltipPosition:{x:f+d/2,y:p+m/2}})}));return GA({data:S,layout:y},p)}));var fP=function(t,e,r,n,o){var i=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!$r(u,oP);return l.reduce((function(i,a){var u,l,p,h,y,d=e[a],v=d.orientation,m=d.domain,b=d.padding,g=void 0===b?{}:b,x=d.mirror,w=d.reversed,O="".concat(v).concat(x?"Mirror":"");if("number"===d.type&&("gap"===d.padding||"no-gap"===d.padding)){var S=m[1]-m[0],j=1/0,A=d.categoricalDomain.sort();A.forEach((function(t,e){e>0&&(j=Math.min((t||0)-(A[e-1]||0),j))}));var P=j/S,E="vertical"===d.layout?r.height:r.width;if("gap"===d.padding&&(u=P*E/2),"no-gap"===d.padding){var k=mr(t.barCategoryGap,P*E),M=P*E/2;u=M-k-(M-k)/E*k}}l="xAxis"===n?[r.left+(g.left||0)+(u||0),r.left+r.width-(g.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(g.bottom||0),r.top+(g.top||0)]:[r.top+(g.top||0)+(u||0),r.top+r.height-(g.bottom||0)-(u||0)]:d.range,w&&(l=[l[1],l[0]]);var T=Yb(d,o,f),_=T.scale,C=T.realScaleType;_.domain(m).range(l),Jb(_);var I=eg(_,uP(uP({},d),{},{realScaleType:C}));"xAxis"===n?(y="top"===v&&!x||"bottom"===v&&x,p=r.left,h=s[O]-y*d.height):"yAxis"===n&&(y="left"===v&&!x||"right"===v&&x,p=s[O]-y*d.width,h=r.top);var D=uP(uP(uP({},d),I),{},{realScaleType:C,x:p,y:h,scale:_,width:"xAxis"===n?r.width:d.width,height:"yAxis"===n?r.height:d.height});return D.bandSize=ug(D,I),d.hide||"xAxis"!==n?d.hide||(s[O]+=(y?-1:1)*D.width):s[O]+=(y?-1:1)*D.height,uP(uP({},i),{},lP({},a,D))}),{})},pP=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},hP=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}var e,r,n;return e=t,r=[{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(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&aP(e.prototype,r),n&&aP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();lP(hP,"EPS",1e-4);var yP=function(t){var e=Object.keys(t).reduce((function(e,r){return uP(uP({},e),{},lP({},r,hP.create(t[r])))}),{});return uP(uP({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return AA(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return IA(t,(function(t,r){return e[r].isInRange(t)}))}})};var dP=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/e),a=o>i&&o<Math.PI-i?r/Math.sin(o):e/Math.cos(o);return Math.abs(a)},vP=Pu,mP=za,bP=Wa;var gP=function(t){return function(e,r,n){var o=Object(e);if(!mP(e)){var i=vP(r);e=bP(e),r=function(t){return i(o[t],t,o)}}var a=t(e,r,n);return a>-1?o[i?e[a]:a]:void 0}},xP=Fj;var wP=Eu,OP=Pu,SP=function(t){var e=xP(t),r=e%1;return e==e?r?e-r:e:0},jP=Math.max;var AP=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:SP(r);return o<0&&(o=jP(n+o,0)),wP(t,OP(e),o)},PP=m(gP(AP)),EP=xe((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));function kP(t){"@babel/helpers - typeof";return kP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kP(t)}var MP=y(void 0),TP=y(void 0),_P=y(void 0),CP=y({}),IP=y(void 0),DP=y(0),NP=y(0),BP=function(e){var r=e.state,n=r.xAxisMap,o=r.yAxisMap,i=r.offset,a=e.clipPathId,c=e.children,u=e.width,l=e.height,s=EP(i);return t.createElement(MP.Provider,{value:n},t.createElement(TP.Provider,{value:o},t.createElement(CP.Provider,{value:i},t.createElement(_P.Provider,{value:s},t.createElement(IP.Provider,{value:a},t.createElement(DP.Provider,{value:l},t.createElement(NP.Provider,{value:u},c)))))))};function RP(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var LP=function(t){var e=h(MP);null==e&&("production"!==process.env.NODE_ENV?Ob(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Ob(!1));var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?Ob(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(kP(t),"]. ").concat(RP(e))):Ob(!1)),r},$P=function(t){var e=h(TP);null==e&&("production"!==process.env.NODE_ENV?Ob(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Ob(!1));var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?Ob(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(kP(t),"]. ").concat(RP(e))):Ob(!1)),r},zP=function(){return h(NP)},FP=function(){return h(DP)};function UP(t){"@babel/helpers - typeof";return UP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},UP(t)}function qP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function WP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qP(Object(r),!0).forEach((function(e){VP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function VP(t,e,r){var n;return n=function(t,e){if("object"!=UP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=UP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==UP(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return HP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return HP(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function HP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function KP(){return KP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},KP.apply(this,arguments)}function GP(e){var r=e.x,n=e.y,o=e.segment,i=e.xAxisId,a=e.yAxisId,c=e.shape,u=e.className,l=e.alwaysShow,s=h(IP),f=LP(i),p=$P(a),y=h(_P);if(!s||!y)return null;en(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=function(t,e,r,n,o,i,a,c,u){var l=o.x,s=o.y,f=o.width,p=o.height;if(r){var h=u.y,y=t.y.apply(h,{position:i});if(bA(u,"discard")&&!t.y.isInRange(y))return null;var d=[{x:l+f,y:y},{x:l,y:y}];return"left"===c?d.reverse():d}if(e){var v=u.x,m=t.x.apply(v,{position:i});if(bA(u,"discard")&&!t.x.isInRange(m))return null;var b=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?b.reverse():b}if(n){var g=u.segment.map((function(e){return t.apply(e,{position:i})}));return bA(u,"discard")&&mA(g,(function(e){return!t.isInRange(e)}))?null:g}return null}(yP({x:f.scale,y:p.scale}),yr(r),yr(n),o&&2===o.length,y,e.position,f.orientation,p.orientation,e);if(!d)return null;var v=XP(d,2),m=v[0],b=m.x,g=m.y,x=v[1],w=x.x,S=x.y,j=WP(WP({clipPath:bA(e,"hidden")?"url(#".concat(s,")"):void 0},Ur(e,!0)),{},{x1:b,y1:g,x2:w,y2:S});return t.createElement(Qr,{className:O("recharts-reference-line",u)},function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):et(e)?e(r):t.createElement("line",KP({},r,{className:"recharts-reference-line-line"}))}(c,j),Lg.renderCallByParent(e,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return pP({x:e,y:r},{x:n,y:o})}({x1:b,y1:g,x2:w,y2:S})))}function YP(t){"@babel/helpers - typeof";return YP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},YP(t)}function ZP(){return ZP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ZP.apply(this,arguments)}function JP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function QP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?JP(Object(r),!0).forEach((function(e){tE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):JP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tE(t,e,r){var n;return n=function(t,e){if("object"!=YP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=YP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==YP(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}GP.displayName="ReferenceLine",GP.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function eE(e){var r=e.x,n=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,c=yr(r),u=yr(n);if(en(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=yP({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return bA(t,"discard")&&!i.isInRange(a)?null:a}(e);if(!l)return null;var s=l.x,f=l.y,p=e.shape,h=e.className,y=QP(QP({clipPath:bA(e,"hidden")?"url(#".concat(a,")"):void 0},Ur(e,!0)),{},{cx:s,cy:f});return t.createElement(Qr,{className:O("recharts-reference-dot",h)},eE.renderDot(p,y),Lg.renderCallByParent(e,{x:s-o,y:f-o,width:2*o,height:2*o}))}function rE(t){"@babel/helpers - typeof";return rE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rE(t)}function nE(){return nE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},nE.apply(this,arguments)}function oE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function iE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oE(Object(r),!0).forEach((function(e){aE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function aE(t,e,r){var n;return n=function(t,e){if("object"!=rE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==rE(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}eE.displayName="ReferenceDot",eE.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},eE.renderDot=function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):et(e)?e(r):t.createElement(WO,ZP({},r,{cx:r.cx,cy:r.cy,className:"recharts-reference-dot-dot"}))};function cE(e){var r=e.x1,n=e.x2,o=e.y1,i=e.y2,a=e.className,c=e.alwaysShow,u=e.clipPathId;en(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=yr(r),s=yr(n),f=yr(o),p=yr(i),h=e.shape;if(!(l||s||f||p||h))return null;var y=function(t,e,r,n,o){var i=o.x1,a=o.x2,c=o.y1,u=o.y2,l=o.xAxis,s=o.yAxis;if(!l||!s)return null;var f=yP({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!bA(o,"discard")||f.isInRange(p)&&f.isInRange(h)?pP(p,h):null}(l,s,f,p,e);if(!y&&!h)return null;var d=bA(e,"hidden")?"url(#".concat(u,")"):void 0;return t.createElement(Qr,{className:O("recharts-reference-area",a)},cE.renderRect(h,iE(iE({clipPath:d},Ur(e,!0)),y)),Lg.renderCallByParent(e,y))}function uE(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e){if(void 0!==r&&!0!==r(t[o]))return;n.push(t[o])}return n}function lE(t,e,r,n,o){if(t*e<t*n||t*e>t*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function sE(t){"@babel/helpers - typeof";return sE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sE(t)}function fE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fE(Object(r),!0).forEach((function(e){hE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hE(t,e,r){var n;return n=function(t,e){if("object"!=sE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=sE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==sE(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yE(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(hr(u)||Ls.isSsr)return function(t,e){return uE(t,e+1)}(o,"number"==typeof u&&hr(u)?u:0);var p=[],h="top"===c||"bottom"===c?"width":"height",y=s&&"width"===h?Bf(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},d=function(t,n){var o=et(l)?l(t.value,n):t.value;return"width"===h?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return dP(n,r)}(Bf(o,{fontSize:e,letterSpacing:r}),y,f):Bf(o,{fontSize:e,letterSpacing:r})[h]},v=o.length>=2?fr(o[1].coordinate-o[0].coordinate):1,m=function(t,e,r){var n="width"===r,o=t.x,i=t.y,a=t.width,c=t.height;return 1===e?{start:n?o:i,end:n?o+a:i+c}:{start:n?o+a:i+c,end:n?o:i}}(i,v,h);return"equidistantPreserveStart"===u?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:uE(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},h=e.coordinate,y=0===l||lE(t,h,p,f,u);y||(l=0,f=c,s+=1),y&&(f=h+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,m,d,o,a):(p="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,o,i){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(i){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=pE(pE({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),lE(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+o),a[c-1]=pE(pE({},s),{},{isShow:!0}))}for(var h=i?c-1:c,y=function(e){var n,i=a[e],c=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var s=t*(i.coordinate-t*c()/2-u);a[e]=i=pE(pE({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=pE(pE({},i),{},{tickCoord:i.coordinate});lE(t,i.tickCoord,c,u,l)&&(u=i.tickCoord+t*(c()/2+o),a[e]=pE(pE({},i),{},{isShow:!0}))},d=0;d<h;d++)y(d);return a}(v,m,d,o,a,"preserveStartEnd"===u):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,c=e.start,u=e.end,l=function(e){var n,l=i[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);i[e]=l=pE(pE({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=pE(pE({},l),{},{tickCoord:l.coordinate});lE(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+o),i[e]=pE(pE({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(v,m,d,o,a),p.filter((function(t){return t.isShow})))}cE.displayName="ReferenceArea",cE.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},cE.renderRect=function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):et(e)?e(r):t.createElement(DO,nE({},r,{className:"recharts-reference-area-rect"}))};var dE=["viewBox"],vE=["viewBox"],mE=["ticks"];function bE(t){"@babel/helpers - typeof";return bE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bE(t)}function gE(){return gE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gE.apply(this,arguments)}function xE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xE(Object(r),!0).forEach((function(e){kE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function OE(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function SE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ME(n.key),n)}}function jE(t,e,r){return e=PE(e),function(t,e){if(e&&("object"===bE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,AE()?Reflect.construct(e,r||[],PE(t).constructor):e.apply(t,r))}function AE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(AE=function(){return!!t})()}function PE(t){return PE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},PE(t)}function EE(t,e){return EE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},EE(t,e)}function kE(t,e,r){return(e=ME(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ME(t){var e=function(t,e){if("object"!=bE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bE(e)?e:String(e)}var TE=function(e){function r(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(e=jE(this,r,[t])).state={fontSize:"",letterSpacing:""},e}var n,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&EE(t,e)}(r,d),n=r,o=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=OE(t,dE),o=this.props,i=o.viewBox,a=OE(o,vE);return!wr(r,i)||!wr(n,a)||!wr(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,h=c.tickSize,y=c.mirror,d=c.tickMargin,v=y?-1:1,m=t.tickSize||h,b=hr(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!y*f)-v*m)-v*d,i=b;break;case"left":n=o=t.coordinate,i=(e=(r=u+ +!y*s)-v*m)-v*d,a=b;break;case"right":n=o=t.coordinate,i=(e=(r=u+ +y*s)+v*m)+v*d,a=b;break;default:e=r=t.coordinate,a=(n=(o=l+ +y*f)+v*m)+v*d,i=b}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var e=this.props,r=e.x,n=e.y,o=e.width,i=e.height,a=e.orientation,c=e.mirror,u=e.axisLine,l=wE(wE(wE({},Ur(this.props,!1)),Ur(u,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var s=+("top"===a&&!c||"bottom"===a&&c);l=wE(wE({},l),{},{x1:r,y1:n+s*i,x2:r+o,y2:n+s*i})}else{var f=+("left"===a&&!c||"right"===a&&c);l=wE(wE({},l),{},{x1:r+f*o,y1:n,x2:r+f*o,y2:n+i})}return t.createElement("line",gE({},l,{className:O("recharts-cartesian-axis-line",He(u,"className"))}))}},{key:"renderTicks",value:function(e,n,o){var i=this,a=this.props,c=a.tickLine,u=a.stroke,l=a.tick,s=a.tickFormatter,f=a.unit,p=yE(wE(wE({},this.props),{},{ticks:e}),n,o),h=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),d=Ur(this.props,!1),v=Ur(l,!1),m=wE(wE({},d),{},{fill:"none"},Ur(c,!1)),b=p.map((function(e,n){var o=i.getTickLineCoord(e),a=o.line,b=o.tick,g=wE(wE(wE(wE({textAnchor:h,verticalAnchor:y},d),{},{stroke:"none",fill:u},v),b),{},{index:n,payload:e,visibleTicksCount:p.length,tickFormatter:s});return t.createElement(Qr,gE({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},kr(i.props,e,n)),c&&t.createElement("line",gE({},m,a,{className:O("recharts-cartesian-axis-tick-line",He(c,"className"))})),l&&r.renderTickItem(l,g,"".concat(et(s)?s(e.value,n):e.value).concat(f||"")))}));return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var e=this,r=this.props,n=r.axisLine,o=r.width,i=r.height,a=r.ticksGenerator,c=r.className;if(r.hide)return null;var u=this.props,l=u.ticks,s=OE(u,mE),f=l;return et(a)&&(f=l&&l.length>0?a(this.props):a(s)),o<=0||i<=0||!f||!f.length?null:t.createElement(Qr,{className:O("recharts-cartesian-axis",c),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),Lg.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(e,r,n){return t.isValidElement(e)?t.cloneElement(e,r):et(e)?e(r):t.createElement(fp,gE({},r,{className:"recharts-cartesian-axis-tick-value"}),n)}}],o&&SE(n.prototype,o),i&&SE(n,i),Object.defineProperty(n,"prototype",{writable:!1}),r}();kE(TE,"displayName","CartesianAxis"),kE(TE,"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 _E=["x1","y1","x2","y2","key"],CE=["offset"];function IE(t){"@babel/helpers - typeof";return IE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},IE(t)}function DE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function NE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?DE(Object(r),!0).forEach((function(e){BE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function BE(t,e,r){var n;return n=function(t,e){if("object"!=IE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=IE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==IE(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RE(){return RE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},RE.apply(this,arguments)}function LE(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var $E=function(e){var r=e.fill;if(!r||"none"===r)return null;var n=e.fillOpacity,o=e.x,i=e.y,a=e.width,c=e.height;return t.createElement("rect",{x:o,y:i,width:a,height:c,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function zE(e,r){var n;if(t.isValidElement(e))n=t.cloneElement(e,r);else if(et(e))n=e(r);else{var o=r.x1,i=r.y1,a=r.x2,c=r.y2,u=r.key,l=LE(r,_E),s=Ur(l,!1);s.offset;var f=LE(s,CE);n=t.createElement("line",RE({},f,{x1:o,y1:i,x2:a,y2:c,fill:"none",key:u}))}return n}function FE(e){var r=e.x,n=e.width,o=e.horizontal,i=void 0===o||o,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var c=a.map((function(t,o){var a=NE(NE({},e),{},{x1:r,y1:t,x2:r+n,y2:t,key:"line-".concat(o),index:o});return zE(i,a)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function UE(e){var r=e.y,n=e.height,o=e.vertical,i=void 0===o||o,a=e.verticalPoints;if(!i||!a||!a.length)return null;var c=a.map((function(t,o){var a=NE(NE({},e),{},{x1:t,y1:r,x2:t,y2:r+n,key:"line-".concat(o),index:o});return zE(i,a)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function qE(e){var r=e.horizontalFill,n=e.fillOpacity,o=e.x,i=e.y,a=e.width,c=e.height,u=e.horizontalPoints,l=e.horizontal;if(!(void 0===l||l)||!r||!r.length)return null;var s=u.map((function(t){return Math.round(t+i-i)})).sort((function(t,e){return t-e}));i!==s[0]&&s.unshift(0);var f=s.map((function(e,u){var l=!s[u+1]?i+c-e:s[u+1]-e;if(l<=0)return null;var f=u%r.length;return t.createElement("rect",{key:"react-".concat(u),y:e,x:o,height:l,width:a,stroke:"none",fill:r[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function WE(e){var r=e.vertical,n=void 0===r||r,o=e.verticalFill,i=e.fillOpacity,a=e.x,c=e.y,u=e.width,l=e.height,s=e.verticalPoints;if(!n||!o||!o.length)return null;var f=s.map((function(t){return Math.round(t+a-a)})).sort((function(t,e){return t-e}));a!==f[0]&&f.unshift(0);var p=f.map((function(e,r){var n=!f[r+1]?a+u-e:f[r+1]-e;if(n<=0)return null;var s=r%o.length;return t.createElement("rect",{key:"react-".concat(r),x:e,y:c,width:n,height:l,stroke:"none",fill:o[s],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var VE=function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return Xb(yE(NE(NE(NE({},TE.defaultProps),r),{},{ticks:Hb(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)},XE=function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return Xb(yE(NE(NE(NE({},TE.defaultProps),r),{},{ticks:Hb(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)},HE={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function KE(e){var r,n,o,i,a,c,u,l,s=zP(),f=FP(),p=h(CP),y=NE(NE({},e),{},{stroke:null!==(r=e.stroke)&&void 0!==r?r:HE.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:HE.fill,horizontal:null!==(o=e.horizontal)&&void 0!==o?o:HE.horizontal,horizontalFill:null!==(i=e.horizontalFill)&&void 0!==i?i:HE.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:HE.vertical,verticalFill:null!==(c=e.verticalFill)&&void 0!==c?c:HE.verticalFill,x:hr(e.x)?e.x:p.left,y:hr(e.y)?e.y:p.top,width:hr(e.width)?e.width:p.width,height:hr(e.height)?e.height:p.height}),d=y.x,v=y.y,m=y.width,b=y.height,g=y.syncWithTicks,x=y.horizontalValues,w=y.verticalValues,O=(u=h(MP),br(u)),S=(l=h(TP),PP(l,(function(t){return IA(t.domain,Number.isFinite)}))||br(l));if(!hr(m)||m<=0||!hr(b)||b<=0||!hr(d)||d!==+d||!hr(v)||v!==+v)return null;var j=y.verticalCoordinatesGenerator||VE,A=y.horizontalCoordinatesGenerator||XE,P=y.horizontalPoints,E=y.verticalPoints;if((!P||!P.length)&&et(A)){var k=x&&x.length,M=A({yAxis:S?NE(NE({},S),{},{ticks:k?x:S.ticks}):void 0,width:s,height:f,offset:p},!!k||g);en(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(IE(M),"]")),Array.isArray(M)&&(P=M)}if((!E||!E.length)&&et(j)){var T=w&&w.length,_=j({xAxis:O?NE(NE({},O),{},{ticks:T?w:O.ticks}):void 0,width:s,height:f,offset:p},!!T||g);en(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(IE(_),"]")),Array.isArray(_)&&(E=_)}return t.createElement("g",{className:"recharts-cartesian-grid"},t.createElement($E,{fill:y.fill,fillOpacity:y.fillOpacity,x:y.x,y:y.y,width:y.width,height:y.height}),t.createElement(FE,RE({},y,{offset:p,horizontalPoints:P,xAxis:O,yAxis:S})),t.createElement(UE,RE({},y,{offset:p,verticalPoints:E,xAxis:O,yAxis:S})),t.createElement(qE,RE({},y,{horizontalPoints:P})),t.createElement(WE,RE({},y,{verticalPoints:E})))}KE.displayName="CartesianGrid";var GE=["type","layout","connectNulls","ref"];function YE(t){"@babel/helpers - typeof";return YE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},YE(t)}function ZE(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function JE(){return JE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},JE.apply(this,arguments)}function QE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?QE(Object(r),!0).forEach((function(e){lk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):QE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ek(t){return function(t){if(Array.isArray(t))return rk(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return rk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rk(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function nk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sk(n.key),n)}}function ok(t,e,r){return e=ak(e),function(t,e){if(e&&("object"===YE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ck(t)}(t,ik()?Reflect.construct(e,r||[],ak(t).constructor):e.apply(t,r))}function ik(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ik=function(){return!!t})()}function ak(t){return ak=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ak(t)}function ck(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uk(t,e){return uk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},uk(t,e)}function lk(t,e,r){return(e=sk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sk(t){var e=function(t,e){if("object"!=YE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=YE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==YE(e)?e:String(e)}var fk=function(e){function r(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return lk(ck(t=ok(this,r,[].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),lk(ck(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),lk(ck(t),"getStrokeDasharray",(function(e,n,o){var i=o.reduce((function(t,e){return t+e}));if(!i)return t.generateSimpleStrokeDasharray(n,e);for(var a=Math.floor(e/i),c=e%i,u=n-e,l=[],s=0,f=0;s<o.length;f+=o[s],++s)if(f+o[s]>c){l=[].concat(ek(o.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(ek(r.repeat(o,a)),ek(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),lk(ck(t),"id",vr("recharts-line-")),lk(ck(t),"pathRef",(function(e){t.mainCurve=e})),lk(ck(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),lk(ck(t),"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}var o,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uk(t,e)}(r,n),o=r,i=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(e,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.points,i=n.xAxis,a=n.yAxis,c=n.layout,u=Lr(n.children,kb);if(!u)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:zb(t.payload,e)}},s={clipPath:e?"url(#clipPath-".concat(r,")"):null};return t.createElement(Qr,s,u.map((function(e){return t.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:c,dataPointFormatter:l})})))}},{key:"renderDots",value:function(e,n,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,c=i.points,u=i.dataKey,l=Ur(this.props,!1),s=Ur(a,!0),f=c.map((function(t,e){var n=tk(tk(tk({key:"dot-".concat(e),r:3},l),s),{},{value:t.value,dataKey:u,cx:t.x,cy:t.y,index:e,payload:t.payload});return r.renderDotItem(a,n)})),p={clipPath:e?"url(#clipPath-".concat(n?"":"dots-").concat(o,")"):null};return t.createElement(Qr,JE({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(e,r,n,o){var i=this.props,a=i.type,c=i.layout,u=i.connectNulls;i.ref;var l=ZE(i,GE),s=tk(tk(tk({},Ur(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:r?"url(#clipPath-".concat(n,")"):null,points:e},o),{},{type:a,layout:c,connectNulls:u});return t.createElement(xx,JE({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,r){var n=this,o=this.props,i=o.points,a=o.strokeDasharray,c=o.isAnimationActive,u=o.animationBegin,l=o.animationDuration,s=o.animationEasing,f=o.animationId,p=o.animateNewValues,h=o.width,y=o.height,d=this.state,v=d.prevPoints,m=d.totalLength;return t.createElement(SO,{begin:u,duration:l,isActive:c,easing:s,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(v){var c=v.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],i=gr(n.x,t.x),a=gr(n.y,t.y);return tk(tk({},t),{},{x:i(o),y:a(o)})}if(p){var u=gr(2*h,t.x),l=gr(y/2,t.y);return tk(tk({},t),{},{x:u(o),y:l(o)})}return tk(tk({},t),{},{x:t.x,y:t.y})}));return n.renderCurveStatically(u,e,r)}var l,s=gr(0,m)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=n.getStrokeDasharray(s,m,f)}else l=n.generateSimpleStrokeDasharray(m,s);return n.renderCurveStatically(i,e,r,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,c=i.totalLength;return o&&n&&n.length&&(!a&&c>0||!mm(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var e,r=this.props,n=r.hide,o=r.dot,i=r.points,a=r.className,c=r.xAxis,u=r.yAxis,l=r.top,s=r.left,f=r.width,p=r.height,h=r.isAnimationActive,y=r.id;if(n||!i||!i.length)return null;var d=this.state.isAnimationFinished,v=1===i.length,m=O("recharts-line",a),b=c&&c.allowDataOverflow,g=u&&u.allowDataOverflow,x=b||g,w=Ke(y)?this.id:y,S=null!==(e=Ur(o,!1))&&void 0!==e?e:{r:3,strokeWidth:2},j=S.r,A=void 0===j?3:j,P=S.strokeWidth,E=void 0===P?2:P,k=(function(t){return t&&"object"===Cr(t)&&"cx"in t&&"cy"in t&&"r"in t}(o)?o:{}).clipDot,M=void 0===k||k,T=2*A+E;return t.createElement(Qr,{className:m},b||g?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(w)},t.createElement("rect",{x:b?s:s-f/2,y:g?l:l-p/2,width:b?f:2*f,height:g?p:2*p})),!M&&t.createElement("clipPath",{id:"clipPath-dots-".concat(w)},t.createElement("rect",{x:s-T/2,y:l-T/2,width:f+T,height:p+T}))):null,!v&&this.renderCurve(x,w),this.renderErrorBar(x,w),(v||o)&&this.renderDots(x,M,w),(!h||d)&&Qg.renderCallByParent(this.props,i))}}],a=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(ek(t),[0]):t,n=[],o=0;o<e;++o)n=[].concat(ek(n),ek(r));return n}},{key:"renderDotItem",value:function(e,r){var n;if(t.isValidElement(e))n=t.cloneElement(e,r);else if(et(e))n=e(r);else{var o=O("recharts-line-dot",e?e.className:"");n=t.createElement(WO,JE({},r,{className:o}))}return n}}],i&&nk(o.prototype,i),a&&nk(o,a),Object.defineProperty(o,"prototype",{writable:!1}),r}();function pk(){return pk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pk.apply(this,arguments)}lk(fk,"displayName","Line"),lk(fk,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ls.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),lk(fk,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,o=t.xAxisTicks,i=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return tk({points:u.map((function(t,e){var u=zb(t,a);return"horizontal"===s?{x:rg({axis:r,ticks:o,bandSize:c,entry:t,index:e}),y:Ke(u)?null:n.scale(u),value:u,payload:t}:{x:Ke(u)?null:r.scale(u),y:rg({axis:n,ticks:i,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var hk=function(e){var r=e.xAxisId,n=zP(),o=FP(),i=LP(r);return null==i?null:t.createElement(TE,pk({},i,{className:O("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:o},ticksGenerator:function(t){return Hb(t,!0)}}))};function yk(){return yk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yk.apply(this,arguments)}hk.displayName="XAxis",hk.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};var dk=function(e){var r=e.yAxisId,n=zP(),o=FP(),i=$P(r);return null==i?null:t.createElement(TE,yk({},i,{className:O("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:o},ticksGenerator:function(t){return Hb(t,!0)}}))};function vk(t){return function(t){if(Array.isArray(t))return mk(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return mk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mk(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}dk.displayName="YAxis",dk.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};var bk=function(t,e,r,n,o){var i=Lr(t,GP),a=Lr(t,eE),c=[].concat(vk(i),vk(a)),u=Lr(t,cE),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&bA(e.props,"extendDomain")&&hr(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var p="".concat(s,"1"),h="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&bA(e.props,"extendDomain")&&hr(e.props[p])&&hr(e.props[h])){var n=e.props[p],o=e.props[h];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return hr(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},gk={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,o,i,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,o),!0;case 5:return s.fn.call(s.context,e,n,o,i),!0;case 6:return s.fn.call(s.context,e,n,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,h=s.length;for(l=0;l<h;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==e||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||o&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(gk);var xk=new(m(gk.exports)),wk="recharts.syncMouseEvents";function Ok(t){"@babel/helpers - typeof";return Ok="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ok(t)}function Sk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ak(n.key),n)}}function jk(t,e,r){return(e=Ak(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ak(t){var e=function(t,e){if("object"!=Ok(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ok(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ok(e)?e:String(e)}var Pk=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),jk(this,"activeIndex",0),jk(this,"coordinateList",[]),jk(this,"layout","horizontal")}var e,r,n;return e=t,r=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,o=t.container,i=void 0===o?null:o,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=i?i:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f: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(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=o+this.offset.top+i/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}],r&&Sk(e.prototype,r),n&&Sk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ek(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[gg(e,r,n,o),gg(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function kk(t,e,r){var n,o,i,a;if("horizontal"===t)i=n=e.x,o=r.top,a=r.top+r.height;else if("vertical"===t)a=o=e.y,n=r.left,i=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return Ek(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=gg(c,u,l,f),h=gg(c,u,s,f);n=p.x,o=p.y,i=h.x,a=h.y}return[{x:n,y:o},{x:i,y:a}]}function Mk(t){"@babel/helpers - typeof";return Mk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mk(t)}function Tk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _k(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Tk(Object(r),!0).forEach((function(e){Ck(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ck(t,e,r){var n;return n=function(t,e){if("object"!=Mk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Mk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Mk(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ik(t){var r,n=t.element,o=t.tooltipEventType,i=t.isActive,a=t.activeCoordinate,c=t.activePayload,u=t.offset,l=t.activeTooltipIndex,s=t.tooltipAxisBandSize,h=t.layout,y=t.chartName;if(!n||!n.props.cursor||!i||!a||"ScatterChart"!==y&&"axis"!==o)return null;var d=xx;if("ScatterChart"===y)r=a,d=JO;else if("BarChart"===y)r=function(t,e,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-o,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(h,a,u,s),d=DO;else if("radial"===h){var v=Ek(a),m=v.cx,b=v.cy,g=v.radius;r={cx:m,cy:b,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:g,outerRadius:g},d=ux}else r={points:kk(h,a,u)},d=xx;var x=_k(_k(_k(_k({stroke:"#ccc",pointerEvents:"none"},u),r),Ur(n.props.cursor,!1)),{},{payload:c,payloadIndex:l,className:"recharts-tooltip-cursor"});return e(n.props.cursor)?f(n.props.cursor,x):p(d,x)}var Dk=["item"],Nk=["children","className","width","height","style","compact","title","desc"];function Bk(t){"@babel/helpers - typeof";return Bk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bk(t)}function Rk(){return Rk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Rk.apply(this,arguments)}function Lk(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||Hk(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $k(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function zk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Jk(n.key),n)}}function Fk(t,e,r){return e=qk(e),function(t,e){if(e&&("object"===Bk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Wk(t)}(t,Uk()?Reflect.construct(e,r||[],qk(t).constructor):e.apply(t,r))}function Uk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Uk=function(){return!!t})()}function qk(t){return qk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qk(t)}function Wk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vk(t,e){return Vk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vk(t,e)}function Xk(t){return function(t){if(Array.isArray(t))return Kk(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Hk(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hk(t,e){if(t){if("string"==typeof t)return Kk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kk(t,e):void 0}}function Kk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Gk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Yk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gk(Object(r),!0).forEach((function(e){Zk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zk(t,e,r){return(e=Jk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jk(t){var e=function(t,e){if("object"!=Bk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Bk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Bk(e)?e:String(e)}var Qk={xAxis:["bottom","top"],yAxis:["left","right"]},tM={width:"100%",height:"100%"},eM={x:0,y:0};function rM(t){return t}var nM=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,o=e.dataEndIndex,i=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(Xk(t),Xk(r)):t}),[]);return i.length>0?i:t&&t.length&&hr(n)&&hr(o)?t.slice(n,o+1):[]};function oM(t){return"number"===t?[0,"auto"]:void 0}var iM=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=nM(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=xr(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(Xk(o),[sg(c,l)]):o}),[])},aM=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(fr(s-l)!==fr(f-s)){var h=[];if(fr(f-s)===fr(c[1]-c[0])){p=f;var y=s+c[1]-c[0];h[0]=Math.min(y,(y+l)/2),h[1]=Math.max(y,(y+l)/2)}else{p=l;var d=f+c[1]-c[0];h[0]=Math.min(s,(d+s)/2),h[1]=Math.max(s,(d+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[u].index;break}}else{var m=Math.min(l,f),b=Math.max(l,f);if(t>(m+s)/2&&t<=(b+s)/2){i=n[u].index;break}}}else for(var g=0;g<a;g++)if(0===g&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g>0&&g<a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i}(i,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=iM(t,e,l,s),p=function(t,e,r,n){var o=e.find((function(t){return t&&t.index===r}));if(o){if("horizontal"===t)return{x:o.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=n.radius;return Yk(Yk(Yk({},n),gg(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return Yk(Yk(Yk({},n),gg(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return eM}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},cM=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=Vb(l,o);return r.reduce((function(e,r){var h,y=r.props,d=y.type,v=y.dataKey,m=y.allowDataOverflow,b=y.allowDuplicatedCategory,g=y.scale,x=y.ticks,w=y.includeHidden,O=r.props[i];if(e[O])return e;var S,j,A,P=nM(t.data,{graphicalItems:n.filter((function(t){return t.props[i]===O})),dataStartIndex:c,dataEndIndex:u}),E=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&hr(n)&&hr(o))return!0}return!1})(r.props.domain,m,d)&&(S=cg(r.props.domain,null,m),!p||"number"!==d&&"auto"===g||(A=Fb(P,v,"category")));var k=oM(d);if(!S||0===S.length){var M,T=null!==(M=r.props.domain)&&void 0!==M?M:k;if(v){if(S=Fb(P,v,d),"category"===d&&p){var _=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);b&&_?(j=S,S=Vj(0,E)):b||(S=lg(T,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(Xk(t),[e])}),[]))}else if("category"===d)S=b?S.filter((function(t){return""!==t&&!Ke(t)})):lg(T,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||Ke(e)?t:[].concat(Xk(t),[e])}),[]);else if("number"===d){var C=function(t,e,r,n,o){var i=e.map((function(e){return qb(t,e,r,o,n)})).filter((function(t){return!Ke(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(P,n.filter((function(t){return t.props[i]===O&&(w||!t.props.hide)})),v,o,l);C&&(S=C)}!p||"number"!==d&&"auto"===g||(A=Fb(P,v,"category"))}else S=p?Vj(0,E):a&&a[O]&&a[O].hasStack&&"number"===d?"expand"===f?[0,1]:og(a[O].stackGroups,c,u):Wb(P,n.filter((function(t){return t.props[i]===O&&(w||!t.props.hide)})),d,l,!0);if("number"===d)S=bk(s,S,O,o,x),T&&(S=cg(T,S,m));else if("category"===d&&T){var I=T;S.every((function(t){return I.indexOf(t)>=0}))&&(S=I)}}return Yk(Yk({},e),{},Zk({},O,Yk(Yk({},r.props),{},{axisType:o,domain:S,categoricalDomain:A,duplicateDomain:j,originalDomain:null!==(h=r.props.domain)&&void 0!==h?h:k,isCategorical:p,layout:l})))}),{})},uM=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=Lr(l,o),p={};return f&&f.length?p=cM(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):i&&i.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=nM(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,h=Vb(l,o),y=-1;return r.reduce((function(t,e){var d,v=e.props[i],m=oM("number");return t[v]?t:(y++,h?d=Vj(0,p):a&&a[v]&&a[v].hasStack?(d=og(a[v].stackGroups,c,u),d=bk(s,d,v,o)):(d=cg(m,Wb(f,r.filter((function(t){return t.props[i]===v&&!t.props.hide})),"number",l),n.defaultProps.allowDataOverflow),d=bk(s,d,v,o)),Yk(Yk({},t),{},Zk({},v,Yk(Yk({axisType:o},n.defaultProps),{},{hide:!0,orientation:He(Qk,"".concat(o,".").concat(y%2),null),domain:d,originalDomain:m,isCategorical:h,layout:l}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},lM=function(t){var e=t.children,r=t.defaultShowTooltip,n=$r(e,sA),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},sM=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},fM=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),o=void 0===n?{}:n,i=t.yAxisMap,a=void 0===i?{}:i,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=$r(l,sA),p=$r(l,fl),h=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:Yk(Yk({},t),{},Zk({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),y=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:Yk(Yk({},t),{},Zk({},n,He(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),d=Yk(Yk({},y),h),v=d.bottom;f&&(d.bottom+=f.props.height||sA.defaultProps.height),p&&e&&(d=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=Ib({children:o,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,h=u.verticalAlign,y=u.layout;if(("vertical"===y||"horizontal"===y&&"middle"===h)&&"center"!==p&&hr(t[p]))return Bb(Bb({},t),{},Rb({},p,t[p]+(s||0)));if(("horizontal"===y||"vertical"===y&&"center"===p)&&"middle"!==h&&hr(t[h]))return Bb(Bb({},t),{},Rb({},h,t[h]+(f||0)))}return t}(d,0,r,e));var m=c-d.left-d.right,b=u-d.top-d.bottom;return Yk(Yk({brushBottom:v},d),{},{width:Math.max(m,0),height:Math.max(b,0)})},pM=function(r){var n,o=r.chartName,i=r.GraphicalChild,a=r.defaultTooltipEventType,c=void 0===a?"axis":a,u=r.validateTooltipEventTypes,l=void 0===u?["axis"]:u,s=r.axisComponents,p=r.legendContent,h=r.formatAxisMap,y=r.defaultProps,v=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,u=t.barSize,l=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,y=sM(l),d=y.numericAxisName,v=y.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=Dr(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),b=m&&function(t){var e=t.barSize,r=t.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var o={},i=Object.keys(n),a=0,c=i.length;a<c;a++)for(var u=n[i[a]].stackGroups,l=Object.keys(u),s=0,f=l.length;s<f;s++){var p=u[l[s]],h=p.items,y=p.cateAxisId,d=h.filter((function(t){return Dr(t.type).indexOf("Bar")>=0}));if(d&&d.length){var v=d[0].props.barSize,m=d[0].props[y];o[m]||(o[m]=[]),o[m].push({item:d[0],stackList:d.slice(1),barSize:Ke(v)?e:v})}}return o}({barSize:u,stackGroups:n}),g=[];return r.forEach((function(r,u){var y=nM(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),m=r.props,x=m.dataKey,w=m.maxBarSize,O=r.props["".concat(d,"Id")],S=r.props["".concat(v,"Id")],j=s.reduce((function(t,n){var o,i,a=e["".concat(n.axisType,"Map")],c=r.props["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?Ob(!1,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==r||null===(i=r.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):Ob(!1));var u=a[c];return Yk(Yk({},t),{},Zk(Zk({},n.axisType,u),"".concat(n.axisType,"Ticks"),Hb(u)))}),{}),A=j[v],P=j["".concat(v,"Ticks")],E=n&&n[O]&&n[O].hasStack&&function(t,e){var r=t.props.stackId;if(yr(r)){var n=e[r];if(n){var o=n.items.indexOf(t);return o>=0?n.stackedData[o]:null}}return null}(r,n[O].stackGroups),k=Dr(r.type).indexOf("Bar")>=0,M=ug(A,P),T=[];if(k){var _,C,I=Ke(w)?h:w,D=null!==(_=null!==(C=ug(A,P,!0))&&void 0!==C?C:I)&&void 0!==_?_:0;T=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,c=i.length;if(c<1)return null;var u,l=mr(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,h=i.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(c-1)*l)>=n&&(h-=(c-1)*l,l=0),h>=n&&p>0&&(f=!0,h=c*(p*=.9));var y={offset:((n-h)/2>>0)-l,size:0};u=i.reduce((function(t,e){var r={item:e.item,position:{offset:y.offset+y.size+l,size:f?p:e.barSize}},n=[].concat(Lb(t),[r]);return y=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:y})})),n}),s)}else{var d=mr(r,n,0,!0);n-2*d-(c-1)*l<=0&&(l=0);var v=(n-2*d-(c-1)*l)/c;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;u=i.reduce((function(t,e,r){var n=[].concat(Lb(t),[{item:e.item,position:{offset:d+(v+l)*r+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return u}({barGap:f,barCategoryGap:p,bandSize:D!==M?D:M,sizeList:b[S],maxBarSize:I}),D!==M&&(T=T.map((function(t){return Yk(Yk({},t),{},{position:Yk(Yk({},t.position),{},{offset:t.position.offset-D/2})})})))}var N,B,R=r&&r.type&&r.type.getComposedData;R&&g.push({props:Yk(Yk({},R(Yk(Yk({},j),{},{displayedData:y,props:t,dataKey:x,item:r,bandSize:M,barPosition:T,offset:o,stackedData:E,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},Zk(Zk(Zk({key:r.key||"item-".concat(u)},d,j[d]),v,j[v]),"animationId",i)),childIndex:(N=r,B=t.children,Rr(B).indexOf(N)),item:r})})),g},m=function(t,e){var r=t.props,n=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!zr({props:r}))return null;var u=r.children,l=r.layout,f=r.stackOffset,p=r.data,y=r.reverseStackOrder,d=sM(l),m=d.numericAxisName,b=d.cateAxisName,g=Lr(u,i),x=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o=e.props,i=o.stackId;if(o.hide)return t;var a=e.props[r],c=t[a]||{hasStack:!1,stackGroups:{}};if(yr(i)){var u=c.stackGroups[i]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(e),c.hasStack=!0,c.stackGroups[i]=u}else c.stackGroups[vr("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return Bb(Bb({},t),{},Rb({},a,c))}),{});return Object.keys(a).reduce((function(e,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,i){var a=c.stackGroups[i];return Bb(Bb({},e),{},Rb({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:tg(t,a.items,o)}))}),{})),Bb(Bb({},e),{},Rb({},i,c))}),{})}(p,g,"".concat(m,"Id"),"".concat(b,"Id"),f,y),w=s.reduce((function(t,e){var o="".concat(e.axisType,"Map");return Yk(Yk({},t),{},Zk({},o,uM(r,Yk(Yk({},e),{},{graphicalItems:g,stackGroups:e.axisType===m&&x,dataStartIndex:n,dataEndIndex:a}))))}),{}),O=fM(Yk(Yk({},w),{},{props:r,graphicalItems:g}),null==e?void 0:e.legendBBox);Object.keys(w).forEach((function(t){w[t]=h(r,w[t],O,t.replace("Map",""),o)}));var S,j,A=w["".concat(b,"Map")],P=(S=br(A),{tooltipTicks:j=Hb(S,!1,!0),orderedTooltipTicks:ss(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:ug(S,j)}),E=v(r,Yk(Yk({},w),{},{dataStartIndex:n,dataEndIndex:a,updateId:c,graphicalItems:g,stackGroups:x,offset:O}));return Yk(Yk({formattedGraphicalItems:E,graphicalItems:g,offset:O,stackGroups:x},P),w)};return n=function(e){function r(e){var n,i,a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),Zk(Wk(a=Fk(this,r,[e])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Zk(Wk(a),"accessibilityManager",new Pk),Zk(Wk(a),"handleLegendBBoxUpdate",(function(t){if(t){var e=a.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;a.setState(Yk({legendBBox:t},m({props:a.props,dataStartIndex:r,dataEndIndex:n,updateId:o},Yk(Yk({},a.state),{},{legendBBox:t}))))}})),Zk(Wk(a),"handleReceiveSyncEvent",(function(t,e,r){if(a.props.syncId===t){if(r===a.eventEmitterSymbol&&"function"!=typeof a.props.syncMethod)return;a.applySyncEvent(e)}})),Zk(Wk(a),"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==a.state.dataStartIndex||r!==a.state.dataEndIndex){var n=a.state.updateId;a.setState((function(){return Yk({dataStartIndex:e,dataEndIndex:r},m({props:a.props,dataStartIndex:e,dataEndIndex:r,updateId:n},a.state))})),a.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),Zk(Wk(a),"handleMouseEnter",(function(t){var e=a.getMouseInfo(t);if(e){var r=Yk(Yk({},e),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseEnter;et(n)&&n(r,t)}})),Zk(Wk(a),"triggeredAfterMouseMove",(function(t){var e=a.getMouseInfo(t),r=e?Yk(Yk({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseMove;et(n)&&n(r,t)})),Zk(Wk(a),"handleItemMouseEnter",(function(t){a.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),Zk(Wk(a),"handleItemMouseLeave",(function(){a.setState((function(){return{isTooltipActive:!1}}))})),Zk(Wk(a),"handleMouseMove",(function(t){t.persist(),a.throttleTriggeredAfterMouseMove(t)})),Zk(Wk(a),"handleMouseLeave",(function(t){a.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};a.setState(e),a.triggerSyncEvent(e);var r=a.props.onMouseLeave;et(r)&&r(e,t)})),Zk(Wk(a),"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&Ir[e]?Ir[e]:null}(t),n=He(a.props,"".concat(r));r&&et(n)&&n(null!==(e=/.*touch.*/i.test(r)?a.getMouseInfo(t.changedTouches[0]):a.getMouseInfo(t))&&void 0!==e?e:{},t)})),Zk(Wk(a),"handleClick",(function(t){var e=a.getMouseInfo(t);if(e){var r=Yk(Yk({},e),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onClick;et(n)&&n(r,t)}})),Zk(Wk(a),"handleMouseDown",(function(t){var e=a.props.onMouseDown;et(e)&&e(a.getMouseInfo(t),t)})),Zk(Wk(a),"handleMouseUp",(function(t){var e=a.props.onMouseUp;et(e)&&e(a.getMouseInfo(t),t)})),Zk(Wk(a),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),Zk(Wk(a),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.handleMouseDown(t.changedTouches[0])})),Zk(Wk(a),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.handleMouseUp(t.changedTouches[0])})),Zk(Wk(a),"triggerSyncEvent",(function(t){void 0!==a.props.syncId&&xk.emit(wk,a.props.syncId,t,a.eventEmitterSymbol)})),Zk(Wk(a),"applySyncEvent",(function(t){var e=a.props,r=e.layout,n=e.syncMethod,o=a.state.updateId,i=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)a.setState(Yk({dataStartIndex:i,dataEndIndex:c},m({props:a.props,dataStartIndex:i,dataEndIndex:c,updateId:o},a.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=a.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var y=0;y<h.length;y++)if(h[y].value===t.activeLabel){s=y;break}}var d=Yk(Yk({},p),{},{x:p.left,y:p.top}),v=Math.min(u,d.x+d.width),b=Math.min(l,d.y+d.height),g=h[s]&&h[s].value,x=iM(a.state,a.props.data,s),w=h[s]?{x:"horizontal"===r?h[s].coordinate:v,y:"horizontal"===r?b:h[s].coordinate}:eM;a.setState(Yk(Yk({},t),{},{activeLabel:g,activeCoordinate:w,activePayload:x,activeTooltipIndex:s}))}else a.setState(t)})),Zk(Wk(a),"renderCursor",(function(e){var r,n=a.state,i=n.isTooltipActive,c=n.activeCoordinate,u=n.activePayload,l=n.offset,s=n.activeTooltipIndex,f=n.tooltipAxisBandSize,p=a.getTooltipEventType(),h=null!==(r=e.props.active)&&void 0!==r?r:i,y=a.props.layout,d=e.key||"_recharts-cursor";return t.createElement(Ik,{key:d,activeCoordinate:c,activePayload:u,activeTooltipIndex:s,chartName:o,element:e,isActive:h,layout:y,offset:l,tooltipAxisBandSize:f,tooltipEventType:p})})),Zk(Wk(a),"renderPolarAxis",(function(t,e,r){var n=He(t,"type.axisType"),o=He(a.state,"".concat(n,"Map")),i=o&&o[t.props["".concat(n,"Id")]];return f(t,Yk(Yk({},i),{},{className:n,key:t.key||"".concat(e,"-").concat(r),ticks:Hb(i,!0)}))})),Zk(Wk(a),"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,o=e.polarRadius,i=a.state,c=i.radiusAxisMap,u=i.angleAxisMap,l=br(c),s=br(u),p=s.cx,h=s.cy,y=s.innerRadius,d=s.outerRadius;return f(t,{polarAngles:Array.isArray(n)?n:Hb(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(o)?o:Hb(l,!0).map((function(t){return t.coordinate})),cx:p,cy:h,innerRadius:y,outerRadius:d,key:t.key||"polar-grid",radialLines:r})})),Zk(Wk(a),"renderLegend",(function(){var t=a.state.formattedGraphicalItems,e=a.props,r=e.children,n=e.width,o=e.height,i=a.props.margin||{},c=n-(i.left||0)-(i.right||0),u=Ib({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:p});if(!u)return null;var l=u.item,s=$k(u,Dk);return f(l,Yk(Yk({},s),{},{chartWidth:n,chartHeight:o,margin:i,onBBoxUpdate:a.handleLegendBBoxUpdate}))})),Zk(Wk(a),"renderTooltip",(function(){var t,e=a.props,r=e.children,n=e.accessibilityLayer,o=$r(r,Ys);if(!o)return null;var i=a.state,c=i.isTooltipActive,u=i.activeCoordinate,l=i.activePayload,s=i.activeLabel,p=i.offset,h=null!==(t=o.props.active)&&void 0!==t?t:c;return f(o,{viewBox:Yk(Yk({},p),{},{x:p.left,y:p.top}),active:h,label:s,payload:h?l:[],coordinate:u,accessibilityLayer:n})})),Zk(Wk(a),"renderBrush",(function(t){var e=a.props,r=e.margin,n=e.data,o=a.state,i=o.offset,c=o.dataStartIndex,u=o.dataEndIndex,l=o.updateId;return f(t,{key:t.key||"_recharts-brush",onChange:Gb(a.handleBrushChange,t.props.onChange),data:n,x:hr(t.props.x)?t.props.x:i.left,y:hr(t.props.y)?t.props.y:i.top+i.height+i.brushBottom-(r.bottom||0),width:hr(t.props.width)?t.props.width:i.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),Zk(Wk(a),"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=Wk(a).clipPathId,o=a.state,i=o.xAxisMap,c=o.yAxisMap,u=o.offset,l=t.props,s=l.xAxisId,p=l.yAxisId;return f(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:i[s],yAxis:c[p],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:n})})),Zk(Wk(a),"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,o=t.basePoint,i=t.childIndex,a=t.isRange,c=[],u=e.props.key,l=e.item.props,s=l.activeDot,f=Yk(Yk({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:Ub(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(u,"-activePoint-").concat(i)},Ur(s,!1)),Er(s));return c.push(r.renderActiveDot(s,f)),o?c.push(r.renderActiveDot(s,Yk(Yk({},f),{},{cx:o.x,cy:o.y,key:"".concat(u,"-basePoint-").concat(i)}))):a&&c.push(null),c})),Zk(Wk(a),"renderGraphicChild",(function(t,e,r){var n=a.filterFormatItem(t,e,r);if(!n)return null;var o=a.getTooltipEventType(),i=a.state,c=i.isTooltipActive,u=i.tooltipAxis,l=i.activeTooltipIndex,s=i.activeLabel,p=$r(a.props.children,Ys),h=n.props,y=h.points,d=h.isRange,v=h.baseLine,m=n.item.props,b=m.activeDot,g=m.hide,x=m.activeBar,w=m.activeShape,O=Boolean(!g&&c&&p&&(b||x||w)),S={};"axis"!==o&&p&&"click"===p.props.trigger?S={onClick:Gb(a.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(S={onMouseLeave:Gb(a.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:Gb(a.handleItemMouseEnter,t.props.onMouseEnter)});var j=f(t,Yk(Yk({},n.props),S));if(O){if(!(l>=0)){var A,P=(null!==(A=a.getItemByXY(a.state.activeCoordinate))&&void 0!==A?A:{graphicalItem:j}).graphicalItem,E=P.item,k=void 0===E?t:E,M=P.childIndex,T=Yk(Yk(Yk({},n.props),S),{},{activeIndex:M});return[f(k,T),null,null]}var _,C;if(u.dataKey&&!u.allowDuplicatedCategory){var I="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());_=xr(y,I,s),C=d&&v&&xr(v,I,s)}else _=null==y?void 0:y[l],C=d&&v&&v[l];if(w||x){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[f(t,Yk(Yk(Yk({},n.props),S),{},{activeIndex:D})),null,null]}if(!Ke(_))return[j].concat(Xk(a.renderActivePoints({item:n,activePoint:_,basePoint:C,childIndex:l,isRange:d})))}return d?[j,null,null]:[j,null]})),Zk(Wk(a),"renderCustomized",(function(t,e,r){return f(t,Yk(Yk({key:"recharts-customized-".concat(r)},a.props),a.state))})),Zk(Wk(a),"renderMap",{CartesianGrid:{handler:rM,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:rM},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:rM},YAxis:{handler:rM},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(n=e.id)&&void 0!==n?n:vr("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=xf(a.triggeredAfterMouseMove,null!==(i=e.throttleDelay)&&void 0!==i?i:1e3/60),a.state={},a}var n,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vk(t,e)}(r,d),n=r,i=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=$r(e,Ys);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=iM(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=Yk(Yk({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(h),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(t){qr([$r(t.children,Ys)],[$r(this.props.children,Ys)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=$r(this.props.children,Ys);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return l.indexOf(e)>=0?e:c}return c}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),o={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(t.pageX-o.left),chartY:Math.round(t.pageY-o.top)},a=n.width/r.offsetWidth||1,c=this.inRange(i.chartX,i.chartY,a);if(!c)return null;var u=this.state,l=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&s){var f=br(l).scale,p=br(s).scale,h=f&&f.invert?f.invert(i.chartX):null,y=p&&p.invert?p.invert(i.chartY):null;return Yk(Yk({},i),{},{xValue:h,yValue:y})}var d=aM(this.state,this.props.data,this.props.layout,c);return d?Yk(Yk({},i),d):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=br(u);return Sg({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=$r(t,Ys),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),Yk(Yk({},Er(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){xk.on(wk,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){xk.removeListener(wk,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===t||a.props.key===t.key||e===Dr(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,r=this.state.offset,n=r.left,o=r.top,i=r.height,a=r.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:n,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=Lk(e,2),n=r[0],o=r[1];return Yk(Yk({},t),{},Zk({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=Lk(e,2),n=r[0],o=r[1];return Yk(Yk({},t),{},Zk({},n,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],c=a.props,u=a.item,l=Dr(u.type);if("Bar"===l){var s=(c.data||[]).find((function(e){return CO(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===l){var f=(c.data||[]).find((function(e){return Sg(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(mj(a,n)||bj(a,n)||gj(a,n)){var p=Sj({graphicalItem:a,activeTooltipItem:n,itemData:u.props.data}),h=void 0===u.props.activeIndex?p:u.props.activeIndex;return{graphicalItem:Yk(Yk({},a),{},{childIndex:h}),payload:gj(a,n)?u.props.data[p]:a.props.data[p]}}}return null}},{key:"render",value:function(){var e,r=this;if(!zr(this))return null;var n,o,i=this.props,a=i.children,c=i.className,u=i.width,l=i.height,s=i.style,f=i.compact,p=i.title,h=i.desc,y=$k(i,Nk),d=Ur(y,!1);if(f)return t.createElement(Gr,Rk({},d,{width:u,height:l,title:p,desc:h}),this.renderClipPath(),Vr(a,this.renderMap));this.props.accessibilityLayer&&(d.tabIndex=null!==(n=this.props.tabIndex)&&void 0!==n?n:0,d.role=null!==(o=this.props.role)&&void 0!==o?o:"application",d.onKeyDown=function(t){r.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){r.accessibilityManager.focus()});var v=this.parseEventsOfWrapper();return t.createElement(BP,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement("div",Rk({className:O("recharts-wrapper",c),style:Yk({position:"relative",cursor:"default",width:u,height:l},s)},v,{ref:function(t){r.container=t},role:null!==(e=d.role)&&void 0!==e?e:"region"}),t.createElement(Gr,Rk({},d,{width:u,height:l,title:p,desc:h,style:tM}),this.renderClipPath(),Vr(a,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&zk(n.prototype,i),a&&zk(n,a),Object.defineProperty(n,"prototype",{writable:!1}),r}(),Zk(n,"displayName",o),Zk(n,"defaultProps",Yk({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},y)),Zk(n,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var p=lM(t);return Yk(Yk(Yk({},p),{},{updateId:0},m(Yk(Yk({props:t},p),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(r!==e.prevDataKey||n!==e.prevData||i!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!wr(l,e.prevMargin)){var h=lM(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},d=Yk(Yk({},aM(e,n,c)),{},{updateId:e.updateId+1}),v=Yk(Yk(Yk({},h),y),d);return Yk(Yk(Yk({},v),m(Yk({props:t},v),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(!qr(o,e.prevChildren)){var b,g,x,w,O=$r(o,sA),S=O&&null!==(b=null===(g=O.props)||void 0===g?void 0:g.startIndex)&&void 0!==b?b:s,j=O&&null!==(x=null===(w=O.props)||void 0===w?void 0:w.endIndex)&&void 0!==x?x:f,A=S!==s||j!==f,P=!Ke(n)&&!A?e.updateId:e.updateId+1;return Yk(Yk({updateId:P},m(Yk(Yk({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:j}),e)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:j})}return null})),Zk(n,"renderActiveDot",(function(r,n){var o;return o=e(r)?f(r,n):et(r)?r(n):t.createElement(WO,n),t.createElement(Qr,{className:"recharts-active-dot",key:n.key},o)})),n},hM=pM({chartName:"LineChart",GraphicalChild:fk,axisComponents:[{axisType:"xAxis",AxisComp:hk},{axisType:"yAxis",AxisComp:dk}],formatAxisMap:fP}),yM=pM({chartName:"BarChart",GraphicalChild:oP,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:hk},{axisType:"yAxis",AxisComp:dk}],formatAxisMap:fP}),dM=pM({chartName:"PieChart",GraphicalChild:Bj,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:RS},{axisType:"radiusAxis",AxisComp:SS}],formatAxisMap:function(t,e,r,n,o){var i=t.width,a=t.height,c=t.startAngle,u=t.endAngle,l=mr(t.cx,i,i/2),s=mr(t.cy,a,a/2),f=xg(i,a,r),p=mr(t.innerRadius,f,0),h=mr(t.outerRadius,f,.8*f);return Object.keys(e).reduce((function(t,r){var i,a=e[r],f=a.domain,y=a.reversed;if(Ke(a.range))"angleAxis"===n?i=[c,u]:"radiusAxis"===n&&(i=[p,h]),y&&(i=[i[1],i[0]]);else{var d=dg(i=a.range,2);c=d[0],u=d[1]}var v=Yb(a,o),m=v.realScaleType,b=v.scale;b.domain(f).range(i),Jb(b);var g=eg(b,hg(hg({},a),{},{realScaleType:m})),x=hg(hg(hg({},a),g),{},{range:i,radius:h,realScaleType:m,scale:b,cx:l,cy:s,innerRadius:p,outerRadius:h,startAngle:c,endAngle:u});return hg(hg({},t),{},yg({},r,x))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),vM=function(e){var r=Math.PI/180,n=e.cx,o=e.cy,i=e.midAngle,a=e.innerRadius,c=e.outerRadius,u=e.startAngle,l=e.endAngle,s=e.fill,f=e.payload,p=e.percent,h=e.value,y=Math.sin(-r*i),d=Math.cos(-r*i),v=n+(c+10)*d,m=o+(c+10)*y,b=n+(c+30)*d,g=o+(c+30)*y,x=b+22*(d>=0?1:-1),w=g,O=d>=0?"start":"end";return t.createElement("g",null,t.createElement("text",{x:n,y:o,dy:8,textAnchor:"middle",fill:s},f.name),t.createElement(ux,{cx:n,cy:o,innerRadius:a,outerRadius:c,startAngle:u,endAngle:l,fill:s}),t.createElement(ux,{cx:n,cy:o,startAngle:u,endAngle:l,innerRadius:c+6,outerRadius:c+10,fill:s}),t.createElement("path",{d:"M".concat(v,",").concat(m,"L").concat(b,",").concat(g,"L").concat(x,",").concat(w),stroke:s,fill:"none"}),t.createElement("circle",{cx:x,cy:w,r:2,fill:s,stroke:"none"}),t.createElement("text",{x:x+12*(d>=0?1:-1),y:w,textAnchor:O,fill:"#333"},"".concat(h)),t.createElement("text",{x:x+12*(d>=0?1:-1),y:w,dy:18,textAnchor:O,fill:"var(--dark-button-color)"},"(".concat((100*p).toFixed(2),"%)")))},mM=function(e){var r=e.id,n=e.className,o=e.type,i=void 0===o?"bar":o,a=e.layout,u=void 0===a?"vertical":a,l=e.barSize,s=void 0===l?24:l,f=e.barGap,p=void 0===f?16:f,h=e.indexes,y=void 0===h?[]:h,d=e.x,v=e.y,m=e.data,b=void 0===m?[]:m,g=c(0),w=g[0],O=g[1];return t.createElement(Ef,{id:r,className:x("gyramais-chart","gyramais-chart-".concat(i),n),width:"100%",height:"100%"},function(){var e;return"bar"===i?t.createElement(yM,{barSize:s,barGap:p,layout:u,data:b},t.createElement(KE,null),t.createElement(hk,{fontSize:12,hide:"horizontal"===u,type:"horizontal"===u?"category":"number"}),t.createElement(dk,{fontSize:12,hide:"vertical"===u,type:"vertical"===u?"category":"number"}),t.createElement(Ys,{contentStyle:{borderRadius:12},labelStyle:{display:"none"},cursor:{fill:"#00000011"}}),t.createElement(fl,{align:"vertical"===u?"left":"right",verticalAlign:"top",iconType:"square",iconSize:12,wrapperStyle:{paddingBottom:16}}),y.map((function(e,r){return t.createElement(oP,{key:"".concat(e,"-").concat(r),name:e.name,dataKey:e.key,stackId:e.stackId,fill:"var(--primary-button-color-".concat(r,"00)"),radius:"vertical"===u?[0,4,4,0]:[4,4,0,0]})}))):"pie"===i?t.createElement(dM,null,t.createElement(Bj,{activeIndex:w,activeShape:vM,onMouseEnter:function(t,e){return O(e)},data:b,dataKey:"value",cx:"50%",cy:"50%",outerRadius:90,innerRadius:70,fill:"var(--primary-button-color)"})):"line"===i?t.createElement(hM,{data:b},d&&t.createElement(hk,{fontSize:12,dataKey:d.key,tickFormatter:d.formatter}),(null===(e=null==v?void 0:v.indexes)||void 0===e?void 0:e[0])&&t.createElement(dk,{fontSize:12,dataKey:v.indexes[0].key,tickFormatter:v.formatter}),t.createElement(Ys,{contentStyle:{borderRadius:12},labelStyle:{display:"none"},cursor:{fill:"#00000011"}}),((null==v?void 0:v.indexes)||[]).map((function(e,r){var n=e.key,o=e.name;return t.createElement(fk,{key:"".concat(n,"-").concat(r),type:"linear",dataKey:n,name:o,stroke:"var(--primary-button-color-".concat(r,"00)"),strokeWidth:2})}))):t.createElement("div",null)}())};export{mM as Chart};
|
|
28
28
|
//# sourceMappingURL=index.js.map
|