72 lines
415 KiB
JavaScript
72 lines
415 KiB
JavaScript
import{j as E,R as A,r as N,a as eO}from"./index-CHvBDIXj.js";import{c as hi,g as ue}from"./react-DlyoauG8.js";const tO=({children:e})=>E.jsxs("div",{className:"dashboard",children:[E.jsx("header",{className:"dashboard-header",children:E.jsx("h1",{className:"dashboard-title",children:"Mosswart Overlord"})}),E.jsx("main",{className:"dashboard-main",children:e})]}),rO=({activeChars:e,totalKills:t,totalRares:r,serverHealth:n})=>{var o;const i=((o=n==null?void 0:n.status)==null?void 0:o.toLowerCase())??"unknown",a=i==="online"||i==="up";return E.jsxs("div",{className:"global-stats",children:[E.jsxs("div",{className:"global-stat",children:[E.jsx("span",{className:"global-value",children:e}),E.jsx("span",{className:"global-label",children:"Active Characters"})]}),E.jsxs("div",{className:"global-stat",children:[E.jsx("span",{className:"global-value",children:t.toLocaleString()}),E.jsx("span",{className:"global-label",children:"Total Kills"})]}),E.jsxs("div",{className:"global-stat",children:[E.jsx("span",{className:"global-value",children:r}),E.jsx("span",{className:"global-label",children:"Total Rares"})]}),E.jsxs("div",{className:"global-stat",children:[E.jsx("span",{className:`server-dot ${a?"online":"offline"}`}),E.jsxs("span",{className:"global-value",children:[(n==null?void 0:n.latency_ms)??"--","ms"]}),E.jsx("span",{className:"global-label",children:"Coldeve"})]})]})},Pi=A.memo(({label:e,current:t,max:r,color:n,bgColor:i})=>{const a=r>0?Math.min(100,Math.max(0,t/r*100)):0;return E.jsxs("div",{className:"vital-bar",children:[E.jsx("span",{className:"vital-label",children:e}),E.jsx("div",{className:"vital-track",style:{backgroundColor:i},children:E.jsx("div",{className:"vital-fill",style:{width:`${a}%`,background:n}})}),E.jsxs("span",{className:"vital-text",children:[t,"/",r]})]})});Pi.displayName="VitalBar";const nO=e=>{const t=(e||"idle").toLowerCase();return t==="combat"||t==="hunt"?{label:t==="combat"?"Combat":"Hunt",cls:"badge-combat"}:t==="nav"||t==="navigation"?{label:"Nav",cls:"badge-other"}:t==="default"||t==="idle"||t===""?{label:"Idle",cls:"badge-idle"}:{label:e,cls:"badge-other"}},Nb=A.memo(({character:e})=>{var u,s,c,f,l,h;const[t,r]=N.useState(!1),{telemetry:n,vitals:i,combat:a}=e,o=nO((n==null?void 0:n.vt_state)??"");return E.jsxs("div",{className:"char-card",onClick:()=>r(!t),children:[E.jsxs("div",{className:"char-header",children:[E.jsx("span",{className:"char-name",children:e.name}),E.jsx("span",{className:`char-badge ${o.cls}`,children:o.label})]}),i?E.jsxs("div",{className:"char-vitals",children:[E.jsx(Pi,{label:"HP",current:i.health_current,max:i.health_max,color:"linear-gradient(90deg, #ff4444, #ff6666)",bgColor:"#330000"}),E.jsx(Pi,{label:"ST",current:i.stamina_current,max:i.stamina_max,color:"linear-gradient(90deg, #ffaa00, #ffcc44)",bgColor:"#331a00"}),E.jsx(Pi,{label:"MN",current:i.mana_current,max:i.mana_max,color:"linear-gradient(90deg, #4488ff, #66aaff)",bgColor:"#001433"})]}):E.jsx("div",{className:"char-vitals-placeholder",children:"Awaiting vitals..."}),E.jsxs("div",{className:"char-stats-row",children:[E.jsxs("div",{className:"stat",children:[E.jsx("span",{className:"stat-value",children:(n==null?void 0:n.kills_per_hour)??"--"}),E.jsx("span",{className:"stat-label",children:"kills/hr"})]}),E.jsxs("div",{className:"stat",children:[E.jsx("span",{className:"stat-value",children:((u=n==null?void 0:n.kills)==null?void 0:u.toLocaleString())??"--"}),E.jsx("span",{className:"stat-label",children:"kills"})]}),E.jsxs("div",{className:"stat",children:[E.jsx("span",{className:"stat-value",children:(n==null?void 0:n.deaths)??"0"}),E.jsx("span",{className:"stat-label",children:"deaths"})]}),E.jsxs("div",{className:"stat",children:[E.jsx("span",{className:"stat-value",children:((s=n==null?void 0:n.onlinetime)==null?void 0:s.replace(/^00\./,""))??"--"}),E.jsx("span",{className:"stat-label",children:"uptime"})]})]}),n&&E.jsxs("div",{className:"char-location",children:[(c=n.ns)==null?void 0:c.toFixed(1),"N, ",(f=n.ew)==null?void 0:f.toFixed(1),"E"]}),t&&E.jsxs("div",{className:"char-expanded",children:[i!=null&&i.vitae?E.jsxs("div",{className:"vitae-warn",children:["Vitae: ",i.vitae,"%"]}):null,E.jsxs("div",{className:"expanded-row",children:[E.jsxs("span",{children:["Prismatics: ",(n==null?void 0:n.prismatic_taper_count)??"--"]}),E.jsxs("span",{children:["Total Deaths: ",(n==null?void 0:n.total_deaths)??"--"]})]}),(a==null?void 0:a.session)&&E.jsxs("div",{className:"expanded-row",children:[E.jsxs("span",{children:["Session Dmg: ",(l=a.session.total_damage_given)==null?void 0:l.toLocaleString()]}),E.jsxs("span",{children:["Session Kills: ",a.session.total_kills]})]}),E.jsxs("div",{className:"expanded-row",children:[E.jsxs("span",{children:["RAM: ",n!=null&&n.mem_mb?(n.mem_mb/1048576).toFixed(0)+" MB":"--"]}),E.jsxs("span",{children:["CPU: ",((h=n==null?void 0:n.cpu_pct)==null?void 0:h.toFixed(1))??"--","%"]})]})]})]})});Nb.displayName="CharacterCard";const iO=({characters:e})=>{const t=N.useMemo(()=>Array.from(e.values()).sort((r,n)=>r.name.localeCompare(n.name)),[e]);return t.length===0?E.jsx("div",{className:"grid-empty",children:"No active characters"}):E.jsx("div",{className:"char-grid",children:t.map(r=>E.jsx(Nb,{character:r},r.name))})},aO=({tabs:e})=>{var n,i;const[t,r]=N.useState(((n=e[0])==null?void 0:n.id)??"");return E.jsxs("div",{className:"tab-container",children:[E.jsx("div",{className:"tab-bar",children:e.map(a=>E.jsx("button",{className:`tab-btn ${t===a.id?"active":""}`,onClick:()=>r(a.id),children:a.label},a.id))}),E.jsx("div",{className:"tab-content",children:(i=e.find(a=>a.id===t))==null?void 0:i.content})]})};function Rb(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Rb(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Q(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Rb(e))&&(n&&(n+=" "),n+=t);return n}var po,Wh;function Le(){if(Wh)return po;Wh=1;var e=Array.isArray;return po=e,po}var vo,Hh;function Db(){if(Hh)return vo;Hh=1;var e=typeof hi=="object"&&hi&&hi.Object===Object&&hi;return vo=e,vo}var yo,Kh;function ct(){if(Kh)return yo;Kh=1;var e=Db(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return yo=r,yo}var mo,Gh;function ni(){if(Gh)return mo;Gh=1;var e=ct(),t=e.Symbol;return mo=t,mo}var go,Vh;function oO(){if(Vh)return go;Vh=1;var e=ni(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return go=a,go}var bo,Xh;function uO(){if(Xh)return bo;Xh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return bo=r,bo}var xo,Yh;function _t(){if(Yh)return xo;Yh=1;var e=ni(),t=oO(),r=uO(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return xo=o,xo}var wo,Zh;function St(){if(Zh)return wo;Zh=1;function e(t){return t!=null&&typeof t=="object"}return wo=e,wo}var Oo,Jh;function Xr(){if(Jh)return Oo;Jh=1;var e=_t(),t=St(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Oo=n,Oo}var _o,Qh;function qf(){if(Qh)return _o;Qh=1;var e=Le(),t=Xr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return _o=i,_o}var So,ed;function kt(){if(ed)return So;ed=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return So=e,So}var Ao,td;function Lf(){if(td)return Ao;td=1;var e=_t(),t=kt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return Ao=o,Ao}var Po,rd;function sO(){if(rd)return Po;rd=1;var e=ct(),t=e["__core-js_shared__"];return Po=t,Po}var To,nd;function cO(){if(nd)return To;nd=1;var e=sO(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return To=r,To}var jo,id;function qb(){if(id)return jo;id=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return jo=r,jo}var Eo,ad;function lO(){if(ad)return Eo;ad=1;var e=Lf(),t=cO(),r=kt(),n=qb(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var p=e(h)?f:a;return p.test(n(h))}return Eo=l,Eo}var Mo,od;function fO(){if(od)return Mo;od=1;function e(t,r){return t==null?void 0:t[r]}return Mo=e,Mo}var $o,ud;function or(){if(ud)return $o;ud=1;var e=lO(),t=fO();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return $o=r,$o}var Co,sd;function ja(){if(sd)return Co;sd=1;var e=or(),t=e(Object,"create");return Co=t,Co}var Io,cd;function hO(){if(cd)return Io;cd=1;var e=ja();function t(){this.__data__=e?e(null):{},this.size=0}return Io=t,Io}var ko,ld;function dO(){if(ld)return ko;ld=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return ko=e,ko}var No,fd;function pO(){if(fd)return No;fd=1;var e=ja(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return No=i,No}var Ro,hd;function vO(){if(hd)return Ro;hd=1;var e=ja(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Ro=n,Ro}var Do,dd;function yO(){if(dd)return Do;dd=1;var e=ja(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Do=r,Do}var qo,pd;function mO(){if(pd)return qo;pd=1;var e=hO(),t=dO(),r=pO(),n=vO(),i=yO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,qo=a,qo}var Lo,vd;function gO(){if(vd)return Lo;vd=1;function e(){this.__data__=[],this.size=0}return Lo=e,Lo}var Bo,yd;function Bf(){if(yd)return Bo;yd=1;function e(t,r){return t===r||t!==t&&r!==r}return Bo=e,Bo}var Fo,md;function Ea(){if(md)return Fo;md=1;var e=Bf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Fo=t,Fo}var zo,gd;function bO(){if(gd)return zo;gd=1;var e=Ea(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return zo=n,zo}var Uo,bd;function xO(){if(bd)return Uo;bd=1;var e=Ea();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Uo=t,Uo}var Wo,xd;function wO(){if(xd)return Wo;xd=1;var e=Ea();function t(r){return e(this.__data__,r)>-1}return Wo=t,Wo}var Ho,wd;function OO(){if(wd)return Ho;wd=1;var e=Ea();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Ho=t,Ho}var Ko,Od;function Ma(){if(Od)return Ko;Od=1;var e=gO(),t=bO(),r=xO(),n=wO(),i=OO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ko=a,Ko}var Go,_d;function Ff(){if(_d)return Go;_d=1;var e=or(),t=ct(),r=e(t,"Map");return Go=r,Go}var Vo,Sd;function _O(){if(Sd)return Vo;Sd=1;var e=mO(),t=Ma(),r=Ff();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Vo=n,Vo}var Xo,Ad;function SO(){if(Ad)return Xo;Ad=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Xo=e,Xo}var Yo,Pd;function $a(){if(Pd)return Yo;Pd=1;var e=SO();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Yo=t,Yo}var Zo,Td;function AO(){if(Td)return Zo;Td=1;var e=$a();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Zo=t,Zo}var Jo,jd;function PO(){if(jd)return Jo;jd=1;var e=$a();function t(r){return e(this,r).get(r)}return Jo=t,Jo}var Qo,Ed;function TO(){if(Ed)return Qo;Ed=1;var e=$a();function t(r){return e(this,r).has(r)}return Qo=t,Qo}var eu,Md;function jO(){if(Md)return eu;Md=1;var e=$a();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return eu=t,eu}var tu,$d;function zf(){if($d)return tu;$d=1;var e=_O(),t=AO(),r=PO(),n=TO(),i=jO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,tu=a,tu}var ru,Cd;function Lb(){if(Cd)return ru;Cd=1;var e=zf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,ru=r,ru}var nu,Id;function EO(){if(Id)return nu;Id=1;var e=Lb(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return nu=r,nu}var iu,kd;function MO(){if(kd)return iu;kd=1;var e=EO(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return iu=n,iu}var au,Nd;function Uf(){if(Nd)return au;Nd=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return au=e,au}var ou,Rd;function $O(){if(Rd)return ou;Rd=1;var e=ni(),t=Uf(),r=Le(),n=Xr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return ou=o,ou}var uu,Dd;function Bb(){if(Dd)return uu;Dd=1;var e=$O();function t(r){return r==null?"":e(r)}return uu=t,uu}var su,qd;function Fb(){if(qd)return su;qd=1;var e=Le(),t=qf(),r=MO(),n=Bb();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return su=i,su}var cu,Ld;function Ca(){if(Ld)return cu;Ld=1;var e=Xr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return cu=t,cu}var lu,Bd;function Wf(){if(Bd)return lu;Bd=1;var e=Fb(),t=Ca();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return lu=r,lu}var fu,Fd;function zb(){if(Fd)return fu;Fd=1;var e=Wf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return fu=t,fu}var CO=zb();const He=ue(CO);var hu,zd;function IO(){if(zd)return hu;zd=1;function e(t){return t==null}return hu=e,hu}var kO=IO();const ee=ue(kO);var du,Ud;function NO(){if(Ud)return du;Ud=1;var e=_t(),t=Le(),r=St(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return du=i,du}var RO=NO();const er=ue(RO);var DO=Lf();const Y=ue(DO);var qO=kt();const Yr=ue(qO);var pu={exports:{}},ne={};/**
|
||
* @license React
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Wd;function LO(){if(Wd)return ne;Wd=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(d){if(typeof d=="object"&&d!==null){var g=d.$$typeof;switch(g){case e:switch(d=d.type,d){case r:case i:case n:case c:case f:return d;default:switch(d=d&&d.$$typeof,d){case u:case o:case s:case h:case l:case a:return d;default:return g}}case t:return g}}}return ne.ContextConsumer=o,ne.ContextProvider=a,ne.Element=e,ne.ForwardRef=s,ne.Fragment=r,ne.Lazy=h,ne.Memo=l,ne.Portal=t,ne.Profiler=i,ne.StrictMode=n,ne.Suspense=c,ne.SuspenseList=f,ne.isAsyncMode=function(){return!1},ne.isConcurrentMode=function(){return!1},ne.isContextConsumer=function(d){return v(d)===o},ne.isContextProvider=function(d){return v(d)===a},ne.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},ne.isForwardRef=function(d){return v(d)===s},ne.isFragment=function(d){return v(d)===r},ne.isLazy=function(d){return v(d)===h},ne.isMemo=function(d){return v(d)===l},ne.isPortal=function(d){return v(d)===t},ne.isProfiler=function(d){return v(d)===i},ne.isStrictMode=function(d){return v(d)===n},ne.isSuspense=function(d){return v(d)===c},ne.isSuspenseList=function(d){return v(d)===f},ne.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===c||d===f||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===l||d.$$typeof===a||d.$$typeof===o||d.$$typeof===s||d.$$typeof===y||d.getModuleId!==void 0)},ne.typeOf=v,ne}var Hd;function BO(){return Hd||(Hd=1,pu.exports=LO()),pu.exports}var FO=BO(),vu,Kd;function Ub(){if(Kd)return vu;Kd=1;var e=_t(),t=St(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return vu=n,vu}var yu,Gd;function zO(){if(Gd)return yu;Gd=1;var e=Ub();function t(r){return e(r)&&r!=+r}return yu=t,yu}var UO=zO();const ii=ue(UO);var WO=Ub();const HO=ue(WO);var Ie=function(t){return t===0?0:t>0?1:-1},Gt=function(t){return er(t)&&t.indexOf("%")===t.length-1},L=function(t){return HO(t)&&!ii(t)},KO=function(t){return ee(t)},Se=function(t){return L(t)||er(t)},GO=0,ai=function(t){var r=++GO;return"".concat(t||"").concat(r)},ke=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!L(t)&&!er(t))return n;var a;if(Gt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return ii(a)&&(a=n),i&&a>r&&(a=r),a},Mt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},VO=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},jt=function(t,r){return L(t)&&L(r)?function(n){return t+n*(r-t)}:function(){return r}};function yl(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):He(n,t))===r})}var XO=function(t,r){return L(t)&&L(r)?t-r:er(t)&&er(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function xr(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function ml(e){"@babel/helpers - typeof";return ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ml(e)}var YO=["viewBox","children"],ZO=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Vd=["points","pathLength"],mu={svg:YO,polygon:Vd,polyline:Vd},Hf=["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"],Ei=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!Yr(n))return null;var i={};return Object.keys(n).forEach(function(a){Hf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},JO=function(t,r,n){return function(i){return t(r,n,i),null}},tr=function(t,r,n){if(!Yr(t)||ml(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Hf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=JO(o,r,n))}),i},QO=["children"],e_=["children"];function Xd(e,t){if(e==null)return{};var r=t_(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function t_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Yd={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},yt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Zd=null,gu=null,Kf=function e(t){if(t===Zd&&Array.isArray(gu))return gu;var r=[];return N.Children.forEach(t,function(n){ee(n)||(FO.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),gu=r,Zd=t,r};function Ze(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return yt(i)}):n=[yt(t)],Kf(e).forEach(function(i){var a=He(i,"type.displayName")||He(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function ze(e,t){var r=Ze(e,t);return r&&r[0]}var Jd=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!L(n)||n<=0||!L(i)||i<=0)},r_=["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"],n_=function(t){return t&&t.type&&er(t.type)&&r_.indexOf(t.type)>=0},i_=function(t,r,n,i){var a,o=(a=mu==null?void 0:mu[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Y(t)&&(i&&o.includes(r)||ZO.includes(r))||n&&Hf.includes(r)},X=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!Yr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;i_((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},gl=function e(t,r){if(t===r)return!0;var n=N.Children.count(t);if(n!==N.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Qd(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Qd(a,o))return!1}return!0},Qd=function(t,r){if(ee(t)&&ee(r))return!0;if(!ee(t)&&!ee(r)){var n=t.props||{},i=n.children,a=Xd(n,QO),o=r.props||{},u=o.children,s=Xd(o,e_);return i&&u?xr(a,s)&&gl(i,u):!i&&!u?xr(a,s):!1}return!1},ep=function(t,r){var n=[],i={};return Kf(t).forEach(function(a,o){if(n_(a))n.push(a);else if(a){var u=yt(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},a_=function(t){var r=t&&t.type;return r&&Yd[r]?Yd[r]:null},o_=function(t,r){return Kf(r).indexOf(t)},u_=["children","width","height","viewBox","className","style","title","desc"];function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bl.apply(this,arguments)}function s_(e,t){if(e==null)return{};var r=c_(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function xl(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,c=s_(e,u_),f=i||{width:r,height:n,x:0,y:0},l=Q("recharts-surface",a);return A.createElement("svg",bl({},X(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),A.createElement("title",null,u),A.createElement("desc",null,s),t)}var l_=["children","className"];function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wl.apply(this,arguments)}function f_(e,t){if(e==null)return{};var r=h_(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function h_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ae=A.forwardRef(function(e,t){var r=e.children,n=e.className,i=f_(e,l_),a=Q("recharts-layer",n);return A.createElement("g",wl({className:a},X(i,!0),{ref:t}),r)}),nt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]},bu,tp;function d_(){if(tp)return bu;tp=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return bu=e,bu}var xu,rp;function p_(){if(rp)return xu;rp=1;var e=d_();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return xu=t,xu}var wu,np;function Wb(){if(np)return wu;np=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(c){return u.test(c)}return wu=s,wu}var Ou,ip;function v_(){if(ip)return Ou;ip=1;function e(t){return t.split("")}return Ou=e,Ou}var _u,ap;function y_(){if(ap)return _u;ap=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=c+"?",v="["+a+"]?",d="(?:"+p+"(?:"+[f,l,h].join("|")+")"+v+y+")*",g=v+y+d,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+x+g,"g");function O(m){return m.match(w)||[]}return _u=O,_u}var Su,op;function m_(){if(op)return Su;op=1;var e=v_(),t=Wb(),r=y_();function n(i){return t(i)?r(i):e(i)}return Su=n,Su}var Au,up;function g_(){if(up)return Au;up=1;var e=p_(),t=Wb(),r=m_(),n=Bb();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return Au=i,Au}var Pu,sp;function b_(){if(sp)return Pu;sp=1;var e=g_(),t=e("toUpperCase");return Pu=t,Pu}var x_=b_();const Ia=ue(x_);function le(e){return function(){return e}}const Hb=Math.cos,Mi=Math.sin,it=Math.sqrt,$i=Math.PI,ka=2*$i,Ol=Math.PI,_l=2*Ol,Wt=1e-6,w_=_l-Wt;function Kb(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function O_(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Kb;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class __{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Kb:O_(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Wt)if(!(Math.abs(l*s-c*f)>Wt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,v=s*s+c*c,d=p*p+y*y,g=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((Ol-Math.acos((v+h-d)/(2*g*x)))/2),O=w/x,m=w/g;Math.abs(O-1)>Wt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*p>f*y)},${this._x1=t+m*s},${this._y1=r+m*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Wt||Math.abs(this._y1-f)>Wt)&&this._append`L${c},${f}`,n&&(h<0&&(h=h%_l+_l),h>w_?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:h>Wt&&this._append`A${n},${n},0,${+(h>=Ol)},${l},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Gf(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new __(t)}function Vf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Gb(e){this._context=e}Gb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Na(e){return new Gb(e)}function Vb(e){return e[0]}function Xb(e){return e[1]}function Yb(e,t){var r=le(!0),n=null,i=Na,a=null,o=Gf(u);e=typeof e=="function"?e:e===void 0?Vb:le(e),t=typeof t=="function"?t:t===void 0?Xb:le(t);function u(s){var c,f=(s=Vf(s)).length,l,h=!1,p;for(n==null&&(a=i(p=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,c,s),+t(l,c,s));if(p)return a=null,p+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:le(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:le(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:le(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function di(e,t,r){var n=null,i=le(!0),a=null,o=Na,u=null,s=Gf(c);e=typeof e=="function"?e:e===void 0?Vb:le(+e),t=typeof t=="function"?t:le(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Xb:le(+r);function c(l){var h,p,y,v=(l=Vf(l)).length,d,g=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=s())),h=0;h<=v;++h){if(!(h<v&&i(d=l[h],h,l))===g)if(g=!g)p=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=p;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}g&&(w[h]=+e(d,h,l),O[h]=+t(d,h,l),u.point(n?+n(d,h,l):w[h],r?+r(d,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return Yb().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:le(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:le(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:le(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:le(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:le(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:le(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:le(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class Zb{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function S_(e){return new Zb(e,!0)}function A_(e){return new Zb(e,!1)}const Xf={draw(e,t){const r=it(t/$i);e.moveTo(r,0),e.arc(0,0,r,0,ka)}},P_={draw(e,t){const r=it(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Jb=it(1/3),T_=Jb*2,j_={draw(e,t){const r=it(t/T_),n=r*Jb;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},E_={draw(e,t){const r=it(t),n=-r/2;e.rect(n,n,r,r)}},M_=.8908130915292852,Qb=Mi($i/10)/Mi(7*$i/10),$_=Mi(ka/10)*Qb,C_=-Hb(ka/10)*Qb,I_={draw(e,t){const r=it(t*M_),n=$_*r,i=C_*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ka*a/5,u=Hb(o),s=Mi(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},Tu=it(3),k_={draw(e,t){const r=-it(t/(Tu*3));e.moveTo(0,r*2),e.lineTo(-Tu*r,-r),e.lineTo(Tu*r,-r),e.closePath()}},Ke=-.5,Ge=it(3)/2,Sl=1/it(12),N_=(Sl/2+1)*3,R_={draw(e,t){const r=it(t/N_),n=r/2,i=r*Sl,a=n,o=r*Sl+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ke*n-Ge*i,Ge*n+Ke*i),e.lineTo(Ke*a-Ge*o,Ge*a+Ke*o),e.lineTo(Ke*u-Ge*s,Ge*u+Ke*s),e.lineTo(Ke*n+Ge*i,Ke*i-Ge*n),e.lineTo(Ke*a+Ge*o,Ke*o-Ge*a),e.lineTo(Ke*u+Ge*s,Ke*s-Ge*u),e.closePath()}};function D_(e,t){let r=null,n=Gf(i);e=typeof e=="function"?e:le(e||Xf),t=typeof t=="function"?t:le(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:le(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:le(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ci(){}function Ii(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function e0(e){this._context=e}e0.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:Ii(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ii(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function q_(e){return new e0(e)}function t0(e){this._context=e}t0.prototype={areaStart:Ci,areaEnd:Ci,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ii(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function L_(e){return new t0(e)}function r0(e){this._context=e}r0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ii(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function B_(e){return new r0(e)}function n0(e){this._context=e}n0.prototype={areaStart:Ci,areaEnd:Ci,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function F_(e){return new n0(e)}function cp(e){return e<0?-1:1}function lp(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(cp(a)+cp(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function fp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ju(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function ki(e){this._context=e}ki.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:ju(this,this._t0,fp(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ju(this,fp(this,r=lp(this,e,t)),r);break;default:ju(this,this._t0,r=lp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function i0(e){this._context=new a0(e)}(i0.prototype=Object.create(ki.prototype)).point=function(e,t){ki.prototype.point.call(this,t,e)};function a0(e){this._context=e}a0.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function z_(e){return new ki(e)}function U_(e){return new i0(e)}function o0(e){this._context=e}o0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=hp(e),i=hp(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function hp(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function W_(e){return new o0(e)}function Ra(e,t){this._context=e,this._t=t}Ra.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function H_(e){return new Ra(e,.5)}function K_(e){return new Ra(e,0)}function G_(e){return new Ra(e,1)}function _r(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Al(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function V_(e,t){return e[t]}function X_(e){const t=[];return t.key=e,t}function Y_(){var e=le([]),t=Al,r=_r,n=V_;function i(a){var o=Array.from(e.apply(this,arguments),X_),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=Vf(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:le(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:le(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Al:typeof a=="function"?a:le(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??_r,i):r},i}function Z_(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}_r(e,t)}}function J_(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}_r(e,t)}}function Q_(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,p=(l-h)/2,y=0;y<u;++y){var v=e[t[y]],d=v[n][1]||0,g=v[n-1][1]||0;p+=d-g}s+=l,c+=p*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,_r(e,t)}}function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}var e1=["type","size","sizeType"];function Pl(){return Pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pl.apply(this,arguments)}function dp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dp(Object(r),!0).forEach(function(n){t1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t1(e,t,r){return t=r1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r1(e){var t=n1(e,"string");return On(t)=="symbol"?t:t+""}function n1(e,t){if(On(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(On(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i1(e,t){if(e==null)return{};var r=a1(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var u0={symbolCircle:Xf,symbolCross:P_,symbolDiamond:j_,symbolSquare:E_,symbolStar:I_,symbolTriangle:k_,symbolWye:R_},o1=Math.PI/180,u1=function(t){var r="symbol".concat(Ia(t));return u0[r]||Xf},s1=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*o1;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},c1=function(t,r){u0["symbol".concat(Ia(t))]=r},Yf=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,s=i1(t,e1),c=pp(pp({},s),{},{type:n,size:a,sizeType:u}),f=function(){var d=u1(n),g=D_().type(d).size(s1(a,u,n));return g()},l=c.className,h=c.cx,p=c.cy,y=X(c,!0);return h===+h&&p===+p&&a===+a?A.createElement("path",Pl({},y,{className:Q("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};Yf.registerSymbol=c1;function Sr(e){"@babel/helpers - typeof";return Sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sr(e)}function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tl.apply(this,arguments)}function vp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function l1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vp(Object(r),!0).forEach(function(n){_n(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c0(n.key),n)}}function d1(e,t,r){return t&&h1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function p1(e,t,r){return t=Ni(t),v1(e,s0()?Reflect.construct(t,r||[],Ni(e).constructor):t.apply(e,r))}function v1(e,t){if(t&&(Sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y1(e)}function y1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s0=function(){return!!e})()}function Ni(e){return Ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ni(e)}function m1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jl(e,t)}function jl(e,t){return jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jl(e,t)}function _n(e,t,r){return t=c0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c0(e){var t=g1(e,"string");return Sr(t)=="symbol"?t:t+""}function g1(e,t){if(Sr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ve=32,Zf=(function(e){function t(){return f1(this,t),p1(this,t,arguments)}return m1(t,e),d1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ve/2,o=Ve/6,u=Ve/3,s=n.inactive?i:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ve,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
|
||
A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
|
||
H`).concat(Ve,"M").concat(2*u,",").concat(a,`
|
||
A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return A.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Ve/8,"h").concat(Ve,"v").concat(Ve*3/4,"h").concat(-Ve,"z"),className:"recharts-legend-icon"});if(A.isValidElement(n.legendIcon)){var c=l1({},n);return delete c.legendIcon,A.cloneElement(n.legendIcon,c)}return A.createElement(Yf,{fill:s,cx:a,cy:a,size:Ve,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:Ve,height:Ve},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var v=p.formatter||s,d=Q(_n(_n({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=Y(p.value)?null:p.value;nt(!Y(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=p.inactive?c:p.color;return A.createElement("li",Tl({className:d,style:l,key:"legend-item-".concat(y)},tr(n.props,p,y)),A.createElement(xl,{width:o,height:o,viewBox:f,style:h},n.renderIcon(p)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(g,p,y):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(N.PureComponent);_n(Zf,"displayName","Legend");_n(Zf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Eu,yp;function b1(){if(yp)return Eu;yp=1;var e=Ma();function t(){this.__data__=new e,this.size=0}return Eu=t,Eu}var Mu,mp;function x1(){if(mp)return Mu;mp=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Mu=e,Mu}var $u,gp;function w1(){if(gp)return $u;gp=1;function e(t){return this.__data__.get(t)}return $u=e,$u}var Cu,bp;function O1(){if(bp)return Cu;bp=1;function e(t){return this.__data__.has(t)}return Cu=e,Cu}var Iu,xp;function _1(){if(xp)return Iu;xp=1;var e=Ma(),t=Ff(),r=zf(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return Iu=i,Iu}var ku,wp;function l0(){if(wp)return ku;wp=1;var e=Ma(),t=b1(),r=x1(),n=w1(),i=O1(),a=_1();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,ku=o,ku}var Nu,Op;function S1(){if(Op)return Nu;Op=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Nu=t,Nu}var Ru,_p;function A1(){if(_p)return Ru;_p=1;function e(t){return this.__data__.has(t)}return Ru=e,Ru}var Du,Sp;function f0(){if(Sp)return Du;Sp=1;var e=zf(),t=S1(),r=A1();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Du=n,Du}var qu,Ap;function h0(){if(Ap)return qu;Ap=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return qu=e,qu}var Lu,Pp;function d0(){if(Pp)return Lu;Pp=1;function e(t,r){return t.has(r)}return Lu=e,Lu}var Bu,Tp;function p0(){if(Tp)return Bu;Tp=1;var e=f0(),t=h0(),r=d0(),n=1,i=2;function a(o,u,s,c,f,l){var h=s&n,p=o.length,y=u.length;if(p!=y&&!(h&&y>p))return!1;var v=l.get(o),d=l.get(u);if(v&&d)return v==u&&d==o;var g=-1,x=!0,w=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++g<p;){var O=o[g],m=u[g];if(c)var b=h?c(m,O,g,u,o,l):c(O,m,g,o,u,l);if(b!==void 0){if(b)continue;x=!1;break}if(w){if(!t(u,function(_,S){if(!r(w,S)&&(O===_||f(O,_,s,c,l)))return w.push(S)})){x=!1;break}}else if(!(O===m||f(O,m,s,c,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return Bu=a,Bu}var Fu,jp;function P1(){if(jp)return Fu;jp=1;var e=ct(),t=e.Uint8Array;return Fu=t,Fu}var zu,Ep;function T1(){if(Ep)return zu;Ep=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return zu=e,zu}var Uu,Mp;function Jf(){if(Mp)return Uu;Mp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Uu=e,Uu}var Wu,$p;function j1(){if($p)return Wu;$p=1;var e=ni(),t=P1(),r=Bf(),n=p0(),i=T1(),a=Jf(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",v="[object String]",d="[object Symbol]",g="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(b,_,S,P,$,j,T){switch(S){case x:if(b.byteLength!=_.byteLength||b.byteOffset!=_.byteOffset)return!1;b=b.buffer,_=_.buffer;case g:return!(b.byteLength!=_.byteLength||!j(new t(b),new t(_)));case s:case c:case h:return r(+b,+_);case f:return b.name==_.name&&b.message==_.message;case p:case v:return b==_+"";case l:var M=i;case y:var I=P&o;if(M||(M=a),b.size!=_.size&&!I)return!1;var C=T.get(b);if(C)return C==_;P|=u,T.set(b,_);var R=n(M(b),M(_),P,$,j,T);return T.delete(b),R;case d:if(O)return O.call(b)==O.call(_)}return!1}return Wu=m,Wu}var Hu,Cp;function v0(){if(Cp)return Hu;Cp=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Hu=e,Hu}var Ku,Ip;function E1(){if(Ip)return Ku;Ip=1;var e=v0(),t=Le();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Ku=r,Ku}var Gu,kp;function M1(){if(kp)return Gu;kp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return Gu=e,Gu}var Vu,Np;function $1(){if(Np)return Vu;Np=1;function e(){return[]}return Vu=e,Vu}var Xu,Rp;function C1(){if(Rp)return Xu;Rp=1;var e=M1(),t=$1(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return Xu=a,Xu}var Yu,Dp;function I1(){if(Dp)return Yu;Dp=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Yu=e,Yu}var Zu,qp;function k1(){if(qp)return Zu;qp=1;var e=_t(),t=St(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Zu=n,Zu}var Ju,Lp;function Qf(){if(Lp)return Ju;Lp=1;var e=k1(),t=St(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Ju=a,Ju}var dn={exports:{}},Qu,Bp;function N1(){if(Bp)return Qu;Bp=1;function e(){return!1}return Qu=e,Qu}dn.exports;var Fp;function y0(){return Fp||(Fp=1,(function(e,t){var r=ct(),n=N1(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(dn,dn.exports)),dn.exports}var es,zp;function eh(){if(zp)return es;zp=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return es=r,es}var ts,Up;function th(){if(Up)return ts;Up=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return ts=t,ts}var rs,Wp;function R1(){if(Wp)return rs;Wp=1;var e=_t(),t=th(),r=St(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",v="[object WeakMap]",d="[object ArrayBuffer]",g="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",b="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",P="[object Uint16Array]",$="[object Uint32Array]",j={};j[x]=j[w]=j[O]=j[m]=j[b]=j[_]=j[S]=j[P]=j[$]=!0,j[n]=j[i]=j[d]=j[a]=j[g]=j[o]=j[u]=j[s]=j[c]=j[f]=j[l]=j[h]=j[p]=j[y]=j[v]=!1;function T(M){return r(M)&&t(M.length)&&!!j[e(M)]}return rs=T,rs}var ns,Hp;function m0(){if(Hp)return ns;Hp=1;function e(t){return function(r){return t(r)}}return ns=e,ns}var pn={exports:{}};pn.exports;var Kp;function D1(){return Kp||(Kp=1,(function(e,t){var r=Db(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(pn,pn.exports)),pn.exports}var is,Gp;function g0(){if(Gp)return is;Gp=1;var e=R1(),t=m0(),r=D1(),n=r&&r.isTypedArray,i=n?t(n):e;return is=i,is}var as,Vp;function q1(){if(Vp)return as;Vp=1;var e=I1(),t=Qf(),r=Le(),n=y0(),i=eh(),a=g0(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),h=!l&&t(c),p=!l&&!h&&n(c),y=!l&&!h&&!p&&a(c),v=l||h||p||y,d=v?e(c.length,String):[],g=d.length;for(var x in c)(f||u.call(c,x))&&!(v&&(x=="length"||p&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,g)))&&d.push(x);return d}return as=s,as}var os,Xp;function L1(){if(Xp)return os;Xp=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return os=t,os}var us,Yp;function b0(){if(Yp)return us;Yp=1;function e(t,r){return function(n){return t(r(n))}}return us=e,us}var ss,Zp;function B1(){if(Zp)return ss;Zp=1;var e=b0(),t=e(Object.keys,Object);return ss=t,ss}var cs,Jp;function F1(){if(Jp)return cs;Jp=1;var e=L1(),t=B1(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return cs=i,cs}var ls,Qp;function oi(){if(Qp)return ls;Qp=1;var e=Lf(),t=th();function r(n){return n!=null&&t(n.length)&&!e(n)}return ls=r,ls}var fs,ev;function Da(){if(ev)return fs;ev=1;var e=q1(),t=F1(),r=oi();function n(i){return r(i)?e(i):t(i)}return fs=n,fs}var hs,tv;function z1(){if(tv)return hs;tv=1;var e=E1(),t=C1(),r=Da();function n(i){return e(i,r,t)}return hs=n,hs}var ds,rv;function U1(){if(rv)return ds;rv=1;var e=z1(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,h=e(a),p=h.length,y=e(o),v=y.length;if(p!=v&&!l)return!1;for(var d=p;d--;){var g=h[d];if(!(l?g in o:n.call(o,g)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++d<p;){g=h[d];var b=a[g],_=o[g];if(s)var S=l?s(_,b,g,o,a,f):s(b,_,g,a,o,f);if(!(S===void 0?b===_||c(b,_,u,s,f):S)){O=!1;break}m||(m=g=="constructor")}if(O&&!m){var P=a.constructor,$=o.constructor;P!=$&&"constructor"in a&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof $=="function"&&$ instanceof $)&&(O=!1)}return f.delete(a),f.delete(o),O}return ds=i,ds}var ps,nv;function W1(){if(nv)return ps;nv=1;var e=or(),t=ct(),r=e(t,"DataView");return ps=r,ps}var vs,iv;function H1(){if(iv)return vs;iv=1;var e=or(),t=ct(),r=e(t,"Promise");return vs=r,vs}var ys,av;function x0(){if(av)return ys;av=1;var e=or(),t=ct(),r=e(t,"Set");return ys=r,ys}var ms,ov;function K1(){if(ov)return ms;ov=1;var e=or(),t=ct(),r=e(t,"WeakMap");return ms=r,ms}var gs,uv;function G1(){if(uv)return gs;uv=1;var e=W1(),t=Ff(),r=H1(),n=x0(),i=K1(),a=_t(),o=qb(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),v=o(r),d=o(n),g=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=u||r&&x(r.resolve())!=c||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),m=O==s?w.constructor:void 0,b=m?o(m):"";if(b)switch(b){case p:return h;case y:return u;case v:return c;case d:return f;case g:return l}return O}),gs=x,gs}var bs,sv;function V1(){if(sv)return bs;sv=1;var e=l0(),t=p0(),r=j1(),n=U1(),i=G1(),a=Le(),o=y0(),u=g0(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(v,d,g,x,w,O){var m=a(v),b=a(d),_=m?f:i(v),S=b?f:i(d);_=_==c?l:_,S=S==c?l:S;var P=_==l,$=S==l,j=_==S;if(j&&o(v)){if(!o(d))return!1;m=!0,P=!1}if(j&&!P)return O||(O=new e),m||u(v)?t(v,d,g,x,w,O):r(v,d,_,g,x,w,O);if(!(g&s)){var T=P&&p.call(v,"__wrapped__"),M=$&&p.call(d,"__wrapped__");if(T||M){var I=T?v.value():v,C=M?d.value():d;return O||(O=new e),w(I,C,g,x,O)}}return j?(O||(O=new e),n(v,d,g,x,w,O)):!1}return bs=y,bs}var xs,cv;function rh(){if(cv)return xs;cv=1;var e=V1(),t=St();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return xs=r,xs}var ws,lv;function X1(){if(lv)return ws;lv=1;var e=l0(),t=rh(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var h=u[c];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++c<f;){h=u[c];var p=h[0],y=a[p],v=h[1];if(l&&h[2]){if(y===void 0&&!(p in a))return!1}else{var d=new e;if(s)var g=s(y,v,p,a,o,d);if(!(g===void 0?t(v,y,r|n,s,d):g))return!1}}return!0}return ws=i,ws}var Os,fv;function w0(){if(fv)return Os;fv=1;var e=kt();function t(r){return r===r&&!e(r)}return Os=t,Os}var _s,hv;function Y1(){if(hv)return _s;hv=1;var e=w0(),t=Da();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return _s=r,_s}var Ss,dv;function O0(){if(dv)return Ss;dv=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Ss=e,Ss}var As,pv;function Z1(){if(pv)return As;pv=1;var e=X1(),t=Y1(),r=O0();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return As=n,As}var Ps,vv;function J1(){if(vv)return Ps;vv=1;function e(t,r){return t!=null&&r in Object(t)}return Ps=e,Ps}var Ts,yv;function Q1(){if(yv)return Ts;yv=1;var e=Fb(),t=Qf(),r=Le(),n=eh(),i=th(),a=Ca();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,h=!1;++f<l;){var p=a(s[f]);if(!(h=u!=null&&c(u,p)))break;u=u[p]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&i(l)&&n(p,l)&&(r(u)||t(u)))}return Ts=o,Ts}var js,mv;function eS(){if(mv)return js;mv=1;var e=J1(),t=Q1();function r(n,i){return n!=null&&t(n,i,e)}return js=r,js}var Es,gv;function tS(){if(gv)return Es;gv=1;var e=rh(),t=zb(),r=eS(),n=qf(),i=w0(),a=O0(),o=Ca(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(h){var p=t(h,f);return p===void 0&&p===l?r(h,f):e(l,p,u|s)}}return Es=c,Es}var Ms,bv;function Zr(){if(bv)return Ms;bv=1;function e(t){return t}return Ms=e,Ms}var $s,xv;function rS(){if(xv)return $s;xv=1;function e(t){return function(r){return r==null?void 0:r[t]}}return $s=e,$s}var Cs,wv;function nS(){if(wv)return Cs;wv=1;var e=Wf();function t(r){return function(n){return e(n,r)}}return Cs=t,Cs}var Is,Ov;function iS(){if(Ov)return Is;Ov=1;var e=rS(),t=nS(),r=qf(),n=Ca();function i(a){return r(a)?e(n(a)):t(a)}return Is=i,Is}var ks,_v;function lt(){if(_v)return ks;_v=1;var e=Z1(),t=tS(),r=Zr(),n=Le(),i=iS();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return ks=a,ks}var Ns,Sv;function _0(){if(Sv)return Ns;Sv=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return Ns=e,Ns}var Rs,Av;function aS(){if(Av)return Rs;Av=1;function e(t){return t!==t}return Rs=e,Rs}var Ds,Pv;function oS(){if(Pv)return Ds;Pv=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return Ds=e,Ds}var qs,Tv;function uS(){if(Tv)return qs;Tv=1;var e=_0(),t=aS(),r=oS();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return qs=n,qs}var Ls,jv;function sS(){if(jv)return Ls;jv=1;var e=uS();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Ls=t,Ls}var Bs,Ev;function cS(){if(Ev)return Bs;Ev=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return Bs=e,Bs}var Fs,Mv;function lS(){if(Mv)return Fs;Mv=1;function e(){}return Fs=e,Fs}var zs,$v;function fS(){if($v)return zs;$v=1;var e=x0(),t=lS(),r=Jf(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return zs=i,zs}var Us,Cv;function hS(){if(Cv)return Us;Cv=1;var e=f0(),t=sS(),r=cS(),n=d0(),i=fS(),a=Jf(),o=200;function u(s,c,f){var l=-1,h=t,p=s.length,y=!0,v=[],d=v;if(f)y=!1,h=r;else if(p>=o){var g=c?null:i(s);if(g)return a(g);y=!1,h=n,d=new e}else d=c?[]:v;e:for(;++l<p;){var x=s[l],w=c?c(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=d.length;O--;)if(d[O]===w)continue e;c&&d.push(w),v.push(x)}else h(d,w,f)||(d!==v&&d.push(w),v.push(x))}return v}return Us=u,Us}var Ws,Iv;function dS(){if(Iv)return Ws;Iv=1;var e=lt(),t=hS();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Ws=r,Ws}var pS=dS();const kv=ue(pS);function S0(e,t,r){return t===!0?kv(e,r):Y(t)?kv(e,t):e}function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ar(e)}var vS=["ref"];function Nv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nv(Object(r),!0).forEach(function(n){qa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,P0(n.key),n)}}function mS(e,t,r){return t&&Rv(e.prototype,t),r&&Rv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gS(e,t,r){return t=Ri(t),bS(e,A0()?Reflect.construct(t,r||[],Ri(e).constructor):t.apply(e,r))}function bS(e,t){if(t&&(Ar(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xS(e)}function xS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A0=function(){return!!e})()}function Ri(e){return Ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ri(e)}function wS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&El(e,t)}function El(e,t){return El=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},El(e,t)}function qa(e,t,r){return t=P0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P0(e){var t=OS(e,"string");return Ar(t)=="symbol"?t:t+""}function OS(e,t){if(Ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _S(e,t){if(e==null)return{};var r=SS(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SS(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function AS(e){return e.value}function PS(e,t){if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return A.createElement(e,t);t.ref;var r=_S(t,vS);return A.createElement(Zf,r)}var Dv=1,Zt=(function(e){function t(){var r;yS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=gS(this,t,[].concat(i)),qa(r,"lastBoundingBox",{width:-1,height:-1}),r}return wS(t,e),mS(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Dv||Math.abs(i.height-this.lastBoundingBox.height)>Dv)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ft({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=i.chartWidth,f=i.chartHeight,l,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();l={left:((c||0)-p.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return ft(ft({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=ft(ft({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return A.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(p){n.wrapperNode=p}},PS(a,ft(ft({},this.props),{},{payload:S0(f,c,AS)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ft(ft({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&L(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(N.PureComponent);qa(Zt,"displayName","Legend");qa(Zt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Hs,qv;function TS(){if(qv)return Hs;qv=1;var e=ni(),t=Qf(),r=Le(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Hs=i,Hs}var Ks,Lv;function T0(){if(Lv)return Ks;Lv=1;var e=v0(),t=TS();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return Ks=r,Ks}var Gs,Bv;function jS(){if(Bv)return Gs;Bv=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var c=u[t?s:++a];if(n(o[c],c,o)===!1)break}return r}}return Gs=e,Gs}var Vs,Fv;function ES(){if(Fv)return Vs;Fv=1;var e=jS(),t=e();return Vs=t,Vs}var Xs,zv;function j0(){if(zv)return Xs;zv=1;var e=ES(),t=Da();function r(n,i){return n&&e(n,i,t)}return Xs=r,Xs}var Ys,Uv;function MS(){if(Uv)return Ys;Uv=1;var e=oi();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return Ys=t,Ys}var Zs,Wv;function nh(){if(Wv)return Zs;Wv=1;var e=j0(),t=MS(),r=t(e);return Zs=r,Zs}var Js,Hv;function E0(){if(Hv)return Js;Hv=1;var e=nh(),t=oi();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,c){o[++a]=i(u,s,c)}),o}return Js=r,Js}var Qs,Kv;function $S(){if(Kv)return Qs;Kv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Qs=e,Qs}var ec,Gv;function CS(){if(Gv)return ec;Gv=1;var e=Xr();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!u&&r>n||u&&s&&f&&!c&&!l||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!f)return-1}return 0}return ec=t,ec}var tc,Vv;function IS(){if(Vv)return tc;Vv=1;var e=CS();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return tc=t,tc}var rc,Xv;function kS(){if(Xv)return rc;Xv=1;var e=Uf(),t=Wf(),r=lt(),n=E0(),i=$S(),a=m0(),o=IS(),u=Zr(),s=Le();function c(f,l,h){l.length?l=e(l,function(v){return s(v)?function(d){return t(d,v.length===1?v[0]:v)}:v}):l=[u];var p=-1;l=e(l,a(r));var y=n(f,function(v,d,g){var x=e(l,function(w){return w(v)});return{criteria:x,index:++p,value:v}});return i(y,function(v,d){return o(v,d,h)})}return rc=c,rc}var nc,Yv;function NS(){if(Yv)return nc;Yv=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return nc=e,nc}var ic,Zv;function RS(){if(Zv)return ic;Zv=1;var e=NS(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=t(o.length-i,0),c=Array(s);++u<s;)c[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(c),e(n,this,f)}}return ic=r,ic}var ac,Jv;function DS(){if(Jv)return ac;Jv=1;function e(t){return function(){return t}}return ac=e,ac}var oc,Qv;function M0(){if(Qv)return oc;Qv=1;var e=or(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return oc=t,oc}var uc,ey;function qS(){if(ey)return uc;ey=1;var e=DS(),t=M0(),r=Zr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return uc=n,uc}var sc,ty;function LS(){if(ty)return sc;ty=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return sc=n,sc}var cc,ry;function BS(){if(ry)return cc;ry=1;var e=qS(),t=LS(),r=t(e);return cc=r,cc}var lc,ny;function FS(){if(ny)return lc;ny=1;var e=Zr(),t=RS(),r=BS();function n(i,a){return r(t(i,a,e),i+"")}return lc=n,lc}var fc,iy;function La(){if(iy)return fc;iy=1;var e=Bf(),t=oi(),r=eh(),n=kt();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return fc=i,fc}var hc,ay;function zS(){if(ay)return hc;ay=1;var e=T0(),t=kS(),r=FS(),n=La(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return hc=i,hc}var US=zS();const ih=ue(US);function Sn(e){"@babel/helpers - typeof";return Sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sn(e)}function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ml.apply(this,arguments)}function WS(e,t){return VS(e)||GS(e,t)||KS(e,t)||HS()}function HS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KS(e,t){if(e){if(typeof e=="string")return oy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oy(e,t)}}function oy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function VS(e){if(Array.isArray(e))return e}function uy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uy(Object(r),!0).forEach(function(n){XS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XS(e,t,r){return t=YS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YS(e){var t=ZS(e,"string");return Sn(t)=="symbol"?t:t+""}function ZS(e,t){if(Sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JS(e){return Array.isArray(e)&&Se(e[0])&&Se(e[1])?e.join(" ~ "):e}var QS=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,v=t.label,d=t.labelFormatter,g=t.accessibilityLayer,x=g===void 0?!1:g,w=function(){if(f&&f.length){var T={padding:0,margin:0},M=(h?ih(f,h):f).map(function(I,C){if(I.type==="none")return null;var R=dc({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},u),D=I.formatter||l||JS,B=I.value,F=I.name,H=B,G=F;if(D&&H!=null&&G!=null){var U=D(B,F,I,C,f);if(Array.isArray(U)){var V=WS(U,2);H=V[0],G=V[1]}else H=U}return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:R},Se(G)?A.createElement("span",{className:"recharts-tooltip-item-name"},G):null,Se(G)?A.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,A.createElement("span",{className:"recharts-tooltip-item-value"},H),A.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:T},M)}return null},O=dc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=dc({margin:0},c),b=!ee(v),_=b?v:"",S=Q("recharts-default-tooltip",p),P=Q("recharts-tooltip-label",y);b&&d&&f!==void 0&&f!==null&&(_=d(v,f));var $=x?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",Ml({className:S,style:O},$),A.createElement("p",{className:P,style:m},A.isValidElement(_)?_:"".concat(_)),w())};function An(e){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},An(e)}function pi(e,t,r){return t=eA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eA(e){var t=tA(e,"string");return An(t)=="symbol"?t:t+""}function tA(e,t){if(An(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(An(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nn="recharts-tooltip-wrapper",rA={visibility:"hidden"};function nA(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Q(nn,pi(pi(pi(pi({},"".concat(nn,"-right"),L(r)&&t&&L(t.x)&&r>=t.x),"".concat(nn,"-left"),L(r)&&t&&L(t.x)&&r<t.x),"".concat(nn,"-bottom"),L(n)&&t&&L(t.y)&&n>=t.y),"".concat(nn,"-top"),L(n)&&t&&L(t.y)&&n<t.y))}function sy(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&L(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var h=f,p=s[n];return h<p?Math.max(l,s[n]):Math.max(f,s[n])}var y=l+u,v=s[n]+c;return y>v?Math.max(f,s[n]):Math.max(l,s[n])}function iA(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function aA(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=sy({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=sy({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=iA({translateX:f,translateY:l,useTranslate3d:u})):c=rA,{cssProperties:c,cssClasses:nA({translateX:f,translateY:l,coordinate:r})}}function Pr(e){"@babel/helpers - typeof";return Pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pr(e)}function cy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ly(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cy(Object(r),!0).forEach(function(n){Cl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C0(n.key),n)}}function sA(e,t,r){return t&&uA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cA(e,t,r){return t=Di(t),lA(e,$0()?Reflect.construct(t,r||[],Di(e).constructor):t.apply(e,r))}function lA(e,t){if(t&&(Pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fA(e)}function fA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($0=function(){return!!e})()}function Di(e){return Di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Di(e)}function hA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$l(e,t)}function $l(e,t){return $l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$l(e,t)}function Cl(e,t,r){return t=C0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C0(e){var t=dA(e,"string");return Pr(t)=="symbol"?t:t+""}function dA(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fy=1,pA=(function(e){function t(){var r;oA(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=cA(this,t,[].concat(i)),Cl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Cl(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return hA(t,e),sA(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>fy||Math.abs(n.height-this.state.lastBoundingBox.height)>fy)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,v=i.reverseDirection,d=i.useTranslate3d,g=i.viewBox,x=i.wrapperStyle,w=aA({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:g}),O=w.cssClasses,m=w.cssProperties,b=ly(ly({transition:h&&a?"transform ".concat(u,"ms ").concat(s):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return A.createElement("div",{tabIndex:-1,className:O,style:b,ref:function(S){n.wrapperNode=S}},c)}}])})(N.PureComponent),vA=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Jr={isSsr:vA()};function Tr(e){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(e)}function hy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hy(Object(r),!0).forEach(function(n){ah(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k0(n.key),n)}}function gA(e,t,r){return t&&mA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bA(e,t,r){return t=qi(t),xA(e,I0()?Reflect.construct(t,r||[],qi(e).constructor):t.apply(e,r))}function xA(e,t){if(t&&(Tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wA(e)}function wA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I0=function(){return!!e})()}function qi(e){return qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qi(e)}function OA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Il(e,t)}function Il(e,t){return Il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Il(e,t)}function ah(e,t,r){return t=k0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k0(e){var t=_A(e,"string");return Tr(t)=="symbol"?t:t+""}function _A(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function SA(e){return e.dataKey}function AA(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(QS,t)}var Ue=(function(e){function t(){return yA(this,t),bA(this,t,arguments)}return OA(t,e),gA(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,v=i.payloadUniqBy,d=i.position,g=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=S0(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,SA));var b=m.length>0;return A.createElement(pA,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:h,active:a,coordinate:f,hasPayload:b,offset:p,position:d,reverseDirection:g,useTranslate3d:x,viewBox:w,wrapperStyle:O},AA(c,dy(dy({},this.props),{},{payload:m})))}}])})(N.PureComponent);ah(Ue,"displayName","Tooltip");ah(Ue,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Jr.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 pc,py;function PA(){if(py)return pc;py=1;var e=ct(),t=function(){return e.Date.now()};return pc=t,pc}var vc,vy;function TA(){if(vy)return vc;vy=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return vc=t,vc}var yc,yy;function jA(){if(yy)return yc;yy=1;var e=TA(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return yc=r,yc}var mc,my;function N0(){if(my)return mc;my=1;var e=jA(),t=kt(),r=Xr(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=t(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var l=a.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):i.test(c)?n:+c}return mc=s,mc}var gc,gy;function EA(){if(gy)return gc;gy=1;var e=kt(),t=PA(),r=N0(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,h,p,y,v,d=0,g=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(g=!!c.leading,x="maxWait"in c,h=x?i(r(c.maxWait)||0,s):h,w="trailing"in c?!!c.trailing:w);function O(M){var I=f,C=l;return f=l=void 0,d=M,p=u.apply(C,I),p}function m(M){return d=M,y=setTimeout(S,s),g?O(M):p}function b(M){var I=M-v,C=M-d,R=s-I;return x?a(R,h-C):R}function _(M){var I=M-v,C=M-d;return v===void 0||I>=s||I<0||x&&C>=h}function S(){var M=t();if(_(M))return P(M);y=setTimeout(S,b(M))}function P(M){return y=void 0,w&&f?O(M):(f=l=void 0,p)}function $(){y!==void 0&&clearTimeout(y),d=0,f=v=l=y=void 0}function j(){return y===void 0?p:P(t())}function T(){var M=t(),I=_(M);if(f=arguments,l=this,v=M,I){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(S,s),O(v)}return y===void 0&&(y=setTimeout(S,s)),p}return T.cancel=$,T.flush=j,T}return gc=o,gc}var bc,by;function MA(){if(by)return bc;by=1;var e=EA(),t=kt(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return bc=n,bc}var $A=MA();const R0=ue($A);function Pn(e){"@babel/helpers - typeof";return Pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pn(e)}function xy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xy(Object(r),!0).forEach(function(n){CA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CA(e,t,r){return t=IA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IA(e){var t=kA(e,"string");return Pn(t)=="symbol"?t:t+""}function kA(e,t){if(Pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NA(e,t){return LA(e)||qA(e,t)||DA(e,t)||RA()}function RA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DA(e,t){if(e){if(typeof e=="string")return wy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wy(e,t)}}function wy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function LA(e){if(Array.isArray(e))return e}var Ti=N.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,v=y===void 0?0:y,d=e.id,g=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,m=N.useRef(null),b=N.useRef();b.current=x,N.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var _=N.useState({containerWidth:i.width,containerHeight:i.height}),S=NA(_,2),P=S[0],$=S[1],j=N.useCallback(function(M,I){$(function(C){var R=Math.round(M),D=Math.round(I);return C.containerWidth===R&&C.containerHeight===D?C:{containerWidth:R,containerHeight:D}})},[]);N.useEffect(function(){var M=function(F){var H,G=F[0].contentRect,U=G.width,V=G.height;j(U,V),(H=b.current)===null||H===void 0||H.call(b,U,V)};v>0&&(M=R0(M,v,{trailing:!0,leading:!1}));var I=new ResizeObserver(M),C=m.current.getBoundingClientRect(),R=C.width,D=C.height;return j(R,D),I.observe(m.current),function(){I.disconnect()}},[j,v]);var T=N.useMemo(function(){var M=P.containerWidth,I=P.containerHeight;if(M<0||I<0)return null;nt(Gt(o)||Gt(s),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,o,s),nt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=Gt(o)?M:o,R=Gt(s)?I:s;r&&r>0&&(C?R=C/r:R&&(C=R*r),h&&R>h&&(R=h)),nt(C>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
||
please check the style of container, or the props width(%s) and height(%s),
|
||
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
||
height and width.`,C,R,o,s,f,l,r);var D=!Array.isArray(p)&&yt(p.type).endsWith("Chart");return A.Children.map(p,function(B){return A.isValidElement(B)?N.cloneElement(B,vi({width:C,height:R},D?{style:vi({height:"100%",width:"100%",maxHeight:R,maxWidth:C},B.props.style)}:{})):B})},[r,p,s,h,l,f,P,o]);return A.createElement("div",{id:d?"".concat(d):void 0,className:Q("recharts-responsive-container",g),style:vi(vi({},O),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:h}),ref:m},T)}),Ba=function(t){return null};Ba.displayName="Cell";function Tn(e){"@babel/helpers - typeof";return Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tn(e)}function Oy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Oy(Object(r),!0).forEach(function(n){BA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BA(e,t,r){return t=FA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FA(e){var t=zA(e,"string");return Tn(t)=="symbol"?t:t+""}function zA(e,t){if(Tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fr={widthCache:{},cacheCount:0},UA=2e3,WA={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},_y="recharts_measurement_span";function HA(e){var t=kl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var yn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Jr.isSsr)return{width:0,height:0};var n=HA(r),i=JSON.stringify({text:t,copyStyle:n});if(fr.widthCache[i])return fr.widthCache[i];try{var a=document.getElementById(_y);a||(a=document.createElement("span"),a.setAttribute("id",_y),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=kl(kl({},WA),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return fr.widthCache[i]=s,++fr.cacheCount>UA&&(fr.cacheCount=0,fr.widthCache={}),s}catch{return{width:0,height:0}}},KA=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function jn(e){"@babel/helpers - typeof";return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jn(e)}function Li(e,t){return YA(e)||XA(e,t)||VA(e,t)||GA()}function GA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VA(e,t){if(e){if(typeof e=="string")return Sy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sy(e,t)}}function Sy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function YA(e){if(Array.isArray(e))return e}function ZA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ay(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,QA(n.key),n)}}function JA(e,t,r){return t&&Ay(e.prototype,t),r&&Ay(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function QA(e){var t=eP(e,"string");return jn(t)=="symbol"?t:t+""}function eP(e,t){if(jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Py=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ty=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,tP=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,rP=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,D0={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},nP=Object.keys(D0),vr="NaN";function iP(e,t){return e*D0[t]}var yi=(function(){function e(t,r){ZA(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!tP.test(r)&&(this.num=NaN,this.unit=""),nP.includes(r)&&(this.num=iP(t,r),this.unit="px")}return JA(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=rP.exec(r))!==null&&n!==void 0?n:[],a=Li(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function q0(e){if(e.includes(vr))return vr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Py.exec(t))!==null&&r!==void 0?r:[],i=Li(n,4),a=i[1],o=i[2],u=i[3],s=yi.parse(a??""),c=yi.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return vr;t=t.replace(Py,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=Ty.exec(t))!==null&&l!==void 0?l:[],p=Li(h,4),y=p[1],v=p[2],d=p[3],g=yi.parse(y??""),x=yi.parse(d??""),w=v==="+"?g.add(x):g.subtract(x);if(w.isNaN())return vr;t=t.replace(Ty,w.toString())}return t}var jy=/\(([^()]*)\)/;function aP(e){for(var t=e;t.includes("(");){var r=jy.exec(t),n=Li(r,2),i=n[1];t=t.replace(jy,q0(i))}return t}function oP(e){var t=e.replace(/\s+/g,"");return t=aP(t),t=q0(t),t}function uP(e){try{return oP(e)}catch{return vr}}function xc(e){var t=uP(e.slice(5,-1));return t===vr?"":t}var sP=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],cP=["dx","dy","angle","className","breakAll"];function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nl.apply(this,arguments)}function Ey(e,t){if(e==null)return{};var r=lP(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lP(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function My(e,t){return pP(e)||dP(e,t)||hP(e,t)||fP()}function fP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hP(e,t){if(e){if(typeof e=="string")return $y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $y(e,t)}}function $y(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function pP(e){if(Array.isArray(e))return e}var L0=/[ \f\n\r\t\v\u2028\u2029]+/,B0=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];ee(r)||(n?a=r.toString().split(""):a=r.toString().split(L0));var o=a.map(function(s){return{word:s,width:yn(s,i).width}}),u=n?0:yn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},vP=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=L(o),l=u,h=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(R,D){var B=D.word,F=D.width,H=R[R.length-1];if(H&&(i==null||a||H.width+F+n<Number(i)))H.words.push(B),H.width+=F+n;else{var G={words:[B],width:F};R.push(G)}return R},[])},p=h(r),y=function(C){return C.reduce(function(R,D){return R.width>D.width?R:D})};if(!f)return p;for(var v="…",d=function(C){var R=l.slice(0,C),D=B0({breakAll:c,style:s,children:R+v}).wordsWithComputedWidth,B=h(D),F=B.length>o||y(B).width>Number(i);return[F,B]},g=0,x=l.length-1,w=0,O;g<=x&&w<=l.length-1;){var m=Math.floor((g+x)/2),b=m-1,_=d(b),S=My(_,2),P=S[0],$=S[1],j=d(m),T=My(j,1),M=T[0];if(!P&&!M&&(g=m+1),P&&M&&(x=m-1),!P&&M){O=$;break}w++}return O||p},Cy=function(t){var r=ee(t)?[]:t.toString().split(L0);return[{words:r}]},yP=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Jr.isSsr){var s,c,f=B0({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;s=l,c=h}else return Cy(i);return vP({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return Cy(i)},Iy="#808080",rr=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,c=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,v=y===void 0?"end":y,d=t.fill,g=d===void 0?Iy:d,x=Ey(t,sP),w=N.useMemo(function(){return yP({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,m=x.dy,b=x.angle,_=x.className,S=x.breakAll,P=Ey(x,cP);if(!Se(n)||!Se(a))return null;var $=n+(L(O)?O:0),j=a+(L(m)?m:0),T;switch(v){case"start":T=xc("calc(".concat(c,")"));break;case"middle":T=xc("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:T=xc("calc(".concat(w.length-1," * -").concat(u,")"));break}var M=[];if(l){var I=w[0].width,C=x.width;M.push("scale(".concat((L(C)?C/I:1)/I,")"))}return b&&M.push("rotate(".concat(b,", ").concat($,", ").concat(j,")")),M.length&&(P.transform=M.join(" ")),A.createElement("text",Nl({},X(P,!0),{x:$,y:j,className:Q("recharts-text",_),textAnchor:p,fill:g.includes("url")?Iy:g}),w.map(function(R,D){var B=R.words.join(S?"":" ");return A.createElement("tspan",{x:$,dy:D===0?T:u,key:"".concat(B,"-").concat(D)},B)}))};function Ct(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function mP(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function oh(e){let t,r,n;e.length!==2?(t=Ct,r=(u,s)=>Ct(e(u),s),n=(u,s)=>e(u)-s):(t=e===Ct||e===mP?e:gP,r=e,n=e);function i(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<0?c=l+1:f=l}while(c<f)}return c}function a(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<=0?c=l+1:f=l}while(c<f)}return c}function o(u,s,c=0,f=u.length){const l=i(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:i,center:o,right:a}}function gP(){return 0}function F0(e){return e===null?NaN:+e}function*bP(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const xP=oh(Ct),ui=xP.right;oh(F0).center;class ky extends Map{constructor(t,r=_P){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Ny(this,t))}has(t){return super.has(Ny(this,t))}set(t,r){return super.set(wP(this,t),r)}delete(t){return super.delete(OP(this,t))}}function Ny({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function wP({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function OP({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function _P(e){return e!==null&&typeof e=="object"?e.valueOf():e}function SP(e=Ct){if(e===Ct)return z0;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function z0(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const AP=Math.sqrt(50),PP=Math.sqrt(10),TP=Math.sqrt(2);function Bi(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=AP?10:a>=PP?5:a>=TP?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?Bi(e,t,r*2):[u,s,c]}function Rl(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Bi(t,e,r):Bi(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function Dl(e,t,r){return t=+t,e=+e,r=+r,Bi(e,t,r)[2]}function ql(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Dl(t,e,r):Dl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Ry(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Dy(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function U0(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?z0:SP(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),p=Math.max(r,Math.floor(t-c*l/s+h)),y=Math.min(n,Math.floor(t+(s-c)*l/s+h));U0(e,t,p,y,i)}const a=e[t];let o=r,u=n;for(an(e,r,t),i(e[n],a)>0&&an(e,r,n);o<u;){for(an(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?an(e,r,u):(++u,an(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function an(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function jP(e,t,r){if(e=Float64Array.from(bP(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Dy(e);if(t>=1)return Ry(e);var n,i=(n-1)*t,a=Math.floor(i),o=Ry(U0(e,a).subarray(0,a+1)),u=Dy(e.subarray(a+1));return o+(u-o)*(i-a)}}function EP(e,t,r=F0){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function MP(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Qe(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function At(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Ll=Symbol("implicit");function uh(){var e=new ky,t=[],r=[],n=Ll;function i(a){let o=e.get(a);if(o===void 0){if(n!==Ll)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ky;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return uh(t,r).unknown(n)},Qe.apply(i,arguments),i}function En(){var e=uh().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var h=t().length,p=i<n,y=p?i:n,v=p?n:i;a=(v-y)/Math.max(1,h-s+c*2),u&&(a=Math.floor(a)),y+=(v-y-a*(h-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var d=MP(h).map(function(g){return y+a*g});return r(p?d.reverse():d)}return e.domain=function(h){return arguments.length?(t(h),l()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(u=!!h,l()):u},e.padding=function(h){return arguments.length?(s=Math.min(1,c=+h),l()):s},e.paddingInner=function(h){return arguments.length?(s=Math.min(1,h),l()):s},e.paddingOuter=function(h){return arguments.length?(c=+h,l()):c},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return En(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},Qe.apply(l(),arguments)}function W0(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return W0(t())},e}function mn(){return W0(En.apply(null,arguments).paddingInner(1))}function sh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function H0(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function si(){}var Mn=.7,Fi=1/Mn,wr="\\s*([+-]?\\d+)\\s*",$n="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ot="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$P=/^#([0-9a-f]{3,8})$/,CP=new RegExp(`^rgb\\(${wr},${wr},${wr}\\)$`),IP=new RegExp(`^rgb\\(${ot},${ot},${ot}\\)$`),kP=new RegExp(`^rgba\\(${wr},${wr},${wr},${$n}\\)$`),NP=new RegExp(`^rgba\\(${ot},${ot},${ot},${$n}\\)$`),RP=new RegExp(`^hsl\\(${$n},${ot},${ot}\\)$`),DP=new RegExp(`^hsla\\(${$n},${ot},${ot},${$n}\\)$`),qy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};sh(si,Cn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ly,formatHex:Ly,formatHex8:qP,formatHsl:LP,formatRgb:By,toString:By});function Ly(){return this.rgb().formatHex()}function qP(){return this.rgb().formatHex8()}function LP(){return K0(this).formatHsl()}function By(){return this.rgb().formatRgb()}function Cn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=$P.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Fy(t):r===3?new qe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?mi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?mi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=CP.exec(e))?new qe(t[1],t[2],t[3],1):(t=IP.exec(e))?new qe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=kP.exec(e))?mi(t[1],t[2],t[3],t[4]):(t=NP.exec(e))?mi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=RP.exec(e))?Wy(t[1],t[2]/100,t[3]/100,1):(t=DP.exec(e))?Wy(t[1],t[2]/100,t[3]/100,t[4]):qy.hasOwnProperty(e)?Fy(qy[e]):e==="transparent"?new qe(NaN,NaN,NaN,0):null}function Fy(e){return new qe(e>>16&255,e>>8&255,e&255,1)}function mi(e,t,r,n){return n<=0&&(e=t=r=NaN),new qe(e,t,r,n)}function BP(e){return e instanceof si||(e=Cn(e)),e?(e=e.rgb(),new qe(e.r,e.g,e.b,e.opacity)):new qe}function Bl(e,t,r,n){return arguments.length===1?BP(e):new qe(e,t,r,n??1)}function qe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}sh(qe,Bl,H0(si,{brighter(e){return e=e==null?Fi:Math.pow(Fi,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mn:Math.pow(Mn,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qe(Jt(this.r),Jt(this.g),Jt(this.b),zi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:zy,formatHex:zy,formatHex8:FP,formatRgb:Uy,toString:Uy}));function zy(){return`#${Vt(this.r)}${Vt(this.g)}${Vt(this.b)}`}function FP(){return`#${Vt(this.r)}${Vt(this.g)}${Vt(this.b)}${Vt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Uy(){const e=zi(this.opacity);return`${e===1?"rgb(":"rgba("}${Jt(this.r)}, ${Jt(this.g)}, ${Jt(this.b)}${e===1?")":`, ${e})`}`}function zi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Jt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vt(e){return e=Jt(e),(e<16?"0":"")+e.toString(16)}function Wy(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new rt(e,t,r,n)}function K0(e){if(e instanceof rt)return new rt(e.h,e.s,e.l,e.opacity);if(e instanceof si||(e=Cn(e)),!e)return new rt;if(e instanceof rt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new rt(o,u,s,e.opacity)}function zP(e,t,r,n){return arguments.length===1?K0(e):new rt(e,t,r,n??1)}function rt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}sh(rt,zP,H0(si,{brighter(e){return e=e==null?Fi:Math.pow(Fi,e),new rt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mn:Math.pow(Mn,e),new rt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new qe(wc(e>=240?e-240:e+120,i,n),wc(e,i,n),wc(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new rt(Hy(this.h),gi(this.s),gi(this.l),zi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=zi(this.opacity);return`${e===1?"hsl(":"hsla("}${Hy(this.h)}, ${gi(this.s)*100}%, ${gi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Hy(e){return e=(e||0)%360,e<0?e+360:e}function gi(e){return Math.max(0,Math.min(1,e||0))}function wc(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const ch=e=>()=>e;function UP(e,t){return function(r){return e+r*t}}function WP(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function HP(e){return(e=+e)==1?G0:function(t,r){return r-t?WP(t,r,e):ch(isNaN(t)?r:t)}}function G0(e,t){var r=t-e;return r?UP(e,r):ch(isNaN(e)?t:e)}const Ky=(function e(t){var r=HP(t);function n(i,a){var o=r((i=Bl(i)).r,(a=Bl(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=G0(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=c(f),i+""}}return n.gamma=e,n})(1);function KP(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function GP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function VP(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Qr(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function XP(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ui(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function YP(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Qr(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Fl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Oc=new RegExp(Fl.source,"g");function ZP(e){return function(){return e}}function JP(e){return function(t){return e(t)+""}}function QP(e,t){var r=Fl.lastIndex=Oc.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=Fl.exec(e))&&(i=Oc.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:Ui(n,i)})),r=Oc.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?JP(s[0].x):ZP(t):(t=s.length,function(c){for(var f=0,l;f<t;++f)u[(l=s[f]).i]=l.x(c);return u.join("")})}function Qr(e,t){var r=typeof t,n;return t==null||r==="boolean"?ch(t):(r==="number"?Ui:r==="string"?(n=Cn(t))?(t=n,Ky):QP:t instanceof Cn?Ky:t instanceof Date?XP:GP(t)?KP:Array.isArray(t)?VP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?YP:Ui)(e,t)}function lh(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function eT(e,t){t===void 0&&(t=e,e=Qr);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function tT(e){return function(){return e}}function Wi(e){return+e}var Gy=[0,1];function Ne(e){return e}function zl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:tT(isNaN(t)?NaN:.5)}function rT(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function nT(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=zl(i,n),a=r(o,a)):(n=zl(n,i),a=r(a,o)),function(u){return a(n(u))}}function iT(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=zl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=ui(e,u,1,n)-1;return a[s](i[s](u))}}function ci(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Fa(){var e=Gy,t=Gy,r=Qr,n,i,a,o=Ne,u,s,c;function f(){var h=Math.min(e.length,t.length);return o!==Ne&&(o=rT(e[0],e[h-1])),u=h>2?iT:nT,s=c=null,l}function l(h){return h==null||isNaN(h=+h)?a:(s||(s=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((c||(c=u(t,e.map(n),Ui)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Wi),f()):e.slice()},l.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},l.rangeRound=function(h){return t=Array.from(h),r=lh,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Ne,f()):o!==Ne},l.interpolate=function(h){return arguments.length?(r=h,f()):r},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,p){return n=h,i=p,f()}}function fh(){return Fa()(Ne,Ne)}function aT(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Hi(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function jr(e){return e=Hi(Math.abs(e)),e?e[1]:NaN}function oT(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function uT(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var sT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function In(e){if(!(t=sT.exec(e)))throw new Error("invalid format: "+e);var t;return new hh({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}In.prototype=hh.prototype;function hh(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}hh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function cT(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Ki;function lT(e,t){var r=Hi(e,t);if(!r)return Ki=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Ki=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Hi(e,Math.max(0,t+a-1))[0]}function Vy(e,t){var r=Hi(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Xy={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:aT,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Vy(e*100,t),r:Vy,s:lT,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Yy(e){return e}var Zy=Array.prototype.map,Jy=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fT(e){var t=e.grouping===void 0||e.thousands===void 0?Yy:oT(Zy.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Yy:uT(Zy.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l,h){l=In(l);var p=l.fill,y=l.align,v=l.sign,d=l.symbol,g=l.zero,x=l.width,w=l.comma,O=l.precision,m=l.trim,b=l.type;b==="n"?(w=!0,b="g"):Xy[b]||(O===void 0&&(O=12),m=!0,b="g"),(g||p==="0"&&y==="=")&&(g=!0,p="0",y="=");var _=(h&&h.prefix!==void 0?h.prefix:"")+(d==="$"?r:d==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),S=(d==="$"?n:/[%p]/.test(b)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),P=Xy[b],$=/[defgprs%]/.test(b);O=O===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function j(T){var M=_,I=S,C,R,D;if(b==="c")I=P(T)+I,T="";else{T=+T;var B=T<0||1/T<0;if(T=isNaN(T)?s:P(Math.abs(T),O),m&&(T=cT(T)),B&&+T==0&&v!=="+"&&(B=!1),M=(B?v==="("?v:u:v==="-"||v==="("?"":v)+M,I=(b==="s"&&!isNaN(T)&&Ki!==void 0?Jy[8+Ki/3]:"")+I+(B&&v==="("?")":""),$){for(C=-1,R=T.length;++C<R;)if(D=T.charCodeAt(C),48>D||D>57){I=(D===46?i+T.slice(C+1):T.slice(C))+I,T=T.slice(0,C);break}}}w&&!g&&(T=t(T,1/0));var F=M.length+T.length+I.length,H=F<x?new Array(x-F+1).join(p):"";switch(w&&g&&(T=t(H+T,H.length?x-I.length:1/0),H=""),y){case"<":T=M+T+I+H;break;case"=":T=M+H+T+I;break;case"^":T=H.slice(0,F=H.length>>1)+M+T+I+H.slice(F);break;default:T=H+M+T+I;break}return a(T)}return j.toString=function(){return l+""},j}function f(l,h){var p=Math.max(-8,Math.min(8,Math.floor(jr(h)/3)))*3,y=Math.pow(10,-p),v=c((l=In(l),l.type="f",l),{suffix:Jy[8+p/3]});return function(d){return v(y*d)}}return{format:c,formatPrefix:f}}var bi,dh,V0;hT({thousands:",",grouping:[3],currency:["$",""]});function hT(e){return bi=fT(e),dh=bi.format,V0=bi.formatPrefix,bi}function dT(e){return Math.max(0,-jr(Math.abs(e)))}function pT(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(jr(t)/3)))*3-jr(Math.abs(e)))}function vT(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,jr(t)-jr(e))+1}function X0(e,t,r,n){var i=ql(e,t,r),a;switch(n=In(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=pT(i,o))&&(n.precision=a),V0(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=vT(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=dT(i))&&(n.precision=a-(n.type==="%")*2);break}}return dh(n)}function Nt(e){var t=e.domain;return e.ticks=function(r){var n=t();return Rl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return X0(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],s,c,f=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);f-- >0;){if(c=Dl(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function Gi(){var e=fh();return e.copy=function(){return ci(e,Gi())},Qe.apply(e,arguments),Nt(e)}function Y0(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Wi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Y0(e).unknown(t)},e=arguments.length?Array.from(e,Wi):[0,1],Nt(r)}function Z0(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Qy(e){return Math.log(e)}function em(e){return Math.exp(e)}function yT(e){return-Math.log(-e)}function mT(e){return-Math.exp(-e)}function gT(e){return isFinite(e)?+("1e"+e):e<0?0:e}function bT(e){return e===10?gT:e===Math.E?Math.exp:t=>Math.pow(e,t)}function xT(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function tm(e){return(t,r)=>-e(-t,r)}function ph(e){const t=e(Qy,em),r=t.domain;let n=10,i,a;function o(){return i=xT(n),a=bT(n),r()[0]<0?(i=tm(i),a=tm(a),e(yT,mT)):e(Qy,em),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let h=i(c),p=i(f),y,v;const d=u==null?10:+u;let g=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),c>0){for(;h<=p;++h)for(y=1;y<n;++y)if(v=h<0?y/a(-h):y*a(h),!(v<c)){if(v>f)break;g.push(v)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(v=h>0?y/a(-h):y*a(h),!(v<c)){if(v>f)break;g.push(v)}g.length*2<d&&(g=Rl(c,f,d))}else g=Rl(h,p,Math.min(p-h,d)).map(a);return l?g.reverse():g},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=In(s)).precision==null&&(s.trim=!0),s=dh(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=c?s(f):""}},t.nice=()=>r(Z0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function J0(){const e=ph(Fa()).domain([1,10]);return e.copy=()=>ci(e,J0()).base(e.base()),Qe.apply(e,arguments),e}function rm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function nm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function vh(e){var t=1,r=e(rm(t),nm(t));return r.constant=function(n){return arguments.length?e(rm(t=+n),nm(t)):t},Nt(r)}function Q0(){var e=vh(Fa());return e.copy=function(){return ci(e,Q0()).constant(e.constant())},Qe.apply(e,arguments)}function im(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function wT(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function OT(e){return e<0?-e*e:e*e}function yh(e){var t=e(Ne,Ne),r=1;function n(){return r===1?e(Ne,Ne):r===.5?e(wT,OT):e(im(r),im(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Nt(t)}function mh(){var e=yh(Fa());return e.copy=function(){return ci(e,mh()).exponent(e.exponent())},Qe.apply(e,arguments),e}function _T(){return mh.apply(null,arguments).exponent(.5)}function am(e){return Math.sign(e)*e*e}function ST(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ex(){var e=fh(),t=[0,1],r=!1,n;function i(a){var o=ST(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(am(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Wi)).map(am)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ex(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Qe.apply(i,arguments),Nt(i)}function tx(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=EP(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[ui(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Ct),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return tx().domain(e).range(t).unknown(n)},Qe.apply(a,arguments)}function rx(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[ui(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return rx().domain([e,t]).range(i).unknown(a)},Qe.apply(Nt(o),arguments)}function nx(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[ui(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return nx().domain(e).range(t).unknown(r)},Qe.apply(i,arguments)}const _c=new Date,Sc=new Date;function Ae(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>Ae(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(_c.setTime(+a),Sc.setTime(+o),e(_c),e(Sc),Math.floor(r(_c,Sc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Vi=Ae(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Vi.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ae(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Vi);Vi.range;const dt=1e3,Ye=dt*60,pt=Ye*60,gt=pt*24,gh=gt*7,om=gt*30,Ac=gt*365,Xt=Ae(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*dt)},(e,t)=>(t-e)/dt,e=>e.getUTCSeconds());Xt.range;const bh=Ae(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dt)},(e,t)=>{e.setTime(+e+t*Ye)},(e,t)=>(t-e)/Ye,e=>e.getMinutes());bh.range;const xh=Ae(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ye)},(e,t)=>(t-e)/Ye,e=>e.getUTCMinutes());xh.range;const wh=Ae(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dt-e.getMinutes()*Ye)},(e,t)=>{e.setTime(+e+t*pt)},(e,t)=>(t-e)/pt,e=>e.getHours());wh.range;const Oh=Ae(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*pt)},(e,t)=>(t-e)/pt,e=>e.getUTCHours());Oh.range;const li=Ae(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ye)/gt,e=>e.getDate()-1);li.range;const za=Ae(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gt,e=>e.getUTCDate()-1);za.range;const ix=Ae(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gt,e=>Math.floor(e/gt));ix.range;function ur(e){return Ae(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ye)/gh)}const Ua=ur(0),Xi=ur(1),AT=ur(2),PT=ur(3),Er=ur(4),TT=ur(5),jT=ur(6);Ua.range;Xi.range;AT.range;PT.range;Er.range;TT.range;jT.range;function sr(e){return Ae(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/gh)}const Wa=sr(0),Yi=sr(1),ET=sr(2),MT=sr(3),Mr=sr(4),$T=sr(5),CT=sr(6);Wa.range;Yi.range;ET.range;MT.range;Mr.range;$T.range;CT.range;const _h=Ae(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());_h.range;const Sh=Ae(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Sh.range;const bt=Ae(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());bt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ae(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});bt.range;const xt=Ae(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());xt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ae(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});xt.range;function ax(e,t,r,n,i,a){const o=[[Xt,1,dt],[Xt,5,5*dt],[Xt,15,15*dt],[Xt,30,30*dt],[a,1,Ye],[a,5,5*Ye],[a,15,15*Ye],[a,30,30*Ye],[i,1,pt],[i,3,3*pt],[i,6,6*pt],[i,12,12*pt],[n,1,gt],[n,2,2*gt],[r,1,gh],[t,1,om],[t,3,3*om],[e,1,Ac]];function u(c,f,l){const h=f<c;h&&([c,f]=[f,c]);const p=l&&typeof l.range=="function"?l:s(c,f,l),y=p?p.range(c,+f+1):[];return h?y.reverse():y}function s(c,f,l){const h=Math.abs(f-c)/l,p=oh(([,,d])=>d).right(o,h);if(p===o.length)return e.every(ql(c/Ac,f/Ac,l));if(p===0)return Vi.every(Math.max(ql(c,f,l),1));const[y,v]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(v)}return[u,s]}const[IT,kT]=ax(xt,Sh,Wa,ix,Oh,xh),[NT,RT]=ax(bt,_h,Ua,li,wh,bh);function Pc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Tc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function on(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function DT(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=un(i),f=sn(i),l=un(a),h=sn(a),p=un(o),y=sn(o),v=un(u),d=sn(u),g=un(s),x=sn(s),w={a:D,A:B,b:F,B:H,c:null,d:hm,e:hm,f:oj,g:yj,G:gj,H:nj,I:ij,j:aj,L:ox,m:uj,M:sj,p:G,q:U,Q:vm,s:ym,S:cj,u:lj,U:fj,V:hj,w:dj,W:pj,x:null,X:null,y:vj,Y:mj,Z:bj,"%":pm},O={a:V,A:he,b:me,B:Be,c:null,d:dm,e:dm,f:_j,g:Ij,G:Nj,H:xj,I:wj,j:Oj,L:sx,m:Sj,M:Aj,p:qt,q:Re,Q:vm,s:ym,S:Pj,u:Tj,U:jj,V:Ej,w:Mj,W:$j,x:null,X:null,y:Cj,Y:kj,Z:Rj,"%":pm},m={a:$,A:j,b:T,B:M,c:I,d:lm,e:lm,f:QT,g:cm,G:sm,H:fm,I:fm,j:XT,L:JT,m:VT,M:YT,p:P,q:GT,Q:tj,s:rj,S:ZT,u:zT,U:UT,V:WT,w:FT,W:HT,x:C,X:R,y:cm,Y:sm,Z:KT,"%":ej};w.x=b(r,w),w.X=b(n,w),w.c=b(t,w),O.x=b(r,O),O.X=b(n,O),O.c=b(t,O);function b(z,Z){return function(J){var q=[],ve=-1,te=0,xe=z.length,we,De,Tt;for(J instanceof Date||(J=new Date(+J));++ve<xe;)z.charCodeAt(ve)===37&&(q.push(z.slice(te,ve)),(De=um[we=z.charAt(++ve)])!=null?we=z.charAt(++ve):De=we==="e"?" ":"0",(Tt=Z[we])&&(we=Tt(J,De)),q.push(we),te=ve+1);return q.push(z.slice(te,ve)),q.join("")}}function _(z,Z){return function(J){var q=on(1900,void 0,1),ve=S(q,z,J+="",0),te,xe;if(ve!=J.length)return null;if("Q"in q)return new Date(q.Q);if("s"in q)return new Date(q.s*1e3+("L"in q?q.L:0));if(Z&&!("Z"in q)&&(q.Z=0),"p"in q&&(q.H=q.H%12+q.p*12),q.m===void 0&&(q.m="q"in q?q.q:0),"V"in q){if(q.V<1||q.V>53)return null;"w"in q||(q.w=1),"Z"in q?(te=Tc(on(q.y,0,1)),xe=te.getUTCDay(),te=xe>4||xe===0?Yi.ceil(te):Yi(te),te=za.offset(te,(q.V-1)*7),q.y=te.getUTCFullYear(),q.m=te.getUTCMonth(),q.d=te.getUTCDate()+(q.w+6)%7):(te=Pc(on(q.y,0,1)),xe=te.getDay(),te=xe>4||xe===0?Xi.ceil(te):Xi(te),te=li.offset(te,(q.V-1)*7),q.y=te.getFullYear(),q.m=te.getMonth(),q.d=te.getDate()+(q.w+6)%7)}else("W"in q||"U"in q)&&("w"in q||(q.w="u"in q?q.u%7:"W"in q?1:0),xe="Z"in q?Tc(on(q.y,0,1)).getUTCDay():Pc(on(q.y,0,1)).getDay(),q.m=0,q.d="W"in q?(q.w+6)%7+q.W*7-(xe+5)%7:q.w+q.U*7-(xe+6)%7);return"Z"in q?(q.H+=q.Z/100|0,q.M+=q.Z%100,Tc(q)):Pc(q)}}function S(z,Z,J,q){for(var ve=0,te=Z.length,xe=J.length,we,De;ve<te;){if(q>=xe)return-1;if(we=Z.charCodeAt(ve++),we===37){if(we=Z.charAt(ve++),De=m[we in um?Z.charAt(ve++):we],!De||(q=De(z,J,q))<0)return-1}else if(we!=J.charCodeAt(q++))return-1}return q}function P(z,Z,J){var q=c.exec(Z.slice(J));return q?(z.p=f.get(q[0].toLowerCase()),J+q[0].length):-1}function $(z,Z,J){var q=p.exec(Z.slice(J));return q?(z.w=y.get(q[0].toLowerCase()),J+q[0].length):-1}function j(z,Z,J){var q=l.exec(Z.slice(J));return q?(z.w=h.get(q[0].toLowerCase()),J+q[0].length):-1}function T(z,Z,J){var q=g.exec(Z.slice(J));return q?(z.m=x.get(q[0].toLowerCase()),J+q[0].length):-1}function M(z,Z,J){var q=v.exec(Z.slice(J));return q?(z.m=d.get(q[0].toLowerCase()),J+q[0].length):-1}function I(z,Z,J){return S(z,t,Z,J)}function C(z,Z,J){return S(z,r,Z,J)}function R(z,Z,J){return S(z,n,Z,J)}function D(z){return o[z.getDay()]}function B(z){return a[z.getDay()]}function F(z){return s[z.getMonth()]}function H(z){return u[z.getMonth()]}function G(z){return i[+(z.getHours()>=12)]}function U(z){return 1+~~(z.getMonth()/3)}function V(z){return o[z.getUTCDay()]}function he(z){return a[z.getUTCDay()]}function me(z){return s[z.getUTCMonth()]}function Be(z){return u[z.getUTCMonth()]}function qt(z){return i[+(z.getUTCHours()>=12)]}function Re(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var Z=b(z+="",w);return Z.toString=function(){return z},Z},parse:function(z){var Z=_(z+="",!1);return Z.toString=function(){return z},Z},utcFormat:function(z){var Z=b(z+="",O);return Z.toString=function(){return z},Z},utcParse:function(z){var Z=_(z+="",!0);return Z.toString=function(){return z},Z}}}var um={"-":"",_:" ",0:"0"},je=/^\s*\d+/,qT=/^%/,LT=/[\\^$*+?|[\]().{}]/g;function re(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function BT(e){return e.replace(LT,"\\$&")}function un(e){return new RegExp("^(?:"+e.map(BT).join("|")+")","i")}function sn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function FT(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function zT(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function UT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function WT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function HT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function sm(e,t,r){var n=je.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function cm(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function KT(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function GT(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function VT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function lm(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function XT(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function fm(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function YT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function ZT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function JT(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function QT(e,t,r){var n=je.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function ej(e,t,r){var n=qT.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function tj(e,t,r){var n=je.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function rj(e,t,r){var n=je.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function hm(e,t){return re(e.getDate(),t,2)}function nj(e,t){return re(e.getHours(),t,2)}function ij(e,t){return re(e.getHours()%12||12,t,2)}function aj(e,t){return re(1+li.count(bt(e),e),t,3)}function ox(e,t){return re(e.getMilliseconds(),t,3)}function oj(e,t){return ox(e,t)+"000"}function uj(e,t){return re(e.getMonth()+1,t,2)}function sj(e,t){return re(e.getMinutes(),t,2)}function cj(e,t){return re(e.getSeconds(),t,2)}function lj(e){var t=e.getDay();return t===0?7:t}function fj(e,t){return re(Ua.count(bt(e)-1,e),t,2)}function ux(e){var t=e.getDay();return t>=4||t===0?Er(e):Er.ceil(e)}function hj(e,t){return e=ux(e),re(Er.count(bt(e),e)+(bt(e).getDay()===4),t,2)}function dj(e){return e.getDay()}function pj(e,t){return re(Xi.count(bt(e)-1,e),t,2)}function vj(e,t){return re(e.getFullYear()%100,t,2)}function yj(e,t){return e=ux(e),re(e.getFullYear()%100,t,2)}function mj(e,t){return re(e.getFullYear()%1e4,t,4)}function gj(e,t){var r=e.getDay();return e=r>=4||r===0?Er(e):Er.ceil(e),re(e.getFullYear()%1e4,t,4)}function bj(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function dm(e,t){return re(e.getUTCDate(),t,2)}function xj(e,t){return re(e.getUTCHours(),t,2)}function wj(e,t){return re(e.getUTCHours()%12||12,t,2)}function Oj(e,t){return re(1+za.count(xt(e),e),t,3)}function sx(e,t){return re(e.getUTCMilliseconds(),t,3)}function _j(e,t){return sx(e,t)+"000"}function Sj(e,t){return re(e.getUTCMonth()+1,t,2)}function Aj(e,t){return re(e.getUTCMinutes(),t,2)}function Pj(e,t){return re(e.getUTCSeconds(),t,2)}function Tj(e){var t=e.getUTCDay();return t===0?7:t}function jj(e,t){return re(Wa.count(xt(e)-1,e),t,2)}function cx(e){var t=e.getUTCDay();return t>=4||t===0?Mr(e):Mr.ceil(e)}function Ej(e,t){return e=cx(e),re(Mr.count(xt(e),e)+(xt(e).getUTCDay()===4),t,2)}function Mj(e){return e.getUTCDay()}function $j(e,t){return re(Yi.count(xt(e)-1,e),t,2)}function Cj(e,t){return re(e.getUTCFullYear()%100,t,2)}function Ij(e,t){return e=cx(e),re(e.getUTCFullYear()%100,t,2)}function kj(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function Nj(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Mr(e):Mr.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function Rj(){return"+0000"}function pm(){return"%"}function vm(e){return+e}function ym(e){return Math.floor(+e/1e3)}var hr,lx,fx;Dj({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Dj(e){return hr=DT(e),lx=hr.format,hr.parse,fx=hr.utcFormat,hr.utcParse,hr}function qj(e){return new Date(e)}function Lj(e){return e instanceof Date?+e:+new Date(+e)}function Ah(e,t,r,n,i,a,o,u,s,c){var f=fh(),l=f.invert,h=f.domain,p=c(".%L"),y=c(":%S"),v=c("%I:%M"),d=c("%I %p"),g=c("%a %d"),x=c("%b %d"),w=c("%B"),O=c("%Y");function m(b){return(s(b)<b?p:u(b)<b?y:o(b)<b?v:a(b)<b?d:n(b)<b?i(b)<b?g:x:r(b)<b?w:O)(b)}return f.invert=function(b){return new Date(l(b))},f.domain=function(b){return arguments.length?h(Array.from(b,Lj)):h().map(qj)},f.ticks=function(b){var _=h();return e(_[0],_[_.length-1],b??10)},f.tickFormat=function(b,_){return _==null?m:c(_)},f.nice=function(b){var _=h();return(!b||typeof b.range!="function")&&(b=t(_[0],_[_.length-1],b??10)),b?h(Z0(_,b)):f},f.copy=function(){return ci(f,Ah(e,t,r,n,i,a,o,u,s,c))},f}function Bj(){return Qe.apply(Ah(NT,RT,bt,_h,Ua,li,wh,bh,Xt,lx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Fj(){return Qe.apply(Ah(IT,kT,xt,Sh,Wa,za,Oh,xh,Xt,fx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ha(){var e=0,t=1,r,n,i,a,o=Ne,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(h){var p,y;return arguments.length?([p,y]=h,o=l(p,y),c):[o(0),o(1)]}}return c.range=f(Qr),c.rangeRound=f(lh),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function Rt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function hx(){var e=Nt(Ha()(Ne));return e.copy=function(){return Rt(e,hx())},At.apply(e,arguments)}function dx(){var e=ph(Ha()).domain([1,10]);return e.copy=function(){return Rt(e,dx()).base(e.base())},At.apply(e,arguments)}function px(){var e=vh(Ha());return e.copy=function(){return Rt(e,px()).constant(e.constant())},At.apply(e,arguments)}function Ph(){var e=yh(Ha());return e.copy=function(){return Rt(e,Ph()).exponent(e.exponent())},At.apply(e,arguments)}function zj(){return Ph.apply(null,arguments).exponent(.5)}function vx(){var e=[],t=Ne;function r(n){if(n!=null&&!isNaN(n=+n))return t((ui(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Ct),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>jP(e,a/n))},r.copy=function(){return vx(t).domain(e)},At.apply(r,arguments)}function Ka(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Ne,f,l=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),c(l?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(l=!!v,p):l},p.interpolator=function(v){return arguments.length?(c=v,p):c};function y(v){return function(d){var g,x,w;return arguments.length?([g,x,w]=d,c=eT(v,[g,x,w]),p):[c(0),c(.5),c(1)]}}return p.range=y(Qr),p.rangeRound=y(lh),p.unknown=function(v){return arguments.length?(h=v,p):h},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function yx(){var e=Nt(Ka()(Ne));return e.copy=function(){return Rt(e,yx())},At.apply(e,arguments)}function mx(){var e=ph(Ka()).domain([.1,1,10]);return e.copy=function(){return Rt(e,mx()).base(e.base())},At.apply(e,arguments)}function gx(){var e=vh(Ka());return e.copy=function(){return Rt(e,gx()).constant(e.constant())},At.apply(e,arguments)}function Th(){var e=yh(Ka());return e.copy=function(){return Rt(e,Th()).exponent(e.exponent())},At.apply(e,arguments)}function Uj(){return Th.apply(null,arguments).exponent(.5)}const mm=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:En,scaleDiverging:yx,scaleDivergingLog:mx,scaleDivergingPow:Th,scaleDivergingSqrt:Uj,scaleDivergingSymlog:gx,scaleIdentity:Y0,scaleImplicit:Ll,scaleLinear:Gi,scaleLog:J0,scaleOrdinal:uh,scalePoint:mn,scalePow:mh,scaleQuantile:tx,scaleQuantize:rx,scaleRadial:ex,scaleSequential:hx,scaleSequentialLog:dx,scaleSequentialPow:Ph,scaleSequentialQuantile:vx,scaleSequentialSqrt:zj,scaleSequentialSymlog:px,scaleSqrt:_T,scaleSymlog:Q0,scaleThreshold:nx,scaleTime:Bj,scaleUtc:Fj,tickFormat:X0},Symbol.toStringTag,{value:"Module"}));var jc,gm;function Ga(){if(gm)return jc;gm=1;var e=Xr();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(c===void 0?s===s&&!e(s):i(s,c)))var c=s,f=u}return f}return jc=t,jc}var Ec,bm;function bx(){if(bm)return Ec;bm=1;function e(t,r){return t>r}return Ec=e,Ec}var Mc,xm;function Wj(){if(xm)return Mc;xm=1;var e=Ga(),t=bx(),r=Zr();function n(i){return i&&i.length?e(i,r,t):void 0}return Mc=n,Mc}var Hj=Wj();const Va=ue(Hj);var $c,wm;function xx(){if(wm)return $c;wm=1;function e(t,r){return t<r}return $c=e,$c}var Cc,Om;function Kj(){if(Om)return Cc;Om=1;var e=Ga(),t=xx(),r=Zr();function n(i){return i&&i.length?e(i,r,t):void 0}return Cc=n,Cc}var Gj=Kj();const Xa=ue(Gj);var Ic,_m;function Vj(){if(_m)return Ic;_m=1;var e=Uf(),t=lt(),r=E0(),n=Le();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return Ic=i,Ic}var kc,Sm;function Xj(){if(Sm)return kc;Sm=1;var e=T0(),t=Vj();function r(n,i){return e(t(n,i),1)}return kc=r,kc}var Yj=Xj();const Zj=ue(Yj);var Nc,Am;function Jj(){if(Am)return Nc;Am=1;var e=rh();function t(r,n){return e(r,n)}return Nc=t,Nc}var Qj=Jj();const Ya=ue(Qj);var en=1e9,eE={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Eh,pe=!0,Je="[DecimalError] ",Qt=Je+"Invalid argument: ",jh=Je+"Exponent out of range: ",tn=Math.floor,Ht=Math.pow,tE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,We,Pe=1e7,de=7,wx=9007199254740991,Zi=tn(wx/de),W={};W.absoluteValue=W.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};W.comparedTo=W.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};W.decimalPlaces=W.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*de;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};W.dividedBy=W.div=function(e){return mt(this,new this.constructor(e))};W.dividedToIntegerBy=W.idiv=function(e){var t=this,r=t.constructor;return se(mt(t,new r(e),0,1),r.precision)};W.equals=W.eq=function(e){return!this.cmp(e)};W.exponent=function(){return be(this)};W.greaterThan=W.gt=function(e){return this.cmp(e)>0};W.greaterThanOrEqualTo=W.gte=function(e){return this.cmp(e)>=0};W.isInteger=W.isint=function(){return this.e>this.d.length-2};W.isNegative=W.isneg=function(){return this.s<0};W.isPositive=W.ispos=function(){return this.s>0};W.isZero=function(){return this.s===0};W.lessThan=W.lt=function(e){return this.cmp(e)<0};W.lessThanOrEqualTo=W.lte=function(e){return this.cmp(e)<1};W.logarithm=W.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(We))throw Error(Je+"NaN");if(r.s<1)throw Error(Je+(r.s?"NaN":"-Infinity"));return r.eq(We)?new n(0):(pe=!1,t=mt(kn(r,a),kn(e,a),a),pe=!0,se(t,i))};W.minus=W.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Sx(t,e):Ox(t,(e.s=-e.s,e))};W.modulo=W.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Je+"NaN");return r.s?(pe=!1,t=mt(r,e,0,1).times(e),pe=!0,r.minus(t)):se(new n(r),i)};W.naturalExponential=W.exp=function(){return _x(this)};W.naturalLogarithm=W.ln=function(){return kn(this)};W.negated=W.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};W.plus=W.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ox(t,e):Sx(t,(e.s=-e.s,e))};W.precision=W.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Qt+e);if(t=be(i)+1,n=i.d.length-1,r=n*de+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};W.squareRoot=W.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(Je+"NaN")}for(e=be(u),pe=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=at(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=tn((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(mt(u,a,o+2)).times(.5),at(a.d).slice(0,o)===(t=at(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(se(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return pe=!0,se(n,r)};W.times=W.mul=function(e){var t,r,n,i,a,o,u,s,c,f=this,l=f.constructor,h=f.d,p=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,s=h.length,c=p.length,s<c&&(a=h,h=p,p=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+p[n]*h[i-n-1]+t,a[i--]=u%Pe|0,t=u/Pe|0;a[i]=(a[i]+t)%Pe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,pe?se(e,l.precision):e};W.toDecimalPlaces=W.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(st(e,0,en),t===void 0?t=n.rounding:st(t,0,8),se(r,e+be(r)+1,t))};W.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=nr(n,!0):(st(e,0,en),t===void 0?t=i.rounding:st(t,0,8),n=se(new i(n),e+1,t),r=nr(n,!0,e+1)),r};W.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?nr(i):(st(e,0,en),t===void 0?t=a.rounding:st(t,0,8),n=se(new a(i),e+be(i)+1,t),r=nr(n.abs(),!1,e+be(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};W.toInteger=W.toint=function(){var e=this,t=e.constructor;return se(new t(e),be(e)+1,t.rounding)};W.toNumber=function(){return+this};W.toPower=W.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(We);if(u=new s(u),!u.s){if(e.s<1)throw Error(Je+"Infinity");return u}if(u.eq(We))return u;if(n=s.precision,e.eq(We))return se(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=wx){for(i=new s(We),t=Math.ceil(n/de+4),pe=!1;r%2&&(i=i.times(u),Tm(i.d,t)),r=tn(r/2),r!==0;)u=u.times(u),Tm(u.d,t);return pe=!0,e.s<0?new s(We).div(i):se(i,n)}}else if(a<0)throw Error(Je+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,pe=!1,i=e.times(kn(u,n+c)),pe=!0,i=_x(i),i.s=a,i};W.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=be(i),n=nr(i,r<=a.toExpNeg||r>=a.toExpPos)):(st(e,1,en),t===void 0?t=a.rounding:st(t,0,8),i=se(new a(i),e,t),r=be(i),n=nr(i,e<=r||r<=a.toExpNeg,e)),n};W.toSignificantDigits=W.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(st(e,1,en),t===void 0?t=n.rounding:st(t,0,8)),se(new n(r),e,t)};W.toString=W.valueOf=W.val=W.toJSON=W[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=be(e),r=e.constructor;return nr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Ox(e,t){var r,n,i,a,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),pe?se(t,l):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(l/de),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/Pe|0,s[a]%=Pe;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,pe?se(t,l):t}function st(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Qt+e)}function at(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=de-n.length,r&&(a+=Et(r)),a+=n;o=e[t],n=o+"",r=de-n.length,r&&(a+=Et(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var mt=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Pe|0,o=a/Pe|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Pe+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,h,p,y,v,d,g,x,w,O,m,b,_,S,P=n.constructor,$=n.s==i.s?1:-1,j=n.d,T=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(Je+"Division by zero");for(s=n.e-i.e,_=T.length,m=j.length,p=new P($),y=p.d=[],c=0;T[c]==(j[c]||0);)++c;if(T[c]>(j[c]||0)&&--s,a==null?x=a=P.precision:o?x=a+(be(n)-be(i))+1:x=a,x<0)return new P(0);if(x=x/de+2|0,c=0,_==1)for(f=0,T=T[0],x++;(c<m||f)&&x--;c++)w=f*Pe+(j[c]||0),y[c]=w/T|0,f=w%T|0;else{for(f=Pe/(T[0]+1)|0,f>1&&(T=e(T,f),j=e(j,f),_=T.length,m=j.length),O=_,v=j.slice(0,_),d=v.length;d<_;)v[d++]=0;S=T.slice(),S.unshift(0),b=T[0],T[1]>=Pe/2&&++b;do f=0,u=t(T,v,_,d),u<0?(g=v[0],_!=d&&(g=g*Pe+(v[1]||0)),f=g/b|0,f>1?(f>=Pe&&(f=Pe-1),l=e(T,f),h=l.length,d=v.length,u=t(l,v,h,d),u==1&&(f--,r(l,_<h?S:T,h))):(f==0&&(u=f=1),l=T.slice()),h=l.length,h<d&&l.unshift(0),r(v,l,d),u==-1&&(d=v.length,u=t(T,v,_,d),u<1&&(f++,r(v,_<d?S:T,d))),d=v.length):u===0&&(f++,v=[0]),y[c++]=f,u&&v[0]?v[d++]=j[O]||0:(v=[j[O]],d=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),p.e=s,se(p,o?a+be(p)+1:a)}})();function _x(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(be(e)>16)throw Error(jh+be(e));if(!e.s)return new f(We);for(pe=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Ht(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(We),f.precision=u;;){if(i=se(i.times(e),u),r=r.times(++s),o=a.plus(mt(i,r,u)),at(o.d).slice(0,u)===at(a.d).slice(0,u)){for(;c--;)a=se(a.times(a),u);return f.precision=l,t==null?(pe=!0,se(a,l)):a}a=o}}function be(e){for(var t=e.e*de,r=e.d[0];r>=10;r/=10)t++;return t}function Rc(e,t,r){if(t>e.LN10.sd())throw pe=!0,r&&(e.precision=r),Error(Je+"LN10 precision limit exceeded");return se(new e(e.LN10),t)}function Et(e){for(var t="";e--;)t+="0";return t}function kn(e,t){var r,n,i,a,o,u,s,c,f,l=1,h=10,p=e,y=p.d,v=p.constructor,d=v.precision;if(p.s<1)throw Error(Je+(p.s?"NaN":"-Infinity"));if(p.eq(We))return new v(0);if(t==null?(pe=!1,c=d):c=t,p.eq(10))return t==null&&(pe=!0),Rc(v,c);if(c+=h,v.precision=c,r=at(y),n=r.charAt(0),a=be(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=at(p.d),n=r.charAt(0),l++;a=be(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return s=Rc(v,c+2,d).times(a+""),p=kn(new v(n+"."+r.slice(1)),c-h).plus(s),v.precision=d,t==null?(pe=!0,se(p,d)):p;for(u=o=p=mt(p.minus(We),p.plus(We),c),f=se(p.times(p),c),i=3;;){if(o=se(o.times(f),c),s=u.plus(mt(o,new v(i),c)),at(s.d).slice(0,c)===at(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(Rc(v,c+2,d).times(a+""))),u=mt(u,new v(l),c),v.precision=d,t==null?(pe=!0,se(u,d)):u;u=s,i+=2}}function Pm(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=tn(r/de),e.d=[],n=(r+1)%de,r<0&&(n+=de),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=de;n<i;)e.d.push(+t.slice(n,n+=de));t=t.slice(n),n=de-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),pe&&(e.e>Zi||e.e<-Zi))throw Error(jh+r)}else e.s=0,e.e=0,e.d=[0];return e}function se(e,t,r){var n,i,a,o,u,s,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=de,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/de),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=de,i=n-de+o}if(r!==void 0&&(a=Ht(10,o-i-1),u=c/a%10|0,s=t<0||l[f+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/Ht(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=be(e),l.length=1,t=t-a-1,l[0]=Ht(10,(de-t%de)%de),e.e=tn(-t/de)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=Ht(10,de-n),l[f]=i>0?(c/Ht(10,o-i)%Ht(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==Pe&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Pe)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(pe&&(e.e>Zi||e.e<-Zi))throw Error(jh+be(e));return e}function Sx(e,t){var r,n,i,a,o,u,s,c,f,l,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),pe?se(t,p):t;if(s=e.d,l=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(f=o<0,f?(r=s,o=-o,u=l.length):(r=l,n=c,u=s.length),i=Math.max(Math.ceil(p/de),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,i=l.length-u;i>0;--i)s[u++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=Pe-1;--s[a],s[i]+=Pe}s[i]-=l[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,pe?se(t,p):t):new h(0)}function nr(e,t,r){var n,i=be(e),a=at(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Et(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Et(-i-1)+a,r&&(n=r-o)>0&&(a+=Et(n))):i>=o?(a+=Et(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Et(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Et(n))),e.s<0?"-"+a:a}function Tm(e,t){if(e.length>t)return e.length=t,!0}function Ax(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Qt+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Pm(o,a.toString())}else if(typeof a!="string")throw Error(Qt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,tE.test(a))Pm(o,a);else throw Error(Qt+a)}if(i.prototype=W,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Ax,i.config=i.set=rE,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function rE(e){if(!e||typeof e!="object")throw Error(Je+"Object expected");var t,r,n,i=["precision",1,en,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(tn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Qt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Qt+r+": "+n);return this}var Eh=Ax(eE);We=new Eh(1);const oe=Eh;function nE(e){return uE(e)||oE(e)||aE(e)||iE()}function iE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aE(e,t){if(e){if(typeof e=="string")return Ul(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ul(e,t)}}function oE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function uE(e){if(Array.isArray(e))return Ul(e)}function Ul(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var sE=function(t){return t},Px={},Tx=function(t){return t===Px},jm=function(t){return function r(){return arguments.length===0||arguments.length===1&&Tx(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},cE=function e(t,r){return t===1?r:jm(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==Px}).length;return o>=t?r.apply(void 0,i):e(t-o,jm(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var f=i.map(function(l){return Tx(l)?s.shift():l});return r.apply(void 0,nE(f).concat(s))}))})},Za=function(t){return cE(t.length,t)},Wl=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},lE=Za(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),fE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return sE;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},Hl=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},jx=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function hE(e){var t;return e===0?t=1:t=Math.floor(new oe(e).abs().log(10).toNumber())+1,t}function dE(e,t,r){for(var n=new oe(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var pE=Za(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),vE=Za(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),yE=Za(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Ja={rangeStep:dE,getDigitCount:hE,interpolateNumber:pE,uninterpolateNumber:vE,uninterpolateTruncation:yE};function Kl(e){return bE(e)||gE(e)||Ex(e)||mE()}function mE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function bE(e){if(Array.isArray(e))return Gl(e)}function Nn(e,t){return OE(e)||wE(e,t)||Ex(e,t)||xE()}function xE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ex(e,t){if(e){if(typeof e=="string")return Gl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gl(e,t)}}function Gl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wE(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function OE(e){if(Array.isArray(e))return e}function Mx(e){var t=Nn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function $x(e,t,r){if(e.lte(0))return new oe(0);var n=Ja.getDigitCount(e.toNumber()),i=new oe(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new oe(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new oe(Math.ceil(s))}function _E(e,t,r){var n=1,i=new oe(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new oe(10).pow(Ja.getDigitCount(e)-1),i=new oe(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new oe(Math.floor(e)))}else e===0?i=new oe(Math.floor((t-1)/2)):r||(i=new oe(Math.floor(e)));var o=Math.floor((t-1)/2),u=fE(lE(function(s){return i.add(new oe(s-o).mul(n)).toNumber()}),Wl);return u(0,t)}function Cx(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new oe(0),tickMin:new oe(0),tickMax:new oe(0)};var a=$x(new oe(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new oe(0):(o=new oe(e).add(t).div(2),o=o.sub(new oe(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new oe(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?Cx(e,t,r,n,i+1):(c<r&&(s=t>0?s+(r-c):s,u=t>0?u:u+(r-c)),{step:a,tickMin:o.sub(new oe(u).mul(a)),tickMax:o.add(new oe(s).mul(a))})}function SE(e){var t=Nn(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=Mx([r,n]),s=Nn(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(Kl(Wl(0,i-1).map(function(){return 1/0}))):[].concat(Kl(Wl(0,i-1).map(function(){return-1/0})),[f]);return r>n?Hl(l):l}if(c===f)return _E(c,i,a);var h=Cx(c,f,o,a),p=h.step,y=h.tickMin,v=h.tickMax,d=Ja.rangeStep(y,v.add(new oe(.1).mul(p)),p);return r>n?Hl(d):d}function AE(e,t){var r=Nn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Mx([n,i]),u=Nn(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,i];if(s===c)return[s];var f=Math.max(t,2),l=$x(new oe(c).sub(s).div(f-1),a,0),h=[].concat(Kl(Ja.rangeStep(new oe(s),new oe(c).sub(new oe(.99).mul(l)),l)),[c]);return n>i?Hl(h):h}var PE=jx(SE),TE=jx(AE),jE="Invariant failed";function ir(e,t){throw new Error(jE)}var EE=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function $r(e){"@babel/helpers - typeof";return $r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$r(e)}function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ji.apply(this,arguments)}function ME(e,t){return kE(e)||IE(e,t)||CE(e,t)||$E()}function $E(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CE(e,t){if(e){if(typeof e=="string")return Em(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Em(e,t)}}function Em(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function IE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function kE(e){if(Array.isArray(e))return e}function NE(e,t){if(e==null)return{};var r=RE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function DE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nx(n.key),n)}}function LE(e,t,r){return t&&qE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BE(e,t,r){return t=Qi(t),FE(e,Ix()?Reflect.construct(t,r||[],Qi(e).constructor):t.apply(e,r))}function FE(e,t){if(t&&($r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zE(e)}function zE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ix(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ix=function(){return!!e})()}function Qi(e){return Qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qi(e)}function UE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vl(e,t)}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vl(e,t)}function kx(e,t,r){return t=Nx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nx(e){var t=WE(e,"string");return $r(t)=="symbol"?t:t+""}function WE(e,t){if($r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qa=(function(e){function t(){return DE(this,t),BE(this,t,arguments)}return UE(t,e),LE(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,h=NE(n,EE),p=X(h,!1);this.props.direction==="x"&&f.type!=="number"&&ir();var y=s.map(function(v){var d=c(v,u),g=d.x,x=d.y,w=d.value,O=d.errorVal;if(!O)return null;var m=[],b,_;if(Array.isArray(O)){var S=ME(O,2);b=S[0],_=S[1]}else b=_=O;if(a==="vertical"){var P=f.scale,$=x+i,j=$+o,T=$-o,M=P(w-b),I=P(w+_);m.push({x1:I,y1:j,x2:I,y2:T}),m.push({x1:M,y1:$,x2:I,y2:$}),m.push({x1:M,y1:j,x2:M,y2:T})}else if(a==="horizontal"){var C=l.scale,R=g+i,D=R-o,B=R+o,F=C(w-b),H=C(w+_);m.push({x1:D,y1:H,x2:B,y2:H}),m.push({x1:R,y1:F,x2:R,y2:H}),m.push({x1:D,y1:F,x2:B,y2:F})}return A.createElement(ae,Ji({className:"recharts-errorBar",key:"bar-".concat(m.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},p),m.map(function(G){return A.createElement("line",Ji({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return A.createElement(ae,{className:"recharts-errorBars"},y)}}])})(A.Component);kx(Qa,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});kx(Qa,"displayName","ErrorBar");function Rn(e){"@babel/helpers - typeof";return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(e)}function Mm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mm(Object(r),!0).forEach(function(n){HE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HE(e,t,r){return t=KE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KE(e){var t=GE(e,"string");return Rn(t)=="symbol"?t:t+""}function GE(e,t){if(Rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rx=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=ze(r,Zt);if(!o)return null;var u=Zt.defaultProps,s=u!==void 0?Ft(Ft({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var h=l.item,p=l.props,y=p.sectors||p.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):c=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,p=h!==void 0?Ft(Ft({},h),l.props):{},y=p.dataKey,v=p.name,d=p.legendType,g=p.hide;return{inactive:g,dataKey:y,type:s.iconType||d||"square",color:Mh(l),value:v||y,payload:p}}),Ft(Ft(Ft({},s),Zt.getWithHeight(o,i)),{},{payload:c,item:o})};function Dn(e){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}function $m(e){return ZE(e)||YE(e)||XE(e)||VE()}function VE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XE(e,t){if(e){if(typeof e=="string")return Xl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xl(e,t)}}function YE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZE(e){if(Array.isArray(e))return Xl(e)}function Xl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Cm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cm(Object(r),!0).forEach(function(n){Or(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Or(e,t,r){return t=JE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JE(e){var t=QE(e,"string");return Dn(t)=="symbol"?t:t+""}function QE(e,t){if(Dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ce(e,t,r){return ee(e)||ee(t)?r:Se(t)?He(e,t,r):Y(t)?t(e):r}function gn(e,t,r,n){var i=Zj(e,function(u){return Ce(u,t)});if(r==="number"){var a=i.filter(function(u){return L(u)||parseFloat(u)});return a.length?[Xa(a),Va(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!ee(u)}):i;return o.map(function(u){return Se(u)||u instanceof Date?u:""})}var eM=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,c=0;c<u;c++){var f=c>0?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,h=c>=u-1?i[0].coordinate:i[c+1].coordinate,p=void 0;if(Ie(l-f)!==Ie(h-l)){var y=[];if(Ie(h-l)===Ie(s[1]-s[0])){p=h;var v=l+s[1]-s[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{p=f;var d=h+s[1]-s[0];y[0]=Math.min(l,(d+l)/2),y[1]=Math.max(l,(d+l)/2)}var g=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var x=Math.min(f,h),w=Math.max(f,h);if(t>(x+l)/2&&t<=(w+l)/2){o=i[c].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Mh=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},tM=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),h=0,p=l.length;h<p;h++){var y=f[l[h]],v=y.items,d=y.cateAxisId,g=v.filter(function(_){return yt(_.type).indexOf("Bar")>=0});if(g&&g.length){var x=g[0].type.defaultProps,w=x!==void 0?ye(ye({},x),g[0].props):g[0].props,O=w.barSize,m=w[d];o[m]||(o[m]=[]);var b=ee(O)?r:O;o[m].push({item:g[0],stackList:g.slice(1),barSize:ee(b)?void 0:ke(b,n,0)})}}return o},rM=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=ke(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/s,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(s-1)*c,y>=i&&(y-=(s-1)*c,c=0),y>=i&&p>0&&(h=!0,p*=.9,y=s*p);var v=(i-y)/2>>0,d={offset:v-c,size:0};f=o.reduce(function(O,m){var b={item:m.item,position:{offset:d.offset+d.size+c,size:h?p:m.barSize}},_=[].concat($m(O),[b]);return d=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){_.push({item:S,position:d})}),_},l)}else{var g=ke(n,i,0,!0);i-2*g-(s-1)*c<=0&&(c=0);var x=(i-2*g-(s-1)*c)/s;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,b){var _=[].concat($m(O),[{item:m.item,position:{offset:g+(x+c)*b+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},nM=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=Rx({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,h=f.height,p=c.align,y=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&p!=="center"&&L(t[p]))return ye(ye({},t),{},Or({},p,t[p]+(l||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&L(t[y]))return ye(ye({},t),{},Or({},y,t[y]+(h||0)))}return t},iM=function(t,r,n){return ee(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Dx=function(t,r,n,i,a){var o=r.props.children,u=Ze(o,Qa).filter(function(c){return iM(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=Ce(f,n);if(ee(l))return c;var h=Array.isArray(l)?[Xa(l),Va(l)]:[l,l],p=s.reduce(function(y,v){var d=Ce(f,v,0),g=h[0]-Math.abs(Array.isArray(d)?d[0]:d),x=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(g,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},aM=function(t,r,n,i,a){var o=r.map(function(u){return Dx(t,u,n,a,i)}).filter(function(u){return!ee(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},qx=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&Dx(t,s,c,i)||gn(t,c,n,a)});if(n==="number")return o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,c){for(var f=0,l=c.length;f<l;f++)u[c[f]]||(u[c[f]]=!0,s.push(c[f]));return s},[])},Lx=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Bx=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,u=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||u.push(r),o||u.push(n),u},vt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Ie(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+c,value:l,offset:c}});return f.filter(function(l){return!ii(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+c,value:l,index:h,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,h){return{coordinate:i(l)+c,value:a?a[l]:l,index:h,offset:c}})},Dc=new WeakMap,xi=function(t,r){if(typeof r!="function")return t;Dc.has(t)||Dc.set(t,new WeakMap);var n=Dc.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},Fx=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:En(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Gi(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:mn(),realScaleType:"point"}:a==="category"?{scale:En(),realScaleType:"band"}:{scale:Gi(),realScaleType:"linear"};if(er(i)){var s="scale".concat(Ia(i));return{scale:(mm[s]||mn)(),realScaleType:mm[s]?s:"point"}}return Y(i)?{scale:i}:{scale:mn(),realScaleType:"point"}},Im=1e-4,zx=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-Im,o=Math.max(i[0],i[1])+Im,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},oM=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},uM=function(t,r){if(!r||r.length!==2||!L(r[0])||!L(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!L(t[0])||t[0]<n)&&(a[0]=n),(!L(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},sM=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var s=ii(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},cM=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=ii(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},lM={sign:sM,expand:Z_,none:_r,silhouette:J_,wiggle:Q_,positive:cM},fM=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=lM[n],o=Y_().keys(i).value(function(u,s){return+Ce(u,s,0)}).order(Al).offset(a);return o(t)},hM=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?ye(ye({},h.type.defaultProps),h.props):h.props,v=y.stackId,d=y.hide;if(d)return l;var g=y[n],x=l[g]||{hasStack:!1,stackGroups:{}};if(Se(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[ai("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return ye(ye({},l),{},Or({},g,x))},s),f={};return Object.keys(c).reduce(function(l,h){var p=c[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,d){var g=p.stackGroups[d];return ye(ye({},v),{},Or({},d,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:fM(t,g.items,a)}))},y)}return ye(ye({},l),{},Or({},h,p))},f)},Ux=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=PE(c,a,u);return t.domain([Xa(f),Va(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=TE(l,a,u);return{niceTicks:h}}return null},km=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var s=Ce(o,r.dataKey,r.domain[u]);return ee(s)?null:r.scale(s)-a/2+i},dM=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},pM=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Se(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},vM=function(t){return t.reduce(function(r,n){return[Xa(n.concat([r[0]]).filter(L)),Va(n.concat([r[1]]).filter(L))]},[1/0,-1/0])},Wx=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,f){var l=vM(f.slice(r,n+1));return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Nm=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Rm=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Yl=function(t,r,n){if(Y(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(L(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Nm.test(t[0])){var a=+Nm.exec(t[0])[1];i[0]=r[0]-a}else Y(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(L(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Rm.test(t[1])){var o=+Rm.exec(t[1])[1];i[1]=r[1]+o}else Y(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},ea=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=ih(r,function(l){return l.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],f=a[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Dm=function(t,r,n){return!t||!t.length||Ya(t,He(n,"type.defaultProps.domain"))?r:t},Hx=function(t,r){var n=t.type.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return ye(ye({},X(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Mh(t),value:Ce(r,i),type:s,payload:r,chartType:c,hide:f})};function qn(e){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(e)}function qm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qm(Object(r),!0).forEach(function(n){Kx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kx(e,t,r){return t=yM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yM(e){var t=mM(e,"string");return qn(t)=="symbol"?t:t+""}function mM(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gM(e,t){return OM(e)||wM(e,t)||xM(e,t)||bM()}function bM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xM(e,t){if(e){if(typeof e=="string")return Lm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lm(e,t)}}function Lm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function OM(e){if(Array.isArray(e))return e}var ta=Math.PI/180,_M=function(t){return t*180/Math.PI},fe=function(t,r,n,i){return{x:t+Math.cos(-ta*i)*n,y:r+Math.sin(-ta*i)*n}},Gx=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},SM=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.startAngle,c=t.endAngle,f=ke(t.cx,o,o/2),l=ke(t.cy,u,u/2),h=Gx(o,u,n),p=ke(t.innerRadius,h,0),y=ke(t.outerRadius,h,h*.8),v=Object.keys(r);return v.reduce(function(d,g){var x=r[g],w=x.domain,O=x.reversed,m;if(ee(x.range))i==="angleAxis"?m=[s,c]:i==="radiusAxis"&&(m=[p,y]),O&&(m=[m[1],m[0]]);else{m=x.range;var b=m,_=gM(b,2);s=_[0],c=_[1]}var S=Fx(x,a),P=S.realScaleType,$=S.scale;$.domain(w).range(m),zx($);var j=Ux($,ht(ht({},x),{},{realScaleType:P})),T=ht(ht(ht({},x),j),{},{range:m,radius:y,realScaleType:P,scale:$,cx:f,cy:l,innerRadius:p,outerRadius:y,startAngle:s,endAngle:c});return ht(ht({},d),{},Kx({},g,T))},{})},AM=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},PM=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=AM({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,c=Math.acos(s);return i>o&&(c=2*Math.PI-c),{radius:u,angle:_M(c),angleInRadian:c}},TM=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},jM=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},Bm=function(t,r){var n=t.x,i=t.y,a=PM({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,c=r.outerRadius;if(o<s||o>c)return!1;if(o===0)return!0;var f=TM(r),l=f.startAngle,h=f.endAngle,p=u,y;if(l<=h){for(;p>h;)p-=360;for(;p<l;)p+=360;y=p>=l&&p<=h}else{for(;p>l;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=l}return y?ht(ht({},r),{},{radius:o,angle:jM(p,r)}):null},Vx=function(t){return!N.isValidElement(t)&&!Y(t)&&typeof t!="boolean"?t.className:""};function Ln(e){"@babel/helpers - typeof";return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ln(e)}var EM=["offset"];function MM(e){return kM(e)||IM(e)||CM(e)||$M()}function $M(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CM(e,t){if(e){if(typeof e=="string")return Zl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zl(e,t)}}function IM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kM(e){if(Array.isArray(e))return Zl(e)}function Zl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NM(e,t){if(e==null)return{};var r=RM(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RM(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Fm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fm(Object(r),!0).forEach(function(n){DM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DM(e,t,r){return t=qM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qM(e){var t=LM(e,"string");return Ln(t)=="symbol"?t:t+""}function LM(e,t){if(Ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bn.apply(this,arguments)}var BM=function(t){var r=t.value,n=t.formatter,i=ee(t.children)?r:t.children;return Y(n)?n(i):i},FM=function(t,r){var n=Ie(r-t),i=Math.min(Math.abs(r-t),360);return n*i},zM=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,h=s.outerRadius,p=s.startAngle,y=s.endAngle,v=s.clockWise,d=(l+h)/2,g=FM(p,y),x=g>=0?1:-1,w,O;i==="insideStart"?(w=p+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=g<=0?O:!O;var m=fe(c,f,d,w),b=fe(c,f,d,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
|
||
A`).concat(d,",").concat(d,",0,1,").concat(O?0:1,`,
|
||
`).concat(b.x,",").concat(b.y),S=ee(t.id)?ai("recharts-radial-line-"):t.id;return A.createElement("text",Bn({},n,{dominantBaseline:"central",className:Q("recharts-radial-bar-label",u)}),A.createElement("defs",null,A.createElement("path",{id:S,d:_})),A.createElement("textPath",{xlinkHref:"#".concat(S)},r))},UM=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var p=fe(o,u,c+n,h),y=p.x,v=p.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var d=(s+c)/2,g=fe(o,u,d,h),x=g.x,w=g.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},WM=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,h=l*i,p=l>0?"end":"start",y=l>0?"start":"end",v=c>=0?1:-1,d=v*i,g=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:p};return _e(_e({},w),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:u+c/2,y:s+f+h,textAnchor:"middle",verticalAnchor:y};return _e(_e({},O),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var m={x:u-d,y:s+f/2,textAnchor:g,verticalAnchor:"middle"};return _e(_e({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var b={x:u+c+d,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return _e(_e({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:f}:{})}var _=n?{width:c,height:f}:{};return a==="insideLeft"?_e({x:u+d,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?_e({x:u+c-d,y:s+f/2,textAnchor:g,verticalAnchor:"middle"},_):a==="insideTop"?_e({x:u+c/2,y:s+h,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?_e({x:u+c/2,y:s+f-h,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?_e({x:u+d,y:s+h,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?_e({x:u+c-d,y:s+h,textAnchor:g,verticalAnchor:y},_):a==="insideBottomLeft"?_e({x:u+d,y:s+f-h,textAnchor:x,verticalAnchor:p},_):a==="insideBottomRight"?_e({x:u+c-d,y:s+f-h,textAnchor:g,verticalAnchor:p},_):Yr(a)&&(L(a.x)||Gt(a.x))&&(L(a.y)||Gt(a.y))?_e({x:u+ke(a.x,c),y:s+ke(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):_e({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},HM=function(t){return"cx"in t&&L(t.cx)};function Te(e){var t=e.offset,r=t===void 0?5:t,n=NM(e,EM),i=_e({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||ee(u)&&ee(s)&&!N.isValidElement(c)&&!Y(c))return null;if(N.isValidElement(c))return N.cloneElement(c,i);var p;if(Y(c)){if(p=N.createElement(c,i),N.isValidElement(p))return p}else p=BM(i);var y=HM(a),v=X(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return zM(i,p,v);var d=y?UM(i):WM(i);return A.createElement(rr,Bn({className:Q("recharts-label",l)},v,d,{breakAll:h}),p)}Te.displayName="Label";var Xx=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,p=t.top,y=t.left,v=t.width,d=t.height,g=t.clockWise,x=t.labelViewBox;if(x)return x;if(L(v)&&L(d)){if(L(l)&&L(h))return{x:l,y:h,width:v,height:d};if(L(p)&&L(y))return{x:p,y,width:v,height:d}}return L(l)&&L(h)?{x:l,y:h,width:0,height:0}:L(r)&&L(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:g}:t.viewBox?t.viewBox:{}},KM=function(t,r){return t?t===!0?A.createElement(Te,{key:"label-implicit",viewBox:r}):Se(t)?A.createElement(Te,{key:"label-implicit",viewBox:r,value:t}):N.isValidElement(t)?t.type===Te?N.cloneElement(t,{key:"label-implicit",viewBox:r}):A.createElement(Te,{key:"label-implicit",content:t,viewBox:r}):Y(t)?A.createElement(Te,{key:"label-implicit",content:t,viewBox:r}):Yr(t)?A.createElement(Te,Bn({viewBox:r},t,{key:"label-implicit"})):null:null},GM=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=Xx(t),o=Ze(i,Te).map(function(s,c){return N.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=KM(t.label,r||a);return[u].concat(MM(o))};Te.parseViewBox=Xx;Te.renderCallByParent=GM;var qc,zm;function VM(){if(zm)return qc;zm=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return qc=e,qc}var XM=VM();const YM=ue(XM);function Fn(e){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(e)}var ZM=["valueAccessor"],JM=["data","dataKey","clockWise","id","textBreakAll"];function QM(e){return n$(e)||r$(e)||t$(e)||e$()}function e$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t$(e,t){if(e){if(typeof e=="string")return Jl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jl(e,t)}}function r$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n$(e){if(Array.isArray(e))return Jl(e)}function Jl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ra.apply(this,arguments)}function Um(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Um(Object(r),!0).forEach(function(n){i$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Um(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i$(e,t,r){return t=a$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a$(e){var t=o$(e,"string");return Fn(t)=="symbol"?t:t+""}function o$(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hm(e,t){if(e==null)return{};var r=u$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u$(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var s$=function(t){return Array.isArray(t.value)?YM(t.value):t.value};function It(e){var t=e.valueAccessor,r=t===void 0?s$:t,n=Hm(e,ZM),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=Hm(n,JM);return!i||!i.length?null:A.createElement(ae,{className:"recharts-label-list"},i.map(function(f,l){var h=ee(a)?r(f,l):Ce(f&&f.payload,a),p=ee(u)?{}:{id:"".concat(u,"-").concat(l)};return A.createElement(Te,ra({},X(f,!0),c,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:s,viewBox:Te.parseViewBox(ee(o)?f:Wm(Wm({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}It.displayName="LabelList";function c$(e,t){return e?e===!0?A.createElement(It,{key:"labelList-implicit",data:t}):A.isValidElement(e)||Y(e)?A.createElement(It,{key:"labelList-implicit",data:t,content:e}):Yr(e)?A.createElement(It,ra({data:t},e,{key:"labelList-implicit"})):null:null}function l$(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Ze(n,It).map(function(o,u){return N.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=c$(e.label,t);return[a].concat(QM(i))}It.renderCallByParent=l$;function zn(e){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(e)}function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ql.apply(this,arguments)}function Km(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Km(Object(r),!0).forEach(function(n){f$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Km(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f$(e,t,r){return t=h$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h$(e){var t=d$(e,"string");return zn(t)=="symbol"?t:t+""}function d$(e,t){if(zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p$=function(t,r){var n=Ie(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},wi=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,c=t.cornerIsExternal,f=s*(u?1:-1)+i,l=Math.asin(s/f)/ta,h=c?a:a+o*l,p=fe(r,n,f,h),y=fe(r,n,i,h),v=c?a-o*l:a,d=fe(r,n,f*Math.cos(l*ta),v);return{center:p,circleTangency:y,lineTangency:d,theta:l}},Yx=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=p$(o,u),c=o+s,f=fe(r,n,a,o),l=fe(r,n,a,c),h="M ".concat(f.x,",").concat(f.y,`
|
||
A `).concat(a,",").concat(a,`,0,
|
||
`).concat(+(Math.abs(s)>180),",").concat(+(o>c),`,
|
||
`).concat(l.x,",").concat(l.y,`
|
||
`);if(i>0){var p=fe(r,n,i,o),y=fe(r,n,i,c);h+="L ".concat(y.x,",").concat(y.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`,
|
||
`).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},v$=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=Ie(f-c),h=wi({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=h.circleTangency,y=h.lineTangency,v=h.theta,d=wi({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),g=d.circleTangency,x=d.lineTangency,w=d.theta,O=s?Math.abs(c-f):Math.abs(c-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,`
|
||
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
||
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
||
`):Yx({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,`
|
||
A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(g.x,",").concat(g.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
|
||
`);if(i>0){var b=wi({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=b.circleTangency,S=b.lineTangency,P=b.theta,$=wi({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),j=$.circleTangency,T=$.lineTangency,M=$.theta,I=s?Math.abs(c-f):Math.abs(c-f)-P-M;if(I<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(T.x,",").concat(T.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(j.x,",").concat(j.y,`
|
||
A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},y$={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Zx=function(t){var r=Gm(Gm({},y$),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o<a||f===l)return null;var p=Q("recharts-sector",h),y=o-a,v=ke(u,y,0,!0),d;return v>0&&Math.abs(f-l)<360?d=v$({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):d=Yx({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),A.createElement("path",Ql({},X(r,!0),{className:p,d,role:"img"}))};function Un(e){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Un(e)}function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ef.apply(this,arguments)}function Vm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vm(Object(r),!0).forEach(function(n){m$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m$(e,t,r){return t=g$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g$(e){var t=b$(e,"string");return Un(t)=="symbol"?t:t+""}function b$(e,t){if(Un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ym={curveBasisClosed:L_,curveBasisOpen:B_,curveBasis:q_,curveBumpX:S_,curveBumpY:A_,curveLinearClosed:F_,curveLinear:Na,curveMonotoneX:z_,curveMonotoneY:U_,curveNatural:W_,curveStep:H_,curveStepAfter:G_,curveStepBefore:K_},Oi=function(t){return t.x===+t.x&&t.y===+t.y},cn=function(t){return t.x},ln=function(t){return t.y},x$=function(t,r){if(Y(t))return t;var n="curve".concat(Ia(t));return(n==="curveMonotone"||n==="curveBump")&&r?Ym["".concat(n).concat(r==="vertical"?"Y":"X")]:Ym[n]||Na},w$=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,s=t.connectNulls,c=s===void 0?!1:s,f=x$(n,u),l=c?a.filter(function(v){return Oi(v)}):a,h;if(Array.isArray(o)){var p=c?o.filter(function(v){return Oi(v)}):o,y=l.map(function(v,d){return Xm(Xm({},v),{},{base:p[d]})});return u==="vertical"?h=di().y(ln).x1(cn).x0(function(v){return v.base.x}):h=di().x(cn).y1(ln).y0(function(v){return v.base.y}),h.defined(Oi).curve(f),h(y)}return u==="vertical"&&L(o)?h=di().y(ln).x1(cn).x0(o):L(o)?h=di().x(cn).y1(ln).y0(o):h=Yb().x(cn).y(ln),h.defined(Oi).curve(f),h(l)},tf=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?w$(t):i;return N.createElement("path",ef({},X(t,!1),Ei(t),{className:Q("recharts-curve",r),d:o,ref:a}))},Lc={exports:{}},Bc,Zm;function O$(){if(Zm)return Bc;Zm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Bc=e,Bc}var Fc,Jm;function _$(){if(Jm)return Fc;Jm=1;var e=O$();function t(){}function r(){}return r.resetWarningCache=t,Fc=function(){function n(o,u,s,c,f,l){if(l!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Fc}var Qm;function S$(){return Qm||(Qm=1,Lc.exports=_$()()),Lc.exports}var A$=S$();const ie=ue(A$),{getOwnPropertyNames:P$,getOwnPropertySymbols:T$}=Object,{hasOwnProperty:j$}=Object.prototype;function zc(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function _i(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);const s=e(r,n,i);return a.delete(r),a.delete(n),s}}function E$(e){return e!=null?e[Symbol.toStringTag]:void 0}function eg(e){return P$(e).concat(T$(e))}const M$=Object.hasOwn||((e,t)=>j$.call(e,t));function cr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const $$="__v",C$="__o",I$="_owner",{getOwnPropertyDescriptor:tg,keys:rg}=Object;function k$(e,t){return e.byteLength===t.byteLength&&na(new Uint8Array(e),new Uint8Array(t))}function N$(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function R$(e,t){return e.byteLength===t.byteLength&&na(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function D$(e,t){return cr(e.getTime(),t.getTime())}function q$(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function L$(e,t){return e===t}function ng(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,s=0;for(;(o=a.next())&&!o.done;){const c=t.entries();let f=!1,l=0;for(;(u=c.next())&&!u.done;){if(i[l]){l++;continue}const h=o.value,p=u.value;if(r.equals(h[0],p[0],s,l,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;s++}return!0}const B$=cr;function F$(e,t,r){const n=rg(e);let i=n.length;if(rg(t).length!==i)return!1;for(;i-- >0;)if(!Jx(e,t,r,n[i]))return!1;return!0}function fn(e,t,r){const n=eg(e);let i=n.length;if(eg(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!Jx(e,t,r,a)||(o=tg(e,a),u=tg(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function z$(e,t){return cr(e.valueOf(),t.valueOf())}function U$(e,t){return e.source===t.source&&e.flags===t.flags}function ig(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,u;for(;(o=a.next())&&!o.done;){const s=t.values();let c=!1,f=0;for(;(u=s.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1}return!0}function na(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function W$(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Jx(e,t,r,n){return(n===I$||n===C$||n===$$)&&(e.$$typeof||t.$$typeof)?!0:M$(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const H$="[object ArrayBuffer]",K$="[object Arguments]",G$="[object Boolean]",V$="[object DataView]",X$="[object Date]",Y$="[object Error]",Z$="[object Map]",J$="[object Number]",Q$="[object Object]",eC="[object RegExp]",tC="[object Set]",rC="[object String]",nC={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},iC="[object URL]",aC=Object.prototype.toString;function oC({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:s,arePrimitiveWrappersEqual:c,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:y}){return function(d,g,x){if(d===g)return!0;if(d==null||g==null)return!1;const w=typeof d;if(w!==typeof g)return!1;if(w!=="object")return w==="number"?u(d,g,x):w==="function"?a(d,g,x):!1;const O=d.constructor;if(O!==g.constructor)return!1;if(O===Object)return s(d,g,x);if(Array.isArray(d))return t(d,g,x);if(O===Date)return n(d,g,x);if(O===RegExp)return f(d,g,x);if(O===Map)return o(d,g,x);if(O===Set)return l(d,g,x);const m=aC.call(d);if(m===X$)return n(d,g,x);if(m===eC)return f(d,g,x);if(m===Z$)return o(d,g,x);if(m===tC)return l(d,g,x);if(m===Q$)return typeof d.then!="function"&&typeof g.then!="function"&&s(d,g,x);if(m===iC)return p(d,g,x);if(m===Y$)return i(d,g,x);if(m===K$)return s(d,g,x);if(nC[m])return h(d,g,x);if(m===H$)return e(d,g,x);if(m===V$)return r(d,g,x);if(m===G$||m===J$||m===rC)return c(d,g,x);if(y){let b=y[m];if(!b){const _=E$(d);_&&(b=y[_])}if(b)return b(d,g,x)}return!1}}function uC({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:k$,areArraysEqual:r?fn:N$,areDataViewsEqual:R$,areDatesEqual:D$,areErrorsEqual:q$,areFunctionsEqual:L$,areMapsEqual:r?zc(ng,fn):ng,areNumbersEqual:B$,areObjectsEqual:r?fn:F$,arePrimitiveWrappersEqual:z$,areRegExpsEqual:U$,areSetsEqual:r?zc(ig,fn):ig,areTypedArraysEqual:r?zc(na,fn):na,areUrlsEqual:W$,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=_i(n.areArraysEqual),a=_i(n.areMapsEqual),o=_i(n.areObjectsEqual),u=_i(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function sC(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function cC({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,s){const{cache:c=e?new WeakMap:void 0,meta:f}=r();return t(u,s,{cache:c,equals:n,meta:f,strict:i})};if(e)return function(u,s){return t(u,s,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,s){return t(u,s,a)}}const lC=Dt();Dt({strict:!0});Dt({circular:!0});Dt({circular:!0,strict:!0});Dt({createInternalComparator:()=>cr});Dt({strict:!0,createInternalComparator:()=>cr});Dt({circular:!0,createInternalComparator:()=>cr});Dt({circular:!0,createInternalComparator:()=>cr,strict:!0});function Dt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=uC(e),o=oC(a),u=r?r(o):sC(o);return cC({circular:t,comparator:o,createState:n,equals:u,strict:i})}function fC(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function ag(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):fC(i)};requestAnimationFrame(n)}function rf(e){"@babel/helpers - typeof";return rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rf(e)}function hC(e){return yC(e)||vC(e)||pC(e)||dC()}function dC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pC(e,t){if(e){if(typeof e=="string")return og(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return og(e,t)}}function og(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yC(e){if(Array.isArray(e))return e}function mC(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=hC(o),s=u[0],c=u.slice(1);if(typeof s=="number"){ag(i.bind(null,c),s);return}i(s),ag(i.bind(null,c));return}rf(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}function ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ug(Object(r),!0).forEach(function(n){Qx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ug(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qx(e,t,r){return t=gC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gC(e){var t=bC(e,"string");return Wn(t)==="symbol"?t:String(t)}function bC(e,t){if(Wn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xC=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},wC=function(t){return t},OC=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},bn=function(t,r){return Object.keys(r).reduce(function(n,i){return sg(sg({},n),{},Qx({},i,t(i,r[i])))},{})},cg=function(t,r,n){return t.map(function(i){return"".concat(OC(i)," ").concat(r,"ms ").concat(n)}).join(",")};function _C(e,t){return PC(e)||AC(e,t)||ew(e,t)||SC()}function SC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function PC(e){if(Array.isArray(e))return e}function TC(e){return MC(e)||EC(e)||ew(e)||jC()}function jC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ew(e,t){if(e){if(typeof e=="string")return nf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nf(e,t)}}function EC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MC(e){if(Array.isArray(e))return nf(e)}function nf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ia=1e-4,tw=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},rw=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},lg=function(t,r){return function(n){var i=tw(t,r);return rw(i,n)}},$C=function(t,r){return function(n){var i=tw(t,r),a=[].concat(TC(i.map(function(o,u){return o*u}).slice(1)),[0]);return rw(a,n)}},fg=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var c=s[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),f=_C(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=lg(i,o),h=lg(a,u),p=$C(i,o),y=function(g){return g>1?1:g<0?0:g},v=function(g){for(var x=g>1?1:g,w=x,O=0;O<8;++O){var m=l(w)-x,b=p(w);if(Math.abs(m-x)<ia||b<ia)return h(w);w=y(w-m/b)}return h(w)};return v.isStepper=!1,v},CC=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,s=function(f,l,h){var p=-(f-l)*n,y=h*a,v=h+(p-y)*u/1e3,d=h*u/1e3+f;return Math.abs(d-l)<ia&&Math.abs(v)<ia?[l,0]:[d,v]};return s.isStepper=!0,s.dt=u,s},IC=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return fg(i);case"spring":return CC();default:if(i.split("(")[0]==="cubic-bezier")return fg(i)}return typeof i=="function"?i:null};function Hn(e){"@babel/helpers - typeof";return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(e)}function hg(e){return RC(e)||NC(e)||nw(e)||kC()}function kC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RC(e){if(Array.isArray(e))return of(e)}function dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dg(Object(r),!0).forEach(function(n){af(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function af(e,t,r){return t=DC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DC(e){var t=qC(e,"string");return Hn(t)==="symbol"?t:String(t)}function qC(e,t){if(Hn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LC(e,t){return zC(e)||FC(e,t)||nw(e,t)||BC()}function BC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nw(e,t){if(e){if(typeof e=="string")return of(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return of(e,t)}}function of(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function zC(e){if(Array.isArray(e))return e}var aa=function(t,r,n){return t+(r-t)*n},uf=function(t){var r=t.from,n=t.to;return r!==n},UC=function e(t,r,n){var i=bn(function(a,o){if(uf(o)){var u=t(o.from,o.to,o.velocity),s=LC(u,2),c=s[0],f=s[1];return Ee(Ee({},o),{},{from:c,velocity:f})}return o},r);return n<1?bn(function(a,o){return uf(o)?Ee(Ee({},o),{},{velocity:aa(o.velocity,i[a].velocity,n),from:aa(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const WC=(function(e,t,r,n,i){var a=xC(e,t),o=a.reduce(function(d,g){return Ee(Ee({},d),{},af({},g,[e[g],t[g]]))},{}),u=a.reduce(function(d,g){return Ee(Ee({},d),{},af({},g,{from:e[g],velocity:0,to:t[g]}))},{}),s=-1,c,f,l=function(){return null},h=function(){return bn(function(g,x){return x.from},u)},p=function(){return!Object.values(u).filter(uf).length},y=function(g){c||(c=g);var x=g-c,w=x/r.dt;u=UC(r,u,w),i(Ee(Ee(Ee({},e),t),h())),c=g,p()||(s=requestAnimationFrame(l))},v=function(g){f||(f=g);var x=(g-f)/n,w=bn(function(m,b){return aa.apply(void 0,hg(b).concat([r(x)]))},o);if(i(Ee(Ee(Ee({},e),t),w)),x<1)s=requestAnimationFrame(l);else{var O=bn(function(m,b){return aa.apply(void 0,hg(b).concat([r(1)]))},o);i(Ee(Ee(Ee({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}});function Cr(e){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(e)}var HC=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function KC(e,t){if(e==null)return{};var r=GC(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GC(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Uc(e){return ZC(e)||YC(e)||XC(e)||VC()}function VC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XC(e,t){if(e){if(typeof e=="string")return sf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sf(e,t)}}function YC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZC(e){if(Array.isArray(e))return sf(e)}function sf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pg(Object(r),!0).forEach(function(n){vn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vn(e,t,r){return t=iw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iw(n.key),n)}}function eI(e,t,r){return t&&QC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iw(e){var t=tI(e,"string");return Cr(t)==="symbol"?t:String(t)}function tI(e,t){if(Cr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cf(e,t)}function cf(e,t){return cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cf(e,t)}function nI(e){var t=iI();return function(){var n=oa(e),i;if(t){var a=oa(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return lf(this,i)}}function lf(e,t){if(t&&(Cr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ff(e)}function ff(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function oa(e){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oa(e)}var wt=(function(e){rI(r,e);var t=nI(r);function r(n,i){var a;JC(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(ff(a)),a.changeStyle=a.changeStyle.bind(ff(a)),!u||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),lf(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof h=="function")return a.state={style:c},lf(a);a.state={style:s?vn({},s,c):c}}else a.state={style:{}};return a}return eI(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,s=a.attributeName,c=a.shouldReAnimate,f=a.to,l=a.from,h=this.state.style;if(u){if(!o){var p={style:s?vn({},s,f):f};this.state&&h&&(s&&h[s]!==f||!s&&h!==f)&&this.setState(p);return}if(!(lC(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||c?l:i.to;if(this.state&&h){var d={style:s?vn({},s,v):v};(s&&h[s]!==v||!s&&h!==v)&&this.setState(d)}this.runAnimation(et(et({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,s=i.duration,c=i.easing,f=i.begin,l=i.onAnimationEnd,h=i.onAnimationStart,p=WC(o,u,IC(c),s,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,f,y,s,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,c=o[0],f=c.style,l=c.duration,h=l===void 0?0:l,p=function(v,d,g){if(g===0)return v;var x=d.duration,w=d.easing,O=w===void 0?"ease":w,m=d.style,b=d.properties,_=d.onAnimationEnd,S=g>0?o[g-1]:d,P=b||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(Uc(v),[a.runJSAnimation.bind(a,{from:S.style,to:m,duration:x,easing:O}),x]);var $=cg(P,x,O),j=et(et(et({},S.style),m),{},{transition:$});return[].concat(Uc(v),[j,x,_]).filter(wC)};return this.manager.start([s].concat(Uc(o.reduce(p,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=mC());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?vn({},u,s):s,d=cg(Object.keys(v),o,c);y.start([f,a,et(et({},v),{},{transition:d}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=KC(i,HC),c=N.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||c===0||o<=0)return a;var l=function(p){var y=p.props,v=y.style,d=v===void 0?{}:v,g=y.className,x=N.cloneElement(p,et(et({},s),{},{style:et(et({},d),f),className:g}));return x};return c===1?l(N.Children.only(a)):A.createElement("div",null,N.Children.map(a,function(h){return l(h)}))}}]),r})(N.PureComponent);wt.displayName="Animate";wt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};wt.propTypes={from:ie.oneOfType([ie.object,ie.string]),to:ie.oneOfType([ie.object,ie.string]),attributeName:ie.string,duration:ie.number,begin:ie.number,easing:ie.oneOfType([ie.string,ie.func]),steps:ie.arrayOf(ie.shape({duration:ie.number.isRequired,style:ie.object.isRequired,easing:ie.oneOfType([ie.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ie.func]),properties:ie.arrayOf("string"),onAnimationEnd:ie.func})),children:ie.oneOfType([ie.node,ie.func]),isActive:ie.bool,canBegin:ie.bool,onAnimationEnd:ie.func,shouldReAnimate:ie.bool,onAnimationStart:ie.func,onAnimationReStart:ie.func};function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(e)}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ua.apply(this,arguments)}function aI(e,t){return cI(e)||sI(e,t)||uI(e,t)||oI()}function oI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uI(e,t){if(e){if(typeof e=="string")return vg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vg(e,t)}}function vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function cI(e){if(Array.isArray(e))return e}function yg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yg(Object(r),!0).forEach(function(n){lI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lI(e,t,r){return t=fI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fI(e){var t=hI(e,"string");return Kn(t)=="symbol"?t:t+""}function hI(e,t){if(Kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gg=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],h=0,p=4;h<p;h++)l[h]=a[h]>o?o:a[h];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`,
|
||
`).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,`,
|
||
`).concat(t+n-s*l[2],",").concat(r+i)),f+="L ".concat(t+s*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`,
|
||
`).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+s*y,",").concat(r,`
|
||
L `).concat(t+n-s*y,",").concat(r,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*y,`
|
||
L `).concat(t+n,",").concat(r+i-u*y,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-s*y,",").concat(r+i,`
|
||
L `).concat(t+s*y,",").concat(r+i,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},dI=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+s),h=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=h}return!1},pI={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$h=function(t){var r=mg(mg({},pI),t),n=N.useRef(),i=N.useState(-1),a=aI(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,h=r.radius,p=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,g=r.isAnimationActive,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var w=Q("recharts-rectangle",p);return x?A.createElement(wt,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:v,animationEasing:y,isActive:x},function(O){var m=O.width,b=O.height,_=O.x,S=O.y;return A.createElement(wt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,isActive:g,easing:y},A.createElement("path",ua({},X(r,!0),{className:w,d:gg(_,S,m,b,h),ref:n})))}):A.createElement("path",ua({},X(r,!0),{className:w,d:gg(s,c,f,l,h)}))},vI=["points","className","baseLinePoints","connectNulls"];function yr(){return yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yr.apply(this,arguments)}function yI(e,t){if(e==null)return{};var r=mI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function bg(e){return wI(e)||xI(e)||bI(e)||gI()}function gI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bI(e,t){if(e){if(typeof e=="string")return hf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hf(e,t)}}function xI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wI(e){if(Array.isArray(e))return hf(e)}function hf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var xg=function(t){return t&&t.x===+t.x&&t.y===+t.y},OI=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){xg(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),xg(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},xn=function(t,r){var n=OI(t);r&&(n=[n.reduce(function(a,o){return[].concat(bg(a),bg(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,s){return"".concat(o).concat(s===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},_I=function(t,r,n){var i=xn(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(xn(r.reverse(),n).slice(1))},SI=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=yI(t,vI);if(!r||!r.length)return null;var u=Q("recharts-polygon",n);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",c=_I(r,i,a);return A.createElement("g",{className:u},A.createElement("path",yr({},X(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),s?A.createElement("path",yr({},X(o,!0),{fill:"none",d:xn(r,a)})):null,s?A.createElement("path",yr({},X(o,!0),{fill:"none",d:xn(i,a)})):null)}var f=xn(r,a);return A.createElement("path",yr({},X(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function df(){return df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},df.apply(this,arguments)}var Ch=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Q("recharts-dot",a);return r===+r&&n===+n&&i===+i?N.createElement("circle",df({},X(t,!1),Ei(t),{className:o,cx:r,cy:n,r:i})):null};function Gn(e){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gn(e)}var AI=["x","y","top","left","width","height","className"];function pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pf.apply(this,arguments)}function wg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function PI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wg(Object(r),!0).forEach(function(n){TI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TI(e,t,r){return t=jI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jI(e){var t=EI(e,"string");return Gn(t)=="symbol"?t:t+""}function EI(e,t){if(Gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MI(e,t){if(e==null)return{};var r=$I(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $I(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var CI=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},II=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,h=t.height,p=h===void 0?0:h,y=t.className,v=MI(t,AI),d=PI({x:n,y:a,top:u,left:c,width:l,height:p},v);return!L(n)||!L(a)||!L(l)||!L(p)||!L(u)||!L(c)?null:A.createElement("path",pf({},X(d,!0),{className:Q("recharts-cross",y),d:CI(n,a,l,p,u,c)}))},Wc,Og;function kI(){if(Og)return Wc;Og=1;var e=Ga(),t=bx(),r=lt();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Wc=n,Wc}var NI=kI();const RI=ue(NI);var Hc,_g;function DI(){if(_g)return Hc;_g=1;var e=Ga(),t=lt(),r=xx();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return Hc=n,Hc}var qI=DI();const LI=ue(qI);var BI=["cx","cy","angle","ticks","axisLine"],FI=["ticks","tick","angle","tickFormatter","stroke"];function Ir(e){"@babel/helpers - typeof";return Ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ir(e)}function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wn.apply(this,arguments)}function Sg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sg(Object(r),!0).forEach(function(n){eo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ag(e,t){if(e==null)return{};var r=zI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function UI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ow(n.key),n)}}function WI(e,t,r){return t&&Pg(e.prototype,t),r&&Pg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function HI(e,t,r){return t=sa(t),KI(e,aw()?Reflect.construct(t,r||[],sa(e).constructor):t.apply(e,r))}function KI(e,t){if(t&&(Ir(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GI(e)}function GI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aw=function(){return!!e})()}function sa(e){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sa(e)}function VI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vf(e,t)}function vf(e,t){return vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vf(e,t)}function eo(e,t,r){return t=ow(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ow(e){var t=XI(e,"string");return Ir(t)=="symbol"?t:t+""}function XI(e,t){if(Ir(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var to=(function(e){function t(){return UI(this,t),HI(this,t,arguments)}return VI(t,e),WI(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,s=a.cy;return fe(u,s,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=RI(u,function(f){return f.coordinate||0}),c=LI(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=n.axisLine,c=Ag(n,BI),f=u.reduce(function(y,v){return[Math.min(y[0],v.coordinate),Math.max(y[1],v.coordinate)]},[1/0,-1/0]),l=fe(i,a,f[0],o),h=fe(i,a,f[1],o),p=zt(zt(zt({},X(c,!1)),{},{fill:"none"},X(s,!1)),{},{x1:l.x,y1:l.y,x2:h.x,y2:h.y});return A.createElement("line",wn({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,s=i.tickFormatter,c=i.stroke,f=Ag(i,FI),l=this.getTickTextAnchor(),h=X(f,!1),p=X(o,!1),y=a.map(function(v,d){var g=n.getTickValueCoord(v),x=zt(zt(zt(zt({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(g.x,", ").concat(g.y,")")},h),{},{stroke:"none",fill:c},p),{},{index:d},g),{},{payload:v});return A.createElement(ae,wn({className:Q("recharts-polar-radius-axis-tick",Vx(o)),key:"tick-".concat(v.coordinate)},tr(n.props,v,d)),t.renderTickItem(o,x,s?s(v.value,d):v.value))});return A.createElement(ae,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:A.createElement(ae,{className:Q("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Te.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):Y(n)?o=n(i):o=A.createElement(rr,wn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(N.PureComponent);eo(to,"displayName","PolarRadiusAxis");eo(to,"axisType","radiusAxis");eo(to,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function kr(e){"@babel/helpers - typeof";return kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kr(e)}function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kt.apply(this,arguments)}function Tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tg(Object(r),!0).forEach(function(n){ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sw(n.key),n)}}function ZI(e,t,r){return t&&jg(e.prototype,t),r&&jg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function JI(e,t,r){return t=ca(t),QI(e,uw()?Reflect.construct(t,r||[],ca(e).constructor):t.apply(e,r))}function QI(e,t){if(t&&(kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ek(e)}function ek(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uw=function(){return!!e})()}function ca(e){return ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ca(e)}function tk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yf(e,t)}function yf(e,t){return yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yf(e,t)}function ro(e,t,r){return t=sw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sw(e){var t=rk(e,"string");return kr(t)=="symbol"?t:t+""}function rk(e,t){if(kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nk=Math.PI/180,Eg=1e-5,no=(function(e){function t(){return YI(this,t),JI(this,t,arguments)}return tk(t,e),ZI(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,s=i.orientation,c=i.tickSize,f=c||8,l=fe(a,o,u,n.coordinate),h=fe(a,o,u+(s==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*nk),o;return a>Eg?o=i==="outer"?"start":"end":a<-Eg?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,s=n.axisLineType,c=Ut(Ut({},X(this.props,!1)),{},{fill:"none"},X(u,!1));if(s==="circle")return A.createElement(Ch,Kt({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(h){return fe(i,a,o,h.coordinate)});return A.createElement(SI,Kt({className:"recharts-polar-angle-axis-line"},c,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,s=i.tickFormatter,c=i.stroke,f=X(this.props,!1),l=X(o,!1),h=Ut(Ut({},f),{},{fill:"none"},X(u,!1)),p=a.map(function(y,v){var d=n.getTickLineCoord(y),g=n.getTickTextAnchor(y),x=Ut(Ut(Ut({textAnchor:g},f),{},{stroke:"none",fill:c},l),{},{index:v,payload:y,x:d.x2,y:d.y2});return A.createElement(ae,Kt({className:Q("recharts-polar-angle-axis-tick",Vx(o)),key:"tick-".concat(y.coordinate)},tr(n.props,y,v)),u&&A.createElement("line",Kt({className:"recharts-polar-angle-axis-tick-line"},h,d)),o&&t.renderTickItem(o,x,s?s(y.value,v):y.value))});return A.createElement(ae,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:A.createElement(ae,{className:Q("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):Y(n)?o=n(i):o=A.createElement(rr,Kt({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(N.PureComponent);ro(no,"displayName","PolarAngleAxis");ro(no,"axisType","angleAxis");ro(no,"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 Kc,Mg;function ik(){if(Mg)return Kc;Mg=1;var e=b0(),t=e(Object.getPrototypeOf,Object);return Kc=t,Kc}var Gc,$g;function ak(){if($g)return Gc;$g=1;var e=_t(),t=ik(),r=St(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var h=u.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==s}return Gc=c,Gc}var ok=ak();const uk=ue(ok);var Vc,Cg;function sk(){if(Cg)return Vc;Cg=1;var e=_t(),t=St(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Vc=n,Vc}var ck=sk();const lk=ue(ck);function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}function la(){return la=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},la.apply(this,arguments)}function fk(e,t){return vk(e)||pk(e,t)||dk(e,t)||hk()}function hk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dk(e,t){if(e){if(typeof e=="string")return Ig(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ig(e,t)}}function Ig(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function vk(e){if(Array.isArray(e))return e}function kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ng(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kg(Object(r),!0).forEach(function(n){yk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yk(e,t,r){return t=mk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mk(e){var t=gk(e,"string");return Vn(t)=="symbol"?t:t+""}function gk(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rg=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},bk={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},xk=function(t){var r=Ng(Ng({},bk),t),n=N.useRef(),i=N.useState(-1),a=fk(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,g=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var x=Q("recharts-trapezoid",p);return g?A.createElement(wt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:h,x:s,y:c},duration:v,animationEasing:y,isActive:g},function(w){var O=w.upperWidth,m=w.lowerWidth,b=w.height,_=w.x,S=w.y;return A.createElement(wt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,easing:y},A.createElement("path",la({},X(r,!0),{className:x,d:Rg(_,S,O,m,b),ref:n})))}):A.createElement("g",null,A.createElement("path",la({},X(r,!0),{className:x,d:Rg(s,c,f,l,h)})))},wk=["option","shapeType","propTransformer","activeClassName","isActive"];function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function Ok(e,t){if(e==null)return{};var r=_k(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _k(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dg(Object(r),!0).forEach(function(n){Sk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sk(e,t,r){return t=Ak(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ak(e){var t=Pk(e,"string");return Xn(t)=="symbol"?t:t+""}function Pk(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tk(e,t){return fa(fa({},t),e)}function jk(e,t){return e==="symbols"}function qg(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return A.createElement($h,r);case"trapezoid":return A.createElement(xk,r);case"sector":return A.createElement(Zx,r);case"symbols":if(jk(t))return A.createElement(Yf,r);break;default:return null}}function Ek(e){return N.isValidElement(e)?e.props:e}function cw(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?Tk:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=Ok(e,wk),c;if(N.isValidElement(t))c=N.cloneElement(t,fa(fa({},s),Ek(t)));else if(Y(t))c=t(s);else if(uk(t)&&!lk(t)){var f=i(t,s);c=A.createElement(qg,{shapeType:r,elementProps:f})}else{var l=s;c=A.createElement(qg,{shapeType:r,elementProps:l})}return u?A.createElement(ae,{className:o},c):c}function io(e,t){return t!=null&&"trapezoids"in e.props}function ao(e,t){return t!=null&&"sectors"in e.props}function Yn(e,t){return t!=null&&"points"in e.props}function Mk(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function $k(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function Ck(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function Ik(e,t){var r;return io(e,t)?r=Mk:ao(e,t)?r=$k:Yn(e,t)&&(r=Ck),r}function kk(e,t){var r;return io(e,t)?r="trapezoids":ao(e,t)?r="sectors":Yn(e,t)&&(r="points"),r}function Nk(e,t){if(io(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(ao(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Yn(e,t)?t.payload:{}}function Rk(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=kk(r,t),a=Nk(r,t),o=n.filter(function(s,c){var f=Ya(a,s),l=r.props[i].filter(function(y){var v=Ik(r,t);return v(y,t)}),h=r.props[i].indexOf(l[l.length-1]),p=c===h;return f&&p}),u=n.indexOf(o[o.length-1]);return u}var ji;function Nr(e){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nr(e)}function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mr.apply(this,arguments)}function Lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(r),!0).forEach(function(n){Xe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fw(n.key),n)}}function qk(e,t,r){return t&&Bg(e.prototype,t),r&&Bg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lk(e,t,r){return t=ha(t),Bk(e,lw()?Reflect.construct(t,r||[],ha(e).constructor):t.apply(e,r))}function Bk(e,t){if(t&&(Nr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fk(e)}function Fk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lw=function(){return!!e})()}function ha(e){return ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ha(e)}function zk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mf(e,t)}function mf(e,t){return mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mf(e,t)}function Xe(e,t,r){return t=fw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fw(e){var t=Uk(e,"string");return Nr(t)=="symbol"?t:t+""}function Uk(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pt=(function(e){function t(r){var n;return Dk(this,t),n=Lk(this,t,[r]),Xe(n,"pieRef",null),Xe(n,"sectorRefs",[]),Xe(n,"id",ai("recharts-pie-")),Xe(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Y(i)&&i()}),Xe(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Y(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return zk(t,e),qk(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,s=a.dataKey,c=a.valueKey,f=X(this.props,!1),l=X(o,!1),h=X(u,!1),p=o&&o.offsetRadius||20,y=n.map(function(v,d){var g=(v.startAngle+v.endAngle)/2,x=fe(v.cx,v.cy,v.outerRadius+p,g),w=ce(ce(ce(ce({},f),v),{},{stroke:"none"},l),{},{index:d,textAnchor:t.getTextAnchor(x.x,v.cx)},x),O=ce(ce(ce(ce({},f),v),{},{fill:"none",stroke:v.fill},h),{},{index:d,points:[fe(v.cx,v.cy,v.outerRadius,g),x]}),m=s;return ee(s)&&ee(c)?m="value":ee(s)&&(m=c),A.createElement(ae,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(d)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,w,Ce(v,m)))});return A.createElement(ae,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,s=a.inactiveShape;return n.map(function(c,f){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&n.length!==1)return null;var l=i.isActiveIndex(f),h=s&&i.hasActiveIndex()?s:null,p=l?o:h,y=ce(ce({},c),{},{stroke:u?c.fill:c.stroke,tabIndex:-1});return A.createElement(ae,mr({ref:function(d){d&&!i.sectorRefs.includes(d)&&i.sectorRefs.push(d)},tabIndex:-1,className:"recharts-pie-sector"},tr(i.props,c,f),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(f)}),A.createElement(cw,mr({option:p,isActive:l,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,s=i.animationDuration,c=i.animationEasing,f=i.animationId,l=this.state,h=l.prevSectors,p=l.prevIsAnimationActive;return A.createElement(wt,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var v=y.t,d=[],g=a&&a[0],x=g.startAngle;return a.forEach(function(w,O){var m=h&&h[O],b=O>0?He(w,"paddingAngle",0):0;if(m){var _=jt(m.endAngle-m.startAngle,w.endAngle-w.startAngle),S=ce(ce({},w),{},{startAngle:x+b,endAngle:x+_(v)+b});d.push(S),x=S.endAngle}else{var P=w.endAngle,$=w.startAngle,j=jt(0,P-$),T=j(v),M=ce(ce({},w),{},{startAngle:x+b,endAngle:x+T+b});d.push(M),x=M.endAngle}}),A.createElement(ae,null,n.renderSectorsStatically(d))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Ya(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,s=i.label,c=i.cx,f=i.cy,l=i.innerRadius,h=i.outerRadius,p=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!L(c)||!L(f)||!L(l)||!L(h))return null;var v=Q("recharts-pie",u);return A.createElement(ae,{tabIndex:this.props.rootTabIndex,className:v,ref:function(g){n.pieRef=g}},this.renderSectors(),s&&this.renderLabels(o),Te.renderCallByParent(this.props,null,!1),(!p||y)&&It.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(A.isValidElement(n))return A.cloneElement(n,i);if(Y(n))return n(i);var o=Q("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return A.createElement(tf,mr({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(A.isValidElement(n))return A.cloneElement(n,i);var o=a;if(Y(n)&&(o=n(i),A.isValidElement(o)))return o;var u=Q("recharts-pie-label-text",typeof n!="boolean"&&!Y(n)?n.className:"");return A.createElement(rr,mr({},i,{alignmentBaseline:"middle",className:u}),o)}}])})(N.PureComponent);ji=Pt;Xe(Pt,"displayName","Pie");Xe(Pt,"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:!Jr.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Xe(Pt,"parseDeltaAngle",function(e,t){var r=Ie(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Xe(Pt,"getRealPieData",function(e){var t=e.data,r=e.children,n=X(e,!1),i=Ze(r,Ba);return t&&t.length?t.map(function(a,o){return ce(ce(ce({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return ce(ce({},n),a.props)}):[]});Xe(Pt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=Gx(i,a),u=n+ke(e.cx,i,i/2),s=r+ke(e.cy,a,a/2),c=ke(e.innerRadius,o,0),f=ke(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:s,innerRadius:c,outerRadius:f,maxRadius:l}});Xe(Pt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?ce(ce({},t.type.defaultProps),t.props):t.props,i=ji.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,s=n.paddingAngle,c=n.dataKey,f=n.nameKey,l=n.valueKey,h=n.tooltipType,p=Math.abs(n.minAngle),y=ji.parseCoordinateOfPie(n,r),v=ji.parseDeltaAngle(o,u),d=Math.abs(v),g=c;ee(c)&&ee(l)?(nt(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),g="value"):ee(c)&&(nt(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),g=l);var x=i.filter(function(S){return Ce(S,g,0)!==0}).length,w=(d>=360?x:x-1)*s,O=d-x*p-w,m=i.reduce(function(S,P){var $=Ce(P,g,0);return S+(L($)?$:0)},0),b;if(m>0){var _;b=i.map(function(S,P){var $=Ce(S,g,0),j=Ce(S,f,P),T=(L($)?$:0)/m,M;P?M=_.endAngle+Ie(v)*s*($!==0?1:0):M=o;var I=M+Ie(v)*(($!==0?p:0)+T*O),C=(M+I)/2,R=(y.innerRadius+y.outerRadius)/2,D=[{name:j,value:$,payload:S,dataKey:g,type:h}],B=fe(y.cx,y.cy,R,C);return _=ce(ce(ce({percent:T,cornerRadius:a,name:j,tooltipPayload:D,midAngle:C,middleRadius:R,tooltipPosition:B},S),y),{},{value:Ce(S,g),startAngle:M,endAngle:I,payload:S,paddingAngle:Ie(v)*s}),_})}return ce(ce({},y),{},{sectors:b,data:i})});var Xc,Fg;function Wk(){if(Fg)return Xc;Fg=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),c=Array(s);s--;)c[o?s:++u]=n,n+=a;return c}return Xc=r,Xc}var Yc,zg;function hw(){if(zg)return Yc;zg=1;var e=N0(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Yc=n,Yc}var Zc,Ug;function Hk(){if(Ug)return Zc;Ug=1;var e=Wk(),t=La(),r=hw();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return Zc=n,Zc}var Jc,Wg;function Kk(){if(Wg)return Jc;Wg=1;var e=Hk(),t=e();return Jc=t,Jc}var Gk=Kk();const da=ue(Gk);function Zn(e){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(e)}function Hg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hg(Object(r),!0).forEach(function(n){dw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dw(e,t,r){return t=Vk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vk(e){var t=Xk(e,"string");return Zn(t)=="symbol"?t:t+""}function Xk(e,t){if(Zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yk=["Webkit","Moz","O","ms"],Zk=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=Yk.reduce(function(a,o){return Kg(Kg({},a),{},dw({},o+n,r))},{});return i[t]=r,i};function Rr(e){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pa.apply(this,arguments)}function Gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gg(Object(r),!0).forEach(function(n){Fe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vw(n.key),n)}}function Qk(e,t,r){return t&&Vg(e.prototype,t),r&&Vg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eN(e,t,r){return t=va(t),tN(e,pw()?Reflect.construct(t,r||[],va(e).constructor):t.apply(e,r))}function tN(e,t){if(t&&(Rr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rN(e)}function rN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pw=function(){return!!e})()}function va(e){return va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},va(e)}function nN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gf(e,t)}function gf(e,t){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gf(e,t)}function Fe(e,t,r){return t=vw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vw(e){var t=iN(e,"string");return Rr(t)=="symbol"?t:t+""}function iN(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var aN=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,c=mn().domain(da(0,s)).range([a,a+o-u]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:f}},Xg=function(t){return t.changedTouches&&!!t.changedTouches.length},Dr=(function(e){function t(r){var n;return Jk(this,t),n=eN(this,t,[r]),Fe(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Fe(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Fe(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Fe(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Fe(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Fe(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Fe(n,"handleSlideDragStart",function(i){var a=Xg(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return nN(t,e),Qk(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,c=u.data,f=c.length-1,l=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,l),y=t.getIndexInRange(o,h);return{startIndex:p-p%s,endIndex:y===f?f:y-y%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=Ce(a[n],u,n);return Y(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,h=s.startIndex,p=s.endIndex,y=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,c+f-l-u,c+f-l-o):v<0&&(v=Math.max(v,c-o,c-u));var d=this.getIndex({startX:o+v,endX:u+v});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Xg(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,s=i.startX,c=this.state[o],f=this.props,l=f.x,h=f.width,p=f.travellerWidth,y=f.onChange,v=f.gap,d=f.data,g={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+h-p-c):x<0&&(x=Math.max(x,l-c)),g[o]=c+x;var w=this.getIndex(g),O=w.startIndex,m=w.endIndex,b=function(){var S=d.length-1;return o==="startX"&&(u>s?O%v===0:m%v===0)||u<s&&m===S||o==="endX"&&(u>s?m%v===0:O%v===0)||u>s&&m===S};this.setState(Fe(Fe({},o,c+x),"brushMoveStartX",n.pageX),function(){y&&b()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var h=l+n;if(!(h===-1||h>=u.length)){var p=u[h];i==="startX"&&p>=c||i==="endX"&&p<=s||this.setState(Fe({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.fill,c=n.stroke;return A.createElement("rect",{stroke:c,fill:s,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.data,c=n.children,f=n.padding,l=N.Children.only(c);return l?A.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,h=s.traveller,p=s.ariaLabel,y=s.data,v=s.startIndex,d=s.endIndex,g=Math.max(n,this.props.x),x=Qc(Qc({},X(this.props,!1)),{},{x:g,y:c,width:f,height:l}),w=p||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return A.createElement(ae,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return A.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,h=f.endX,p=5,y={pointerEvents:"none",fill:c};return A.createElement(ae,{className:"recharts-brush-texts"},A.createElement(rr,pa({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-p,y:o+u/2},y),this.getTextOfTick(i)),A.createElement(rr,pa({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+s+p,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,v=h.isTextActive,d=h.isSlideMoving,g=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!L(u)||!L(s)||!L(c)||!L(f)||c<=0||f<=0)return null;var w=Q("recharts-brush",a),O=A.Children.count(o)===1,m=Zk("userSelect","none");return A.createElement(ae,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||d||g||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return A.createElement(A.Fragment,null,A.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),A.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),A.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return A.isValidElement(n)?a=A.cloneElement(n,i):Y(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,s=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return Qc({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?aN({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(N.PureComponent);Fe(Dr,"displayName","Brush");Fe(Dr,"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 el,Yg;function oN(){if(Yg)return el;Yg=1;var e=nh();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return el=t,el}var tl,Zg;function uN(){if(Zg)return tl;Zg=1;var e=h0(),t=lt(),r=oN(),n=Le(),i=La();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return tl=a,tl}var sN=uN();const cN=ue(sN);var ut=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},rl,Jg;function lN(){if(Jg)return rl;Jg=1;var e=M0();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return rl=t,rl}var nl,Qg;function fN(){if(Qg)return nl;Qg=1;var e=lN(),t=j0(),r=lt();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return nl=n,nl}var hN=fN();const dN=ue(hN);var il,eb;function pN(){if(eb)return il;eb=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return il=e,il}var al,tb;function vN(){if(tb)return al;tb=1;var e=nh();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return al=t,al}var ol,rb;function yN(){if(rb)return ol;rb=1;var e=pN(),t=vN(),r=lt(),n=Le(),i=La();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return ol=a,ol}var mN=yN();const yw=ue(mN);var gN=["x","y"];function Jn(e){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(e)}function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bf.apply(this,arguments)}function nb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nb(Object(r),!0).forEach(function(n){bN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bN(e,t,r){return t=xN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xN(e){var t=wN(e,"string");return Jn(t)=="symbol"?t:t+""}function wN(e,t){if(Jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ON(e,t){if(e==null)return{};var r=_N(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _N(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function SN(e,t){var r=e.x,n=e.y,i=ON(e,gN),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),h=parseInt(l,10);return hn(hn(hn(hn(hn({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function ib(e){return A.createElement(cw,bf({shapeType:"rectangle",propTransformer:SN,activeClassName:"recharts-active-bar"},e))}var AN=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=L(n)||KO(n);return a?t(n,i):(a||ir(),r)}},PN=["value","background"],mw;function qr(e){"@babel/helpers - typeof";return qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qr(e)}function TN(e,t){if(e==null)return{};var r=jN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ya.apply(this,arguments)}function ab(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ab(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ab(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ob(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bw(n.key),n)}}function MN(e,t,r){return t&&ob(e.prototype,t),r&&ob(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $N(e,t,r){return t=ma(t),CN(e,gw()?Reflect.construct(t,r||[],ma(e).constructor):t.apply(e,r))}function CN(e,t){if(t&&(qr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IN(e)}function IN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gw=function(){return!!e})()}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ma(e)}function kN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xf(e,t)}function xf(e,t){return xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xf(e,t)}function $t(e,t,r){return t=bw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bw(e){var t=NN(e,"string");return qr(t)=="symbol"?t:t+""}function NN(e,t){if(qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ot=(function(e){function t(){var r;EN(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=$N(this,t,[].concat(i)),$t(r,"state",{isAnimationFinished:!1}),$t(r,"id",ai("recharts-bar-")),$t(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),$t(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return kN(t,e),MN(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=X(this.props,!1);return n&&n.map(function(l,h){var p=h===s,y=p?c:o,v=ge(ge(ge({},f),l),{},{isActive:p,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return A.createElement(ae,ya({className:"recharts-bar-rectangle"},tr(i.props,l,h),{key:"rectangle-".concat(l==null?void 0:l.x,"-").concat(l==null?void 0:l.y,"-").concat(l==null?void 0:l.value,"-").concat(h)}),A.createElement(ib,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,h=this.state.prevData;return A.createElement(wt,{begin:s,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,v=a.map(function(d,g){var x=h&&h[g];if(x){var w=jt(x.x,d.x),O=jt(x.y,d.y),m=jt(x.width,d.width),b=jt(x.height,d.height);return ge(ge({},d),{},{x:w(y),y:O(y),width:m(y),height:b(y)})}if(o==="horizontal"){var _=jt(0,d.height),S=_(y);return ge(ge({},d),{},{y:d.y+d.height-S,height:S})}var P=jt(0,d.width),$=P(y);return ge(ge({},d),{},{width:$})});return A.createElement(ae,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Ya(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,s=X(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,h=TN(c,PN);if(!l)return null;var p=ge(ge(ge(ge(ge({},h),{},{fill:"#eee"},l),s),tr(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return A.createElement(ib,ya({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=Ze(f,Qa);if(!l)return null;var h=c==="vertical"?o[0].height/2:o[0].width/2,p=function(d,g){var x=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:x,errorVal:Ce(d,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return A.createElement(ae,y,l.map(function(v){return A.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,f=n.top,l=n.width,h=n.height,p=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,g=Q("recharts-bar",o),x=u&&u.allowDataOverflow,w=s&&s.allowDataOverflow,O=x||w,m=ee(v)?this.id:v;return A.createElement(ae,{className:g},x||w?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(m)},A.createElement("rect",{x:x?c:c-l/2,y:w?f:f-h/2,width:x?l:l*2,height:w?h:h*2}))):null,A.createElement(ae,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!p||d)&&It.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(N.PureComponent);mw=Ot;$t(Ot,"displayName","Bar");$t(Ot,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Jr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});$t(Ot,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,p=oM(n,r);if(!p)return null;var y=t.layout,v=r.type.defaultProps,d=v!==void 0?ge(ge({},v),r.props):r.props,g=d.dataKey,x=d.children,w=d.minPointSize,O=y==="horizontal"?o:a,m=c?O.scale.domain():null,b=dM({numericAxis:O}),_=Ze(x,Ba),S=l.map(function(P,$){var j,T,M,I,C,R;c?j=uM(c[f+$],m):(j=Ce(P,g),Array.isArray(j)||(j=[b,j]));var D=AN(w,mw.defaultProps.minPointSize)(j[1],$);if(y==="horizontal"){var B,F=[o.scale(j[0]),o.scale(j[1])],H=F[0],G=F[1];T=km({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:P,index:$}),M=(B=G??H)!==null&&B!==void 0?B:void 0,I=p.size;var U=H-G;if(C=Number.isNaN(U)?0:U,R={x:T,y:o.y,width:I,height:o.height},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var V=Ie(C||D)*(Math.abs(D)-Math.abs(C));M-=V,C+=V}}else{var he=[a.scale(j[0]),a.scale(j[1])],me=he[0],Be=he[1];if(T=me,M=km({axis:o,ticks:s,bandSize:i,offset:p.offset,entry:P,index:$}),I=Be-me,C=p.size,R={x:a.x,y:M,width:a.width,height:C},Math.abs(D)>0&&Math.abs(I)<Math.abs(D)){var qt=Ie(I||D)*(Math.abs(D)-Math.abs(I));I+=qt}}return ge(ge(ge({},P),{},{x:T,y:M,width:I,height:C,value:c?j:j[1],payload:P,background:R},_&&_[$]&&_[$].props),{},{tooltipPayload:[Hx(r,P)],tooltipPosition:{x:T+I/2,y:M+C/2}})});return ge({data:S,layout:y},h)});function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}function RN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ub(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xw(n.key),n)}}function DN(e,t,r){return t&&ub(e.prototype,t),r&&ub(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sb(Object(r),!0).forEach(function(n){oo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oo(e,t,r){return t=xw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xw(e){var t=qN(e,"string");return Qn(t)=="symbol"?t:t+""}function qN(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LN=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},h=!!ze(c,Ot);return f.reduce(function(p,y){var v=r[y],d=v.orientation,g=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,b="".concat(d).concat(O?"Mirror":""),_,S,P,$,j;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var T=g[1]-g[0],M=1/0,I=v.categoricalDomain.sort(XO);if(I.forEach(function(he,me){me>0&&(M=Math.min((he||0)-(I[me-1]||0),M))}),Number.isFinite(M)){var C=M/T,R=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=C*R/2),v.padding==="no-gap"){var D=ke(t.barCategoryGap,C*R),B=C*R/2;_=B-D-(B-D)/R*D}}}i==="xAxis"?S=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?S=s==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:S=v.range,m&&(S=[S[1],S[0]]);var F=Fx(v,a,h),H=F.scale,G=F.realScaleType;H.domain(g).range(S),zx(H);var U=Ux(H,tt(tt({},v),{},{realScaleType:G}));i==="xAxis"?(j=d==="top"&&!O||d==="bottom"&&O,P=n.left,$=l[b]-j*v.height):i==="yAxis"&&(j=d==="left"&&!O||d==="right"&&O,P=l[b]-j*v.width,$=n.top);var V=tt(tt(tt({},v),U),{},{realScaleType:G,x:P,y:$,scale:H,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return V.bandSize=ea(V,U),!v.hide&&i==="xAxis"?l[b]+=(j?-1:1)*V.height:v.hide||(l[b]+=(j?-1:1)*V.width),tt(tt({},p),{},oo({},y,V))},{})},ww=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},BN=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return ww({x:r,y:n},{x:i,y:a})},Ow=(function(){function e(t){RN(this,e),this.scale=t}return DN(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();oo(Ow,"EPS",1e-4);var Ih=function(t){var r=Object.keys(t).reduce(function(n,i){return tt(tt({},n),{},oo({},i,Ow.create(t[i])))},{});return tt(tt({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return dN(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return yw(i,function(a,o){return r[o].isInRange(a)})}})};function FN(e){return(e%180+180)%180}var zN=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=FN(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},ul,cb;function UN(){if(cb)return ul;cb=1;var e=lt(),t=oi(),r=Da();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(l){return c(s[l],l,s)}}var f=i(a,o,u);return f>-1?s[c?a[f]:f]:void 0}}return ul=n,ul}var sl,lb;function WN(){if(lb)return sl;lb=1;var e=hw();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return sl=t,sl}var cl,fb;function HN(){if(fb)return cl;fb=1;var e=_0(),t=lt(),r=WN(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var c=u==null?0:r(u);return c<0&&(c=n(s+c,0)),e(a,t(o,3),c)}return cl=i,cl}var ll,hb;function KN(){if(hb)return ll;hb=1;var e=UN(),t=HN(),r=e(t);return ll=r,ll}var GN=KN();const VN=ue(GN);var XN=Lb();const YN=ue(XN);var ZN=YN(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),kh=N.createContext(void 0),Nh=N.createContext(void 0),_w=N.createContext(void 0),Sw=N.createContext({}),Aw=N.createContext(void 0),Pw=N.createContext(0),Tw=N.createContext(0),db=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,f=ZN(a);return A.createElement(kh.Provider,{value:n},A.createElement(Nh.Provider,{value:i},A.createElement(Sw.Provider,{value:a},A.createElement(_w.Provider,{value:f},A.createElement(Aw.Provider,{value:o},A.createElement(Pw.Provider,{value:c},A.createElement(Tw.Provider,{value:s},u)))))))},JN=function(){return N.useContext(Aw)},jw=function(t){var r=N.useContext(kh);r==null&&ir();var n=r[t];return n==null&&ir(),n},QN=function(){var t=N.useContext(kh);return Mt(t)},eR=function(){var t=N.useContext(Nh),r=VN(t,function(n){return yw(n.domain,Number.isFinite)});return r||Mt(t)},Ew=function(t){var r=N.useContext(Nh);r==null&&ir();var n=r[t];return n==null&&ir(),n},tR=function(){var t=N.useContext(_w);return t},rR=function(){return N.useContext(Sw)},Rh=function(){return N.useContext(Tw)},Dh=function(){return N.useContext(Pw)};function Lr(e){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lr(e)}function nR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$w(n.key),n)}}function aR(e,t,r){return t&&iR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oR(e,t,r){return t=ga(t),uR(e,Mw()?Reflect.construct(t,r||[],ga(e).constructor):t.apply(e,r))}function uR(e,t){if(t&&(Lr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sR(e)}function sR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mw=function(){return!!e})()}function ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ga(e)}function cR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wf(e,t)}function wf(e,t){return wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wf(e,t)}function pb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pb(Object(r),!0).forEach(function(n){qh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qh(e,t,r){return t=$w(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $w(e){var t=lR(e,"string");return Lr(t)=="symbol"?t:t+""}function lR(e,t){if(Lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function fR(e,t){return vR(e)||pR(e,t)||dR(e,t)||hR()}function hR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dR(e,t){if(e){if(typeof e=="string")return yb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yb(e,t)}}function yb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function vR(e){if(Array.isArray(e))return e}function Of(){return Of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Of.apply(this,arguments)}var yR=function(t,r){var n;return A.isValidElement(t)?n=A.cloneElement(t,r):Y(t)?n=t(r):n=A.createElement("line",Of({},r,{className:"recharts-reference-line-line"})),n},mR=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,h=a.width,p=a.height;if(n){var y=c.y,v=t.y.apply(y,{position:o});if(ut(c,"discard")&&!t.y.isInRange(v))return null;var d=[{x:f+h,y:v},{x:f,y:v}];return s==="left"?d.reverse():d}if(r){var g=c.x,x=t.x.apply(g,{position:o});if(ut(c,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+p},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=c.segment,m=O.map(function(b){return t.apply(b,{position:o})});return ut(c,"discard")&&cN(m,function(b){return!t.isInRange(b)})?null:m}return null};function gR(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=JN(),f=jw(i),l=Ew(a),h=tR();if(!c||!h)return null;nt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Ih({x:f.scale,y:l.scale}),y=Se(t),v=Se(r),d=n&&n.length===2,g=mR(p,y,v,d,h,e.position,f.orientation,l.orientation,e);if(!g)return null;var x=fR(g,2),w=x[0],O=w.x,m=w.y,b=x[1],_=b.x,S=b.y,P=ut(e,"hidden")?"url(#".concat(c,")"):void 0,$=vb(vb({clipPath:P},X(e,!0)),{},{x1:O,y1:m,x2:_,y2:S});return A.createElement(ae,{className:Q("recharts-reference-line",u)},yR(o,$),Te.renderCallByParent(e,BN({x1:O,y1:m,x2:_,y2:S})))}var Lh=(function(e){function t(){return nR(this,t),oR(this,t,arguments)}return cR(t,e),aR(t,[{key:"render",value:function(){return A.createElement(gR,this.props)}}])})(A.Component);qh(Lh,"displayName","ReferenceLine");qh(Lh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function _f(){return _f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_f.apply(this,arguments)}function Br(e){"@babel/helpers - typeof";return Br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Br(e)}function mb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mb(Object(r),!0).forEach(function(n){uo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Iw(n.key),n)}}function wR(e,t,r){return t&&xR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OR(e,t,r){return t=ba(t),_R(e,Cw()?Reflect.construct(t,r||[],ba(e).constructor):t.apply(e,r))}function _R(e,t){if(t&&(Br(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SR(e)}function SR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cw=function(){return!!e})()}function ba(e){return ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ba(e)}function AR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sf(e,t)}function Sf(e,t){return Sf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sf(e,t)}function uo(e,t,r){return t=Iw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iw(e){var t=PR(e,"string");return Br(t)=="symbol"?t:t+""}function PR(e,t){if(Br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var TR=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Ih({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return ut(t,"discard")&&!o.isInRange(u)?null:u},so=(function(e){function t(){return bR(this,t),OR(this,t,arguments)}return AR(t,e),wR(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=Se(i),f=Se(a);if(nt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=TR(this.props);if(!l)return null;var h=l.x,p=l.y,y=this.props,v=y.shape,d=y.className,g=ut(this.props,"hidden")?"url(#".concat(s,")"):void 0,x=gb(gb({clipPath:g},X(this.props,!0)),{},{cx:h,cy:p});return A.createElement(ae,{className:Q("recharts-reference-dot",d)},t.renderDot(v,x),Te.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(A.Component);uo(so,"displayName","ReferenceDot");uo(so,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});uo(so,"renderDot",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):Y(e)?r=e(t):r=A.createElement(Ch,_f({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Af(){return Af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Af.apply(this,arguments)}function Fr(e){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(e)}function bb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bb(Object(r),!0).forEach(function(n){co(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ER(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nw(n.key),n)}}function MR(e,t,r){return t&&ER(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $R(e,t,r){return t=xa(t),CR(e,kw()?Reflect.construct(t,r||[],xa(e).constructor):t.apply(e,r))}function CR(e,t){if(t&&(Fr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IR(e)}function IR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kw=function(){return!!e})()}function xa(e){return xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xa(e)}function kR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pf(e,t)}function Pf(e,t){return Pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pf(e,t)}function co(e,t,r){return t=Nw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nw(e){var t=NR(e,"string");return Fr(t)=="symbol"?t:t+""}function NR(e,t){if(Fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var RR=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=Ih({x:f.scale,y:l.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(s,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(c,{position:"end"}):h.y.rangeMax};return ut(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:ww(p,y)},lo=(function(e){function t(){return jR(this,t),$R(this,t,arguments)}return kR(t,e),MR(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,f=n.clipPathId;nt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Se(i),h=Se(a),p=Se(o),y=Se(u),v=this.props.shape;if(!l&&!h&&!p&&!y&&!v)return null;var d=RR(l,h,p,y,this.props);if(!d&&!v)return null;var g=ut(this.props,"hidden")?"url(#".concat(f,")"):void 0;return A.createElement(ae,{className:Q("recharts-reference-area",s)},t.renderRect(v,xb(xb({clipPath:g},X(this.props,!0)),d)),Te.renderCallByParent(this.props,d))}}])})(A.Component);co(lo,"displayName","ReferenceArea");co(lo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});co(lo,"renderRect",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):Y(e)?r=e(t):r=A.createElement($h,Af({},t,{className:"recharts-reference-area-rect"})),r});function Rw(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function DR(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return zN(n,r)}function qR(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function wa(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function LR(e,t){return Rw(e,t+1)}function BR(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,f=o,l=function(){var y=n==null?void 0:n[s];if(y===void 0)return{v:Rw(n,c)};var v=s,d,g=function(){return d===void 0&&(d=r(y,v)),d},x=y.coordinate,w=s===0||wa(e,x,g,f,u);w||(s=0,f=o,c+=1),w&&(f=x+e*(g()/2+i),s+=c)},h;c<=a.length;)if(h=l(),h)return h.v;return[]}function ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}function wb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wb(Object(r),!0).forEach(function(n){FR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FR(e,t,r){return t=zR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zR(e){var t=UR(e,"string");return ei(t)=="symbol"?t:t+""}function UR(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WR(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(h){var p=a[h],y,v=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var d=e*(p.coordinate+e*v()/2-s);a[h]=p=Me(Me({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=Me(Me({},p),{},{tickCoord:p.coordinate});var g=wa(e,p.tickCoord,v,u,s);g&&(s=p.tickCoord-e*(v()/2+i),a[h]=Me(Me({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function HR(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-c);o[u-1]=f=Me(Me({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=wa(e,f.tickCoord,function(){return l},s,c);p&&(c=f.tickCoord-e*(l/2+i),o[u-1]=Me(Me({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,m=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var b=e*(w.coordinate-e*m()/2-s);o[x]=w=Me(Me({},w),{},{tickCoord:b<0?w.coordinate-b*e:w.coordinate})}else o[x]=w=Me(Me({},w),{},{tickCoord:w.coordinate});var _=wa(e,w.tickCoord,m,s,c);_&&(s=w.tickCoord+e*(m()/2+i),o[x]=Me(Me({},w),{},{isShow:!0}))},d=0;d<y;d++)v(d);return o}function Bh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(L(s)||Jr.isSsr)return LR(i,typeof s=="number"&&L(s)?s:0);var h=[],p=u==="top"||u==="bottom"?"width":"height",y=f&&p==="width"?yn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=Y(c)?c(w.value,O):w.value;return p==="width"?DR(yn(m,{fontSize:t,letterSpacing:r}),y,l):yn(m,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?Ie(i[1].coordinate-i[0].coordinate):1,g=qR(a,d,p);return s==="equidistantPreserveStart"?BR(d,g,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?h=HR(d,g,v,i,o,s==="preserveStartEnd"):h=WR(d,g,v,i,o),h.filter(function(x){return x.isShow}))}var KR=["viewBox"],GR=["viewBox"],VR=["ticks"];function zr(e){"@babel/helpers - typeof";return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zr(e)}function gr(){return gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gr.apply(this,arguments)}function Ob(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ob(Object(r),!0).forEach(function(n){Fh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ob(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fl(e,t){if(e==null)return{};var r=XR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function YR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qw(n.key),n)}}function ZR(e,t,r){return t&&_b(e.prototype,t),r&&_b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function JR(e,t,r){return t=Oa(t),QR(e,Dw()?Reflect.construct(t,r||[],Oa(e).constructor):t.apply(e,r))}function QR(e,t){if(t&&(zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eD(e)}function eD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dw=function(){return!!e})()}function Oa(e){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oa(e)}function tD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tf(e,t)}function Tf(e,t){return Tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tf(e,t)}function Fh(e,t,r){return t=qw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qw(e){var t=rD(e,"string");return zr(t)=="symbol"?t:t+""}function rD(e,t){if(zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rn=(function(e){function t(r){var n;return YR(this,t),n=JR(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return tD(t,e),ZR(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=fl(n,KR),u=this.props,s=u.viewBox,c=fl(u,GR);return!xr(a,s)||!xr(o,c)||!xr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,h=i.tickMargin,p,y,v,d,g,x,w=l?-1:1,O=n.tickSize||f,m=L(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":p=y=n.coordinate,d=o+ +!l*s,v=d-w*O,x=v-w*h,g=m;break;case"left":v=d=n.coordinate,y=a+ +!l*u,p=y-w*O,g=p-w*h,x=m;break;case"right":v=d=n.coordinate,y=a+ +l*u,p=y+w*O,g=p+w*h,x=m;break;default:p=y=n.coordinate,d=o+ +l*s,v=d+w*O,x=v+w*h,g=m;break}return{line:{x1:p,y1:v,x2:y,y2:d},tick:{x:g,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,c=n.mirror,f=n.axisLine,l=Oe(Oe(Oe({},X(this.props,!1)),X(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!c||s==="bottom"&&c);l=Oe(Oe({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var p=+(s==="left"&&!c||s==="right"&&c);l=Oe(Oe({},l),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return A.createElement("line",gr({},l,{className:Q("recharts-cartesian-axis-line",He(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,p=Bh(Oe(Oe({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),d=X(this.props,!1),g=X(f,!1),x=Oe(Oe({},d),{},{fill:"none"},X(s,!1)),w=p.map(function(O,m){var b=o.getTickLineCoord(O),_=b.line,S=b.tick,P=Oe(Oe(Oe(Oe({textAnchor:y,verticalAnchor:v},d),{},{stroke:"none",fill:c},g),S),{},{index:m,payload:O,visibleTicksCount:p.length,tickFormatter:l});return A.createElement(ae,gr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},tr(o.props,O,m)),s&&A.createElement("line",gr({},x,_,{className:Q("recharts-cartesian-axis-tick-line",He(s,"className"))})),f&&t.renderTickItem(f,P,"".concat(Y(l)?l(O.value,m):O.value).concat(h||"")))});return A.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,h=l.ticks,p=fl(l,VR),y=h;return Y(s)&&(y=h&&h.length>0?s(this.props):s(p)),o<=0||u<=0||!y||!y.length?null:A.createElement(ae,{className:Q("recharts-cartesian-axis",c),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Te.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=Q(i.className,"recharts-cartesian-axis-tick-value");return A.isValidElement(n)?o=A.cloneElement(n,Oe(Oe({},i),{},{className:u})):Y(n)?o=n(Oe(Oe({},i),{},{className:u})):o=A.createElement(rr,gr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(N.Component);Fh(rn,"displayName","CartesianAxis");Fh(rn,"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 nD=["x1","y1","x2","y2","key"],iD=["offset"];function ar(e){"@babel/helpers - typeof";return ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ar(e)}function Sb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sb(Object(r),!0).forEach(function(n){aD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aD(e,t,r){return t=oD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oD(e){var t=uD(e,"string");return ar(t)=="symbol"?t:t+""}function uD(e,t){if(ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yt.apply(this,arguments)}function Ab(e,t){if(e==null)return{};var r=sD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var cD=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,s=t.ry;return A.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Lw(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(Y(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=Ab(t,nD),c=X(s,!1);c.offset;var f=Ab(c,iD);r=A.createElement("line",Yt({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function lD(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=$e($e({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return Lw(i,c)});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function fD(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=$e($e({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return Lw(i,c)});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function hD(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,c=s===void 0?!0:s;if(!c||!t||!t.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==f[0]&&f.unshift(0);var l=f.map(function(h,p){var y=!f[p+1],v=y?i+o-h:f[p+1]-h;if(v<=0)return null;var d=p%t.length;return A.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:v,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function dD(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,s=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var f=c.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==f[0]&&f.unshift(0);var l=f.map(function(h,p){var y=!f[p+1],v=y?a+u-h:f[p+1]-h;if(v<=0)return null;var d=p%n.length;return A.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:v,height:s,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var pD=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Bx(Bh($e($e($e({},rn.defaultProps),n),{},{ticks:vt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},vD=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Bx(Bh($e($e($e({},rn.defaultProps),n),{},{ticks:vt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},dr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function _a(e){var t,r,n,i,a,o,u=Rh(),s=Dh(),c=rR(),f=$e($e({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:dr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:dr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:dr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:dr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:dr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:dr.verticalFill,x:L(e.x)?e.x:c.left,y:L(e.y)?e.y:c.top,width:L(e.width)?e.width:c.width,height:L(e.height)?e.height:c.height}),l=f.x,h=f.y,p=f.width,y=f.height,v=f.syncWithTicks,d=f.horizontalValues,g=f.verticalValues,x=QN(),w=eR();if(!L(p)||p<=0||!L(y)||y<=0||!L(l)||l!==+l||!L(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||pD,m=f.horizontalCoordinatesGenerator||vD,b=f.horizontalPoints,_=f.verticalPoints;if((!b||!b.length)&&Y(m)){var S=d&&d.length,P=m({yAxis:w?$e($e({},w),{},{ticks:S?d:w.ticks}):void 0,width:u,height:s,offset:c},S?!0:v);nt(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ar(P),"]")),Array.isArray(P)&&(b=P)}if((!_||!_.length)&&Y(O)){var $=g&&g.length,j=O({xAxis:x?$e($e({},x),{},{ticks:$?g:x.ticks}):void 0,width:u,height:s,offset:c},$?!0:v);nt(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ar(j),"]")),Array.isArray(j)&&(_=j)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(cD,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),A.createElement(lD,Yt({},f,{offset:c,horizontalPoints:b,xAxis:x,yAxis:w})),A.createElement(fD,Yt({},f,{offset:c,verticalPoints:_,xAxis:x,yAxis:w})),A.createElement(hD,Yt({},f,{horizontalPoints:b})),A.createElement(dD,Yt({},f,{verticalPoints:_})))}_a.displayName="CartesianGrid";function Ur(e){"@babel/helpers - typeof";return Ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(e)}function yD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zw(n.key),n)}}function gD(e,t,r){return t&&mD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bD(e,t,r){return t=Sa(t),xD(e,Bw()?Reflect.construct(t,r||[],Sa(e).constructor):t.apply(e,r))}function xD(e,t){if(t&&(Ur(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wD(e)}function wD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bw=function(){return!!e})()}function Sa(e){return Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sa(e)}function OD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jf(e,t)}function jf(e,t){return jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jf(e,t)}function Fw(e,t,r){return t=zw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zw(e){var t=_D(e,"string");return Ur(t)=="symbol"?t:t+""}function _D(e,t){if(Ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ef(){return Ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ef.apply(this,arguments)}function SD(e){var t=e.xAxisId,r=Rh(),n=Dh(),i=jw(t);return i==null?null:N.createElement(rn,Ef({},i,{className:Q("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return vt(o,!0)}}))}var Wr=(function(e){function t(){return yD(this,t),bD(this,t,arguments)}return OD(t,e),gD(t,[{key:"render",value:function(){return N.createElement(SD,this.props)}}])})(N.Component);Fw(Wr,"displayName","XAxis");Fw(Wr,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Hr(e){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(e)}function AD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hw(n.key),n)}}function TD(e,t,r){return t&&PD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jD(e,t,r){return t=Aa(t),ED(e,Uw()?Reflect.construct(t,r||[],Aa(e).constructor):t.apply(e,r))}function ED(e,t){if(t&&(Hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MD(e)}function MD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uw=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Aa(e)}function $D(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mf(e,t)}function Mf(e,t){return Mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mf(e,t)}function Ww(e,t,r){return t=Hw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hw(e){var t=CD(e,"string");return Hr(t)=="symbol"?t:t+""}function CD(e,t){if(Hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $f(){return $f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$f.apply(this,arguments)}var ID=function(t){var r=t.yAxisId,n=Rh(),i=Dh(),a=Ew(r);return a==null?null:N.createElement(rn,$f({},a,{className:Q("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return vt(u,!0)}}))},Kr=(function(e){function t(){return AD(this,t),jD(this,t,arguments)}return $D(t,e),TD(t,[{key:"render",value:function(){return N.createElement(ID,this.props)}}])})(N.Component);Ww(Kr,"displayName","YAxis");Ww(Kr,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function Pb(e){return DD(e)||RD(e)||ND(e)||kD()}function kD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ND(e,t){if(e){if(typeof e=="string")return Cf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cf(e,t)}}function RD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DD(e){if(Array.isArray(e))return Cf(e)}function Cf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var If=function(t,r,n,i,a){var o=Ze(t,Lh),u=Ze(t,so),s=[].concat(Pb(o),Pb(u)),c=Ze(t,lo),f="".concat(i,"Id"),l=i[0],h=r;if(s.length&&(h=s.reduce(function(v,d){if(d.props[f]===n&&ut(d.props,"extendDomain")&&L(d.props[l])){var g=d.props[l];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},h)),c.length){var p="".concat(l,"1"),y="".concat(l,"2");h=c.reduce(function(v,d){if(d.props[f]===n&&ut(d.props,"extendDomain")&&L(d.props[p])&&L(d.props[y])){var g=d.props[p],x=d.props[y];return[Math.min(v[0],g,x),Math.max(v[1],g,x)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,d){return L(d)?[Math.min(v[0],d),Math.max(v[1],d)]:v},h)),h},hl={exports:{}},Tb;function qD(){return Tb||(Tb=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,l||s,h),y=r?r+c:c;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],p]:s._events[y].push(p):(s._events[y]=p,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var h=0,p=l.length,y=new Array(p);h<p;h++)y[h]=l[h].fn;return y},u.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,h,p,y){var v=r?r+c:c;if(!this._events[v])return!1;var d=this._events[v],g=arguments.length,x,w;if(d.fn){switch(d.once&&this.removeListener(c,d.fn,void 0,!0),g){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,f),!0;case 3:return d.fn.call(d.context,f,l),!0;case 4:return d.fn.call(d.context,f,l,h),!0;case 5:return d.fn.call(d.context,f,l,h,p),!0;case 6:return d.fn.call(d.context,f,l,h,p,y),!0}for(w=1,x=new Array(g-1);w<g;w++)x[w-1]=arguments[w];d.fn.apply(d.context,x)}else{var O=d.length,m;for(w=0;w<O;w++)switch(d[w].once&&this.removeListener(c,d[w].fn,void 0,!0),g){case 1:d[w].fn.call(d[w].context);break;case 2:d[w].fn.call(d[w].context,f);break;case 3:d[w].fn.call(d[w].context,f,l);break;case 4:d[w].fn.call(d[w].context,f,l,h);break;default:if(!x)for(m=1,x=new Array(g-1);m<g;m++)x[m-1]=arguments[m];d[w].fn.apply(d[w].context,x)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,h){var p=r?r+c:c;if(!this._events[p])return this;if(!f)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===f&&(!h||y.once)&&(!l||y.context===l)&&o(this,p);else{for(var v=0,d=[],g=y.length;v<g;v++)(y[v].fn!==f||h&&!y[v].once||l&&y[v].context!==l)&&d.push(y[v]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},u.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(hl)),hl.exports}var LD=qD();const BD=ue(LD);var dl=new BD,pl="recharts.syncMouseEvents";function ti(e){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(e)}function FD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Kw(n.key),n)}}function UD(e,t,r){return t&&zD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vl(e,t,r){return t=Kw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kw(e){var t=WD(e,"string");return ti(t)=="symbol"?t:t+""}function WD(e,t){if(ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var HD=(function(){function e(){FD(this,e),vl(this,"activeIndex",0),vl(this,"coordinateList",[]),vl(this,"layout","horizontal")}return UD(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,c=s===void 0?null:s,f=r.offset,l=f===void 0?null:f,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+c,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])})();function KD(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&L(n)&&L(i))return!0}return!1}function GD(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Gw(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=fe(t,r,n,i),u=fe(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function VD(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,h=fe(u,s,c,l),p=fe(u,s,f,l);n=h.x,i=h.y,a=p.x,o=p.y}else return Gw(t);return[{x:n,y:i},{x:a,y:o}]}function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function jb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Si(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jb(Object(r),!0).forEach(function(n){XD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XD(e,t,r){return t=YD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YD(e){var t=ZD(e,"string");return ri(t)=="symbol"?t:t+""}function ZD(e,t){if(ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JD(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,v=tf;if(h==="ScatterChart")y=o,v=II;else if(h==="BarChart")y=GD(l,o,s,f),v=$h;else if(l==="radial"){var d=Gw(o),g=d.cx,x=d.cy,w=d.radius,O=d.startAngle,m=d.endAngle;y={cx:g,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=Zx}else y={points:VD(l,o,s)},v=tf;var b=Si(Si(Si(Si({stroke:"#ccc",pointerEvents:"none"},s),y),X(p,!1)),{},{payload:u,payloadIndex:c,className:Q("recharts-tooltip-cursor",p.className)});return N.isValidElement(p)?N.cloneElement(p,b):N.createElement(v,b)}var QD=["item"],e2=["children","className","width","height","style","compact","title","desc"];function Gr(e){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(e)}function br(){return br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},br.apply(this,arguments)}function Eb(e,t){return n2(e)||r2(e,t)||Xw(e,t)||t2()}function t2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function n2(e){if(Array.isArray(e))return e}function Mb(e,t){if(e==null)return{};var r=i2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function i2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function a2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yw(n.key),n)}}function u2(e,t,r){return t&&o2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function s2(e,t,r){return t=Pa(t),c2(e,Vw()?Reflect.construct(t,r||[],Pa(e).constructor):t.apply(e,r))}function c2(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l2(e)}function l2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vw=function(){return!!e})()}function Pa(e){return Pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pa(e)}function f2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kf(e,t)}function kf(e,t){return kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kf(e,t)}function Vr(e){return p2(e)||d2(e)||Xw(e)||h2()}function h2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xw(e,t){if(e){if(typeof e=="string")return Nf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nf(e,t)}}function d2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p2(e){if(Array.isArray(e))return Nf(e)}function Nf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$b(Object(r),!0).forEach(function(n){K(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K(e,t,r){return t=Yw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yw(e){var t=v2(e,"string");return Gr(t)=="symbol"?t:t+""}function v2(e,t){if(Gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var y2={xAxis:["bottom","top"],yAxis:["left","right"]},m2={width:"100%",height:"100%"},Zw={x:0,y:0};function Ai(e){return e}var g2=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},b2=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return k(k(k({},i),fe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return k(k(k({},i),fe(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return Zw},fo=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(Vr(u),Vr(c)):u},[]);return o.length>0?o:t&&t.length&&L(i)&&L(a)?t.slice(i,a+1):[]};function Jw(e){return e==="number"?[0,"auto"]:void 0}var Rf=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=fo(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=l===void 0?u:l;h=yl(p,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Vr(s),[Hx(c,h)]):s},[])},Cb=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=g2(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=eM(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,h=Rf(t,r,f,l),p=b2(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:p}}return null},x2=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,p=Lx(f,a);return n.reduce(function(y,v){var d,g=v.type.defaultProps!==void 0?k(k({},v.type.defaultProps),v.props):v.props,x=g.type,w=g.dataKey,O=g.allowDataOverflow,m=g.allowDuplicatedCategory,b=g.scale,_=g.ticks,S=g.includeHidden,P=g[o];if(y[P])return y;var $=fo(t.data,{graphicalItems:i.filter(function(U){var V,he=o in U.props?U.props[o]:(V=U.type.defaultProps)===null||V===void 0?void 0:V[o];return he===P}),dataStartIndex:s,dataEndIndex:c}),j=$.length,T,M,I;KD(g.domain,O,x)&&(T=Yl(g.domain,null,O),p&&(x==="number"||b!=="auto")&&(I=gn($,w,"category")));var C=Jw(x);if(!T||T.length===0){var R,D=(R=g.domain)!==null&&R!==void 0?R:C;if(w){if(T=gn($,w,x),x==="category"&&p){var B=VO(T);m&&B?(M=T,T=da(0,j)):m||(T=Dm(D,T,v).reduce(function(U,V){return U.indexOf(V)>=0?U:[].concat(Vr(U),[V])},[]))}else if(x==="category")m?T=T.filter(function(U){return U!==""&&!ee(U)}):T=Dm(D,T,v).reduce(function(U,V){return U.indexOf(V)>=0||V===""||ee(V)?U:[].concat(Vr(U),[V])},[]);else if(x==="number"){var F=aM($,i.filter(function(U){var V,he,me=o in U.props?U.props[o]:(V=U.type.defaultProps)===null||V===void 0?void 0:V[o],Be="hide"in U.props?U.props.hide:(he=U.type.defaultProps)===null||he===void 0?void 0:he.hide;return me===P&&(S||!Be)}),w,a,f);F&&(T=F)}p&&(x==="number"||b!=="auto")&&(I=gn($,w,"category"))}else p?T=da(0,j):u&&u[P]&&u[P].hasStack&&x==="number"?T=h==="expand"?[0,1]:Wx(u[P].stackGroups,s,c):T=qx($,i.filter(function(U){var V=o in U.props?U.props[o]:U.type.defaultProps[o],he="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return V===P&&(S||!he)}),x,f,!0);if(x==="number")T=If(l,T,P,a,_),D&&(T=Yl(D,T,O));else if(x==="category"&&D){var H=D,G=T.every(function(U){return H.indexOf(U)>=0});G&&(T=H)}}return k(k({},y),{},K({},P,k(k({},g),{},{axisType:a,domain:T,categoricalDomain:I,duplicateDomain:M,originalDomain:(d=g.domain)!==null&&d!==void 0?d:C,isCategorical:p,layout:f})))},{})},w2=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,h=fo(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=h.length,y=Lx(f,a),v=-1;return n.reduce(function(d,g){var x=g.type.defaultProps!==void 0?k(k({},g.type.defaultProps),g.props):g.props,w=x[o],O=Jw("number");if(!d[w]){v++;var m;return y?m=da(0,p):u&&u[w]&&u[w].hasStack?(m=Wx(u[w].stackGroups,s,c),m=If(l,m,w,a)):(m=Yl(O,qx(h,n.filter(function(b){var _,S,P=o in b.props?b.props[o]:(_=b.type.defaultProps)===null||_===void 0?void 0:_[o],$="hide"in b.props?b.props.hide:(S=b.type.defaultProps)===null||S===void 0?void 0:S.hide;return P===w&&!$}),"number",f),i.defaultProps.allowDataOverflow),m=If(l,m,w,a)),k(k({},d),{},K({},w,k(k({axisType:a},i.defaultProps),{},{hide:!0,orientation:He(y2,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return d},{})},O2=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=Ze(f,a),p={};return h&&h.length?p=x2(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=w2(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),p},_2=function(t){var r=Mt(t),n=vt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:ih(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ea(r,n)}},Ib=function(t){var r=t.children,n=t.defaultShowTooltip,i=ze(r,Dr),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},S2=function(t){return!t||!t.length?!1:t.some(function(r){var n=yt(r&&r.type);return n&&n.indexOf("Bar")>=0})},kb=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},A2=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,h=n.margin||{},p=ze(l,Dr),y=ze(l,Zt),v=Object.keys(s).reduce(function(m,b){var _=s[b],S=_.orientation;return!_.mirror&&!_.hide?k(k({},m),{},K({},S,m[S]+_.width)):m},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(m,b){var _=o[b],S=_.orientation;return!_.mirror&&!_.hide?k(k({},m),{},K({},S,He(m,"".concat(S))+_.height)):m},{top:h.top||0,bottom:h.bottom||0}),g=k(k({},d),v),x=g.bottom;p&&(g.bottom+=p.props.height||Dr.defaultProps.height),y&&r&&(g=nM(g,i,n,r));var w=c-g.left-g.right,O=f-g.top-g.bottom;return k(k({brushBottom:x},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},P2=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Qw=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(g,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,b=x.updateId,_=x.dataStartIndex,S=x.dataEndIndex,P=g.barSize,$=g.layout,j=g.barGap,T=g.barCategoryGap,M=g.maxBarSize,I=kb($),C=I.numericAxisName,R=I.cateAxisName,D=S2(w),B=[];return w.forEach(function(F,H){var G=fo(g.data,{graphicalItems:[F],dataStartIndex:_,dataEndIndex:S}),U=F.type.defaultProps!==void 0?k(k({},F.type.defaultProps),F.props):F.props,V=U.dataKey,he=U.maxBarSize,me=U["".concat(C,"Id")],Be=U["".concat(R,"Id")],qt={},Re=s.reduce(function(Lt,Bt){var ho=x["".concat(Bt.axisType,"Map")],zh=U["".concat(Bt.axisType,"Id")];ho&&ho[zh]||Bt.axisType==="zAxis"||ir();var Uh=ho[zh];return k(k({},Lt),{},K(K({},Bt.axisType,Uh),"".concat(Bt.axisType,"Ticks"),vt(Uh)))},qt),z=Re[R],Z=Re["".concat(R,"Ticks")],J=O&&O[me]&&O[me].hasStack&&pM(F,O[me].stackGroups),q=yt(F.type).indexOf("Bar")>=0,ve=ea(z,Z),te=[],xe=D&&tM({barSize:P,stackGroups:O,totalSize:P2(Re,R)});if(q){var we,De,Tt=ee(he)?M:he,lr=(we=(De=ea(z,Z,!0))!==null&&De!==void 0?De:Tt)!==null&&we!==void 0?we:0;te=rM({barGap:j,barCategoryGap:T,bandSize:lr!==ve?lr:ve,sizeList:xe[Be],maxBarSize:Tt}),lr!==ve&&(te=te.map(function(Lt){return k(k({},Lt),{},{position:k(k({},Lt.position),{},{offset:Lt.position.offset-lr/2})})}))}var fi=F&&F.type&&F.type.getComposedData;fi&&B.push({props:k(k({},fi(k(k({},Re),{},{displayedData:G,props:g,dataKey:V,item:F,bandSize:ve,barPosition:te,offset:m,stackedData:J,layout:$,dataStartIndex:_,dataEndIndex:S}))),{},K(K(K({key:F.key||"item-".concat(H)},C,Re[C]),R,Re[R]),"animationId",b)),childIndex:o_(F,g.children),item:F})}),B},p=function(g,x){var w=g.props,O=g.dataStartIndex,m=g.dataEndIndex,b=g.updateId;if(!Jd({props:w}))return null;var _=w.children,S=w.layout,P=w.stackOffset,$=w.data,j=w.reverseStackOrder,T=kb(S),M=T.numericAxisName,I=T.cateAxisName,C=Ze(_,n),R=hM($,C,"".concat(M,"Id"),"".concat(I,"Id"),P,j),D=s.reduce(function(U,V){var he="".concat(V.axisType,"Map");return k(k({},U),{},K({},he,O2(w,k(k({},V),{},{graphicalItems:C,stackGroups:V.axisType===M&&R,dataStartIndex:O,dataEndIndex:m}))))},{}),B=A2(k(k({},D),{},{props:w,graphicalItems:C}),x==null?void 0:x.legendBBox);Object.keys(D).forEach(function(U){D[U]=f(w,D[U],B,U.replace("Map",""),r)});var F=D["".concat(I,"Map")],H=_2(F),G=h(w,k(k({},D),{},{dataStartIndex:O,dataEndIndex:m,updateId:b,graphicalItems:C,stackGroups:R,offset:B}));return k(k({formattedGraphicalItems:G,graphicalItems:C,offset:B,stackGroups:R},H),D)},y=(function(d){function g(x){var w,O,m;return a2(this,g),m=s2(this,g,[x]),K(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),K(m,"accessibilityManager",new HD),K(m,"handleLegendBBoxUpdate",function(b){if(b){var _=m.state,S=_.dataStartIndex,P=_.dataEndIndex,$=_.updateId;m.setState(k({legendBBox:b},p({props:m.props,dataStartIndex:S,dataEndIndex:P,updateId:$},k(k({},m.state),{},{legendBBox:b}))))}}),K(m,"handleReceiveSyncEvent",function(b,_,S){if(m.props.syncId===b){if(S===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),K(m,"handleBrushChange",function(b){var _=b.startIndex,S=b.endIndex;if(_!==m.state.dataStartIndex||S!==m.state.dataEndIndex){var P=m.state.updateId;m.setState(function(){return k({dataStartIndex:_,dataEndIndex:S},p({props:m.props,dataStartIndex:_,dataEndIndex:S,updateId:P},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:S})}}),K(m,"handleMouseEnter",function(b){var _=m.getMouseInfo(b);if(_){var S=k(k({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var P=m.props.onMouseEnter;Y(P)&&P(S,b)}}),K(m,"triggeredAfterMouseMove",function(b){var _=m.getMouseInfo(b),S=_?k(k({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var P=m.props.onMouseMove;Y(P)&&P(S,b)}),K(m,"handleItemMouseEnter",function(b){m.setState(function(){return{isTooltipActive:!0,activeItem:b,activePayload:b.tooltipPayload,activeCoordinate:b.tooltipPosition||{x:b.cx,y:b.cy}}})}),K(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),K(m,"handleMouseMove",function(b){b.persist(),m.throttleTriggeredAfterMouseMove(b)}),K(m,"handleMouseLeave",function(b){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var S=m.props.onMouseLeave;Y(S)&&S(_,b)}),K(m,"handleOuterEvent",function(b){var _=a_(b),S=He(m.props,"".concat(_));if(_&&Y(S)){var P,$;/.*touch.*/i.test(_)?$=m.getMouseInfo(b.changedTouches[0]):$=m.getMouseInfo(b),S((P=$)!==null&&P!==void 0?P:{},b)}}),K(m,"handleClick",function(b){var _=m.getMouseInfo(b);if(_){var S=k(k({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var P=m.props.onClick;Y(P)&&P(S,b)}}),K(m,"handleMouseDown",function(b){var _=m.props.onMouseDown;if(Y(_)){var S=m.getMouseInfo(b);_(S,b)}}),K(m,"handleMouseUp",function(b){var _=m.props.onMouseUp;if(Y(_)){var S=m.getMouseInfo(b);_(S,b)}}),K(m,"handleTouchMove",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(b.changedTouches[0])}),K(m,"handleTouchStart",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseDown(b.changedTouches[0])}),K(m,"handleTouchEnd",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseUp(b.changedTouches[0])}),K(m,"handleDoubleClick",function(b){var _=m.props.onDoubleClick;if(Y(_)){var S=m.getMouseInfo(b);_(S,b)}}),K(m,"handleContextMenu",function(b){var _=m.props.onContextMenu;if(Y(_)){var S=m.getMouseInfo(b);_(S,b)}}),K(m,"triggerSyncEvent",function(b){m.props.syncId!==void 0&&dl.emit(pl,m.props.syncId,b,m.eventEmitterSymbol)}),K(m,"applySyncEvent",function(b){var _=m.props,S=_.layout,P=_.syncMethod,$=m.state.updateId,j=b.dataStartIndex,T=b.dataEndIndex;if(b.dataStartIndex!==void 0||b.dataEndIndex!==void 0)m.setState(k({dataStartIndex:j,dataEndIndex:T},p({props:m.props,dataStartIndex:j,dataEndIndex:T,updateId:$},m.state)));else if(b.activeTooltipIndex!==void 0){var M=b.chartX,I=b.chartY,C=b.activeTooltipIndex,R=m.state,D=R.offset,B=R.tooltipTicks;if(!D)return;if(typeof P=="function")C=P(B,b);else if(P==="value"){C=-1;for(var F=0;F<B.length;F++)if(B[F].value===b.activeLabel){C=F;break}}var H=k(k({},D),{},{x:D.left,y:D.top}),G=Math.min(M,H.x+H.width),U=Math.min(I,H.y+H.height),V=B[C]&&B[C].value,he=Rf(m.state,m.props.data,C),me=B[C]?{x:S==="horizontal"?B[C].coordinate:G,y:S==="horizontal"?U:B[C].coordinate}:Zw;m.setState(k(k({},b),{},{activeLabel:V,activeCoordinate:me,activePayload:he,activeTooltipIndex:C}))}else m.setState(b)}),K(m,"renderCursor",function(b){var _,S=m.state,P=S.isTooltipActive,$=S.activeCoordinate,j=S.activePayload,T=S.offset,M=S.activeTooltipIndex,I=S.tooltipAxisBandSize,C=m.getTooltipEventType(),R=(_=b.props.active)!==null&&_!==void 0?_:P,D=m.props.layout,B=b.key||"_recharts-cursor";return A.createElement(JD,{key:B,activeCoordinate:$,activePayload:j,activeTooltipIndex:M,chartName:r,element:b,isActive:R,layout:D,offset:T,tooltipAxisBandSize:I,tooltipEventType:C})}),K(m,"renderPolarAxis",function(b,_,S){var P=He(b,"type.axisType"),$=He(m.state,"".concat(P,"Map")),j=b.type.defaultProps,T=j!==void 0?k(k({},j),b.props):b.props,M=$&&$[T["".concat(P,"Id")]];return N.cloneElement(b,k(k({},M),{},{className:Q(P,M.className),key:b.key||"".concat(_,"-").concat(S),ticks:vt(M,!0)}))}),K(m,"renderPolarGrid",function(b){var _=b.props,S=_.radialLines,P=_.polarAngles,$=_.polarRadius,j=m.state,T=j.radiusAxisMap,M=j.angleAxisMap,I=Mt(T),C=Mt(M),R=C.cx,D=C.cy,B=C.innerRadius,F=C.outerRadius;return N.cloneElement(b,{polarAngles:Array.isArray(P)?P:vt(C,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray($)?$:vt(I,!0).map(function(H){return H.coordinate}),cx:R,cy:D,innerRadius:B,outerRadius:F,key:b.key||"polar-grid",radialLines:S})}),K(m,"renderLegend",function(){var b=m.state.formattedGraphicalItems,_=m.props,S=_.children,P=_.width,$=_.height,j=m.props.margin||{},T=P-(j.left||0)-(j.right||0),M=Rx({children:S,formattedGraphicalItems:b,legendWidth:T,legendContent:c});if(!M)return null;var I=M.item,C=Mb(M,QD);return N.cloneElement(I,k(k({},C),{},{chartWidth:P,chartHeight:$,margin:j,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),K(m,"renderTooltip",function(){var b,_=m.props,S=_.children,P=_.accessibilityLayer,$=ze(S,Ue);if(!$)return null;var j=m.state,T=j.isTooltipActive,M=j.activeCoordinate,I=j.activePayload,C=j.activeLabel,R=j.offset,D=(b=$.props.active)!==null&&b!==void 0?b:T;return N.cloneElement($,{viewBox:k(k({},R),{},{x:R.left,y:R.top}),active:D,label:C,payload:D?I:[],coordinate:M,accessibilityLayer:P})}),K(m,"renderBrush",function(b){var _=m.props,S=_.margin,P=_.data,$=m.state,j=$.offset,T=$.dataStartIndex,M=$.dataEndIndex,I=$.updateId;return N.cloneElement(b,{key:b.key||"_recharts-brush",onChange:xi(m.handleBrushChange,b.props.onChange),data:P,x:L(b.props.x)?b.props.x:j.left,y:L(b.props.y)?b.props.y:j.top+j.height+j.brushBottom-(S.bottom||0),width:L(b.props.width)?b.props.width:j.width,startIndex:T,endIndex:M,updateId:"brush-".concat(I)})}),K(m,"renderReferenceElement",function(b,_,S){if(!b)return null;var P=m,$=P.clipPathId,j=m.state,T=j.xAxisMap,M=j.yAxisMap,I=j.offset,C=b.type.defaultProps||{},R=b.props,D=R.xAxisId,B=D===void 0?C.xAxisId:D,F=R.yAxisId,H=F===void 0?C.yAxisId:F;return N.cloneElement(b,{key:b.key||"".concat(_,"-").concat(S),xAxis:T[B],yAxis:M[H],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:$})}),K(m,"renderActivePoints",function(b){var _=b.item,S=b.activePoint,P=b.basePoint,$=b.childIndex,j=b.isRange,T=[],M=_.props.key,I=_.item.type.defaultProps!==void 0?k(k({},_.item.type.defaultProps),_.item.props):_.item.props,C=I.activeDot,R=I.dataKey,D=k(k({index:$,dataKey:R,cx:S.x,cy:S.y,r:4,fill:Mh(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},X(C,!1)),Ei(C));return T.push(g.renderActiveDot(C,D,"".concat(M,"-activePoint-").concat($))),P?T.push(g.renderActiveDot(C,k(k({},D),{},{cx:P.x,cy:P.y}),"".concat(M,"-basePoint-").concat($))):j&&T.push(null),T}),K(m,"renderGraphicChild",function(b,_,S){var P=m.filterFormatItem(b,_,S);if(!P)return null;var $=m.getTooltipEventType(),j=m.state,T=j.isTooltipActive,M=j.tooltipAxis,I=j.activeTooltipIndex,C=j.activeLabel,R=m.props.children,D=ze(R,Ue),B=P.props,F=B.points,H=B.isRange,G=B.baseLine,U=P.item.type.defaultProps!==void 0?k(k({},P.item.type.defaultProps),P.item.props):P.item.props,V=U.activeDot,he=U.hide,me=U.activeBar,Be=U.activeShape,qt=!!(!he&&T&&D&&(V||me||Be)),Re={};$!=="axis"&&D&&D.props.trigger==="click"?Re={onClick:xi(m.handleItemMouseEnter,b.props.onClick)}:$!=="axis"&&(Re={onMouseLeave:xi(m.handleItemMouseLeave,b.props.onMouseLeave),onMouseEnter:xi(m.handleItemMouseEnter,b.props.onMouseEnter)});var z=N.cloneElement(b,k(k({},P.props),Re));function Z(Bt){return typeof M.dataKey=="function"?M.dataKey(Bt.payload):null}if(qt)if(I>=0){var J,q;if(M.dataKey&&!M.allowDuplicatedCategory){var ve=typeof M.dataKey=="function"?Z:"payload.".concat(M.dataKey.toString());J=yl(F,ve,C),q=H&&G&&yl(G,ve,C)}else J=F==null?void 0:F[I],q=H&&G&&G[I];if(Be||me){var te=b.props.activeIndex!==void 0?b.props.activeIndex:I;return[N.cloneElement(b,k(k(k({},P.props),Re),{},{activeIndex:te})),null,null]}if(!ee(J))return[z].concat(Vr(m.renderActivePoints({item:P,activePoint:J,basePoint:q,childIndex:I,isRange:H})))}else{var xe,we=(xe=m.getItemByXY(m.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:z},De=we.graphicalItem,Tt=De.item,lr=Tt===void 0?b:Tt,fi=De.childIndex,Lt=k(k(k({},P.props),Re),{},{activeIndex:fi});return[N.cloneElement(lr,Lt),null,null]}return H?[z,null,null]:[z,null]}),K(m,"renderCustomized",function(b,_,S){return N.cloneElement(b,k(k({key:"recharts-customized-".concat(S)},m.props),m.state))}),K(m,"renderMap",{CartesianGrid:{handler:Ai,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:Ai},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:Ai},YAxis:{handler:Ai},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:ai("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=R0(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return f2(g,d),u2(g,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,b=w.height,_=w.layout,S=ze(O,Ue);if(S){var P=S.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var $=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,j=Rf(this.state,m,P,$),T=this.state.tooltipTicks[P].coordinate,M=(this.state.offset.top+b)/2,I=_==="horizontal",C=I?{x:T,y:M}:{y:T,x:M},R=this.state.formattedGraphicalItems.find(function(B){var F=B.item;return F.type.name==="Scatter"});R&&(C=k(k({},C),R.props.points[P].tooltipPosition),j=R.props.points[P].tooltipPayload);var D={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:$,activePayload:j,activeCoordinate:C};this.setState(D),this.renderCursor(S),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,b;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0}})}return null}},{key:"componentDidUpdate",value:function(w){gl([ze(w.children,Ue)],[ze(this.props.children,Ue)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=ze(this.props.children,Ue);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),b=KA(m),_={chartX:Math.round(w.pageX-b.left),chartY:Math.round(w.pageY-b.top)},S=m.width/O.offsetWidth||1,P=this.inRange(_.chartX,_.chartY,S);if(!P)return null;var $=this.state,j=$.xAxisMap,T=$.yAxisMap,M=this.getTooltipEventType(),I=Cb(this.state,this.props.data,this.props.layout,P);if(M!=="axis"&&j&&T){var C=Mt(j).scale,R=Mt(T).scale,D=C&&C.invert?C.invert(_.chartX):null,B=R&&R.invert?R.invert(_.chartY):null;return k(k({},_),{},{xValue:D,yValue:B},I)}return I?k(k({},_),I):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,b=this.props.layout,_=w/m,S=O/m;if(b==="horizontal"||b==="vertical"){var P=this.state.offset,$=_>=P.left&&_<=P.left+P.width&&S>=P.top&&S<=P.top+P.height;return $?{x:_,y:S}:null}var j=this.state,T=j.angleAxisMap,M=j.radiusAxisMap;if(T&&M){var I=Mt(T);return Bm({x:_,y:S},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=ze(w,Ue),b={};m&&O==="axis"&&(m.props.trigger==="click"?b={onClick:this.handleClick}:b={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var _=Ei(this.props,this.handleOuterEvent);return k(k({},_),b)}},{key:"addListener",value:function(){dl.on(pl,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){dl.removeListener(pl,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var b=this.state.formattedGraphicalItems,_=0,S=b.length;_<S;_++){var P=b[_];if(P.item===w||P.props.key===w.key||O===yt(P.item.type)&&m===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,b=O.top,_=O.height,S=O.width;return A.createElement("defs",null,A.createElement("clipPath",{id:w},A.createElement("rect",{x:m,y:b,height:_,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=Eb(m,2),_=b[0],S=b[1];return k(k({},O),{},K({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=Eb(m,2),_=b[0],S=b[1];return k(k({},O),{},K({},_,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,m=O.formattedGraphicalItems,b=O.activeItem;if(m&&m.length)for(var _=0,S=m.length;_<S;_++){var P=m[_],$=P.props,j=P.item,T=j.type.defaultProps!==void 0?k(k({},j.type.defaultProps),j.props):j.props,M=yt(j.type);if(M==="Bar"){var I=($.data||[]).find(function(B){return dI(w,B)});if(I)return{graphicalItem:P,payload:I}}else if(M==="RadialBar"){var C=($.data||[]).find(function(B){return Bm(w,B)});if(C)return{graphicalItem:P,payload:C}}else if(io(P,b)||ao(P,b)||Yn(P,b)){var R=Rk({graphicalItem:P,activeTooltipItem:b,itemData:T.data}),D=T.activeIndex===void 0?R:T.activeIndex;return{graphicalItem:k(k({},P),{},{childIndex:D}),payload:Yn(P,b)?T.data[R]:P.props.data[R]}}}return null}},{key:"render",value:function(){var w=this;if(!Jd(this))return null;var O=this.props,m=O.children,b=O.className,_=O.width,S=O.height,P=O.style,$=O.compact,j=O.title,T=O.desc,M=Mb(O,e2),I=X(M,!1);if($)return A.createElement(db,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement(xl,br({},I,{width:_,height:S,title:j,desc:T}),this.renderClipPath(),ep(m,this.renderMap)));if(this.props.accessibilityLayer){var C,R;I.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,I.role=(R=this.props.role)!==null&&R!==void 0?R:"application",I.onKeyDown=function(B){w.accessibilityManager.keyboardEvent(B)},I.onFocus=function(){w.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return A.createElement(db,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement("div",br({className:Q("recharts-wrapper",b),style:k({position:"relative",cursor:"default",width:_,height:S},P)},D,{ref:function(F){w.container=F}}),A.createElement(xl,br({},I,{width:_,height:S,title:j,desc:T,style:m2}),this.renderClipPath(),ep(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.Component);K(y,"displayName",r),K(y,"defaultProps",k({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),K(y,"getDerivedStateFromProps",function(d,g){var x=d.dataKey,w=d.data,O=d.children,m=d.width,b=d.height,_=d.layout,S=d.stackOffset,P=d.margin,$=g.dataStartIndex,j=g.dataEndIndex;if(g.updateId===void 0){var T=Ib(d);return k(k(k({},T),{},{updateId:0},p(k(k({props:d},T),{},{updateId:0}),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:S,prevMargin:P,prevChildren:O})}if(x!==g.prevDataKey||w!==g.prevData||m!==g.prevWidth||b!==g.prevHeight||_!==g.prevLayout||S!==g.prevStackOffset||!xr(P,g.prevMargin)){var M=Ib(d),I={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},C=k(k({},Cb(g,w,_)),{},{updateId:g.updateId+1}),R=k(k(k({},M),I),C);return k(k(k({},R),p(k({props:d},R),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:S,prevMargin:P,prevChildren:O})}if(!gl(O,g.prevChildren)){var D,B,F,H,G=ze(O,Dr),U=G&&(D=(B=G.props)===null||B===void 0?void 0:B.startIndex)!==null&&D!==void 0?D:$,V=G&&(F=(H=G.props)===null||H===void 0?void 0:H.endIndex)!==null&&F!==void 0?F:j,he=U!==$||V!==j,me=!ee(w),Be=me&&!he?g.updateId:g.updateId+1;return k(k({updateId:Be},p(k(k({props:d},g),{},{updateId:Be,dataStartIndex:U,dataEndIndex:V}),g)),{},{prevChildren:O,dataStartIndex:U,dataEndIndex:V})}return null}),K(y,"renderActiveDot",function(d,g,x){var w;return N.isValidElement(d)?w=N.cloneElement(d,g):Y(d)?w=d(g):w=A.createElement(Ch,g),A.createElement(ae,{className:"recharts-active-dot",key:x},w)});var v=N.forwardRef(function(g,x){return A.createElement(y,br({},g,{ref:x}))});return v.displayName=y.displayName,v},Df=Qw({chartName:"BarChart",GraphicalChild:Ot,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Wr},{axisType:"yAxis",AxisComp:Kr}],formatAxisMap:LN}),T2=Qw({chartName:"PieChart",GraphicalChild:Pt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:no},{axisType:"radiusAxis",AxisComp:to}],formatAxisMap:SM,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const j2={Slash:"#cc4444",Pierce:"#44cc44",Bludgeon:"#888888",Fire:"#ff6622",Cold:"#4488ff",Acid:"#44cc44",Electric:"#ffcc00",Typeless:"#aa66cc"},E2=({characters:e})=>{const t=N.useMemo(()=>Array.from(e.values()).filter(i=>i.telemetry).map(i=>({name:i.name.length>18?i.name.slice(0,16)+"..":i.name,fullName:i.name,killsPerHour:parseInt(i.telemetry.kills_per_hour)||0,totalKills:i.telemetry.kills||0})).sort((i,a)=>a.killsPerHour-i.killsPerHour).slice(0,30),[e]),r=N.useMemo(()=>Array.from(e.values()).filter(i=>{var a;return(a=i.combat)==null?void 0:a.session}).map(i=>({name:i.name.length>18?i.name.slice(0,16)+"..":i.name,fullName:i.name,damage:i.combat.session.total_damage_given})).sort((i,a)=>a.damage-i.damage).slice(0,30),[e]),n=N.useMemo(()=>{var a;const i={};for(const o of e.values()){const u=(a=o.combat)==null?void 0:a.session;if(u!=null&&u.monsters){for(const s of Object.values(u.monsters))if(s.offense)for(const c of Object.values(s.offense))for(const[f,l]of Object.entries(c))f==="None"||f==="Unknown"||(i[f]=(i[f]||0)+(l.damage||0))}}return Object.entries(i).map(([o,u])=>({name:o,value:u})).filter(o=>o.value>0).sort((o,u)=>u.value-o.value)},[e]);return E.jsxs("div",{className:"combat-tab",children:[E.jsxs("div",{className:"chart-section",children:[E.jsx("h3",{className:"chart-title",children:"Kills per Hour"}),E.jsx(Ti,{width:"100%",height:Math.max(200,t.length*28),children:E.jsxs(Df,{data:t,layout:"vertical",margin:{left:10,right:20,top:5,bottom:5},children:[E.jsx(_a,{strokeDasharray:"3 3",stroke:"#333"}),E.jsx(Wr,{type:"number",stroke:"#888",fontSize:11}),E.jsx(Kr,{type:"category",dataKey:"name",width:130,stroke:"#888",fontSize:11}),E.jsx(Ue,{contentStyle:{background:"#1a1a1a",border:"1px solid #444",fontSize:12},formatter:i=>[i.toLocaleString(),"Kills/hr"],labelFormatter:(i,a)=>{var o,u;return((u=(o=a==null?void 0:a[0])==null?void 0:o.payload)==null?void 0:u.fullName)||i}}),E.jsx(Ot,{dataKey:"killsPerHour",fill:"#44cc44",radius:[0,3,3,0]})]})})]}),r.length>0&&E.jsxs("div",{className:"chart-section",children:[E.jsx("h3",{className:"chart-title",children:"Total Damage (Session)"}),E.jsx(Ti,{width:"100%",height:Math.max(200,r.length*28),children:E.jsxs(Df,{data:r,layout:"vertical",margin:{left:10,right:20,top:5,bottom:5},children:[E.jsx(_a,{strokeDasharray:"3 3",stroke:"#333"}),E.jsx(Wr,{type:"number",stroke:"#888",fontSize:11}),E.jsx(Kr,{type:"category",dataKey:"name",width:130,stroke:"#888",fontSize:11}),E.jsx(Ue,{contentStyle:{background:"#1a1a1a",border:"1px solid #444",fontSize:12},formatter:i=>[i.toLocaleString(),"Damage"],labelFormatter:(i,a)=>{var o,u;return((u=(o=a==null?void 0:a[0])==null?void 0:o.payload)==null?void 0:u.fullName)||i}}),E.jsx(Ot,{dataKey:"damage",fill:"#ff6644",radius:[0,3,3,0]})]})})]}),n.length>0&&E.jsxs("div",{className:"chart-section",children:[E.jsx("h3",{className:"chart-title",children:"Damage by Element (All Characters)"}),E.jsx(Ti,{width:"100%",height:300,children:E.jsxs(T2,{children:[E.jsx(Pt,{data:n,dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:100,label:({name:i,percent:a})=>`${i} ${(a*100).toFixed(0)}%`,labelLine:!0,fontSize:12,children:n.map(i=>E.jsx(Ba,{fill:j2[i.name]||"#888"},i.name))}),E.jsx(Ue,{contentStyle:{background:"#1a1a1a",border:"1px solid #444",fontSize:12},formatter:i=>i.toLocaleString()}),E.jsx(Zt,{wrapperStyle:{fontSize:12,color:"#aaa"}})]})})]})]})},M2=({characters:e,totalRares:t,totalKills:r,recentRares:n})=>{const i=N.useMemo(()=>Array.from(e.values()).filter(o=>o.telemetry&&(o.telemetry.total_rares??0)>0).map(o=>({name:o.name.length>18?o.name.slice(0,16)+"..":o.name,fullName:o.name,rares:o.telemetry.total_rares??0})).sort((o,u)=>u.rares-o.rares),[e]),a=t>0?Math.round(r/t):0;return E.jsxs("div",{className:"rares-tab",children:[E.jsxs("div",{className:"rares-summary",children:[E.jsxs("div",{className:"rare-stat-card",children:[E.jsx("span",{className:"rare-stat-value",children:t}),E.jsx("span",{className:"rare-stat-label",children:"Total Rares Found"})]}),E.jsxs("div",{className:"rare-stat-card",children:[E.jsx("span",{className:"rare-stat-value",children:r.toLocaleString()}),E.jsx("span",{className:"rare-stat-label",children:"Total Kills"})]}),E.jsxs("div",{className:"rare-stat-card",children:[E.jsx("span",{className:"rare-stat-value",children:a>0?`1 in ${a.toLocaleString()}`:"--"}),E.jsx("span",{className:"rare-stat-label",children:"Drop Rate"})]})]}),n.length>0&&E.jsxs("div",{className:"chart-section",children:[E.jsx("h3",{className:"chart-title",children:"Recent Rare Drops (This Session)"}),E.jsx("div",{className:"rare-timeline",children:n.map((o,u)=>E.jsxs("div",{className:"rare-event",children:[E.jsx("span",{className:"rare-time",children:new Date(o.timestamp).toLocaleTimeString()}),E.jsx("span",{className:"rare-char",children:o.character_name}),E.jsx("span",{className:"rare-name",children:o.name})]},u))})]}),i.length>0&&E.jsxs("div",{className:"chart-section",children:[E.jsx("h3",{className:"chart-title",children:"Rares per Character (Lifetime)"}),E.jsx(Ti,{width:"100%",height:Math.max(200,i.length*28),children:E.jsxs(Df,{data:i,layout:"vertical",margin:{left:10,right:20,top:5,bottom:5},children:[E.jsx(_a,{strokeDasharray:"3 3",stroke:"#333"}),E.jsx(Wr,{type:"number",stroke:"#888",fontSize:11}),E.jsx(Kr,{type:"category",dataKey:"name",width:130,stroke:"#888",fontSize:11}),E.jsx(Ue,{contentStyle:{background:"#1a1a1a",border:"1px solid #444",fontSize:12},formatter:o=>[o,"Rares"],labelFormatter:(o,u)=>{var s,c;return((c=(s=u==null?void 0:u[0])==null?void 0:s.payload)==null?void 0:c.fullName)||o}}),E.jsx(Ot,{dataKey:"rares",fill:"#ffcc00",radius:[0,3,3,0]})]})})]})]})},pr={west:-102.1,east:102.1,north:102.1,south:-102.1},Ta=800;function $2(e,t){const r=(e-pr.west)/(pr.east-pr.west)*Ta,n=(pr.north-t)/(pr.north-pr.south)*Ta;return{x:r,y:n}}const C2=({characters:e})=>{const t=N.useRef(null),[r,n]=N.useState(null),i=N.useMemo(()=>Array.from(e.values()).filter(o=>o.telemetry&&o.telemetry.ew!==void 0).map(o=>{const u=o.telemetry,{x:s,y:c}=$2(u.ew,u.ns),f=(u.vt_state||"").toLowerCase()==="combat"||(u.vt_state||"").toLowerCase()==="hunt";return{name:o.name,x:s,y:c,isHunting:f,ns:u.ns,ew:u.ew}}),[e]),a=N.useCallback(o=>n(o),[]);return E.jsxs("div",{className:"map-tab",children:[E.jsxs("div",{className:"map-container",ref:t,children:[E.jsx("img",{src:"/dereth_highres.png",alt:"Dereth Map",className:"map-image",draggable:!1}),E.jsx("svg",{className:"map-overlay",viewBox:`0 0 ${Ta} ${Ta}`,children:i.map(o=>{var u,s;return E.jsxs("g",{children:[E.jsx("circle",{cx:o.x,cy:o.y,r:r===o.name?6:4,fill:o.isHunting?"#44cc44":"#ffaa00",stroke:"#000",strokeWidth:1,opacity:.9,onMouseEnter:()=>a(o.name),onMouseLeave:()=>a(null),style:{cursor:"pointer"}}),r===o.name&&E.jsxs("text",{x:o.x+8,y:o.y+4,fill:"#fff",fontSize:11,stroke:"#000",strokeWidth:.3,paintOrder:"stroke",children:[o.name," (",(u=o.ns)==null?void 0:u.toFixed(1),"N, ",(s=o.ew)==null?void 0:s.toFixed(1),"E)"]})]},o.name)})})]}),E.jsxs("div",{className:"map-legend",children:[E.jsxs("span",{children:[E.jsx("span",{className:"legend-dot hunting"})," Hunting/Combat"]}),E.jsxs("span",{children:[E.jsx("span",{className:"legend-dot other"})," Other state"]}),E.jsxs("span",{className:"map-count",children:[i.length," characters on map"]})]})]})},I2=()=>{const[e,t]=N.useState(""),[r,n]=N.useState([]),[i,a]=N.useState(0),[o,u]=N.useState(!1),s=N.useRef(0),c=N.useCallback(async l=>{if(l.length<2){n([]),a(0);return}u(!0);try{const h=await eO(`/search/items?q=${encodeURIComponent(l)}&limit=100`);n(h.results??[]),a(h.total??0)}catch{n([])}u(!1)},[]),f=N.useCallback(l=>{const h=l.target.value;t(h),clearTimeout(s.current),s.current=window.setTimeout(()=>c(h),400)},[c]);return E.jsxs("div",{className:"inventory-tab",children:[E.jsxs("div",{className:"search-bar",children:[E.jsx("input",{type:"text",value:e,onChange:f,placeholder:"Search items across all characters...",className:"search-input"}),o&&E.jsx("span",{className:"search-spinner",children:"Searching..."})]}),i>0&&E.jsxs("div",{className:"search-count",children:[i.toLocaleString()," results"]}),E.jsxs("div",{className:"search-results",children:[r.length===0&&e.length>=2&&!o&&E.jsx("div",{className:"search-empty",children:"No items found"}),E.jsxs("table",{className:"results-table",children:[E.jsx("thead",{children:E.jsxs("tr",{children:[E.jsx("th",{children:"Character"}),E.jsx("th",{children:"Item"}),E.jsx("th",{children:"Type"}),E.jsx("th",{children:"Material"}),E.jsx("th",{children:"Set"}),E.jsx("th",{children:"Work"})]})}),E.jsx("tbody",{children:r.map((l,h)=>E.jsxs("tr",{children:[E.jsx("td",{children:l.character_name}),E.jsx("td",{className:"item-name",children:l.item_name}),E.jsx("td",{children:l.type||""}),E.jsx("td",{children:l.material||""}),E.jsx("td",{children:l.set_name||""}),E.jsx("td",{children:l.workmanship||""})]},h))})]})]})]})};function R2({data:e,onViewToggle:t}){const r=[{id:"combat",label:"Combat",content:E.jsx(E2,{characters:e.characters})},{id:"rares",label:"Rares",content:E.jsx(M2,{characters:e.characters,totalRares:e.totalRares,totalKills:e.totalKills,recentRares:e.recentRares})},{id:"map",label:"Map",content:E.jsx(C2,{characters:e.characters})},{id:"inventory",label:"Inventory",content:E.jsx(I2,{})}];return E.jsxs(tO,{children:[E.jsx("div",{style:{display:"flex",justifyContent:"flex-start",marginBottom:8},children:E.jsx("button",{onClick:t,className:"tab-btn",children:"Map View"})}),E.jsx(rO,{activeChars:e.characters.size,totalKills:e.totalKills,totalRares:e.totalRares,serverHealth:e.serverHealth}),E.jsx(iO,{characters:e.characters}),E.jsx(aO,{tabs:r})]})}export{R2 as default};
|