1import{aK as Kn,aL as pt,aM as aa,aN as ce,r as L,aO as te,R as A,j as k,N as Xt,O as Vt,Q as Kt,W as Gt,u as ph,U as mh,J as Lv,d as Bv,f as Wv,P as vh,m as Fv,T as mc,aP as qv,aQ as Uv}from"./index-Cn79BWhT.js";import{u as vr,S as Gn,P as zv}from"./PanelDataSkeleton-DXR0gsp_.js";import{P as Hv}from"./package-DrkDwoRD.js";import{T as Xv}from"./trending-up-DujwhuN9.js";function Vv(){const{user:e}=Kn();return vr({queryKey:["dashboard-prospects-by-sector"],queryFn:async()=>{const{data:t}=await pt.from("prospects").select("sector"),r={};return(t??[]).forEach(n=>{r[n.sector]=(r[n.sector]||0)+1}),r},enabled:!!e})}function Kv(){const{user:e}=Kn();return vr({queryKey:["dashboard-recent-activity"],queryFn:async()=>{const[t,r]=await Promise.all([pt.from("prospects").select("id, company_name, status, updated_at").order("updated_at",{ascending:!1}).limit(5),pt.from("proposals").select("id, name, client_name, status, total_price, updated_at").order("updated_at",{ascending:!1}).limit(5)]);return[...(t.data??[]).map(a=>({id:a.id,type:"prospect",title:a.company_name,detail:a.status,date:a.updated_at})),...(r.data??[]).map(a=>({id:a.id,type:"proposal",title:a.name,detail:`${a.client_name||"Sin cliente"} â $${Number(a.total_price).toLocaleString("es-MX")}`,date:a.updated_at}))].sort((a,i)=>new Date(i.date).getTime()-new Date(a.date).getTime()).slice(0,8)},enabled:!!e})}function Gv(){const{user:e}=Kn();return vr({queryKey:["dashboard-vendor-metrics"],queryFn:async()=>{const[t,r,n]=await Promise.all([pt.from("prospects").select("assigned_to, status"),pt.from("proposals").select("user_id, total_price, status"),pt.from("profiles").select("user_id, full_name")]),a=new Map((n.data??[]).map(o=>[o.user_id,o.full_name])),i=new Set;return(t.data??[]).forEach(o=>{o.assigned_to&&i.add(o.assigned_to)}),(r.data??[]).forEach(o=>{o.user_id&&i.add(o.user_id)}),Array.from(i).map(o=>{const u=(t.data??[]).filter(f=>f.assigned_to===o),s=(r.data??[]).filter(f=>f.user_id===o),c=s.filter(f=>f.status==="cerrada");return{userId:o,name:a.get(o)||"Sin nombre",prospects:u.length,proposals:s.length,closedDeals:c.length,revenue:c.reduce((f,l)=>f+Number(l.total_price),0)}}).sort((o,u)=>u.revenue-o.revenue)},enabled:!!e})}function yh(){var o,u,s,c;const{user:e}=Kn(),t=vr({queryKey:["dashboard-prospects-count"],queryFn:async()=>{const{count:f}=await pt.from("prospects").select("*",{count:"exact",head:!0});return f??0},enabled:!!e}),r=vr({queryKey:["dashboard-proposals-all"],queryFn:async()=>{const{data:f}=await pt.from("proposals").select("total_price, status");return f??[]},enabled:!!e}),n=((o=r.data)==null?void 0:o.filter(f=>f.status==="cerrada"))??[],a=n.reduce((f,l)=>f+Number(l.total_price),0),i=((s=(u=r.data)==null?void 0:u.filter(f=>f.status!=="cerrada"&&f.status!=="cancelada"))==null?void 0:s.length)??0;return{loading:t.isLoading||r.isLoading,prospects:t.data??0,activePackages:i,closedDeals:n.length,totalRevenue:a,totalProposals:((c=r.data)==null?void 0:c.length)??0}}var Yv=Array.isArray,Le=Yv,Jv=typeof aa=="object"&&aa&&aa.Object===Object&&aa,gh=Jv,Zv=gh,Qv=typeof self=="object"&&self&&self.Object===Object&&self,ey=Zv||Qv||Function("return this")(),ct=ey,ty=ct,ry=ty.Symbol,Yn=ry,vc=Yn,bh=Object.prototype,ny=bh.hasOwnProperty,ay=bh.toString,Zr=vc?vc.toStringTag:void 0;function iy(e){var t=ny.call(e,Zr),r=e[Zr];try{e[Zr]=void 0;var n=!0}catch{}var a=ay.call(e);return n&&(t?e[Zr]=r:delete e[Zr]),a}var oy=iy,uy=Object.prototype,sy=uy.toString;function cy(e){return sy.call(e)}var ly=cy,yc=Yn,fy=oy,dy=ly,hy="[object Null]",py="[object Undefined]",gc=yc?yc.toStringTag:void 0;function my(e){return e==null?e===void 0?py:hy:gc&&gc in Object(e)?fy(e):dy(e)}var xt=my;function vy(e){return e!=null&&typeof e=="object"}var Ot=vy,yy=xt,gy=Ot,by="[object Symbol]";function wy(e){return typeof e=="symbol"||gy(e)&&yy(e)==by}var Br=wy,xy=Le,Oy=Br,Py=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sy=/^\w*$/;function Ay(e,t){if(xy(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Oy(e)?!0:Sy.test(e)||!Py.test(e)||t!=null&&e in Object(t)}var is=Ay;function _y(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Mt=_y;const Wr=ce(Mt);var $y=xt,Ty=Mt,My="[object AsyncFunction]",jy="[object Function]",Ey="[object GeneratorFunction]",Cy="[object Proxy]";function Iy(e){if(!Ty(e))return!1;var t=$y(e);return t==jy||t==Ey||t==My||t==Cy}var os=Iy;const Z=ce(os);var Ny=ct,Dy=Ny["__core-js_shared__"],ky=Dy,so=ky,bc=function(){var e=/[^.]+$/.exec(so&&so.keys&&so.keys.IE_PROTO||"");
vendor: 3,889 bytes, line 1
1return e?"Symbol(src)_1."+e:""}();function Ry(e){return!!bc&&bc in e}var Ly=Ry,By=Function.prototype,Wy=By.toString;function Fy(e){if(e!=null){try{return Wy.call(e)}catch{}try{return e+""}catch{}}return""}var wh=Fy,qy=os,Uy=Ly,zy=Mt,Hy=wh,Xy=/[\\^$.*+?()[\]{}|]/g,Vy=/^\[object .+?Constructor\]$/,Ky=Function.prototype,Gy=Object.prototype,Yy=Ky.toString,Jy=Gy.hasOwnProperty,Zy=RegExp("^"+Yy.call(Jy).replace(Xy,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qy(e){if(!zy(e)||Uy(e))return!1;var t=qy(e)?Zy:Vy;return t.test(Hy(e))}var eg=Qy;function tg(e,t){return e==null?void 0:e[t]}var rg=tg,ng=eg,ag=rg;function ig(e,t){var r=ag(e,t);return ng(r)?r:void 0}var rr=ig,og=rr,ug=og(Object,"create"),mi=ug,wc=mi;function sg(){this.__data__=wc?wc(null):{},this.size=0}var cg=sg;function lg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fg=lg,dg=mi,hg="__lodash_hash_undefined__",pg=Object.prototype,mg=pg.hasOwnProperty;function vg(e){var t=this.__data__;if(dg){var r=t[e];return r===hg?void 0:r}return mg.call(t,e)?t[e]:void 0}var yg=vg,gg=mi,bg=Object.prototype,wg=bg.hasOwnProperty;function xg(e){var t=this.__data__;return gg?t[e]!==void 0:wg.call(t,e)}var Og=xg,Pg=mi,Sg="__lodash_hash_undefined__";function Ag(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pg&&t===void 0?Sg:t,this}var _g=Ag,$g=cg,Tg=fg,Mg=yg,jg=Og,Eg=_g;function Fr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Fr.prototype.clear=$g;Fr.prototype.delete=Tg;Fr.prototype.get=Mg;Fr.prototype.has=jg;Fr.prototype.set=Eg;var Cg=Fr;function Ig(){this.__data__=[],this.size=0}var Ng=Ig;function Dg(e,t){return e===t||e!==e&&t!==t}var us=Dg,kg=us;function Rg(e,t){for(var r=e.length;r--;)if(kg(e[r][0],t))return r;return-1}var vi=Rg,Lg=vi,Bg=Array.prototype,Wg=Bg.splice;function Fg(e){var t=this.__data__,r=Lg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Wg.call(t,r,1),--this.size,!0}var qg=Fg,Ug=vi;function zg(e){var t=this.__data__,r=Ug(t,e);return r<0?void 0:t[r][1]}var Hg=zg,Xg=vi;function Vg(e){return Xg(this.__data__,e)>-1}var Kg=Vg,Gg=vi;function Yg(e,t){var r=this.__data__,n=Gg(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Jg=Yg,Zg=Ng,Qg=qg,eb=Hg,tb=Kg,rb=Jg;function qr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}qr.prototype.clear=Zg;qr.prototype.delete=Qg;qr.prototype.get=eb;qr.prototype.has=tb;qr.prototype.set=rb;var yi=qr,nb=rr,ab=ct,ib=nb(ab,"Map"),ss=ib,xc=Cg,ob=yi,ub=ss;function sb(){this.size=0,this.__data__={hash:new xc,map:new(ub||ob),string:new xc}}var cb=sb;function lb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var fb=lb,db=fb;function hb(e,t){var r=e.__data__;return db(t)?r[typeof t=="string"?"string":"hash"]:r.map}var gi=hb,pb=gi;function mb(e){var t=pb(this,e).delete(e);return this.size-=t?1:0,t}var vb=mb,yb=gi;function gb(e){return yb(this,e).get(e)}var bb=gb,wb=gi;function xb(e){return wb(this,e).has(e)}var Ob=xb,Pb=gi;function Sb(e,t){var r=Pb(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Ab=Sb,_b=cb,$b=vb,Tb=bb,Mb=Ob,jb=Ab;function Ur(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ur.prototype.clear=_b;Ur.prototype.delete=$b;Ur.prototype.get=Tb;Ur.prototype.has=Mb;Ur.prototype.set=jb;var cs=Ur,xh=cs,Eb="Expected a function";function ls(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Eb);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(ls.Cache||xh),r}ls.Cache=xh;var Oh=ls;const Cb=ce(Oh);var Ib=Oh,Nb=500;function Db(e){var t=Ib(e,function(n){return r.size===Nb&&r.clear(),n}
vendor: 6,442 bytes, lines 1-9
1),r=t.cache;return t}var kb=Db,Rb=kb,Lb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bb=/\\(\\)?/g,Wb=Rb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Lb,function(r,n,a,i){t.push(a?i.replace(Bb,"$1"):n||r)}),t}),Fb=Wb;function qb(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var fs=qb,Oc=Yn,Ub=fs,zb=Le,Hb=Br,Xb=1/0,Pc=Oc?Oc.prototype:void 0,Sc=Pc?Pc.toString:void 0;function Ph(e){if(typeof e=="string")return e;if(zb(e))return Ub(e,Ph)+"";if(Hb(e))return Sc?Sc.call(e):"";var t=e+"";return t=="0"&&1/e==-Xb?"-0":t}var Vb=Ph,Kb=Vb;function Gb(e){return e==null?"":Kb(e)}var Sh=Gb,Yb=Le,Jb=is,Zb=Fb,Qb=Sh;function e0(e,t){return Yb(e)?e:Jb(e,t)?[e]:Zb(Qb(e))}var Ah=e0,t0=Br,r0=1/0;function n0(e){if(typeof e=="string"||t0(e))return e;var t=e+"";return t=="0"&&1/e==-r0?"-0":t}var bi=n0,a0=Ah,i0=bi;function o0(e,t){t=a0(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[i0(t[r++])];return r&&r==n?e:void 0}var ds=o0,u0=ds;function s0(e,t,r){var n=e==null?void 0:u0(e,t);return n===void 0?r:n}var _h=s0;const tt=ce(_h);function c0(e){return e==null}var l0=c0;const Q=ce(l0);var f0=xt,d0=Le,h0=Ot,p0="[object String]";function m0(e){return typeof e=="string"||!d0(e)&&h0(e)&&f0(e)==p0}var v0=m0;const Jn=ce(v0);var $h={exports:{}},oe={};/** 2 * @license React 3 * react-is.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var hs=Symbol.for("react.element"),ps=Symbol.for("react.portal"),wi=Symbol.for("react.fragment"),xi=Symbol.for("react.strict_mode"),Oi=Symbol.for("react.profiler"),Pi=Symbol.for("react.provider"),Si=Symbol.for("react.context"),y0=Symbol.for("react.server_context"),Ai=Symbol.for("react.forward_ref"),_i=Symbol.for("react.suspense"),$i=Symbol.for("react.suspense_list"),Ti=Symbol.for("react.memo"),Mi=Symbol.for("react.lazy"),g0=Symbol.for("react.offscreen"),Th;Th=Symbol.for("react.module.reference");function Ye(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hs:switch(e=e.type,e){case wi:case Oi:case xi:case _i:case $i:return e;default:switch(e=e&&e.$$typeof,e){case y0:case Si:case Ai:case Mi:case Ti:case Pi:return e;default:return t}}case ps:return t}}}oe.ContextConsumer=Si;oe.ContextProvider=Pi;oe.Element=hs;oe.ForwardRef=Ai;oe.Fragment=wi;oe.Lazy=Mi;oe.Memo=Ti;oe.Portal=ps;oe.Profiler=Oi;oe.StrictMode=xi;oe.Suspense=_i;oe.SuspenseList=$i;oe.isAsyncMode=function(){return!1};oe.isConcurrentMode=function(){return!1};oe.isContextConsumer=function(e){return Ye(e)===Si};oe.isContextProvider=function(e){return Ye(e)===Pi};oe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hs};oe.isForwardRef=function(e){return Ye(e)===Ai};oe.isFragment=function(e){return Ye(e)===wi};oe.isLazy=function(e){return Ye(e)===Mi};oe.isMemo=function(e){return Ye(e)===Ti};oe.isPortal=function(e){return Ye(e)===ps};oe.isProfiler=function(e){return Ye(e)===Oi};oe.isStrictMode=function(e){return Ye(e)===xi};oe.isSuspense=function(e){return Ye(e)===_i};oe.isSuspenseList=function(e){return Ye(e)===$i};oe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wi||e===Oi||e===xi||e===_i||e===$i||e===g0||typeof e=="object"&&e!==null&&(e.$$typeof===Mi||e.$$typeof===Ti||e.$$typeof===Pi||e.$$typeof===Si||e.$$typeof===Ai||e.$$typeof===Th||e.getModuleId!==void 0)};oe.typeOf=Ye;$h.exports=oe;var b0=$h.exports,w0=xt,x0=Ot,O0="[object Number]";function P0(e){return typeof e=="number"||x0(e)&&w0(e)==O0}var Mh=P0;const S0=ce(Mh);var A0=Mh;function _0(e){return A0(e)&&e!=+e}var $0=_0;const Zn=ce($0);var Ve=function(t){return t===0?0:t>0?1:-1},Ut=function(t){return Jn(t)&&t.indexOf("%")===t.length-1},q=function(t){return S0(t)&&!Zn(t)},Se=function(t){return q(t)||Jn(t)},T0=0,ji=function(t){var r=++T0;return"".concat(t||"").concat(r)},ke=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&!Jn(t))return n;var i;if(Ut(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return Zn(i)&&(i=n),a&&i>r&&(i=r),i},cr=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},M0=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a<r;a++)if(!n[t[a]])n[t[a]]=!0;else return!0;return!1},Ac=function(t,r){return q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function ko(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):tt(n,t))===r})}function Ro(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 Lo(e){"@babel/helpers - typeof";return Lo=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},Lo(e)}var j0=["viewBox","children"],E0=["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","colorRen
9dering","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"],_c=["points","pathLength"],co={svg:j0,polygon:_c,polyline:_c},ms=["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","onDrag
9Capture","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"],Pa=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(L.isValidElement(t)&&(n=t.props),!Wr(n))return null;var a={};return Object.keys(n).forEach(function(i){ms.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},C0=function(t,r,n){return function(a){return t(r,n,a),null}},Ei=function(t,r,n){if(!Wr(t)||Lo(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];ms.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=C0(o,r,n))}),a},I0=["children"],N0=["children"];function $c(e,t){if(e==null)return{};var r=D0(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function D0(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 Tc={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"},mt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Mc=null,lo=null,vs=function e(t){if(t===Mc&&Array.isArray(lo))return lo;var r=[];return L.Children.forEach(t,function(n){Q(n)||(b0.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),lo=r,Mc=t,r};function it(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return mt(a)}):n=[mt(t)],vs(e).forEach(function(a){var i=tt(a,"type.displayName")||tt(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function He(e,t){var r=it(e,t);return r&&r[0]}var jc=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!q(n)||n<=0||!q(a)||a<=0)},k0=["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"],R0=function(t){return t&&t.type&&Jn(t.type)&&k0.indexOf(t.type)>=0},L0=function(t,r,n,a){var i,o=(i=co==null?void 0:co[a])!==null&&i!==void 0?i:[];return r.startsWith("data-")||!Z(t)&&(a&&o.includes(r)||E0.includes(r))||n&&ms.includes(r)},G=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(L.isValidElement(t)&&(a=t.props),!Wr(a))return null;var i={};
9return Object.keys(a).forEach(function(o){var u;L0((u=a)===null||u===void 0?void 0:u[o],o,r,n)&&(i[o]=a[o])}),i},Bo=function e(t,r){if(t===r)return!0;var n=L.Children.count(t);if(n!==L.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Ec(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=t[a],o=r[a];if(Array.isArray(i)||Array.isArray(o)){if(!e(i,o))return!1}else if(!Ec(i,o))return!1}return!0},Ec=function(t,r){if(Q(t)&&Q(r))return!0;if(!Q(t)&&!Q(r)){var n=t.props||{},a=n.children,i=$c(n,I0),o=r.props||{},u=o.children,s=$c(o,N0);return a&&u?Ro(i,s)&&Bo(a,u):!a&&!u?Ro(i,s):!1}return!1},Cc=function(t,r){var n=[],a={};return vs(t).forEach(function(i,o){if(R0(i))n.push(i);else if(i){var u=mt(i.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!a[u])){var l=c(i,u,o);n.push(l),a[u]=!0}}}),n},B0=function(t){var r=t&&t.type;return r&&Tc[r]?Tc[r]:null},W0=function(t,r){return vs(r).indexOf(t)},F0=["children","width","height","viewBox","className","style","title","desc"];function Wo(){return Wo=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},Wo.apply(this,arguments)}function q0(e,t){if(e==null)return{};var r=U0(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function U0(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 Fo(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,i=e.className,o=e.style,u=e.title,s=e.desc,c=q0(e,F0),f=a||{width:r,height:n,x:0,y:0},l=te("recharts-surface",i);return A.createElement("svg",Wo({},G(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 z0=["children","className"];function qo(){return qo=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},qo.apply(this,arguments)}function H0(e,t){if(e==null)return{};var r=X0(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function X0(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 ge=A.forwardRef(function(e,t){var r=e.children,n=e.className,a=H0(e,z0),i=te("recharts-layer",n);return A.createElement("g",qo({className:i},G(a,!0),{ref:t}),r)}),vt=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]};function V0(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n<a;)i[n]=e[n+t];return i}var K0=V0,G0=K0;function Y0(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:G0(e,t,r)}var J0=Y0,Z0="\\ud800-\\udfff",Q0="\\u0300-\\u036f",ew="\\ufe20-\\ufe2f",tw="\\u20d0-\\u20ff",rw=Q0+ew+tw,nw="\\ufe0e\\ufe0f",aw="\\u200d",iw=RegExp("["+aw+Z0+rw+nw+"]");function ow(e){return iw.test(e)}var jh=ow;function uw(e){return e.split("")}var sw=uw,Eh="\\ud800-\\udfff",cw="\\u0300-\\u036f",lw="\\ufe20-\\ufe2f",fw="\\u20d0-\\u20ff",dw=cw+lw+fw,hw="\\ufe0e\\ufe0f",pw="["+Eh+"]",Uo="["+dw+"]",zo="\\ud83c[\\udffb-\\udfff]",mw="(?:"+Uo+"|"+zo+")",Ch="[^"+Eh+"]",Ih="(?:\\ud83c[\\udde6-\\uddff]){2}",Nh="[\\ud800-\\udbff][\\udc00-\\udfff]",vw="\\u200d",Dh=mw+"?",kh="["+hw+"]?",yw="(?:"+vw+"(?:"+[Ch,Ih,Nh].join("|")+")"+kh+Dh+")*",gw=kh+Dh+yw,bw="(?:"+[Ch+Uo+"?",Uo,Ih,Nh,pw].join("|")+")",ww=RegExp(zo+"(?="+zo+")|"+bw+gw,"g");function xw(e){return e.match(ww)||[]}var Ow=xw,Pw=sw,Sw=jh,Aw=Ow;function _w(e){return Sw(e)?Aw(e):Pw(e)}var $w=_w,Tw=J0,Mw=jh,jw=$w,Ew=Sh;function Cw(e){return function(t){t=Ew(t);var r=Mw(t)?jw(t):void 0,n=r?r[0]:t.charAt(0),a=r?Tw(r,1).join(""):t.slice(1);return n[e]()+a}}var Iw=Cw,Nw=Iw,Dw=Nw("toUpperCase"),kw=Dw;const Ci=ce(kw);function fe(e){return function(){return e}}const Rh=Math.cos,Sa=Math.sin,rt=Math.sqrt,Aa=Math.PI,Ii=2*Aa,Ho=Math.PI,Xo=2*Ho,Bt=1e-6,Rw=Xo-Bt;function Lh(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Lw(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Lh;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;a<i;++a)this._+=Math.round(arguments[a]*r)/r+n[a]}}class Bw{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Lh:Lw(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,a){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+a}`}bezierCurveTo(t,r,n,a,i,o){this._append`C${+t},${+r},${+n}
9,${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,r,n,a,i){if(t=+t,r=+r,n=+n,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,u=this._y1,s=n-t,c=a-r,f=o-t,l=u-r,d=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Bt)if(!(Math.abs(l*s-c*f)>Bt)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,p=a-u,m=s*s+c*c,y=h*h+p*p,b=Math.sqrt(m),x=Math.sqrt(d),w=i*Math.tan((Ho-Math.acos((m+d-y)/(2*b*x)))/2),P=w/x,v=w/b;Math.abs(P-1)>Bt&&this._append`L${t+P*f},${r+P*l}`,this._append`A${i},${i},0,0,${+(l*h>f*p)},${this._x1=t+v*s},${this._y1=r+v*c}`}}arc(t,r,n,a,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(a),s=n*Math.sin(a),c=t+u,f=r+s,l=1^o,d=o?a-i:i-a;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Bt||Math.abs(this._y1-f)>Bt)&&this._append`L${c},${f}`,n&&(d<0&&(d=d%Xo+Xo),d>Rw?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:d>Bt&&this._append`A${n},${n},0,${+(d>=Ho)},${l},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function ys(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 Bw(t)}function gs(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Bh(e){this._context=e}Bh.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 Ni(e){return new Bh(e)}function Wh(e){return e[0]}function Fh(e){return e[1]}function qh(e,t){var r=fe(!0),n=null,a=Ni,i=null,o=ys(u);e=typeof e=="function"?e:e===void 0?Wh:fe(e),t=typeof t=="function"?t:t===void 0?Fh:fe(t);function u(s){var c,f=(s=gs(s)).length,l,d=!1,h;for(n==null&&(i=a(h=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(l,c,s),+t(l,c,s));if(h)return i=null,h+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:fe(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:fe(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:fe(!!s),u):r},u.curve=function(s){return arguments.length?(a=s,n!=null&&(i=a(n)),u):a},u.context=function(s){return arguments.length?(s==null?n=i=null:i=a(n=s),u):n},u}function ia(e,t,r){var n=null,a=fe(!0),i=null,o=Ni,u=null,s=ys(c);e=typeof e=="function"?e:e===void 0?Wh:fe(+e),t=typeof t=="function"?t:fe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Fh:fe(+r);function c(l){var d,h,p,m=(l=gs(l)).length,y,b=!1,x,w=new Array(m),P=new Array(m);for(i==null&&(u=o(x=s())),d=0;d<=m;++d){if(!(d<m&&a(y=l[d],d,l))===b)if(b=!b)h=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=d-1;p>=h;--p)u.point(w[p],P[p]);u.lineEnd(),u.areaEnd()}b&&(w[d]=+e(y,d,l),P[d]=+t(y,d,l),u.point(n?+n(y,d,l):w[d],r?+r(y,d,l):P[d]))}if(x)return u=null,x+""||null}function f(){return qh().defined(a).curve(o).context(i)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:fe(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:fe(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:fe(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:fe(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:fe(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:fe(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(a=typeof l=="function"?l:fe(!!l),c):a},c.curve=function(l){return arguments.length?(o=l,i!=null&&(u=o(i)),c):o},c.context=function(l){return arguments.length?(l==null?i=u=null:u=o(i=l),c):i},c}class Uh{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 Ww(e){return new Uh(e,!0)}function Fw(e){return new Uh(e,!1)}const bs={draw(e,t){const r=rt(t/Aa);e.moveTo(r,0),e.arc(0,0,r,0,Ii)}},qw={draw(e,t){const r=rt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},zh=rt(1/3),Uw=zh*2,zw={draw(e,t){const r=rt(t/Uw),n=r*zh;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Hw={draw(e,t){const r=rt(t),n=-r/2;e.rect(n,n,r,r)}},Xw=.8908130915292852,Hh=Sa(Aa/10)/Sa(7*Aa/10),Vw=Sa(Ii/10)*Hh,Kw=-Rh(Ii/10)*Hh,Gw={draw(e,t){const r=rt(t*Xw),n=Vw*r,a=Kw*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=Ii*i/5,u=Rh(o),s=Sa(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*a,s*n+u*a)}e.closePath()}},fo=rt(3),Yw={draw(e,t){const r=-rt(t/(fo*3));e.moveTo(0,r*2),e.lineTo(-fo*r,-r),e.lineTo(fo*r,-r),e.closePath()}},qe=-.5,Ue=rt(3)/2,Vo=1/rt(12),Jw=(Vo/2+1)*3,Zw={draw(e,t){const r=rt(t/Jw),n=r/2,a=r*Vo,i=n,o=r*Vo+r,u=-i,s=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(u,s),e.lineTo(qe*n-Ue*a,Ue*n+qe*a),e.lineTo(qe*i-Ue*o,Ue*i+qe*o),e.lineTo(qe*u-Ue*s,Ue*u+qe*s),e.lineTo(qe*n+Ue*a,qe*a-Ue*n),e.lineTo(qe*i+Ue*o,qe*o-Ue*i),e.lineTo(qe*u+Ue*s,qe*s-Ue*u),e.closePath()}};function Qw(e,t){let r=null,n=ys(a);e=typeof e=="function"?e:fe(e||bs),t=typeof t=="function"?t:fe(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:fe(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:fe(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function _a(){}function $a(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 Xh(e){this._context=e}Xh.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:$a(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:$a(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ex(e){return new Xh(e)}function Vh(e){this._context=e}Vh.prototype={areaStart:_a,areaEnd:_a,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:$a(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tx(e){return new Vh(e)}function Kh(e){this._context=e}Kh.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:$a(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rx(e){return new Kh(e)}function Gh(e){this._context=e}Gh.prototype={areaStart:_a,areaEnd:_a,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 nx(e){return new Gh(e)}function Ic(e){return e<0?-1:1}function Nc(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),u=(i*a+o*n)/(n+a);return(Ic(i)+Ic(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(u))||0}function Dc(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ho(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,u=(i-n)/3;e._context.bezierCurveTo(n+u,a+u*t,i-u,o-u*r,i,o)}function Ta(e){this._context=e}Ta.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:ho(this,this._t0,Dc(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,ho(this,Dc(this,r=Nc(this,e,t)),r);break;default:ho(this,this._t0,r=Nc(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Yh(e){this._context=new Jh(e)}(Yh.prototype=Object.create(Ta.prototype)).point=function(e,t){Ta.prototype.point.call(this,t,e)};function Jh(e){this._context=e}Jh.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,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function ax(e){return new Ta(e)}function ix(e){return new Yh(e)}function Zh(e){this._context=e}Zh.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=kc(e),a=kc(t),i=0,o=1;o<r;++i,++o)this._context.bezierCurveTo(n[0][i],a[0][i],n[1][i],a[1][i],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 kc(e){var t,r=e.length-1,n,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=a[t]/i[t-1],i[t]-=n,o[t]-=n*o[t-1];for(a[r-1]=o[r-1]/i[r-1],t=r-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function ox(e){return new Zh(e)}function Di(e,t){this._context=e,this._t=t}Di.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;
vendor: 4,735 bytes, line 9
9default:{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 ux(e){return new Di(e,.5)}function sx(e){return new Di(e,0)}function cx(e){return new Di(e,1)}function yr(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,u=i.length;r<o;++r)for(a=i,i=e[t[r]],n=0;n<u;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function Ko(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function lx(e,t){return e[t]}function fx(e){const t=[];return t.key=e,t}function dx(){var e=fe([]),t=Ko,r=yr,n=lx;function a(i){var o=Array.from(e.apply(this,arguments),fx),u,s=o.length,c=-1,f;for(const l of i)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,i)]).data=l;for(u=0,f=gs(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:fe(Array.from(i)),a):e},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:fe(+i),a):n},a.order=function(i){return arguments.length?(t=i==null?Ko:typeof i=="function"?i:fe(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??yr,a):r},a}function hx(e,t){if((n=e.length)>0){for(var r,n,a=0,i=e[0].length,o;a<i;++a){for(o=r=0;r<n;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<n;++r)e[r][a][1]/=o}yr(e,t)}}function px(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,i=n.length;r<i;++r){for(var o=0,u=0;o<a;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}yr(e,t)}}function mx(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n<i;++n){for(var u=0,s=0,c=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,d=f[n-1][1]||0,h=(l-d)/2,p=0;p<u;++p){var m=e[t[p]],y=m[n][1]||0,b=m[n-1][1]||0;h+=y-b}s+=l,c+=h*l}a[n-1][1]+=a[n-1][0]=r,s&&(r-=c/s)}a[n-1][1]+=a[n-1][0]=r,yr(e,t)}}function mn(e){"@babel/helpers - typeof";return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(e)}var vx=["type","size","sizeType"];function Go(){return Go=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},Go.apply(this,arguments)}function Rc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Lc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rc(Object(r),!0).forEach(function(n){yx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yx(e,t,r){return t=gx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gx(e){var t=bx(e,"string");return mn(t)=="symbol"?t:t+""}function bx(e,t){if(mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wx(e,t){if(e==null)return{};var r=xx(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xx(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 Qh={symbolCircle:bs,symbolCross:qw,symbolDiamond:zw,symbolSquare:Hw,symbolStar:Gw,symbolTriangle:Yw,symbolWye:Zw},Ox=Math.PI/180,Px=function(t){var r="symbol".concat(Ci(t));return Qh[r]||bs},Sx=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 a=18*Ox;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),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}},Ax=function(t,r){Qh["symbol".concat(Ci(t))]=r},ws=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,i=a===void 0?64:a,o=t.sizeType,u=o===void 0?"area":o,s=wx(t,vx),c=Lc(Lc({},s),{},{type:n,size:i,sizeType:u}),f=function(){var y=Px(n),b=Qw().type(y).size(Sx(i,u,n));return b()},l=c.className,d=c.cx,h=c.cy,p=G(c,!0);return d===+d&&h===+h&&i===+i?A.createElement("path",Go({}
9,p,{className:te("recharts-symbols",l),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};ws.registerSymbol=Ax;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 Yo(){return Yo=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},Yo.apply(this,arguments)}function Bc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _x(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bc(Object(r),!0).forEach(function(n){vn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tx(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,tp(n.key),n)}}function Mx(e,t,r){return t&&Tx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jx(e,t,r){return t=Ma(t),Ex(e,ep()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}function Ex(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 Cx(e)}function Cx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ep(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ep=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ma(e)}function Ix(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&&Jo(e,t)}function Jo(e,t){return Jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Jo(e,t)}function vn(e,t,r){return t=tp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tp(e){var t=Nx(e,"string");return gr(t)=="symbol"?t:t+""}function Nx(e,t){if(gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ze=32,xs=function(e){function t(){return $x(this,t),jx(this,t,arguments)}return Ix(t,e),Mx(t,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=ze/2,o=ze/6,u=ze/3,s=n.inactive?a:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:ze,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(i,"h").concat(u,` 10 A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(i,` 11 H`).concat(ze,"M").concat(2*u,",").concat(i,` 12 A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return A.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(ze/8,"h").concat(ze,"v").concat(ze*3/4,"h").concat(-ze,"z"),className:"recharts-legend-icon"});if(A.isValidElement(n.legendIcon)){var c=_x({},n);return delete c.legendIcon,A.cloneElement(n.legendIcon,c)}return A.createElement(ws,{fill:s,cx:i,cy:i,size:ze,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,i=a.payload,o=a.iconSize,u=a.layout,s=a.formatter,c=a.inactiveColor,f={x:0,y:0,width:ze,height:ze},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(h,p){var m=h.formatter||s,y=te(vn(vn({"recharts-legend-item":!0},"legend-item-".concat(p),!0),"inactive",h.inactive));if(h.type==="none")return null;var b=Z(h.value)?null:h.value;vt(!Z(h.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=h.inactive?c:h.color;return A.createElement("li",Yo({className:y,style:l,key:"legend-item-".concat(p)},Ei(n.props,h,p)),A.createElement(Fo,{width:o,height:o,viewBox:f,style:d},n.renderIcon(h)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},m?m(b,h,p):b))})}},{key:"render",value:function(){var n=this.props,a=n.payload,i=n.layout,o=n.align;if(!a||!a.length)return null;var u={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])}(L.PureComponent);vn(xs,"displayName","Legend");vn(xs,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Dx=yi;function kx(){this.__data__=new Dx,this.size=0}var Rx=kx;function Lx(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Bx=Lx;function Wx(e){return this.__data__.get(e)}var Fx=Wx;function qx(e){return this.__data__.has(e)}var Ux=qx,zx=yi,Hx=ss,Xx=cs,Vx=200;function Kx(e,t){var r=this.__data__;if(r instanceof zx){var n=r.__data__;if(!Hx||n.length<Vx-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Xx(n)}return r.set(e,t),this.size=r.size,this}var Gx=Kx,Yx=yi,Jx=Rx,Zx=Bx,Qx=Fx,e1=Ux,t1=Gx;function zr(e){var t=this.__data__=new Yx(e);this.size=t.size}zr.prototype.clear=Jx;zr.prototype.delete=Zx;zr.prototype.get=Qx;zr.prototype.has=e1;zr.prototype.set=t1;var rp=zr,r1="__lodash_hash_undefined__";function n1(e){return this.__data__.set(e,r1),this}var a1=n1;function i1(e){return this.__data__.has(e)}var o1=i1,u1=cs,s1=a1,c1=o1;function ja(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new u1;++t<r;)this.add(e[t])}ja.prototype.add=ja.prototype.push=s1;ja.prototype.has=c1;var np=ja;function l1(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var ap=l1;function f1(e,t){return e.has(t)}var ip=f1,d1=np,h1=ap,p1=ip,m1=1,v1=2;function y1(e,t,r,n,a,i){var o=r&m1,u=e.length,s=t.length;if(u!=s&&!(o&&s>u))return!1;var c=i.get(e),f=i.get(t);if(c&&f)return c==t&&f==e;var l=-1,d=!0,h=r&v1?new d1:void 0;for(i.set(e,t),i.set(t,e);++l<u;){var p=e[l],m=t[l];if(n)var y=o?n(m,p,l,t,e,i):n(p,m,l,e,t,i);if(y!==void 0){if(y)continue;d=!1;break}
vendor: 5,068 bytes, line 12
12if(h){if(!h1(t,function(b,x){if(!p1(h,x)&&(p===b||a(p,b,r,n,i)))return h.push(x)})){d=!1;break}}else if(!(p===m||a(p,m,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}var op=y1,g1=ct,b1=g1.Uint8Array,w1=b1;function x1(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var O1=x1;function P1(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Os=P1,Wc=Yn,Fc=w1,S1=us,A1=op,_1=O1,$1=Os,T1=1,M1=2,j1="[object Boolean]",E1="[object Date]",C1="[object Error]",I1="[object Map]",N1="[object Number]",D1="[object RegExp]",k1="[object Set]",R1="[object String]",L1="[object Symbol]",B1="[object ArrayBuffer]",W1="[object DataView]",qc=Wc?Wc.prototype:void 0,po=qc?qc.valueOf:void 0;function F1(e,t,r,n,a,i,o){switch(r){case W1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case B1:return!(e.byteLength!=t.byteLength||!i(new Fc(e),new Fc(t)));case j1:case E1:case N1:return S1(+e,+t);case C1:return e.name==t.name&&e.message==t.message;case D1:case R1:return e==t+"";case I1:var u=_1;case k1:var s=n&T1;if(u||(u=$1),e.size!=t.size&&!s)return!1;var c=o.get(e);if(c)return c==t;n|=M1,o.set(e,t);var f=A1(u(e),u(t),n,a,i,o);return o.delete(e),f;case L1:if(po)return po.call(e)==po.call(t)}return!1}var q1=F1;function U1(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var up=U1,z1=up,H1=Le;function X1(e,t,r){var n=t(e);return H1(e)?n:z1(n,r(e))}var V1=X1;function K1(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}var G1=K1;function Y1(){return[]}var J1=Y1,Z1=G1,Q1=J1,eO=Object.prototype,tO=eO.propertyIsEnumerable,Uc=Object.getOwnPropertySymbols,rO=Uc?function(e){return e==null?[]:(e=Object(e),Z1(Uc(e),function(t){return tO.call(e,t)}))}:Q1,nO=rO;function aO(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var iO=aO,oO=xt,uO=Ot,sO="[object Arguments]";function cO(e){return uO(e)&&oO(e)==sO}var lO=cO,zc=lO,fO=Ot,sp=Object.prototype,dO=sp.hasOwnProperty,hO=sp.propertyIsEnumerable,pO=zc(function(){return arguments}())?zc:function(e){return fO(e)&&dO.call(e,"callee")&&!hO.call(e,"callee")},Ps=pO,Ea={exports:{}};function mO(){return!1}var vO=mO;Ea.exports;(function(e,t){var r=ct,n=vO,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(Ea,Ea.exports);var cp=Ea.exports,yO=9007199254740991,gO=/^(?:0|[1-9]\d*)$/;function bO(e,t){var r=typeof e;return t=t??yO,!!t&&(r=="number"||r!="symbol"&&gO.test(e))&&e>-1&&e%1==0&&e<t}var Ss=bO,wO=9007199254740991;function xO(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wO}var As=xO,OO=xt,PO=As,SO=Ot,AO="[object Arguments]",_O="[object Array]",$O="[object Boolean]",TO="[object Date]",MO="[object Error]",jO="[object Function]",EO="[object Map]",CO="[object Number]",IO="[object Object]",NO="[object RegExp]",DO="[object Set]",kO="[object String]",RO="[object WeakMap]",LO="[object ArrayBuffer]",BO="[object DataView]",WO="[object Float32Array]",FO="[object Float64Array]",qO="[object Int8Array]",UO="[object Int16Array]",zO="[object Int32Array]",HO="[object Uint8Array]",XO="[object Uint8ClampedArray]",VO="[object Uint16Array]",KO="[object Uint32Array]",he={};he[WO]=he[FO]=he[qO]=he[UO]=he[zO]=he[HO]=he[XO]=he[VO]=he[KO]=!0;he[AO]=he[_O]=he[LO]=he[$O]=he[BO]=he[TO]=he[MO]=he[jO]=he[EO]=he[CO]=he[IO]=he[NO]=he[DO]=he[kO]=he[RO]=!1;function GO(e){return SO(e)&&PO(e.length)&&!!he[OO(e)]}var YO=GO;function JO(e){return function(t){return e(t)}}var lp=JO,Ca={exports:{}};Ca.exports;(function(e,t){var r=gh,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,u=function(){try{var s=a&&a.require&&a.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u})(Ca,Ca.exports);var ZO=Ca.exports,QO=YO,eP=lp,Hc=ZO,Xc=Hc&&Hc.isTypedArray,tP=Xc?eP(Xc):QO,fp=tP,rP=iO,nP=Ps,aP=Le,iP=cp,oP=Ss,uP=fp,sP=Object.prototype,cP=sP.hasOwnProperty;function lP(e,t){var r=aP(e),n=!r&&nP(e),a=!r&&!n&&iP(e),i=!r&&!n&&!a&&uP(e),o=r||n||a||i,u=o?rP(e.length,String):[],s=u.length;for(var c in e)(t||cP.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||oP(c,s)))&&u.push(c);return u}var fP=lP,dP=Object.prototype;function hP(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||dP;return e===r}var pP=hP;function mP(e,t){return function(r){return e(t(r))}}var dp=mP,vP=dp,yP=vP(Object.keys,Object),gP=yP,bP=pP,wP=gP,xP=Object.prototype,OP=xP.hasOwnProperty;function PP(e){if(!bP(e))return wP(e);var t=[];for(var r in Object(e))OP.call(e,r)&&r!="constructor"&&t.push(r);return t}var SP=PP,AP=os,_P=As;function $P(e){return e!=null&&_P(e.length)&&!AP(e)}var ki=$P,TP=fP,MP=SP,jP=ki;function EP(e){return jP(e)?TP(e):MP(e)}var _s=EP,CP=V1,IP=nO,NP=_s;function DP(e){return CP(e,NP,IP)}var kP=DP,Vc=kP,RP=1,LP=Object.prototype,BP=LP.hasOwnProperty;function WP(e,t,r,n,a,i){var o=r&RP,u=Vc(e),s=u.length,c=Vc(t),f=c.length;if(s!=f&&!o)return!1;for(var l=s;l--;){var d=u[l];
vendor: 1,671 bytes, line 12
12if(!(o?d in t:BP.call(t,d)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var m=!0;i.set(e,t),i.set(t,e);for(var y=o;++l<s;){d=u[l];var b=e[d],x=t[d];if(n)var w=o?n(x,b,d,t,e,i):n(b,x,d,e,t,i);if(!(w===void 0?b===x||a(b,x,r,n,i):w)){m=!1;break}y||(y=d=="constructor")}if(m&&!y){var P=e.constructor,v=t.constructor;P!=v&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof v=="function"&&v instanceof v)&&(m=!1)}return i.delete(e),i.delete(t),m}var FP=WP,qP=rr,UP=ct,zP=qP(UP,"DataView"),HP=zP,XP=rr,VP=ct,KP=XP(VP,"Promise"),GP=KP,YP=rr,JP=ct,ZP=YP(JP,"Set"),hp=ZP,QP=rr,eS=ct,tS=QP(eS,"WeakMap"),rS=tS,Zo=HP,Qo=ss,eu=GP,tu=hp,ru=rS,pp=xt,Hr=wh,Kc="[object Map]",nS="[object Object]",Gc="[object Promise]",Yc="[object Set]",Jc="[object WeakMap]",Zc="[object DataView]",aS=Hr(Zo),iS=Hr(Qo),oS=Hr(eu),uS=Hr(tu),sS=Hr(ru),Wt=pp;(Zo&&Wt(new Zo(new ArrayBuffer(1)))!=Zc||Qo&&Wt(new Qo)!=Kc||eu&&Wt(eu.resolve())!=Gc||tu&&Wt(new tu)!=Yc||ru&&Wt(new ru)!=Jc)&&(Wt=function(e){var t=pp(e),r=t==nS?e.constructor:void 0,n=r?Hr(r):"";if(n)switch(n){case aS:return Zc;case iS:return Kc;case oS:return Gc;case uS:return Yc;case sS:return Jc}return t});var cS=Wt,mo=rp,lS=op,fS=q1,dS=FP,Qc=cS,el=Le,tl=cp,hS=fp,pS=1,rl="[object Arguments]",nl="[object Array]",oa="[object Object]",mS=Object.prototype,al=mS.hasOwnProperty;function vS(e,t,r,n,a,i){var o=el(e),u=el(t),s=o?nl:Qc(e),c=u?nl:Qc(t);s=s==rl?oa:s,c=c==rl?oa:c;var f=s==oa,l=c==oa,d=s==c;if(d&&tl(e)){if(!tl(t))return!1;o=!0,f=!1}if(d&&!f)return i||(i=new mo),o||hS(e)?lS(e,t,r,n,a,i):fS(e,t,s,r,n,a,i);if(!(r&pS)){var h=f&&al.call(e,"__wrapped__"),p=l&&al.call(t,"__wrapped__");
12if(h||p){var m=h?e.value():e,y=p?t.value():t;return i||(i=new mo),a(m,y,r,n,i)}}return d?(i||(i=new mo),dS(e,t,r,n,a,i)):!1}var yS=vS,gS=yS,il=Ot;function mp(e,t,r,n,a){return e===t?!0:e==null||t==null||!il(e)&&!il(t)?e!==e&&t!==t:gS(e,t,r,n,mp,a)}var $s=mp,bS=rp,wS=$s,xS=1,OS=2;function PS(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var u=r[a];if(o&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<i;){u=r[a];var s=u[0],c=e[s],f=u[1];if(o&&u[2]){if(c===void 0&&!(s in e))return!1}else{var l=new bS;if(n)var d=n(c,f,s,e,t,l);if(!(d===void 0?wS(f,c,xS|OS,n,l):d))return!1}}return!0}var SS=PS,AS=Mt;function _S(e){return e===e&&!AS(e)}var vp=_S,$S=vp,TS=_s;function MS(e){for(var t=TS(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,$S(a)]}return t}var jS=MS;function ES(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var yp=ES,CS=SS,IS=jS,NS=yp;function DS(e){var t=IS(e);return t.length==1&&t[0][2]?NS(t[0][0],t[0][1]):function(r){return r===e||CS(r,e,t)}}var kS=DS;function RS(e,t){return e!=null&&t in Object(e)}var LS=RS,BS=Ah,WS=Ps,FS=Le,qS=Ss,US=As,zS=bi;function HS(e,t,r){t=BS(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=zS(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&US(a)&&qS(o,a)&&(FS(e)||WS(e)))}var XS=HS,VS=LS,KS=XS;function GS(e,t){return e!=null&&KS(e,t,VS)}var YS=GS,JS=$s,ZS=_h,QS=YS,eA=is,tA=vp,rA=yp,nA=bi,aA=1,iA=2;function oA(e,t){return eA(e)&&tA(t)?rA(nA(e),t):function(r){var n=ZS(r,e);return n===void 0&&n===t?QS(r,e):JS(t,n,aA|iA)}}var uA=oA;function sA(e){return e}var Xr=sA;function cA(e){return function(t){return t==null?void 0:t[e]}}var lA=cA,fA=ds;function dA(e){return function(t){return fA(t,e)}}var hA=dA,pA=lA,mA=hA,vA=is,yA=bi;function gA(e){return vA(e)?pA(yA(e)):mA(e)}var bA=gA,wA=kS,xA=uA,OA=Xr,PA=Le,SA=bA;function AA(e){return typeof e=="function"?e:e==null?OA:typeof e=="object"?PA(e)?xA(e[0],e[1]):wA(e):SA(e)}var jt=AA;function _A(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var $A=_A;function TA(e){return e!==e}var MA=TA;function jA(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}var EA=jA,CA=$A,IA=MA,NA=EA;function DA(e,t,r){return t===t?NA(e,t,r):CA(e,IA,r)}var kA=DA,RA=kA;function LA(e,t){var r=e==null?0:e.length;return!!r&&RA(e,t,0)>-1}var BA=LA;function WA(e,t,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}var FA=WA;function qA(){}var UA=qA,vo=hp,zA=UA,HA=Os,XA=1/0,VA=vo&&1/HA(new vo([,-0]))[1]==XA?function(e){return new vo(e)}:zA,KA=VA,GA=np,YA=BA,JA=FA,ZA=ip,QA=KA,e_=Os,t_=200;function r_(e,t,r){var n=-1,a=YA,i=e.length,o=!0,u=[],s=u;if(r)o=!1,a=JA;else if(i>=t_){var c=t?null:QA(e);if(c)return e_(c);o=!1,a=ZA,s=new GA}else s=t?[]:u;e:for(;++n<i;){var f=e[n],l=t?t(f):f;if(f=r||f!==0?f:0,o&&l===l){for(var d=s.length;d--;)if(s[d]===l)continue e;t&&s.push(l),u.push(f)}else a(s,l,r)||(s!==u&&s.push(l),u.push(f))}return u}var n_=r_,a_=jt,i_=n_;function o_(e,t){return e&&e.length?i_(e,a_(t)):[]}var u_=o_;const ol=ce(u_);function gp(e,t,r){return t===!0?ol(e,r):Z(t)?ol(e,t):e}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)}var s_=["ref"];function ul(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function lt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ul(Object(r),!0).forEach(function(n){Ri(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ul(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sl(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,wp(n.key),n)}}function l_(e,t,r){return t&&sl(e.prototype,t),r&&sl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function f_(e,t,r){return t=Ia(t),d_(e,bp()?Reflect.construct(t,r||[],Ia(e).constructor):t.apply(e,r))}function d_(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 h_(e)}function h_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bp=function(){return!!e})()}
12function Ia(e){return Ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ia(e)}function p_(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&&nu(e,t)}function nu(e,t){return nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},nu(e,t)}function Ri(e,t,r){return t=wp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wp(e){var t=m_(e,"string");return br(t)=="symbol"?t:t+""}function m_(e,t){if(br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v_(e,t){if(e==null)return{};var r=y_(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function y_(e,t){if(e==null)return{};var r={};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 g_(e){return e.value}function b_(e,t){if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return A.createElement(e,t);t.ref;var r=v_(t,s_);return A.createElement(xs,r)}var cl=1,Yt=function(e){function t(){var r;c_(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=f_(this,t,[].concat(a)),Ri(r,"lastBoundingBox",{width:-1,height:-1}),r}return p_(t,e),l_(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,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>cl||Math.abs(a.height-this.lastBoundingBox.height)>cl)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(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?lt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,i=a.layout,o=a.align,u=a.verticalAlign,s=a.margin,c=a.chartWidth,f=a.chartHeight,l,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var h=this.getBBoxSnapshot();l={left:((c||0)-h.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 p=this.getBBoxSnapshot();d={top:((f||0)-p.height)/2}}else d=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return lt(lt({},l),d)}},{key:"render",value:function(){var n=this,a=this.props,i=a.content,o=a.width,u=a.height,s=a.wrapperStyle,c=a.payloadUniqBy,f=a.payload,l=lt(lt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return A.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(h){n.wrapperNode=h}},b_(i,lt(lt({},this.props),{},{payload:gp(f,c,g_)})))}}],[{key:"getWithHeight",value:function(n,a){var i=lt(lt({},this.defaultProps),n.props),o=i.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||a}:null}}])}(L.PureComponent);Ri(Yt,"displayName","Legend");Ri(Yt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var ll=Yn,w_=Ps,x_=Le,fl=ll?ll.isConcatSpreadable:void 0;function O_(e){return x_(e)||w_(e)||!!(fl&&e&&e[fl])}var P_=O_,S_=up,A_=P_;function xp(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=A_),a||(a=[]);++i<o;){var u=e[i];t>0&&r(u)?t>1?xp(u,t-1,r,n,a):S_(a,u):n||(a[a.length]=u)}return a}var Op=xp;function __(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),u=o.length;u--;){var s=o[e?u:++a];if(r(i[s],s,i)===!1)break}return t}}var $_=__,T_=$_,M_=T_(),j_=M_,E_=j_,C_=_s;function I_(e,t){return e&&E_(e,t,C_)}var Pp=I_,N_=ki;function D_(e,t){return function(r,n){if(r==null)return r;if(!N_(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var k_=D_,R_=Pp,L_=k_,B_=L_(R_),Ts=B_,W_=Ts,F_=ki;function q_(e,t){var r=-1,n=F_(e)?Array(e.length):[];return W_(e,function(a,i,o){n[++r]=t(a,i,o)}),n}var Sp=q_;function U_(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var z_=U_,dl=Br;function H_(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,i=dl(e),o=t!==void 0,u=t===null,s=t===t,c=dl(t);if(!u&&!c&&!i&&e>t||i&&o&&s&&!u&&!c||n&&o&&s||!r&&s||!a)return 1;if(!n&&!i&&!c&&e<t||c&&r&&a&&!n&&!i||u&&r&&a||!o&&a||!s)return-1}return 0}var X_=H_,V_=X_;function K_(e,t,r){for(var n=-1,a=e.criteria,i=t.criteria,o=a.length,u=r.length;++n<o;){var s=V_(a[n],i[n]);if(s){if(n>=u)return s;var c=r[n];return s*(c=="desc"?-1:1)}}return e.index-t.index}var G_=K_,yo=fs,Y_=ds,J_=jt,Z_=Sp,Q_=z_,e$=lp,t$=G_,r$=Xr,n$=Le;function a$(e,t,r){t.length?t=yo(t,function(i){return n$(i)?function(o){return Y_(o,i.length===1?i[0]:i)}:i}):t=[r$];var n=-1;t=yo(t,e$(J_));var a=Z_(e,function(i,o,u){var s=yo(t,function(c){return c(i)});return{criteria:s,index:++n,value:i}});return Q_(a,function(i,o){return t$(i,o,r)})}var i$=a$;function o$(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var u$=o$,s$=u$,hl=Math.max;function c$(e,t,r){return t=hl(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=hl(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=n[a];return u[t]=r(o),s$(e,this,u)}}var l$=c$;function f$(e){return function(){return e}}var d$=f$,h$=rr,p$=function(){try{var e=h$(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ap=p$,m$=d$,pl=Ap,v$=Xr,y$=pl?function(e,t){return pl(e,"toString",{configurable:!0,enumerable:!1,value:m$(t),writable:!0})}:v$,g$=y$,b$=800,w$=16,x$=Date.now;function O$(e){var t=0,r=0;return function(){var n=x$(),a=w$-(n-r);if(r=n,a>0){if(++t>=b$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var P$=O$,S$=g$,A$=P$,_$=A$(S$),$$=_$,T$=Xr,M$=l$,j$=$$;function E$(e,t){return j$(M$(e,t,T$),e+"")}var C$=E$,I$=us,N$=ki,D$=Ss,k$=Mt;function R$(e,t,r){if(!k$(r))return!1;var n=typeof t;return(n=="number"?N$(r)&&D$(t,r.length):n=="string"&&t in r)?I$(r[t],e):!1}var Li=R$,L$=Op,B$=i$,W$=C$,ml=Li,F$=W$(function(e,t){if(e==null)return[];var r=t.length;return r>1&&ml(e,t[0],t[1])?t=[]:r>2&&ml(t[0],t[1],t[2])&&(t=[t[0]]),B$(e,L$(t,1),[])}),q$=F$;const Ms=ce(q$);function yn(e){"@babel/helpers - typeof";return yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yn(e)}function au(){return au=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 10,673 bytes, lines 12-13
12for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},au.apply(this,arguments)}function U$(e,t){return V$(e)||X$(e,t)||H$(e,t)||z$()}function z$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H$(e,t){if(e){if(typeof e=="string")return vl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vl(e,t)}}function vl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function X$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,u=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,a=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}function V$(e){if(Array.isArray(e))return e}function yl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function go(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yl(Object(r),!0).forEach(function(n){K$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K$(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=Y$(e,"string");return yn(t)=="symbol"?t:t+""}function Y$(e,t){if(yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J$(e){return Array.isArray(e)&&Se(e[0])&&Se(e[1])?e.join(" ~ "):e}var Z$=function(t){var r=t.separator,n=r===void 0?" : ":r,a=t.contentStyle,i=a===void 0?{}:a,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,d=t.itemSorter,h=t.wrapperClassName,p=t.labelClassName,m=t.label,y=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,w=function(){if(f&&f.length){var T={padding:0,margin:0},E=(d?Ms(f,d):f).map(function(I,C){if(I.type==="none")return null;var D=go({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},u),R=I.formatter||l||J$,B=I.value,F=I.name,X=B,V=F;if(R&&X!=null&&V!=null){var z=R(B,F,I,C,f);if(Array.isArray(z)){var Y=U$(z,2);X=Y[0],V=Y[1]}else X=z}return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:D},Se(V)?A.createElement("span",{className:"recharts-tooltip-item-name"},V):null,Se(V)?A.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,A.createElement("span",{className:"recharts-tooltip-item-value"},X),A.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:T},E)}return null},P=go({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),v=go({margin:0},c),g=!Q(m),O=g?m:"",S=te("recharts-default-tooltip",h),_=te("recharts-tooltip-label",p);g&&y&&f!==void 0&&f!==null&&(O=y(m,f));var j=x?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",au({className:S,style:P},j),A.createElement("p",{className:_,style:v},A.isValidElement(O)?O:"".concat(O)),w())};function gn(e){"@babel/helpers - typeof";return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(e)}function ua(e,t,r){return t=Q$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q$(e){var t=eT(e,"string");return gn(t)=="symbol"?t:t+""}function eT(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qr="recharts-tooltip-wrapper",tT={visibility:"hidden"};function rT(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return te(Qr,ua(ua(ua(ua({},"".concat(Qr,"-right"),q(r)&&t&&q(t.x)&&r>=t.x),"".concat(Qr,"-left"),q(r)&&t&&q(t.x)&&r<t.x),"".concat(Qr,"-bottom"),q(n)&&t&&q(t.y)&&n>=t.y),"".concat(Qr,"-top"),q(n)&&t&&q(t.y)&&n<t.y))}function gl(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,a=e.offsetTopLeft,i=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(i&&q(i[n]))return i[n];var f=r[n]-u-a,l=r[n]+a;if(t[n])return o[n]?f:l;if(o[n]){var d=f,h=s[n];return d<h?Math.max(l,s[n]):Math.max(f,s[n])}var p=l+u,m=s[n]+c;return p>m?Math.max(f,s[n]):Math.max(l,s[n])}function nT(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 aT(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=gl({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=gl({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=nT({translateX:f,translateY:l,useTranslate3d:u})):c=tT,{cssProperties:c,cssClasses:rT({translateX:f,translateY:l,coordinate:r})}}function wr(e){"@babel/helpers - typeof";return wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wr(e)}function bl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function wl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bl(Object(r),!0).forEach(function(n){ou(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oT(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,$p(n.key),n)}}function uT(e,t,r){return t&&oT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sT(e,t,r){return t=Na(t),cT(e,_p()?Reflect.construct(t,r||[],Na(e).constructor):t.apply(e,r))}function cT(e,t){if(t&&(wr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lT(e)}function lT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_p=function(){return!!e})()}function Na(e){return Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Na(e)}function fT(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&&iu(e,t)}function iu(e,t){return iu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},iu(e,t)}function ou(e,t,r){return t=$p(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $p(e){var t=dT(e,"string");return wr(t)=="symbol"?t:t+""}function dT(e,t){if(wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xl=1,hT=function(e){function t(){var r;iT(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=sT(this,t,[].concat(a)),ou(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),ou(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 fT(t,e),uT(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>xl||Math.abs(n.height-this.state.lastBoundingBox.height)>xl)&&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,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,u=a.animationDuration,s=a.animationEasing,c=a.children,f=a.coordinate,l=a.hasPayload,d=a.isAnimationActive,h=a.offset,p=a.position,m=a.reverseDirection,y=a.useTranslate3d,b=a.viewB
13ox,x=a.wrapperStyle,w=aT({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:h,position:p,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:b}),P=w.cssClasses,v=w.cssProperties,g=wl(wl({transition:d&&i?"transform ".concat(u,"ms ").concat(s):void 0},v),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return A.createElement("div",{tabIndex:-1,className:P,style:g,ref:function(S){n.wrapperNode=S}},c)}}])}(L.PureComponent),pT=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Jt={isSsr:pT(),get:function(t){return Jt[t]},set:function(t,r){if(typeof t=="string")Jt[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(a){Jt[a]=t[a]})}}};function xr(e){"@babel/helpers - typeof";return xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xr(e)}function Ol(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Pl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ol(Object(r),!0).forEach(function(n){js(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ol(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vT(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,Mp(n.key),n)}}function yT(e,t,r){return t&&vT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gT(e,t,r){return t=Da(t),bT(e,Tp()?Reflect.construct(t,r||[],Da(e).constructor):t.apply(e,r))}function bT(e,t){if(t&&(xr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wT(e)}function wT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tp=function(){return!!e})()}function Da(e){return Da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Da(e)}function xT(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&&uu(e,t)}function uu(e,t){return uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},uu(e,t)}function js(e,t,r){return t=Mp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mp(e){var t=OT(e,"string");return xr(t)=="symbol"?t:t+""}function OT(e,t){if(xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PT(e){return e.dataKey}function ST(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(Z$,t)}var nt=function(e){function t(){return mT(this,t),gT(this,t,arguments)}return xT(t,e),yT(t,[{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,u=a.animationDuration,s=a.animationEasing,c=a.content,f=a.coordinate,l=a.filterNull,d=a.isAnimationActive,h=a.offset,p=a.payload,m=a.payloadUniqBy,y=a.position,b=a.reverseDirection,x=a.useTranslate3d,w=a.viewBox,P=a.wrapperStyle,v=p??[];l&&v.length&&(v=gp(p.filter(function(O){return O.value!=null&&(O.hide!==!0||n.props.includeHidden)}),m,PT));var g=v.length>0;return A.createElement(hT,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:i,coordinate:f,hasPayload:g,offset:h,position:y,reverseDirection:b,useTranslate3d:x,viewB
13ox:w,wrapperStyle:P},ST(c,Pl(Pl({},this.props),{},{payload:v})))}}])}(L.PureComponent);js(nt,"displayName","Tooltip");js(nt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Jt.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 AT=ct,_T=function(){return AT.Date.now()},$T=_T,TT=/\s/;function MT(e){for(var t=e.length;t--&&TT.test(e.charAt(t)););return t}var jT=MT,ET=jT,CT=/^\s+/;function IT(e){return e&&e.slice(0,ET(e)+1).replace(CT,"")}var NT=IT,DT=NT,Sl=Mt,kT=Br,Al=NaN,RT=/^[-+]0x[0-9a-f]+$/i,LT=/^0b[01]+$/i,BT=/^0o[0-7]+$/i,WT=parseInt;function FT(e){if(typeof e=="number")return e;if(kT(e))return Al;if(Sl(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Sl(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=DT(e);var r=LT.test(e);return r||BT.test(e)?WT(e.slice(2),r?2:8):RT.test(e)?Al:+e}var jp=FT,qT=Mt,bo=$T,_l=jp,UT="Expected a function",zT=Math.max,HT=Math.min;function XT(e,t,r){var n,a,i,o,u,s,c=0,f=!1,l=!1,d=!0;if(typeof e!="function")throw new TypeError(UT);t=_l(t)||0,qT(r)&&(f=!!r.leading,l="maxWait"in r,i=l?zT(_l(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function h(g){var O=n,S=a;return n=a=void 0,c=g,o=e.apply(S,O),o}function p(g){return c=g,u=setTimeout(b,t),f?h(g):o}function m(g){var O=g-s,S=g-c,_=t-O;return l?HT(_,i-S):_}function y(g){var O=g-s,S=g-c;return s===void 0||O>=t||O<0||l&&S>=i}function b(){var g=bo();if(y(g))return x(g);u=setTimeout(b,m(g))}function x(g){return u=void 0,d&&n?h(g):(n=a=void 0,o)}function w(){u!==void 0&&clearTimeout(u),c=0,n=s=a=u=void 0}function P(){return u===void 0?o:x(bo())}function v(){var g=bo(),O=y(g);if(n=arguments,a=this,s=g,O){if(u===void 0)return p(s);if(l)return clearTimeout(u),u=setTimeout(b,t),h(s)}return u===void 0&&(u=setTimeout(b,t)),o}return v.cancel=w,v.flush=P,v}var VT=XT,KT=VT,GT=Mt,YT="Expected a function";function JT(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(YT);return GT(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),KT(e,t,{leading:n,maxWait:t,trailing:a})}var ZT=JT;const Ep=ce(ZT);function bn(e){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(e)}function $l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function sa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$l(Object(r),!0).forEach(function(n){QT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$l(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QT(e,t,r){return t=eM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eM(e){var t=tM(e,"string");return bn(t)=="symbol"?t:t+""}function tM(e,t){if(bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rM(e,t){return oM(e)||iM(e,t)||aM(e,t)||nM()}function nM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 14In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aM(e,t){if(e){if(typeof e=="string")return Tl(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 Tl(e,t)}}function Tl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,u=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;
vendor: 13,717 bytes, lines 14-20
14!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,a=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}function oM(e){if(Array.isArray(e))return e}var uM=L.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,a=n===void 0?{width:-1,height:-1}:n,i=e.width,o=i===void 0?"100%":i,u=e.height,s=u===void 0?"100%":u,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,d=e.maxHeight,h=e.children,p=e.debounce,m=p===void 0?0:p,y=e.id,b=e.className,x=e.onResize,w=e.style,P=w===void 0?{}:w,v=L.useRef(null),g=L.useRef();g.current=x,L.useImperativeHandle(t,function(){return Object.defineProperty(v.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),v.current},configurable:!0})});var O=L.useState({containerWidth:a.width,containerHeight:a.height}),S=rM(O,2),_=S[0],j=S[1],$=L.useCallback(function(E,I){j(function(C){var D=Math.round(E),R=Math.round(I);return C.containerWidth===D&&C.containerHeight===R?C:{containerWidth:D,containerHeight:R}})},[]);L.useEffect(function(){var E=function(F){var X,V=F[0].contentRect,z=V.width,Y=V.height;$(z,Y),(X=g.current)===null||X===void 0||X.call(g,z,Y)};m>0&&(E=Ep(E,m,{trailing:!0,leading:!1}));var I=new ResizeObserver(E),C=v.current.getBoundingClientRect(),D=C.width,R=C.height;return $(D,R),I.observe(v.current),function(){I.disconnect()}},[$,m]);var T=L.useMemo(function(){var E=_.containerWidth,I=_.containerHeight;if(E<0||I<0)return null;vt(Ut(o)||Ut(s),`The width(%s) and height(%s) are both fixed numbers, 15 maybe you don't need to use a ResponsiveContainer.`,o,s),vt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=Ut(o)?E:o,D=Ut(s)?I:s;r&&r>0&&(C?D=C/r:D&&(C=D*r),d&&D>d&&(D=d)),vt(C>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0, 16 please check the style of container, or the props width(%s) and height(%s), 17 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 18 height and width.`,C,D,o,s,f,l,r);var R=!Array.isArray(h)&&mt(h.type).endsWith("Chart");return A.Children.map(h,function(B){return A.isValidElement(B)?L.cloneElement(B,sa({width:C,height:D},R?{style:sa({height:"100%",width:"100%",maxHeight:D,maxWidth:C},B.props.style)}:{})):B})},[r,h,s,d,l,f,_,o]);return A.createElement("div",{id:y?"".concat(y):void 0,className:te("recharts-responsive-container",b),style:sa(sa({},P),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:d}),ref:v},T)}),Es=function(t){return null};Es.displayName="Cell";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 Ml(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function su(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ml(Object(r),!0).forEach(function(n){sM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ml(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sM(e,t,r){return t=cM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cM(e){var t=lM(e,"string");return wn(t)=="symbol"?t:t+""}function lM(e,t){if(wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ur={widthCache:{},cacheCount:0},fM=2e3,dM={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},jl="recharts_measurement_span";function hM(e){var t=su({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var El=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Jt.isSsr)return{width:0,height:0};var n=hM(r),a=JSON.stringify({text:t,copyStyle:n});if(ur.widthCache[a])return ur.widthCache[a];try{var i=document.getElementById(jl);i||(i=document.createElement("span"),i.setAttribute("id",jl),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=su(su({},dM),n);Object.assign(i.style,o),i.textContent="".concat(t);var u=i.getBoundingClientRect(),s={width:u.width,height:u.height};return ur.widthCache[a]=s,++ur.cacheCount>fM&&(ur.cacheCount=0,ur.widthCache={}),s}catch{return{width:0,height:0}}},pM=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 ka(e,t){return gM(e)||yM(e,t)||vM(e,t)||mM()}function mM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vM(e,t){if(e){if(typeof e=="string")return Cl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cl(e,t)}}function Cl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,u=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,a=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}function gM(e){if(Array.isArray(e))return e}function bM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Il(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,xM(n.key),n)}}function wM(e,t,r){return t&&Il(e.prototype,t),r&&Il(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xM(e){var t=OM(e,"string");return xn(t)=="symbol"?t:t+""}function OM(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 String(e)}var Nl=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Dl=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,PM=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,SM=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Cp={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},AM=Object.keys(Cp),lr="NaN";function _M(e,t){return e*Cp[t]}var ca=function(){function e(t,r){bM(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!PM.test(r)&&(this.num=NaN,this.unit=""),AM.includes(r)&&(this.num=_M(t,r),this.unit="px")}return wM(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,a=(n=SM.exec(r))!==null&&n!==void 0?n:[],i=ka(a,3),o=i[1],u=i[2];return new e(parseFloat(o),u??"")}}])}();function Ip(e){if(e.includes(lr))return lr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Nl.exec(t))!==null&&r!==void 0?r:[],a=ka(n,4),i=a[1],o=a[2],u=a[3],s=ca.parse(i??""),c=ca.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return lr;t=t.replace(Nl,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,d=(l=Dl.exec(t))!==null&&l!==void 0?l:[],h=ka(d,4),p=h[1],m=h[2],y=h[3],b=ca.parse(p??""),x=ca.parse(y??""),w=m==="+"?b.add(x):b.subtract(x);if(w.isNaN())return lr;t=t.replace(Dl,w.toString())}return t}var kl=/\(([^()]*)\)/;function $M(e){for(var t=e;t.includes("(");){var r=kl.exec(t),n=ka(r,2),a=n[1];t=t.replace(kl,Ip(a))}return t}function TM(e){var t=e.replace(/\s+/g,"");return t=$M(t),t=Ip(t),t}function MM(e){try{return TM(e)}catch{return lr}}function wo(e){var t=MM(e.slice(5,-1));return t===lr?"":t}var jM=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],EM=["dx","dy","angle","className","breakAll"];function cu(){return cu=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},cu.apply(this,arguments)}function Rl(e,t){if(e==null)return{};var r=CM(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CM(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 Ll(e,t){return kM(e)||DM(e,t)||NM(e,t)||IM()}function IM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 20In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NM(e,t){if(e){if(typeof e=="string")return Bl(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 Bl(e,t)}}function Bl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function DM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,u=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,a=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}function kM(e){if(Array.isArray(e))return e}var Np=/[ \f\n\r\t\v\u2028\u2029]+/,Dp=function(t){var r=t.children,n=t.breakAll,a=t.style;try{var i=[];Q(r)||(n?i=r.toString().split(""):i=r.toString().split(Np));var o=i.map(function(s){return{word:s,width:El(s,a).width}}),u=n?0:El(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},RM=function(t,r,n,a,i){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=q(o),l=u,d=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(D,R){var B=R.word,F=R.width,X=D[D.length-1];if(X&&(a==null||i||X.width+F+n<Number(a)))X.words.push(B),X.width+=F+n;else{var V={words:[B],width:F};D.push(V)}return D},[])},h=d(r),p=function(C){return C.reduce(function(D,R){return D.width>R.width?D:R})};if(!f)return h;for(var m="â¦",y=function(C){var D=l.slice(0,C),R=Dp({breakAll:c,style:s,children:D+m}).wordsWithComputedWidth,B=d(R),F=B.length>o||p(B).width>Number(a);return[F,B]},b=0,x=l.length-1,w=0,P;b<=x&&w<=l.length-1;){var v=Math.floor((b+x)/2),g=v-1,O=y(g),S=Ll(O,2),_=S[0],j=S[1],$=y(v),T=Ll($,1),E=T[0];if(!_&&!E&&(b=v+1),_&&E&&(x=v-1),!_&&E){P=j;break}w++}return P||h},Wl=function(t){var r=Q(t)?[]:t.toString().split(Np);return[{words:r}]},LM=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Jt.isSsr){var s,c,f=Dp({breakAll:o,children:a,style:i});if(f){var l=f.wordsWithComputedWidth,d=f.spaceWidth;s=l,c=d}else return Wl(a);return RM({breakAll:o,children:a,maxLines:u,style:i},s,c,r,n)}return Wl(a)},Fl="#808080",Or=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,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,d=t.textAnchor,h=d===void 0?"start":d,p=t.verticalAnchor,m=p===void 0?"end":p,y=t.fill,b=y===void 0?Fl:y,x=Rl(t,jM),w=L.useMemo(function(){return LM({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]),P=x.dx,v=x.dy,g=x.angle,O=x.className,S=x.breakAll,_=Rl(x,EM);if(!Se(n)||!Se(i))return null;var j=n+(q(P)?P:0),$=i+(q(v)?v:0),T;switch(m){case"start":T=wo("calc(".concat(c,")"));break;case"middle":T=wo("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:T=wo("calc(".concat(w.length-1," * -").concat(u,")"));break}var E=[];if(l){var I=w[0].width,C=x.width;E.push("scale(".concat((q(C)?C/I:1)/I,")"))}return g&&E.push("rotate(".concat(g,", ").concat(j,", ").concat($,")")),E.length&&(_.transform=E.join(" ")),A.createElement("text",cu({},G(_,!0),{x:j,y:$,className:te("recharts-text",O),textAnchor:h,fill:b.includes("url")?Fl:b}),w.map(function(D,R){var B=D.words.join(S?"":" ");
20return A.createElement("tspan",{x:j,dy:R===0?T:u,key:"".concat(B,"-").concat(R)},B)}))};function $t(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function BM(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Cs(e){let t,r,n;e.length!==2?(t=$t,r=(u,s)=>$t(e(u),s),n=(u,s)=>e(u)-s):(t=e===$t||e===BM?e:WM,r=e,n=e);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 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 o(u,s,c=0,f=u.length){const l=a(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:a,center:o,right:i}}function WM(){return 0}function kp(e){return e===null?NaN:+e}function*FM(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const qM=Cs($t),Qn=qM.right;Cs(kp).center;class ql extends Map{constructor(t,r=HM){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(Ul(this,t))}has(t){return super.has(Ul(this,t))}set(t,r){return super.set(UM(this,t),r)}delete(t){return super.delete(zM(this,t))}}function Ul({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function UM({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function zM({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function HM(e){return e!==null&&typeof e=="object"?e.valueOf():e}function XM(e=$t){if(e===$t)return Rp;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 Rp(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const VM=Math.sqrt(50),KM=Math.sqrt(10),GM=Math.sqrt(2);function Ra(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=VM?10:i>=KM?5:i>=GM?2:1;let u,s,c;return a<0?(c=Math.pow(10,-a)/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,a)*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?Ra(e,t,r*2):[u,s,c]}function lu(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[a,i,o]=n?Ra(t,e,r):Ra(e,t,r);if(!(i>=a))return[];const u=i-a+1,s=new Array(u);if(n)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;else 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;return s}function fu(e,t,r){return t=+t,e=+e,r=+r,Ra(e,t,r)[2]}function du(e,t,r){t=+t,e=+e,r=+r;const n=t<e,a=n?fu(t,e,r):fu(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function zl(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Hl(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Lp(e,t,r=0,n=1/0,a){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(a=a===void 0?Rp:XM(a);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),d=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),h=Math.max(r,Math.floor(t-c*l/s+d)),p=Math.min(n,Math.floor(t+(s-c)*l/s+d));Lp(e,t,h,p,a)}const i=e[t];let o=r,u=n;for(en(e,r,t),a(e[n],i)>0&&en(e,r,n);o<u;){for(en(e,o,u),++o,--u;a(e[o],i)<0;)++o;for(;a(e[u],i)>0;)--u}a(e[r],i)===0?en(e,r,u):(++u,en(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function en(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function YM(e,t,r){if(e=Float64Array.from(FM(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Hl(e);if(t>=1)return zl(e);var n,a=(n-1)*t,i=Math.floor(a),o=zl(Lp(e,i).subarray(0,i+1)),u=Hl(e.subarray(i+1));return o+(u-o)*(a-i)}}function JM(e,t,r=kp){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,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),u=+r(e[i+1],i+1,e);return o+(u-o)*(a-i)}}function ZM(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n<a;)i[n]=e+n*r;return i}function Je(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Pt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
vendor: 9,524 bytes, line 20
20const hu=Symbol("implicit");function Is(){var e=new ql,t=[],r=[],n=hu;function a(i){let o=e.get(i);if(o===void 0){if(n!==hu)return n;e.set(i,o=t.push(i)-1)}return r[o%r.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new ql;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(r=Array.from(i),a):r.slice()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Is(t,r).unknown(n)},Je.apply(a,arguments),a}function On(){var e=Is().unknown(void 0),t=e.domain,r=e.range,n=0,a=1,i,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var d=t().length,h=a<n,p=h?a:n,m=h?n:a;i=(m-p)/Math.max(1,d-s+c*2),u&&(i=Math.floor(i)),p+=(m-p-i*(d-s))*f,o=i*(1-s),u&&(p=Math.round(p),o=Math.round(o));var y=ZM(d).map(function(b){return p+i*b});return r(h?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),l()):t()},e.range=function(d){return arguments.length?([n,a]=d,n=+n,a=+a,l()):[n,a]},e.rangeRound=function(d){return[n,a]=d,n=+n,a=+a,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(d){return arguments.length?(u=!!d,l()):u},e.padding=function(d){return arguments.length?(s=Math.min(1,c=+d),l()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),l()):s},e.paddingOuter=function(d){return arguments.length?(c=+d,l()):c},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),l()):f},e.copy=function(){return On(t(),[n,a]).round(u).paddingInner(s).paddingOuter(c).align(f)},Je.apply(l(),arguments)}function Bp(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Bp(t())},e}function ln(){return Bp(On.apply(null,arguments).paddingInner(1))}function Ns(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Wp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ea(){}var Pn=.7,La=1/Pn,pr="\\s*([+-]?\\d+)\\s*",Sn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ot="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",QM=/^#([0-9a-f]{3,8})$/,ej=new RegExp(`^rgb\\(${pr},${pr},${pr}\\)$`),tj=new RegExp(`^rgb\\(${ot},${ot},${ot}\\)$`),rj=new RegExp(`^rgba\\(${pr},${pr},${pr},${Sn}\\)$`),nj=new RegExp(`^rgba\\(${ot},${ot},${ot},${Sn}\\)$`),aj=new RegExp(`^hsl\\(${Sn},${ot},${ot}\\)$`),ij=new RegExp(`^hsla\\(${Sn},${ot},${ot},${Sn}\\)$`),Xl={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};Ns(ea,An,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Vl,formatHex:Vl,formatHex8:oj,formatHsl:uj,formatRgb:Kl,toString:Kl});function Vl(){return this.rgb().formatHex()}function oj(){return this.rgb().formatHex8()}function uj(){return Fp(this).formatHsl()}function Kl(){return this.rgb().formatRgb()}function An(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=QM.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Gl(t):r===3?new Re(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?la(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?la(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=ej.exec(e))?new Re(t[1],t[2],t[3],1):(t=tj.exec(e))?new Re(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=rj.exec(e))?la(t[1],t[2],t[3],t[4]):(t=nj.exec(e))?la(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=aj.exec(e))?Zl(t[1],t[2]/100,t[3]/100,1):(t=ij.exec(e))?Zl(t[1],t[2]/100,t[3]/100,t[4]):Xl.hasOwnProperty(e)?Gl(Xl[e]):e==="transparent"?new Re(NaN,NaN,NaN,0):null}function Gl(e){return new Re(e>>16&255,e>>8&255,e&255,1)}function la(e,t,r,n){return n<=0&&(e=t=r=NaN),new Re(e,t,r,n)}function sj(e){return e instanceof ea||(e=An(e)),e?(e=e.rgb(),new Re(e.r,e.g,e.b,e.opacity)):new Re}function pu(e,t,r,n){return arguments.length===1?sj(e):new Re(e,t,r,n??1)}function Re(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ns(Re,pu,Wp(ea,{brighter(e){return e=e==null?La:Math.pow(La,e),new Re(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Pn:Math.pow(Pn,e),new Re(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Re(Zt(this.r),Zt(this.g),Zt(this.b),Ba(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:Yl,formatHex:Yl,formatHex8:cj,formatRgb:Jl,toString:Jl}));function Yl(){return`#${zt(this.r)}${zt(this.g)}${zt(this.b)}`}function cj(){return`#${zt(this.r)}${zt(this.g)}${zt(this.b)}${zt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Jl(){const e=Ba(this.opacity);return`${e===1?"rgb(":"rgba("}${Zt(this.r)}, ${Zt(this.g)}, ${Zt(this.b)}${e===1?")":`, ${e})`}`}function Ba(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zt(e){return e=Zt(e),(e<16?"0":"")+e.toString(16)}function Zl(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new et(e,t,r,n)}function Fp(e){if(e instanceof et)return new et(e.h,e.s,e.l,e.opacity);if(e instanceof ea||(e=An(e)),!e)return new et;if(e instanceof et)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,u=i-a,s=(i+a)/2;return u?(t===i?o=(r-n)/u+(r<n)*6:r===i?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?i+a:2-i-a,o*=60):u=s>0&&s<1?0:o,new et(o,u,s,e.opacity)}function lj(e,t,r,n){return arguments.length===1?Fp(e):new et(e,t,r,n??1)}function et(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ns(et,lj,Wp(ea,{brighter(e){return e=e==null?La:Math.pow(La,e),new et(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Pn:Math.pow(Pn,e),new et(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new Re(xo(e>=240?e-240:e+120,a,n),xo(e,a,n),xo(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new et(Ql(this.h),fa(this.s),fa(this.l),Ba(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=Ba(this.opacity);return`${e===1?"hsl(":"hsla("}${Ql(this.h)}, ${fa(this.s)*100}%, ${fa(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ql(e){return e=(e||0)%360,e<0?e+360:e}function fa(e){return Math.max(0,Math.min(1,e||0))}function xo(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 Ds=e=>()=>e;function fj(e,t){return function(r){return e+r*t}}function dj(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 hj(e){return(e=+e)==1?qp:function(t,r){return r-t?dj(t,r,e):Ds(isNaN(t)?r:t)}}function qp(e,t){var r=t-e;return r?fj(e,r):Ds(isNaN(e)?t:e)}const ef=function e(t){var r=hj(t);function n(a,i){var o=r((a=pu(a)).r,(i=pu(i)).r),u=r(a.g,i.g),s=r(a.b,i.b),c=qp(a.opacity,i.opacity);
vendor: 5,507 bytes, line 20
20return function(f){return a.r=o(f),a.g=u(f),a.b=s(f),a.opacity=c(f),a+""}}return n.gamma=e,n}(1);function pj(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;a<r;++a)n[a]=e[a]*(1-i)+t[a]*i;return n}}function mj(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function vj(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,a=new Array(n),i=new Array(r),o;for(o=0;o<n;++o)a[o]=Vr(e[o],t[o]);for(;o<r;++o)i[o]=t[o];return function(u){for(o=0;o<n;++o)i[o]=a[o](u);return i}}function yj(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Wa(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function gj(e,t){var r={},n={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?r[a]=Vr(e[a],t[a]):n[a]=t[a];return function(i){for(a in r)n[a]=r[a](i);return n}}var mu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Oo=new RegExp(mu.source,"g");function bj(e){return function(){return e}}function wj(e){return function(t){return e(t)+""}}function xj(e,t){var r=mu.lastIndex=Oo.lastIndex=0,n,a,i,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=mu.exec(e))&&(a=Oo.exec(t));)(i=a.index)>r&&(i=t.slice(r,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(a=a[0])?u[o]?u[o]+=a:u[++o]=a:(u[++o]=null,s.push({i:o,x:Wa(n,a)})),r=Oo.lastIndex;return r<t.length&&(i=t.slice(r),u[o]?u[o]+=i:u[++o]=i),u.length<2?s[0]?wj(s[0].x):bj(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 Vr(e,t){var r=typeof t,n;return t==null||r==="boolean"?Ds(t):(r==="number"?Wa:r==="string"?(n=An(t))?(t=n,ef):xj:t instanceof An?ef:t instanceof Date?yj:mj(t)?pj:Array.isArray(t)?vj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?gj:Wa)(e,t)}function ks(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Oj(e,t){t===void 0&&(t=e,e=Vr);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[u](o-u)}}function Pj(e){return function(){return e}}function Fa(e){return+e}var tf=[0,1];function Ce(e){return e}function vu(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Pj(isNaN(t)?NaN:.5)}function Sj(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Aj(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a<n?(n=vu(a,n),i=r(o,i)):(n=vu(n,a),i=r(i,o)),function(u){return i(n(u))}}function _j(e,t,r){var n=Math.min(e.length,t.length)-1,a=new Array(n),i=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)a[o]=vu(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(u){var s=Qn(e,u,1,n)-1;return i[s](a[s](u))}}function ta(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Bi(){var e=tf,t=tf,r=Vr,n,a,i,o=Ce,u,s,c;function f(){var d=Math.min(e.length,t.length);return o!==Ce&&(o=Sj(e[0],e[d-1])),u=d>2?_j:Aj,s=c=null,l}function l(d){return d==null||isNaN(d=+d)?i:(s||(s=u(e.map(n),t,r)))(n(o(d)))}return l.invert=function(d){return o(a((c||(c=u(t,e.map(n),Wa)))(d)))},l.domain=function(d){return arguments.length?(e=Array.from(d,Fa),f()):e.slice()},l.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},l.rangeRound=function(d){return t=Array.from(d),r=ks,f()},l.clamp=function(d){return arguments.length?(o=d?!0:Ce,f()):o!==Ce},l.interpolate=function(d){return arguments.length?(r=d,f()):r},l.unknown=function(d){return arguments.length?(i=d,l):i},function(d,h){return n=d,a=h,f()}}function Rs(){return Bi()(Ce,Ce)}function $j(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function qa(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Pr(e){return e=qa(Math.abs(e)),e?e[1]:NaN}function Tj(e,t){return function(r,n){for(var a=r.length,i=[],o=0,u=e[0],s=0;a>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),i.push(r.substring(a-=u,a+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return i.reverse().join(t)}}function Mj(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var jj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _n(e){if(!(t=jj.exec(e)))throw new Error("invalid format: "+e);var t;return new Ls({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]})}_n.prototype=Ls.prototype;function Ls(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+""}Ls.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 Ej(e){e:for(var t=e.length,r=1,n=-1,a;r<t;++r)switch(e[r]){case".":n=a=r;break;case"0":n===0&&(n=r),a=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var Up;function Cj(e,t){var r=qa(e,t);if(!r)return e+"";
vendor: 6,014 bytes, line 20
20var n=r[0],a=r[1],i=a-(Up=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+qa(e,Math.max(0,t+i-1))[0]}function rf(e,t){var r=qa(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const nf={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:$j,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)=>rf(e*100,t),r:rf,s:Cj,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function af(e){return e}var of=Array.prototype.map,uf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ij(e){var t=e.grouping===void 0||e.thousands===void 0?af:Tj(of.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?af:Mj(of.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){l=_n(l);var d=l.fill,h=l.align,p=l.sign,m=l.symbol,y=l.zero,b=l.width,x=l.comma,w=l.precision,P=l.trim,v=l.type;v==="n"?(x=!0,v="g"):nf[v]||(w===void 0&&(w=12),P=!0,v="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var g=m==="$"?r:m==="#"&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",O=m==="$"?n:/[%p]/.test(v)?o:"",S=nf[v],_=/[defgprs%]/.test(v);w=w===void 0?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function j($){var T=g,E=O,I,C,D;if(v==="c")E=S($)+E,$="";else{$=+$;var R=$<0||1/$<0;if($=isNaN($)?s:S(Math.abs($),w),P&&($=Ej($)),R&&+$==0&&p!=="+"&&(R=!1),T=(R?p==="("?p:u:p==="-"||p==="("?"":p)+T,E=(v==="s"?uf[8+Up/3]:"")+E+(R&&p==="("?")":""),_){for(I=-1,C=$.length;++I<C;)if(D=$.charCodeAt(I),48>D||D>57){E=(D===46?a+$.slice(I+1):$.slice(I))+E,$=$.slice(0,I);break}}}x&&!y&&($=t($,1/0));var B=T.length+$.length+E.length,F=B<b?new Array(b-B+1).join(d):"";switch(x&&y&&($=t(F+$,F.length?b-E.length:1/0),F=""),h){case"<":$=T+$+E+F;break;case"=":$=T+F+$+E;break;case"^":$=F.slice(0,B=F.length>>1)+T+$+E+F.slice(B);break;default:$=F+T+$+E;break}return i($)}return j.toString=function(){return l+""},j}function f(l,d){var h=c((l=_n(l),l.type="f",l)),p=Math.max(-8,Math.min(8,Math.floor(Pr(d)/3)))*3,m=Math.pow(10,-p),y=uf[8+p/3];return function(b){return h(m*b)+y}}return{format:c,formatPrefix:f}}var da,Bs,zp;Nj({thousands:",",grouping:[3],currency:["$",""]});function Nj(e){return da=Ij(e),Bs=da.format,zp=da.formatPrefix,da}function Dj(e){return Math.max(0,-Pr(Math.abs(e)))}function kj(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Pr(t)/3)))*3-Pr(Math.abs(e)))}function Rj(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Pr(t)-Pr(e))+1}function Hp(e,t,r,n){var a=du(e,t,r),i;switch(n=_n(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=kj(a,o))&&(n.precision=i),zp(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=Rj(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=Dj(a))&&(n.precision=i-(n.type==="%")*2);break}}return Bs(n)}function Et(e){var t=e.domain;return e.ticks=function(r){var n=t();return lu(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return Hp(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],u=n[i],s,c,f=10;for(u<o&&(c=o,o=u,u=c,c=a,a=i,i=c);f-- >0;){if(c=fu(o,u,r),c===s)return n[a]=o,n[i]=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 Ua(){var e=Rs();return e.copy=function(){return ta(e,Ua())},Je.apply(e,arguments),Et(e)}function Xp(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,Fa),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Xp(e).unknown(t)},e=arguments.length?Array.from(e,Fa):[0,1],Et(r)}function Vp(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return i<a&&(o=r,r=n,n=o,o=a,a=i,i=o),e[r]=t.floor(a),e[n]=t.ceil(i),e}function sf(e){return Math.log(e)}function cf(e){return Math.exp(e)}function Lj(e){return-Math.log(-e)}function Bj(e){return-Math.exp(-e)}function Wj(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Fj(e){return e===10?Wj:e===Math.E?Math.exp:t=>Math.pow(e,t)}function qj(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 lf(e){return(t,r)=>-e(-t,r)}function Ws(e){const t=e(sf,cf),r=t.domain;let n=10,a,i;function o(){return a=qj(n),i=Fj(n),r()[0]<0?(a=lf(a),i=lf(i),e(Lj,Bj)):e(sf,cf),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 d=a(c),h=a(f),p,m;const y=u==null?10:+u;let b=[];if(!(n%1)&&h-d<y){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(p=1;p<n;++p)if(m=d<0?p/i(-d):p*i(d),!(m<c)){if(m>f)break;b.push(m)}}else for(;d<=h;++d)for(p=n-1;p>=1;--p)if(m=d>0?p/i(-d):p*i(d),!(m<c)){if(m>f)break;b.push(m)}b.length*2<y&&(b=lu(c,f,y))}else b=lu(d,h,Math.min(h-d,y)).map(i);return l?b.reverse():b},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=_n(s)).precision==null&&(s.trim=!0),s=Bs(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/i(Math.round(a(f)));return l*n<n-.5&&(l*=n),l<=c?s(f):""}},t.nice=()=>r(Vp(r(),{floor:u=>i(Math.floor(a(u))),ceil:u=>i(Math.ceil(a(u)))})),t}function Kp(){const e=Ws(Bi()).domain([1,10]);return e.copy=()=>ta(e,Kp()).base(e.base()),Je.apply(e,arguments),e}
20function ff(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function df(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Fs(e){var t=1,r=e(ff(t),df(t));return r.constant=function(n){return arguments.length?e(ff(t=+n),df(t)):t},Et(r)}function Gp(){var e=Fs(Bi());return e.copy=function(){return ta(e,Gp()).constant(e.constant())},Je.apply(e,arguments)}function hf(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Uj(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function zj(e){return e<0?-e*e:e*e}function qs(e){var t=e(Ce,Ce),r=1;function n(){return r===1?e(Ce,Ce):r===.5?e(Uj,zj):e(hf(r),hf(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},Et(t)}function Us(){var e=qs(Bi());return e.copy=function(){return ta(e,Us()).exponent(e.exponent())},Je.apply(e,arguments),e}function Hj(){return Us.apply(null,arguments).exponent(.5)}function pf(e){return Math.sign(e)*e*e}function Xj(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Yp(){var e=Rs(),t=[0,1],r=!1,n;function a(i){var o=Xj(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(pf(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,Fa)).map(pf)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Yp(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Je.apply(a,arguments),Et(a)}function Jp(){var e=[],t=[],r=[],n;function a(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=JM(e,o/u);return i}function i(o){return o==null||isNaN(o=+o)?n:t[Qn(r,o)]}return i.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]]},i.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($t),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return Jp().domain(e).range(t).unknown(n)},Je.apply(i,arguments)}function Zp(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(s){return s!=null&&s<=s?a[Qn(n,s,0,r)]:i}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=(a=Array.from(s)).length-1,u()):a.slice()},o.invertExtent=function(s){var c=a.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&&(i=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Zp().domain([e,t]).range(a).unknown(i)},Je.apply(Et(o),arguments)}function Qp(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Qn(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Qp().domain(e).range(t).unknown(r)},Je.apply(a,arguments)}const Po=new Date,So=new Date;function Ae(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),u=a.ceil(i);return i-o<u-i?o:u},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,u)=>{const s=[];if(i=a.ceil(i),u=u==null?1:Math.floor(u),!(i<o)||!(u>0))return s;let c;do s.push(c=new Date(+i)),t(i,u),e(i);while(c<i&&i<o);return s},a.filter=i=>Ae(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!i(o););else for(;--u>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(Po.setTime(+i),So.setTime(+o),e(Po),e(So),Math.floor(r(Po,So))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const za=Ae(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);za.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):za);za.range;const dt=1e3,Ke=dt*60,ht=Ke*60,gt=ht*24,zs=gt*7,mf=gt*30,Ao=gt*365,Ht=Ae(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*dt)},(e,t)=>(t-e)/dt,e=>e.getUTCSeconds());Ht.range;const Hs=Ae(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dt)},(e,t)=>{e.setTime(+e+t*Ke)},(e,t)=>(t-e)/Ke,e=>e.getMinutes());Hs.range;const Xs=Ae(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ke)},(e,t)=>(t-e)/Ke,e=>e.getUTCMinutes());Xs.range;const Vs=Ae(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dt-e.getMinutes()*Ke)},(e,t)=>{e.setTime(+e+t*ht)},(e,t)=>(t-e)/ht,e=>e.getHours());Vs.range;const Ks=Ae(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ht)},(e,t)=>(t-e)/ht,e=>e.getUTCHours());Ks.range;const ra=Ae(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ke)/gt,e=>e.getDate()-1);ra.range;const Wi=Ae(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gt,e=>e.getUTCDate()-1);Wi.range;const em=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));em.range;function nr(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())*Ke)/zs)}const Fi=nr(0),Ha=nr(1),Vj=nr(2),Kj=nr(3),Sr=nr(4),Gj=nr(5),Yj=nr(6);Fi.range;Ha.range;Vj.range;Kj.range;Sr.range;Gj.range;Yj.range;function ar(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)/zs)}const qi=ar(0),Xa=ar(1),Jj=ar(2),Zj=ar(3),Ar=ar(4),Qj=ar(5),eE=ar(6);qi.range;Xa.range;Jj.range;Zj.range;Ar.range;Qj.range;eE.range;const Gs=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());Gs.range;const Ys=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());Ys.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=>
vendor: 5,005 bytes, line 20
20!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 wt=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());wt.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)});wt.range;function tm(e,t,r,n,a,i){const o=[[Ht,1,dt],[Ht,5,5*dt],[Ht,15,15*dt],[Ht,30,30*dt],[i,1,Ke],[i,5,5*Ke],[i,15,15*Ke],[i,30,30*Ke],[a,1,ht],[a,3,3*ht],[a,6,6*ht],[a,12,12*ht],[n,1,gt],[n,2,2*gt],[r,1,zs],[t,1,mf],[t,3,3*mf],[e,1,Ao]];function u(c,f,l){const d=f<c;d&&([c,f]=[f,c]);const h=l&&typeof l.range=="function"?l:s(c,f,l),p=h?h.range(c,+f+1):[];return d?p.reverse():p}function s(c,f,l){const d=Math.abs(f-c)/l,h=Cs(([,,y])=>y).right(o,d);if(h===o.length)return e.every(du(c/Ao,f/Ao,l));if(h===0)return za.every(Math.max(du(c,f,l),1));const[p,m]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return p.every(m)}return[u,s]}const[tE,rE]=tm(wt,Ys,qi,em,Ks,Xs),[nE,aE]=tm(bt,Gs,Fi,ra,Vs,Hs);function _o(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 $o(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 tn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function iE(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,i=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=rn(a),f=nn(a),l=rn(i),d=nn(i),h=rn(o),p=nn(o),m=rn(u),y=nn(u),b=rn(s),x=nn(s),w={a:R,A:B,b:F,B:X,c:null,d:xf,e:xf,f:TE,g:LE,G:WE,H:AE,I:_E,j:$E,L:rm,m:ME,M:jE,p:V,q:z,Q:Sf,s:Af,S:EE,u:CE,U:IE,V:NE,w:DE,W:kE,x:null,X:null,y:RE,Y:BE,Z:FE,"%":Pf},P={a:Y,A:be,b:Ie,B:Ze,c:null,d:Of,e:Of,f:HE,g:tC,G:nC,H:qE,I:UE,j:zE,L:am,m:XE,M:VE,p:Jr,q:Ne,Q:Sf,s:Af,S:KE,u:GE,U:YE,V:JE,w:ZE,W:QE,x:null,X:null,y:eC,Y:rC,Z:aC,"%":Pf},v={a:j,A:$,b:T,B:E,c:I,d:bf,e:bf,f:xE,g:gf,G:yf,H:wf,I:wf,j:yE,L:wE,m:vE,M:gE,p:_,q:mE,Q:PE,s:SE,S:bE,u:lE,U:fE,V:dE,w:cE,W:hE,x:C,X:D,y:gf,Y:yf,Z:pE,"%":OE};w.x=g(r,w),w.X=g(n,w),w.c=g(t,w),P.x=g(r,P),P.X=g(n,P),P.c=g(t,P);function g(W,K){return function(J){var N=[],ve=-1,ee=0,xe=W.length,Oe,De,At;for(J instanceof Date||(J=new Date(+J));++ve<xe;)W.charCodeAt(ve)===37&&(N.push(W.slice(ee,ve)),(De=vf[Oe=W.charAt(++ve)])!=null?Oe=W.charAt(++ve):De=Oe==="e"?" ":"0",(At=K[Oe])&&(Oe=At(J,De)),N.push(Oe),ee=ve+1);return N.push(W.slice(ee,ve)),N.join("")}}function O(W,K){return function(J){var N=tn(1900,void 0,1),ve=S(N,W,J+="",0),ee,xe;if(ve!=J.length)return null;if("Q"in N)return new Date(N.Q);if("s"in N)return new Date(N.s*1e3+("L"in N?N.L:0));if(K&&!("Z"in N)&&(N.Z=0),"p"in N&&(N.H=N.H%12+N.p*12),N.m===void 0&&(N.m="q"in N?N.q:0),"V"in N){if(N.V<1||N.V>53)return null;"w"in N||(N.w=1),"Z"in N?(ee=$o(tn(N.y,0,1)),xe=ee.getUTCDay(),ee=xe>4||xe===0?Xa.ceil(ee):Xa(ee),ee=Wi.offset(ee,(N.V-1)*7),N.y=ee.getUTCFullYear(),N.m=ee.getUTCMonth(),N.d=ee.getUTCDate()+(N.w+6)%7):(ee=_o(tn(N.y,0,1)),xe=ee.getDay(),ee=xe>4||xe===0?Ha.ceil(ee):Ha(ee),ee=ra.offset(ee,(N.V-1)*7),N.y=ee.getFullYear(),N.m=ee.getMonth(),N.d=ee.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),xe="Z"in N?$o(tn(N.y,0,1)).getUTCDay():_o(tn(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(xe+5)%7:N.w+N.U*7-(xe+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,$o(N)):_o(N)}}function S(W,K,J,N){for(var ve=0,ee=K.length,xe=J.length,Oe,De;ve<ee;){if(N>=xe)return-1;if(Oe=K.charCodeAt(ve++),Oe===37){if(Oe=K.charAt(ve++),De=v[Oe in vf?K.charAt(ve++):Oe],!De||(N=De(W,J,N))<0)return-1}else if(Oe!=J.charCodeAt(N++))return-1}return N}function _(W,K,J){var N=c.exec(K.slice(J));return N?(W.p=f.get(N[0].toLowerCase()),J+N[0].length):-1}function j(W,K,J){var N=h.exec(K.slice(J));return N?(W.w=p.get(N[0].toLowerCase()),J+N[0].length):-1}function $(W,K,J){var N=l.exec(K.slice(J));return N?(W.w=d.get(N[0].toLowerCase()),J+N[0].length):-1}function T(W,K,J){var N=b.exec(K.slice(J));return N?(W.m=x.get(N[0].toLowerCase()),J+N[0].length):-1}function E(W,K,J){var N=m.exec(K.slice(J));return N?(W.m=y.get(N[0].toLowerCase()),J+N[0].length):-1}function I(W,K,J){return S(W,t,K,J)}function C(W,K,J){return S(W,r,K,J)}function D(W,K,J){return S(W,n,K,J)}function R(W){return o[W.getDay()]}function B(W){return i[W.getDay()]}function F(W){return s[W.getMonth()]}function X(W){return u[W.getMonth()]}function V(W){return a[+(W.getHours()>=12)]}function z(W){return 1+~~(W.getMonth()/3)}function Y(W){return o[W.getUTCDay()]}function be(W){return i[W.getUTCDay()]}function Ie(W){return s[W.getUTCMonth()]}function Ze(W){return u[W.getUTCMonth()]}function Jr(W){return a[+(W.getUTCHours()>=12)]}function Ne(W){return 1+~~(W.getUTCMonth()/3)}
vendor: 4,962 bytes, line 20
20return{format:function(W){var K=g(W+="",w);return K.toString=function(){return W},K},parse:function(W){var K=O(W+="",!1);return K.toString=function(){return W},K},utcFormat:function(W){var K=g(W+="",P);return K.toString=function(){return W},K},utcParse:function(W){var K=O(W+="",!0);return K.toString=function(){return W},K}}}var vf={"-":"",_:" ",0:"0"},Me=/^\s*\d+/,oE=/^%/,uE=/[\\^$*+?|[\]().{}]/g;function re(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)}function sE(e){return e.replace(uE,"\\$&")}function rn(e){return new RegExp("^(?:"+e.map(sE).join("|")+")","i")}function nn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function cE(e,t,r){var n=Me.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function lE(e,t,r){var n=Me.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function fE(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function dE(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function hE(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function yf(e,t,r){var n=Me.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function gf(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function pE(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 mE(e,t,r){var n=Me.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function vE(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function bf(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function yE(e,t,r){var n=Me.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function wf(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function gE(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function bE(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function wE(e,t,r){var n=Me.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function xE(e,t,r){var n=Me.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function OE(e,t,r){var n=oE.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function PE(e,t,r){var n=Me.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function SE(e,t,r){var n=Me.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function xf(e,t){return re(e.getDate(),t,2)}function AE(e,t){return re(e.getHours(),t,2)}function _E(e,t){return re(e.getHours()%12||12,t,2)}function $E(e,t){return re(1+ra.count(bt(e),e),t,3)}function rm(e,t){return re(e.getMilliseconds(),t,3)}function TE(e,t){return rm(e,t)+"000"}function ME(e,t){return re(e.getMonth()+1,t,2)}function jE(e,t){return re(e.getMinutes(),t,2)}function EE(e,t){return re(e.getSeconds(),t,2)}function CE(e){var t=e.getDay();return t===0?7:t}function IE(e,t){return re(Fi.count(bt(e)-1,e),t,2)}function nm(e){var t=e.getDay();return t>=4||t===0?Sr(e):Sr.ceil(e)}function NE(e,t){return e=nm(e),re(Sr.count(bt(e),e)+(bt(e).getDay()===4),t,2)}function DE(e){return e.getDay()}function kE(e,t){return re(Ha.count(bt(e)-1,e),t,2)}function RE(e,t){return re(e.getFullYear()%100,t,2)}function LE(e,t){return e=nm(e),re(e.getFullYear()%100,t,2)}function BE(e,t){return re(e.getFullYear()%1e4,t,4)}function WE(e,t){var r=e.getDay();return e=r>=4||r===0?Sr(e):Sr.ceil(e),re(e.getFullYear()%1e4,t,4)}function FE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function Of(e,t){return re(e.getUTCDate(),t,2)}function qE(e,t){return re(e.getUTCHours(),t,2)}function UE(e,t){return re(e.getUTCHours()%12||12,t,2)}function zE(e,t){return re(1+Wi.count(wt(e),e),t,3)}function am(e,t){return re(e.getUTCMilliseconds(),t,3)}function HE(e,t){return am(e,t)+"000"}function XE(e,t){return re(e.getUTCMonth()+1,t,2)}function VE(e,t){return re(e.getUTCMinutes(),t,2)}function KE(e,t){return re(e.getUTCSeconds(),t,2)}function GE(e){var t=e.getUTCDay();return t===0?7:t}function YE(e,t){return re(qi.count(wt(e)-1,e),t,2)}function im(e){var t=e.getUTCDay();return t>=4||t===0?Ar(e):Ar.ceil(e)}function JE(e,t){return e=im(e),re(Ar.count(wt(e),e)+(wt(e).getUTCDay()===4),t,2)}function ZE(e){return e.getUTCDay()}function QE(e,t){return re(Xa.count(wt(e)-1,e),t,2)}function eC(e,t){return re(e.getUTCFullYear()%100,t,2)}function tC(e,t){return e=im(e),re(e.getUTCFullYear()%100,t,2)}function rC(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function nC(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ar(e):Ar.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function aC(){return"+0000"}function Pf(){return"%"}function Sf(e){return+e}function Af(e){return Math.floor(+e/1e3)}var sr,om,um;iC({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
20ay","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 iC(e){return sr=iE(e),om=sr.format,sr.parse,um=sr.utcFormat,sr.utcParse,sr}function oC(e){return new Date(e)}function uC(e){return e instanceof Date?+e:+new Date(+e)}function Js(e,t,r,n,a,i,o,u,s,c){var f=Rs(),l=f.invert,d=f.domain,h=c(".%L"),p=c(":%S"),m=c("%I:%M"),y=c("%I %p"),b=c("%a %d"),x=c("%b %d"),w=c("%B"),P=c("%Y");function v(g){return(s(g)<g?h:u(g)<g?p:o(g)<g?m:i(g)<g?y:n(g)<g?a(g)<g?b:x:r(g)<g?w:P)(g)}return f.invert=function(g){return new Date(l(g))},f.domain=function(g){return arguments.length?d(Array.from(g,uC)):d().map(oC)},f.ticks=function(g){var O=d();return e(O[0],O[O.length-1],g??10)},f.tickFormat=function(g,O){return O==null?v:c(O)},f.nice=function(g){var O=d();return(!g||typeof g.range!="function")&&(g=t(O[0],O[O.length-1],g??10)),g?d(Vp(O,g)):f},f.copy=function(){return ta(f,Js(e,t,r,n,a,i,o,u,s,c))},f}function sC(){return Je.apply(Js(nE,aE,bt,Gs,Fi,ra,Vs,Hs,Ht,om).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function cC(){return Je.apply(Js(tE,rE,wt,Ys,qi,Wi,Ks,Xs,Ht,um).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ui(){var e=0,t=1,r,n,a,i,o=Ce,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(a===0?.5:(l=(i(l)-r)*a,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=i(e=+e),n=i(t=+t),a=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(d){var h,p;return arguments.length?([h,p]=d,o=l(h,p),c):[o(0),o(1)]}}return c.range=f(Vr),c.rangeRound=f(ks),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return i=l,r=l(e),n=l(t),a=r===n?0:1/(n-r),c}}function Ct(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sm(){var e=Et(Ui()(Ce));return e.copy=function(){return Ct(e,sm())},Pt.apply(e,arguments)}function cm(){var e=Ws(Ui()).domain([1,10]);return e.copy=function(){return Ct(e,cm()).base(e.base())},Pt.apply(e,arguments)}function lm(){var e=Fs(Ui());return e.copy=function(){return Ct(e,lm()).constant(e.constant())},Pt.apply(e,arguments)}function Zs(){var e=qs(Ui());return e.copy=function(){return Ct(e,Zs()).exponent(e.exponent())},Pt.apply(e,arguments)}function lC(){return Zs.apply(null,arguments).exponent(.5)}function fm(){var e=[],t=Ce;function r(n){if(n!=null&&!isNaN(n=+n))return t((Qn(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort($t),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>YM(e,i/n))},r.copy=function(){return fm(t).domain(e)},Pt.apply(r,arguments)}function zi(){var e=0,t=.5,r=1,n=1,a,i,o,u,s,c=Ce,f,l=!1,d;function h(m){return isNaN(m=+m)?d:(m=.5+((m=+f(m))-i)*(n*m<n*i?u:s),c(l?Math.max(0,Math.min(1,m)):m))}h.domain=function(m){return arguments.length?([e,t,r]=m,a=f(e=+e),i=f(t=+t),o=f(r=+r),u=a===i?0:.5/(i-a),s=i===o?0:.5/(o-i),n=i<a?-1:1,h):[e,t,r]},h.clamp=function(m){return arguments.length?(l=!!m,h):l},h.interpolator=function(m){return arguments.length?(c=m,h):c};function p(m){return function(y){var b,x,w;return arguments.length?([b,x,w]=y,c=Oj(m,[b,x,w]),h):[c(0),c(.5),c(1)]}}return h.range=p(Vr),h.rangeRound=p(ks),h.unknown=function(m){return arguments.length?(d=m,h):d},function(m){return f=m,a=m(e),i=m(t),o=m(r),u=a===i?0:.5/(i-a),s=i===o?0:.5/(o-i),n=i<a?-1:1,h}}function dm(){var e=Et(zi()(Ce));return e.copy=function(){return Ct(e,dm())},Pt.apply(e,arguments)}function hm(){var e=Ws(zi()).domain([.1,1,10]);return e.copy=function(){return Ct(e,hm()).base(e.base())},Pt.apply(e,arguments)}function pm(){var e=Fs(zi());return e.copy=function(){return Ct(e,pm()).constant(e.constant())},Pt.apply(e,arguments)}function Qs(){var e=qs(zi());return e.copy=function(){return Ct(e,Qs()).exponent(e.exponent())},Pt.apply(e,arguments)}function fC(){return Qs.apply(null,arguments).exponent(.5)}const _f=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:On,scaleDiverging:dm,scaleDivergingLog:hm,scaleDivergingPow:Qs,scaleDivergingSqrt:fC,scaleDivergingSymlog:pm,scaleIdentity:Xp,scaleImplicit:hu,scaleLinear:Ua,scaleLog:Kp,scaleOrdinal:Is,scalePoint:ln,scalePow:Us,scaleQuantile:Jp,scaleQuantize:Zp,scaleRadial:Yp,scaleSequential:sm,scaleSequentialLog:cm,scaleSequentialPow:Zs,scaleSequentialQuantile:fm,scaleSequentialSqrt:lC,scaleSequentialSymlog:lm,scaleSqrt:Hj,scaleSymlog:Gp,scaleThreshold:Qp,scaleTime:sC,scaleUtc:cC,tickFormat:Hp},Symbol.toStringTag,{value:"Module"}));var dC=Br;function hC(e,t,r){for(var n=-1,a=e.length;++n<a;){var i=e[n],o=t(i);if(o!=null&&(u===void 0?o===o&&!dC(o):r(o,u)))var u=o,s=i}return s}var Hi=hC;function pC(e,t){return e>t}
vendor: 61,159 bytes, lines 20-47
20var mm=pC,mC=Hi,vC=mm,yC=Xr;function gC(e){return e&&e.length?mC(e,yC,vC):void 0}var bC=gC;const Xi=ce(bC);function wC(e,t){return e<t}var vm=wC,xC=Hi,OC=vm,PC=Xr;function SC(e){return e&&e.length?xC(e,PC,OC):void 0}var AC=SC;const Vi=ce(AC);var _C=fs,$C=jt,TC=Sp,MC=Le;function jC(e,t){var r=MC(e)?_C:TC;return r(e,$C(t))}var EC=jC,CC=Op,IC=EC;function NC(e,t){return CC(IC(e,t),1)}var DC=NC;const kC=ce(DC);var RC=$s;function LC(e,t){return RC(e,t)}var BC=LC;const ec=ce(BC);var Kr=1e9,WC={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},rc,me=!0,Ge="[DecimalError] ",Qt=Ge+"Invalid argument: ",tc=Ge+"Exponent out of range: ",Gr=Math.floor,Ft=Math.pow,FC=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,We,_e=1e7,pe=7,ym=9007199254740991,Va=Gr(ym/pe),U={};U.absoluteValue=U.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};U.comparedTo=U.cmp=function(e){var t,r,n,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=n<a?n:a;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};U.decimalPlaces=U.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*pe;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};U.dividedBy=U.div=function(e){return yt(this,new this.constructor(e))};U.dividedToIntegerBy=U.idiv=function(e){var t=this,r=t.constructor;return se(yt(t,new r(e),0,1),r.precision)};U.equals=U.eq=function(e){return!this.cmp(e)};U.exponent=function(){return we(this)};U.greaterThan=U.gt=function(e){return this.cmp(e)>0};U.greaterThanOrEqualTo=U.gte=function(e){return this.cmp(e)>=0};U.isInteger=U.isint=function(){return this.e>this.d.length-2};U.isNegative=U.isneg=function(){return this.s<0};U.isPositive=U.ispos=function(){return this.s>0};U.isZero=function(){return this.s===0};U.lessThan=U.lt=function(e){return this.cmp(e)<0};U.lessThanOrEqualTo=U.lte=function(e){return this.cmp(e)<1};U.logarithm=U.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(We))throw Error(Ge+"NaN");if(r.s<1)throw Error(Ge+(r.s?"NaN":"-Infinity"));return r.eq(We)?new n(0):(me=!1,t=yt($n(r,i),$n(e,i),i),me=!0,se(t,a))};U.minus=U.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?wm(t,e):gm(t,(e.s=-e.s,e))};U.modulo=U.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(Ge+"NaN");return r.s?(me=!1,t=yt(r,e,0,1).times(e),me=!0,r.minus(t)):se(new n(r),a)};U.naturalExponential=U.exp=function(){return bm(this)};U.naturalLogarithm=U.ln=function(){return $n(this)};U.negated=U.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};U.plus=U.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?gm(t,e):wm(t,(e.s=-e.s,e))};U.precision=U.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Qt+e);if(t=we(a)+1,n=a.d.length-1,r=n*pe+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};U.squareRoot=U.sqrt=function(){var e,t,r,n,a,i,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(Ge+"NaN")}for(e=we(u),me=!1,a=Math.sqrt(+u),a==0||a==1/0?(t=at(u.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Gr((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(a.toString()),r=s.precision,a=o=r+3;;)if(i=n,n=i.plus(yt(u,i,o+2)).times(.5),at(i.d).slice(0,o)===(t=at(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(se(i,r+1,0),i.times(i).eq(u)){n=i;break}}else if(t!="9999")break;o+=4}return me=!0,se(n,r)};U.times=U.mul=function(e){var t,r,n,a,i,o,u,s,c,f=this,l=f.constructor,d=f.d,h=(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=d.length,c=h.length,s<c&&(i=d,d=h,h=i,o=s,s=c,c=o),i=[],o=s+c,n=o;n--;)i.push(0);for(n=c;--n>=0;){for(t=0,a=s+n;a>n;)u=i[a]+h[n]*d[a-n-1]+t,i[a--]=u%_e|0,t=u/_e|0;i[a]=(i[a]+t)%_e|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,me?se(e,l.precision):e};U.toDecimalPlaces=U.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(st(e,0,Kr),t===void 0?t=n.rounding:st(t,0,8),se(r,e+we(r)+1,t))};U.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=tr(n,!0):(st(e,0,Kr),t===void 0?t=a.rounding:st(t,0,8),n=se(new a(n),e+1,t),r=tr(n,!0,e+1)),r};U.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?tr(a):(st(e,0,Kr),t===void 0?t=i.rounding:st(t,0,8),n=se(new i(a),e+we(a)+1,t),r=tr(n.abs(),!1,e+we(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};U.toInteger=U.toint=function(){var e=this,t=e.constructor;return se(new t(e),we(e)+1,t.rounding)};U.toNumber=function(){return+this};U.toPower=U.pow=function(e){var t,r,n,a,i,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(Ge+"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,i=u.s,o){if((r=f<0?-f:f)<=ym){for(a=new s(We),t=Math.ceil(n/pe+4),me=!1;r%2&&(a=a.times(u),Tf(a.d,t)),r=Gr(r/2),r!==0;)u=u.times(u),Tf(u.d,t);return me=!0,e.s<0?new s(We).div(a):se(a,n)}}else if(i<0)throw Error(Ge+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,me=!1,a=e.times($n(u,n+c)),me=!0,a=bm(a),a.s=i,a};U.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=we(a),n=tr(a,r<=i.toExpNeg||r>=i.toExpPos)):(st(e,1,Kr),t===void 0?t=i.rounding:st(t,0,8),a=se(new i(a),e,t),r=we(a),n=tr(a,e<=r||r<=i.toExpNeg,e)),n};U.toSignificantDigits=U.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(st(e,1,Kr),t===void 0?t=n.rounding:st(t,0,8)),se(new n(r),e,t)};U.toString=U.valueOf=U.val=U.toJSON=U[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=we(e),r=e.constructor;return tr(e,t<=r.toExpNeg||t>=r.toExpPos)};function gm(e,t){var r,n,a,i,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),me?se(t,l):t;if(s=e.d,c=t.d,o=e.e,a=t.e,s=s.slice(),i=o-a,i){for(i<0?(n=s,i=-i,u=c.length):(n=c,a=o,u=s.length),o=Math.ceil(l/pe),u=o>u?o+1:u+1,i>u&&(i=u,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(u=s.length,i=c.length,u-i<0&&(i=u,n=c,c=s,s=n),r=0;i;)r=(s[--i]=s[i]+c[i]+r)/_e|0,s[i]%=_e;for(r&&(s.unshift(r),++a),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=a,me?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,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;t<a;t++)n=e[t]+"",r=pe-n.length,r&&(i+=_t(r)),i+=n;o=e[t],n=o+"",r=pe-n.length,r&&(i+=_t(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var yt=function(){function e(n,a){var i,o=0,u=n.length;for(n=n.slice();u--;)i=n[u]*a+o,n[u]=i%_e|0,o=i/_e|0;return o&&n.unshift(o),n}function t(n,a,i,o){var u,s;if(i!=o)s=i>o?1:-1;else for(u=s=0;u<i;u++)if(n[u]!=a[u]){s=n[u]>a[u]?1:-1;break}return s}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]<a[i]?1:0,n[i]=o*_e+n[i]-a[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,a,i,o){var u,s,c,f,l,d,h,p,m,y,b,x,w,P,v,g,O,S,_=n.constructor,j=n.s==a.s?1:-1,$=n.d,T=a.d;if(!n.s)return new _(n);if(!a.s)throw Error(Ge+"Division by zero");for(s=n.e-a.e,O=T.length,v=$.length,h=new _(j),p=h.d=[],c=0;T[c]==($[c]||0);)++c;if(T[c]>($[c]||0)&&--s,i==null?x=i=_.precision:o?x=i+(we(n)-we(a))+1:x=i,x<0)return new _(0);if(x=x/pe+2|0,c=0,O==1)for(f=0,T=T[0],x++;(c<v||f)&&x--;c++)w=f*_e+($[c]||0),p[c]=w/T|0,f=w%T|0;else{for(f=_e/(T[0]+1)|0,f>1&&(T=e(T,f),$=e($,f),O=T.length,v=$.length),P=O,m=$.slice(0,O),y=m.length;y<O;)m[y++]=0;S=T.slice(),S.unshift(0),g=T[0],T[1]>=_e/2&&++g;do f=0,u=t(T,m,O,y),u<0?(b=m[0],O!=y&&(b=b*_e+(m[1]||0)),f=b/g|0,f>1?(f>=_e&&(f=_e-1),l=e(T,f),d=l.length,y=m.length,u=t(l,m,d,y),u==1&&(f--,r(l,O<d?S:T,d))):(f==0&&(u=f=1),l=T.slice()),d=l.length,d<y&&l.unshift(0),r(m,l,y),u==-1&&(y=m.length,u=t(T,m,O,y),u<1&&(f++,r(m,O<y?S:T,y))),y=m.length):u===0&&(f++,m=[0]),p[c++]=f,u&&m[0]?m[y++]=$[P]||0:(m=[$[P]],y=1);while((P++<v||m[0]!==void 0)&&x--)}return p[0]||p.shift(),h.e=s,se(h,o?i+we(h)+1:i)}}();function bm(e,t){var r,n,a,i,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(we(e)>16)throw Error(tc+we(e));if(!e.s)return new f(We);for(t==null?(me=!1,u=l):u=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Ft(2,c))/Math.LN10*2+5|0,u+=n,r=a=i=new f(We),f.precision=u;;){if(a=se(a.times(e),u),r=r.times(++s),o=i.plus(yt(a,r,u)),at(o.d).slice(0,u)===at(i.d).slice(0,u)){for(;c--;)i=se(i.times(i),u);return f.precision=l,t==null?(me=!0,se(i,l)):i}i=o}}function we(e){for(var t=e.e*pe,r=e.d[0];r>=10;r/=10)t++;return t}function To(e,t,r){if(t>e.LN10.sd())throw me=!0,r&&(e.precision=r),Error(Ge+"LN10 precision limit exceeded");return se(new e(e.LN10),t)}function _t(e){for(var t="";e--;)t+="0";return t}function $n(e,t){var r,n,a,i,o,u,s,c,f,l=1,d=10,h=e,p=h.d,m=h.constructor,y=m.precision;if(h.s<1)throw Error(Ge+(h.s?"NaN":"-Infinity"));if(h.eq(We))return new m(0);if(t==null?(me=!1,c=y):c=t,h.eq(10))return t==null&&(me=!0),To(m,c);if(c+=d,m.precision=c,r=at(p),n=r.charAt(0),i=we(h),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=at(h.d),n=r.charAt(0),l++;i=we(h),n>1?(h=new m("0."+r),i++):h=new m(n+"."+r.slice(1))}else return s=To(m,c+2,y).times(i+""),h=$n(new m(n+"."+r.slice(1)),c-d).plus(s),m.precision=y,t==null?(me=!0,se(h,y)):h;for(u=o=h=yt(h.minus(We),h.plus(We),c),f=se(h.times(h),c),a=3;;){if(o=se(o.times(f),c),s=u.plus(yt(o,new m(a),c)),at(s.d).slice(0,c)===at(u.d).slice(0,c))return u=u.times(2),i!==0&&(u=u.plus(To(m,c+2,y).times(i+""))),u=yt(u,new m(l),c),m.precision=y,t==null?(me=!0,se(u,y)):u;u=s,a+=2}}function $f(e,t){var r,n,a;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(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=Gr(r/pe),e.d=[],n=(r+1)%pe,r<0&&(n+=pe),n<a){for(n&&e.d.push(+t.slice(0,n)),a-=pe;n<a;)e.d.push(+t.slice(n,n+=pe));t=t.slice(n),n=pe-t.length}else n-=a;for(;n--;)t+="0";if(e.d.push(+t),me&&(e.e>Va||e.e<-Va))throw Error(tc+r)}else e.s=0,e.e=0,e.d=[0];return e}function se(e,t,r){var n,a,i,o,u,s,c,f,l=e.d;for(o=1,i=l[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=pe,a=t,c=l[f=0];else{if(f=Math.ceil((n+1)/pe),i=l.length,f>=i)return e;for(c=i=l[f],o=1;i>=10;i/=10)o++;n%=pe,a=n-pe+o}if(r!==void 0&&(i=Ft(10,o-a-1),u=c/i%10|0,s=t<0||l[f+1]!==void 0||c%i,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?a>0?c/Ft(10,o-a):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(i=we(e),l.length=1,t=t-i-1,l[0]=Ft(10,(pe-t%pe)%pe),e.e=Gr(-t/pe)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,i=1,f--):(l.length=f+1,i=Ft(10,pe-n),l[f]=a>0?(c/Ft(10,o-a)%Ft(10,a)|0)*i:0),s)for(;;)if(f==0){(l[0]+=i)==_e&&(l[0]=1,++e.e);break}else{if(l[f]+=i,l[f]!=_e)break;l[f--]=0,i=1}for(n=l.length;l[--n]===0;)l.pop();if(me&&(e.e>Va||e.e<-Va))throw Error(tc+we(e));return e}function wm(e,t){var r,n,a,i,o,u,s,c,f,l,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),me?se(t,h):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),a=Math.max(Math.ceil(h/pe),u)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=s.length,u=l.length,f=a<u,f&&(u=a),a=0;a<u;a++)if(s[a]!=l[a]){f=s[a]<l[a];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,a=l.length-u;a>0;--a)s[u++]=0;for(a=l.length;a>o;){if(s[--a]<l[a]){for(i=a;i&&s[--i]===0;)s[i]=_e-1;--s[i],s[a]+=_e}s[a]-=l[a]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,me?se(t,h):t):new d(0)}function tr(e,t,r){var n,a=we(e),i=at(e.d),o=i.length;return t?(r&&(n=r-o)>0?i=i.charAt(0)+"."+i.slice(1)+_t(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+_t(-a-1)+i,r&&(n=r-o)>0&&(i+=_t(n))):a>=o?(i+=_t(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+_t(n))):((n=a+1)<o&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-o)>0&&(a+1===o&&(i+="."),i+=_t(n))),e.s<0?"-"+i:i}function Tf(e,t){if(e.length>t)return e.length=t,!0}function xm(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Qt+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return $f(o,i.toString())}else if(typeof i!="string")throw Error(Qt+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,FC.test(i))$f(o,i);else throw Error(Qt+i)}if(a.prototype=U,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=xm,a.config=a.set=qC,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 a.config(e),a}function qC(e){if(!e||typeof e!="object")throw Error(Ge+"Object expected");var t,r,n,a=["precision",1,Kr,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((n=e[r=a[t]])!==void 0)if(Gr(n)===n&&n>=a[t+1]&&n<=a[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 rc=xm(WC);We=new rc(1);const ue=rc;function UC(e){return VC(e)||XC(e)||HC(e)||zC()}function zC(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HC(e,t){if(e){if(typeof e=="string")return yu(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 yu(e,t)}}function XC(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function VC(e){if(Array.isArray(e))return yu(e)}function yu(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 KC=function(t){return t},Om={"@@functional/placeholder":!0},Pm=function(t){return t===Om},Mf=function(t){return function r(){return arguments.length===0||arguments.length===1&&Pm(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},GC=function e(t,r){return t===1?r:Mf(function(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];var o=a.filter(function(u){return u!==Om}).length;return o>=t?r.apply(void 0,a):e(t-o,Mf(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var f=a.map(function(l){return Pm(l)?s.shift():l});return r.apply(void 0,UC(f).concat(s))}))})},Ki=function(t){return GC(t.length,t)},gu=function(t,r){for(var n=[],a=t;a<r;++a)n[a-t]=a;return n},YC=Ki(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),JC=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return KC;var a=r.reverse(),i=a[0],o=a.slice(1);return function(){return o.reduce(function(u,s){return s(u)},i.apply(void 0,arguments))}},bu=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Sm=function(t){var r=null,n=null;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r&&i.every(function(u,s){return u===r[s]})||(r=i,n=t.apply(void 0,i)),n}};function ZC(e){var t;return e===0?t=1:t=Math.floor(new ue(e).abs().log(10).toNumber())+1,t}function QC(e,t,r){for(var n=new ue(e),a=0,i=[];n.lt(t)&&a<1e5;)i.push(n.toNumber()),n=n.add(r),a++;return i}var e2=Ki(function(e,t,r){var n=+e,a=+t;return n+r*(a-n)}),t2=Ki(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),r2=Ki(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Gi={rangeStep:QC,getDigitCount:ZC,interpolateNumber:e2,uninterpolateNumber:t2,uninterpolateTruncation:r2};function wu(e){return i2(e)||a2(e)||Am(e)||n2()}function n2(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a2(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function i2(e){if(Array.isArray(e))return xu(e)}function Tn(e,t){return s2(e)||u2(e,t)||Am(e,t)||o2()}function o2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 23In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Am(e,t){if(e){if(typeof e=="string")return xu(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 xu(e,t)}}function xu(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 u2(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,i=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){a=!0,i=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function s2(e){if(Array.isArray(e))return e}function _m(e){var t=Tn(e,2),r=t[0],n=t[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function $m(e,t,r){if(e.lte(0))return new ue(0);var n=Gi.getDigitCount(e.toNumber()),a=new ue(10).pow(n),i=e.div(a),o=n!==1?.05:.1,u=new ue(Math.ceil(i.div(o).toNumber())).add(r).mul(o),s=u.mul(a);return t?s:new ue(Math.ceil(s))}function c2(e,t,r){var n=1,a=new ue(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new ue(10).pow(Gi.getDigitCount(e)-1),a=new ue(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new ue(Math.floor(e)))}else e===0?a=new ue(Math.floor((t-1)/2)):r||(a=new ue(Math.floor(e)));var o=Math.floor((t-1)/2),u=JC(YC(function(s){return a.add(new ue(s-o).mul(n)).toNumber()}),gu);return u(0,t)}function Tm(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ue(0),tickMin:new ue(0),tickMax:new ue(0)};var i=$m(new ue(t).sub(e).div(r-1),n,a),o;e<=0&&t>=0?o=new ue(0):(o=new ue(e).add(t).div(2),o=o.sub(new ue(o).mod(i)));var u=Math.ceil(o.sub(e).div(i).toNumber()),s=Math.ceil(new ue(t).sub(o).div(i).toNumber()),c=u+s+1;return c>r?Tm(e,t,r,n,a+1):(c<r&&(s=t>0?s+(r-c):s,u=t>0?u:u+(r-c)),{step:i,tickMin:o.sub(new ue(u).mul(i)),tickMax:o.add(new ue(s).mul(i))})}function l2(e){var t=Tn(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),u=_m([r,n]),s=Tn(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(wu(gu(0,a-1).map(function(){return 1/0}))):[].concat(wu(gu(0,a-1).map(function(){return-1/0})),[f]);return r>n?bu(l):l}if(c===f)return c2(c,a,i);var d=Tm(c,f,o,i),h=d.step,p=d.tickMin,m=d.tickMax,y=Gi.rangeStep(p,m.add(new ue(.1).mul(h)),h);return r>n?bu(y):y}function f2(e,t){var r=Tn(e,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=_m([n,a]),u=Tn(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,a];if(s===c)return[s];var f=Math.max(t,2),l=$m(new ue(c).sub(s).div(f-1),i,0),d=[].concat(wu(Gi.rangeStep(new ue(s),new ue(c).sub(new ue(.99).mul(l)),l)),[c]);return n>a?bu(d):d}var d2=Sm(l2),h2=Sm(f2),p2="Invariant failed";function _r(e,t){throw new Error(p2)}var m2=["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 Ka(){return Ka=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},Ka.apply(this,arguments)}function v2(e,t){return w2(e)||b2(e,t)||g2(e,t)||y2()}function y2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 24In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g2(e,t){if(e){if(typeof e=="string")return jf(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 jf(e,t)}}function jf(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 b2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,u=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,a=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}function w2(e){if(Array.isArray(e))return e}function x2(e,t){if(e==null)return{};var r=O2(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function O2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function P2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S2(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,Em(n.key),n)}}function A2(e,t,r){return t&&S2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _2(e,t,r){return t=Ga(t),$2(e,Mm()?Reflect.construct(t,r||[],Ga(e).constructor):t.apply(e,r))}function $2(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 T2(e)}function T2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mm=function(){return!!e})()}function Ga(e){return Ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ga(e)}function M2(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&&Ou(e,t)}function Ou(e,t){return Ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ou(e,t)}function jm(e,t,r){return t=Em(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Em(e){var t=j2(e,"string");return $r(t)=="symbol"?t:t+""}function j2(e,t){if($r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nc=function(e){function t(){return P2(this,t),_2(this,t,arguments)}return M2(t,e),A2(t,[{key:"render",value:function(){var n=this.props,a=n.offset,i=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,d=x2(n,m2),h=G(d,!1);this.props.direction==="x"&&f.type!=="number"&&_r();var p=s.map(function(m){var y=c(m,u),b=y.x,x=y.y,w=y.value,P=y.errorVal;if(!P)return null;var v=[],g,O;if(Array.isArray(P)){var S=v2(P,2);g=S[0],O=S[1]}else g=O=P;if(i==="vertical"){var _=f.scale,j=x+a,$=j+o,T=j-o,E=_(w-g),I=_(w+O);v.push({x1:I,y1:$,x2:I,y2:T}),v.push({x1:E,y1:j,x2:I,y2:j}),v.push({x1:E,y1:$,x2:E,y2:T})}else if(i==="horizontal"){var C=l.scale,D=b+a,R=D-o,B=D+o,F=C(w-g),X=C(w+O);v.push({x1:R,y1:X,x2:B,y2:X}),v.push({x1:D,y1:F,x2:D,y2:X}),v.push({x1:R,y1:F,x2:B,y2:F})}return A.createElement(ge,Ka({className:"recharts-errorBar",key:"bar-".concat(v.map(function(V){return"".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))},h),v.map(function(V){return A.createElement("line",Ka({},V,{key:"line-".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))}))});return A.createElement(ge,{className:"recharts-errorBars"},p)}}])}(A.Component);jm(nc,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});jm(nc,"displayName","ErrorBar");function Mn(e){"@babel/helpers - typeof";return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(e)}function Ef(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function kt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ef(Object(r),!0).forEach(function(n){E2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ef(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E2(e,t,r){return t=C2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C2(e){var t=I2(e,"string");return Mn(t)=="symbol"?t:t+""}function I2(e,t){if(Mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cm=function(t){var r=t.children,n=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=He(r,Yt);if(!o)return null;var u=Yt.defaultProps,s=u!==void 0?kt(kt({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:i==="children"?c=(n||[]).reduce(function(f,l){var d=l.item,h=l.props,p=h.sectors||h.data||[];return f.concat(p.map(function(m){return{type:o.props.iconType||d.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):c=(n||[]).map(function(f){var l=f.item,d=l.type.defaultProps,h=d!==void 0?kt(kt({},d),l.props):{},p=h.dataKey,m=h.name,y=h.legendType,b=h.hide;return{inactive:b,dataKey:p,type:s.iconType||y||"square",color:ac(l),value:m||p,payload:h}}),kt(kt(kt({},s),Yt.getWithHeight(o,a)),{},{payload:c,item:o})};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 Cf(e){return R2(e)||k2(e)||D2(e)||N2()}function N2(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 25In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D2(e,t){if(e){if(typeof e=="string")return Pu(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 Pu(e,t)}}function k2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function R2(e){if(Array.isArray(e))return Pu(e)}function Pu(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 If(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?If(Object(r),!0).forEach(function(n){mr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):If(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mr(e,t,r){return t=L2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L2(e){var t=B2(e,"string");return jn(t)=="symbol"?t:t+""}function B2(e,t){if(jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fe(e,t,r){return Q(e)||Q(t)?r:Se(t)?tt(e,t,r):Z(t)?t(e):r}function fn(e,t,r,n){var a=kC(e,function(u){return Fe(u,t)});if(r==="number"){var i=a.filter(function(u){return q(u)||parseFloat(u)});return i.length?[Vi(i),Xi(i)]:[1/0,-1/0]}var o=n?a.filter(function(u){return!Q(u)}):a;return o.map(function(u){return Se(u)||u instanceof Date?u:""})}var W2=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=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(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var s=i.range,c=0;c<u;c++){var f=c>0?a[c-1].coordinate:a[u-1].coordinate,l=a[c].coordinate,d=c>=u-1?a[0].coordinate:a[c+1].coordinate,h=void 0;if(Ve(l-f)!==Ve(d-l)){var p=[];if(Ve(d-l)===Ve(s[1]-s[0])){h=d;var m=l+s[1]-s[0];p[0]=Math.min(m,(m+f)/2),p[1]=Math.max(m,(m+f)/2)}else{h=f;var y=d+s[1]-s[0];p[0]=Math.min(l,(y+l)/2),p[1]=Math.max(l,(y+l)/2)}var b=[Math.min(l,(h+l)/2),Math.max(l,(h+l)/2)];if(t>b[0]&&t<=b[1]||t>=p[0]&&t<=p[1]){o=a[c].index;break}}else{var x=Math.min(f,d),w=Math.max(f,d);if(t>(x+l)/2&&t<=(w+l)/2){o=a[c].index;break}}}else for(var P=0;P<u;P++)if(P===0&&t<=(n[P].coordinate+n[P+1].coordinate)/2||P>0&&P<u-1&&t>(n[P].coordinate+n[P-1].coordinate)/2&&t<=(n[P].coordinate+n[P+1].coordinate)/2||P===u-1&&t>(n[P].coordinate+n[P-1].coordinate)/2){o=n[P].index;break}return o},ac=function(t){var r,n=t,a=n.type.displayName,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,o=i.stroke,u=i.fill,s;switch(a){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},F2=function(t){var r=t.barSize,n=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var o={},u=Object.keys(i),s=0,c=u.length;s<c;s++)for(var f=i[u[s]].stackGroups,l=Object.keys(f),d=0,h=l.length;d<h;d++){var p=f[l[d]],m=p.items,y=p.cateAxisId,b=m.filter(function(O){return mt(O.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?ye(ye({},x),b[0].props):b[0].props,P=w.barSize,v=w[y];o[v]||(o[v]=[]);var g=Q(P)?r:P;o[v].push({item:b[0],stackList:b.slice(1),barSize:Q(g)?void 0:ke(g,n,0)})}}return o},q2=function(t){var r=t.barGap,n=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=ke(r,a,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=a/s,p=o.reduce(function(P,v){return P+v.barSize||0},0);p+=(s-1)*c,p>=a&&(p-=(s-1)*c,c=0),p>=a&&h>0&&(d=!0,h*=.9,p=s*h);var m=(a-p)/2>>0,y={offset:m-c,size:0};f=o.reduce(function(P,v){var g={item:v.item,position:{offset:y.offset+y.size+c,size:d?h:v.barSize}},O=[].concat(Cf(P),[g]);return y=O[O.length-1].position,v.stackList&&v.stackList.length&&v.stackList.forEach(function(S){O.push({item:S,position:y})}),O},l)}else{var b=ke(n,a,0,!0);a-2*b-(s-1)*c<=0&&(c=0);var x=(a-2*b-(s-1)*c)/s;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(P,v,g){var O=[].concat(Cf(P),[{item:v.item,position:{offset:b+(x+c)*g+(x-w)/2,size:w}}]);return v.stackList&&v.stackList.length&&v.stackList.forEach(function(S){O.push({item:S,position:O[O.length-1].position})}),O},l)}return f},U2=function(t,r,n,a){var i=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=Cm({children:i,legendWidth:s});if(c){var f=a||{},l=f.width,d=f.height,h=c.align,p=c.verticalAlign,m=c.layout;if((m==="vertical"||m==="horizontal"&&p==="middle")&&h!=="center"&&q(t[h]))return ye(ye({},t),{},mr({},h,t[h]+(l||0)));if((m==="horizontal"||m==="vertical"&&h==="center")&&p!=="middle"&&q(t[p]))return ye(ye({},t),{},mr({},p,t[p]+(d||0)))}return t},z2=function(t,r,n){return Q(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Im=function(t,r,n,a,i){var o=r.props.children,u=it(o,nc).filter(function(c){return z2(a,i,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=Fe(f,n);if(Q(l))return c;var d=Array.isArray(l)?[Vi(l),Xi(l)]:[l,l],h=s.reduce(function(p,m){var y=Fe(f,m,0),b=d[0]-Math.abs(Array.isArray(y)?y[0]:y),x=d[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(b,p[0]),Math.max(x,p[1])]},[1/0,-1/0]);return[Math.min(h[0],c[0]),Math.max(h[1],c[1])]},[1/0,-1/0])}return null},H2=function(t,r,n,a,i){var o=r.map(function(u){return Im(t,u,n,i,a)}).filter(function(u){return!Q(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},Nm=function(t,r,n,a,i){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&Im(t,s,c,a)||fn(t,c,n,i)});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},[])},Dm=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},sn=function(t,r,n){if(!t)return null;var a=t.scale,i=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,c=(r||n)&&o==="category"&&a.bandwidth?a.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Ve(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var d=i?i.indexOf(l):l;return{coordinate:a(d)+c,value:l,offset:c}});return f.filter(function(l){return!Zn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,d){return{coordinate:a(l)+c,value:l,index:d,offset:c}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(l){return{coordinate:a(l)+c,value:l,offset:c}}):a.domain().map(function(l,d){return{coordinate:a(l)+c,value:i?i[l]:l,index:d,offset:c}})},Mo=new WeakMap,ha=function(t,r){if(typeof r!="function")return t;Mo.has(t)||Mo.set(t,new WeakMap);var n=Mo.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},X2=function(t,r,n){var a=t.scale,i=t.type,o=t.layout,u=t.axisType;if(a==="auto")return o==="radial"&&u==="radiusAxis"?{scale:On(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Ua(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:ln(),realScaleType:"point"}:i==="category"?{scale:On(),realScaleType:"band"}:{scale:Ua(),realScaleType:"linear"};if(Jn(a)){var s="scale".concat(Ci(a));return{scale:(_f[s]||ln)(),realScaleType:_f[s]?s:"point"}}return Z(a)?{scale:a}:{scale:ln(),realScaleType:"point"}},Nf=1e-4,V2=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),i=Math.min(a[0],a[1])-Nf,o=Math.max(a[0],a[1])+Nf,u=t(r[0]),s=t(r[n-1]);(u<i||u>o||s<i||s>o)&&t.domain([r[0],r[n-1]])}},K2=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var i=0,o=0,u=0;u<r;++u){var s=Zn(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=i,t[u][n][1]=i+s,i=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},G2=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var i=0,o=0;o<r;++o){var u=Zn(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=i,t[o][n][1]=i+u,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},Y2={sign:K2,expand:hx,none:yr,silhouette:px,wiggle:mx,positive:G2},J2=function(t,r,n){var a=r.map(function(u){return u.props.dataKey}),i=Y2[n],o=dx().keys(a).value(function(u,s){return+Fe(u,s,0)}).order(Ko).offset(i);return o(t)},Z2=function(t,r,n,a,i,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,d){var h,p=(h=d.type)!==null&&h!==void 0&&h.defaultProps?ye(ye({},d.type.defaultProps),d.props):d.props,m=p.stackId,y=p.hide;if(y)return l;var b=p[n],x=l[b]||{hasStack:!1,stackGroups:{}};if(Se(m)){var w=x.stackGroups[m]||{numericAxisId:n,cateAxisId:a,items:[]};w.items.push(d),x.hasStack=!0,x.stackGroups[m]=w}else x.stackGroups[ji("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[d]};return ye(ye({},l),{},mr({},b,x))},s),f={};return Object.keys(c).reduce(function(l,d){var h=c[d];if(h.hasStack){var p={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(m,y){var b=h.stackGroups[y];return ye(ye({},m),{},mr({},y,{numericAxisId:n,cateAxisId:a,items:b.items,stackedData:J2(t,b.items,i)}))},p)}return ye(ye({},l),{},mr({},d,h))},f)},Q2=function(t,r){var n=r.realScaleType,a=r.type,i=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=d2(c,i,u);return t.domain([Vi(f),Xi(f)]),{niceTicks:f}}if(i&&a==="number"){var l=t.domain(),d=h2(l,i,u);return{niceTicks:d}}return null},eI=function(t,r){var n,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(Se(i)){var o=r[i];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},tI=function(t){return t.reduce(function(r,n){return[Vi(n.concat([r[0]]).filter(q)),Xi(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},km=function(t,r,n){return Object.keys(t).reduce(function(a,i){var o=t[i],u=o.stackedData,s=u.reduce(function(c,f){var l=tI(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],a[0]),Math.max(s[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},Df=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,kf=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Su=function(t,r,n){if(Z(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(q(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(Df.test(t[0])){var i=+Df.exec(t[0])[1];a[0]=r[0]-i}else Z(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(q(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(kf.test(t[1])){var o=+kf.exec(t[1])[1];a[1]=r[1]+o}else Z(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},Au=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!n||a>0)return a}if(t&&r&&r.length>=2){for(var i=Ms(r,function(l){return l.coordinate}),o=1/0,u=1,s=i.length;u<s;u++){var c=i[u],f=i[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Rf=function(t,r,n){return!t||!t.length||ec(t,tt(n,"type.defaultProps.domain"))?r:t},rI=function(t,r){var n=t.type.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,a=n.dataKey,i=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return ye(ye({},G(t,!1)),{},{dataKey:a,unit:o,formatter:u,name:i||a,color:ac(t),value:Fe(r,a),type:s,payload:r,chartType:c,hide:f})};function En(e){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(e)}function Lf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?Lf(Object(r),!0).forEach(function(n){Rm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rm(e,t,r){return t=nI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nI(e){var t=aI(e,"string");return En(t)=="symbol"?t:t+""}function aI(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iI(e,t){return cI(e)||sI(e,t)||uI(e,t)||oI()}function oI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 26In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uI(e,t){if(e){if(typeof e=="string")return Bf(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 Bf(e,t)}}function Bf(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,a,i,o,u=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,a=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}function cI(e){if(Array.isArray(e))return e}var Ya=Math.PI/180,lI=function(t){return t*180/Math.PI},de=function(t,r,n,a){return{x:t+Math.cos(-Ya*a)*n,y:r+Math.sin(-Ya*a)*n}},Lm=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},fI=function(t,r,n,a,i){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),d=Lm(o,u,n),h=ke(t.innerRadius,d,0),p=ke(t.outerRadius,d,d*.8),m=Object.keys(r);return m.reduce(function(y,b){var x=r[b],w=x.domain,P=x.reversed,v;if(Q(x.range))a==="angleAxis"?v=[s,c]:a==="radiusAxis"&&(v=[h,p]),P&&(v=[v[1],v[0]]);else{v=x.range;var g=v,O=iI(g,2);s=O[0],c=O[1]}var S=X2(x,i),_=S.realScaleType,j=S.scale;j.domain(w).range(v),V2(j);var $=Q2(j,ft(ft({},x),{},{realScaleType:_})),T=ft(ft(ft({},x),$),{},{range:v,radius:p,realScaleType:_,scale:j,cx:f,cy:l,innerRadius:h,outerRadius:p,startAngle:s,endAngle:c});return ft(ft({},y),{},Rm({},b,T))},{})},dI=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(a-o,2))},hI=function(t,r){var n=t.x,a=t.y,i=r.cx,o=r.cy,u=dI({x:n,y:a},{x:i,y:o});if(u<=0)return{radius:u};var s=(n-i)/u,c=Math.acos(s);return a>o&&(c=2*Math.PI-c),{radius:u,angle:lI(c),angleInRadian:c}},pI=function(t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(a,i);return{startAngle:r-o*360,endAngle:n-o*360}},mI=function(t,r){var n=r.startAngle,a=r.endAngle,i=Math.floor(n/360),o=Math.floor(a/360),u=Math.min(i,o);return t+u*360},Wf=function(t,r){var n=t.x,a=t.y,i=hI({x:n,y:a},r),o=i.radius,u=i.angle,s=r.innerRadius,c=r.outerRadius;if(o<s||o>c)return!1;if(o===0)return!0;var f=pI(r),l=f.startAngle,d=f.endAngle,h=u,p;if(l<=d){for(;h>d;)h-=360;for(;h<l;)h+=360;p=h>=l&&h<=d}else{for(;h>l;)h-=360;for(;h<d;)h+=360;p=h>=d&&h<=l}return p?ft(ft({},r),{},{radius:o,angle:mI(h,r)}):null},Bm=function(t){return!L.isValidElement(t)&&!Z(t)&&typeof t!="boolean"?t.className:""};function Cn(e){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cn(e)}var vI=["offset"];function yI(e){return xI(e)||wI(e)||bI(e)||gI()}function gI(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 27In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bI(e,t){if(e){if(typeof e=="string")return _u(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 _u(e,t)}}function wI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xI(e){if(Array.isArray(e))return _u(e)}function _u(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 OI(e,t){if(e==null)return{};var r=PI(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function PI(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 Ff(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ff(Object(r),!0).forEach(function(n){SI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ff(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SI(e,t,r){return t=AI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AI(e){var t=_I(e,"string");return Cn(t)=="symbol"?t:t+""}function _I(e,t){if(Cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function In(){return In=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},In.apply(this,arguments)}var $I=function(t){var r=t.value,n=t.formatter,a=Q(t.children)?r:t.children;return Z(n)?n(a):a},TI=function(t,r){var n=Ve(r-t),a=Math.min(Math.abs(r-t),360);return n*a},MI=function(t,r,n){var a=t.position,i=t.viewBox,o=t.offset,u=t.className,s=i,c=s.cx,f=s.cy,l=s.innerRadius,d=s.outerRadius,h=s.startAngle,p=s.endAngle,m=s.clockWise,y=(l+d)/2,b=TI(h,p),x=b>=0?1:-1,w,P;a==="insideStart"?(w=h+x*o,P=m):a==="insideEnd"?(w=p-x*o,P=!m):a==="end"&&(w=p+x*o,P=m),P=b<=0?P:!P;var v=de(c,f,y,w),g=de(c,f,y,w+(P?1:-1)*359),O="M".concat(v.x,",").concat(v.y,` 28 A`).concat(y,",").concat(y,",0,1,").concat(P?0:1,`, 29 `).concat(g.x,",").concat(g.y),S=Q(t.id)?ji("recharts-radial-line-"):t.id;return A.createElement("text",In({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",u)}),A.createElement("defs",null,A.createElement("path",{id:S,d:O})),A.createElement("textPath",{xlinkHref:"#".concat(S)},r))},jI=function(t){var r=t.viewBox,n=t.offset,a=t.position,i=r,o=i.cx,u=i.cy,s=i.innerRadius,c=i.outerRadius,f=i.startAngle,l=i.endAngle,d=(f+l)/2;if(a==="outside"){var h=de(o,u,c+n,d),p=h.x,m=h.y;return{x:p,y:m,textAnchor:p>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var y=(s+c)/2,b=de(o,u,y,d),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},EI=function(t){var r=t.viewBox,n=t.parentViewBox,a=t.offset,i=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,d=l*a,h=l>0?"end":"start",p=l>0?"start":"end",m=c>=0?1:-1,y=m*a,b=m>0?"end":"start",x=m>0?"start":"end";if(i==="top"){var w={x:u+c/2,y:s-l*a,textAnchor:"middle",verticalAnchor:h};return Pe(Pe({},w),n?{height:Math.max(s-n.y,0),width:c}:{})}if(i==="bottom"){var P={x:u+c/2,y:s+f+d,textAnchor:"middle",verticalAnchor:p};return Pe(Pe({},P),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(i==="left"){var v={x:u-y,y:s+f/2,textAnchor:b,verticalAnchor:"middle"};return Pe(Pe({},v),n?{width:Math.max(v.x-n.x,0),height:f}:{})}if(i==="right"){var g={x:u+c+y,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return Pe(Pe({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:f}:{})}var O=n?{width:c,height:f}:{};return i==="insideLeft"?Pe({x:u+y,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},O):i==="insideRight"?Pe({x:u+c-y,y:s+f/2,textAnchor:b,verticalAnchor:"middle"},O):i==="insideTop"?Pe({x:u+c/2,y:s+d,textAnchor:"middle",verticalAnchor:p},O):i==="insideBottom"?Pe({x:u+c/2,y:s+f-d,textAnchor:"middle",verticalAnchor:h},O):i==="insideTopLeft"?Pe({x:u+y,y:s+d,textAnchor:x,verticalAnchor:p},O):i==="insideTopRight"?Pe({x:u+c-y,y:s+d,textAnchor:b,verticalAnchor:p},O):i==="insideBottomLeft"?Pe({x:u+y,y:s+f-d,textAnchor:x,verticalAnchor:h},O):i==="insideBottomRight"?Pe({x:u+c-y,y:s+f-d,textAnchor:b,verticalAnchor:h},O):Wr(i)&&(q(i.x)||Ut(i.x))&&(q(i.y)||Ut(i.y))?Pe({x:u+ke(i.x,c),y:s+ke(i.y,f),textAnchor:"end",verticalAnchor:"end"},O):Pe({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},CI=function(t){return"cx"in t&&q(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=OI(e,vI),a=Pe({offset:r},n),i=a.viewBox,o=a.position,u=a.value,s=a.children,c=a.content,f=a.className,l=f===void 0?"":f,d=a.textBreakAll;if(!i||Q(u)&&Q(s)&&!L.isValidElement(c)&&!Z(c))return null;if(L.isValidElement(c))return L.cloneElement(c,a);var h;if(Z(c)){if(h=L.createElement(c,a),L.isValidElement(h))return h}else h=$I(a);var p=CI(i),m=G(a,!0);if(p&&(o==="insideStart"||o==="insideEnd"||o==="end"))return MI(a,h,m);var y=p?jI(a):EI(a);return A.createElement(Or,In({className:te("recharts-label",l)},m,y,{breakAll:d}),h)}Ee.displayName="Label";var Wm=function(t){var r=t.cx,n=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,d=t.y,h=t.top,p=t.left,m=t.width,y=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(q(m)&&q(y)){if(q(l)&&q(d))return{x:l,y:d,width:m,height:y};if(q(h)&&q(p))return{x:h,y:p,width:m,height:y}}return q(l)&&q(d)?{x:l,y:d,width:0,height:0}:q(r)&&q(n)?{cx:r,cy:n,startAngle:i||a||0,endAngle:o||a||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},II=function(t,r){return t?t===!0?A.createElement(Ee,{key:"label-implicit",viewBox:r}):Se(t)?A.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):L.isValidElement(t)?t.type===Ee?L.cloneElement(t,{key:"label-implicit",viewBox:r}):A.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):Z(t)?A.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):Wr(t)?A.createElement(Ee,In({viewBox:r},t,{key:"label-implicit"})):null:null},NI=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 a=t.children,i=Wm(t),o=it(a,Ee).map(function(s,c){return L.cloneElement(s,{viewBox:r||i,key:"label-".concat(c)})});if(!n)return o;var u=II(t.label,r||i);return[u].concat(yI(o))};Ee.parseViewBox=Wm;Ee.renderCallByParent=NI;function DI(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var kI=DI;const RI=ce(kI);function Nn(e){"@babel/helpers - typeof";return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nn(e)}var LI=["valueAccessor"],BI=["data","dataKey","clockWise","id","textBreakAll"];function WI(e){return zI(e)||UI(e)||qI(e)||FI()}function FI(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 30In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qI(e,t){if(e){if(typeof e=="string")return $u(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 $u(e,t)}}function UI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zI(e){if(Array.isArray(e))return $u(e)}function $u(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ja(){return Ja=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},Ja.apply(this,arguments)}function qf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Uf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qf(Object(r),!0).forEach(function(n){HI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HI(e,t,r){return t=XI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XI(e){var t=VI(e,"string");return Nn(t)=="symbol"?t:t+""}function VI(e,t){if(Nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zf(e,t){if(e==null)return{};var r=KI(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KI(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 GI=function(t){return Array.isArray(t.value)?RI(t.value):t.value};function er(e){var t=e.valueAccessor,r=t===void 0?GI:t,n=zf(e,LI),a=n.data,i=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=zf(n,BI);return!a||!a.length?null:A.createElement(ge,{className:"recharts-label-list"},a.map(function(f,l){var d=Q(i)?r(f,l):Fe(f&&f.payload,i),h=Q(u)?{}:{id:"".concat(u,"-").concat(l)};return A.createElement(Ee,Ja({},G(f,!0),c,h,{parentViewBox:f.parentViewBox,value:d,textBreakAll:s,viewBox:Ee.parseViewBox(Q(o)?f:Uf(Uf({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}er.displayName="LabelList";function YI(e,t){return e?e===!0?A.createElement(er,{key:"labelList-implicit",data:t}):A.isValidElement(e)||Z(e)?A.createElement(er,{key:"labelList-implicit",data:t,content:e}):Wr(e)?A.createElement(er,Ja({data:t},e,{key:"labelList-implicit"})):null:null}function JI(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,a=it(n,er).map(function(o,u){return L.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return a;var i=YI(e.label,t);return[i].concat(WI(a))}er.renderCallByParent=JI;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 Tu(){return Tu=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},Tu.apply(this,arguments)}function Hf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Xf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hf(Object(r),!0).forEach(function(n){ZI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZI(e,t,r){return t=QI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QI(e){var t=eN(e,"string");return Dn(t)=="symbol"?t:t+""}function eN(e,t){if(Dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tN=function(t,r){var n=Ve(r-t),a=Math.min(Math.abs(r-t),359.999);return n*a},pa=function(t){var r=t.cx,n=t.cy,a=t.radius,i=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,c=t.cornerIsExternal,f=s*(u?1:-1)+a,l=Math.asin(s/f)/Ya,d=c?i:i+o*l,h=de(r,n,f,d),p=de(r,n,a,d),m=c?i-o*l:i,y=de(r,n,f*Math.cos(l*Ya),m);return{center:h,circleTangency:p,lineTangency:y,theta:l}},Fm=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,u=t.endAngle,s=tN(o,u),c=o+s,f=de(r,n,i,o),l=de(r,n,i,c),d="M ".concat(f.x,",").concat(f.y,` 31 A `).concat(i,",").concat(i,`,0, 32 `).concat(+(Math.abs(s)>180),",").concat(+(o>c),`, 33 `).concat(l.x,",").concat(l.y,` 34 `);if(a>0){var h=de(r,n,a,o),p=de(r,n,a,c);d+="L ".concat(p.x,",").concat(p.y,` 35 A `).concat(a,",").concat(a,`,0, 36 `).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`, 37 `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},rN=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=Ve(f-c),d=pa({cx:r,cy:n,radius:i,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),h=d.circleTangency,p=d.lineTangency,m=d.theta,y=pa({cx:r,cy:n,radius:i,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),b=y.circleTangency,x=y.lineTangency,w=y.theta,P=s?Math.abs(c-f):Math.abs(c-f)-m-w;if(P<0)return u?"M ".concat(p.x,",").concat(p.y,` 38 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 39 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 40 `):Fm({cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:c,endAngle:f});var v="M ".concat(p.x,",").concat(p.y,` 41 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(h.x,",").concat(h.y,` 42 A`).concat(i,",").concat(i,",0,").concat(+(P>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,` 43 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,` 44 `);if(a>0){var g=pa({cx:r,cy:n,radius:a,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),O=g.circleTangency,S=g.lineTangency,_=g.theta,j=pa({cx:r,cy:n,radius:a,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),$=j.circleTangency,T=j.lineTangency,E=j.theta,I=s?Math.abs(c-f):Math.abs(c-f)-_-E;if(I<0&&o===0)return"".concat(v,"L").concat(r,",").concat(n,"Z");v+="L".concat(T.x,",").concat(T.y,` 45 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat($.x,",").concat($.y,` 46 A`).concat(a,",").concat(a,",0,").concat(+(I>180),",").concat(+(l>0),",").concat(O.x,",").concat(O.y,` 47 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else v+="L".concat(r,",").concat(n,"Z");return v},nN={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},qm=function(t){var r=Xf(Xf({},nN),t),n=r.cx,a=r.cy,i=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,d=r.className;if(o<i||f===l)return null;var h=te("recharts-sector",d),p=o-i,m=ke(u,p,0,!0),y;return m>0&&Math.abs(f-l)<360?y=rN({cx:n,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(m,p/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):y=Fm({cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:f,endAngle:l}),A.createElement("path",Tu({},G(r,!0),{className:h,d:y,role:"img"}))};function kn(e){"@babel/helpers - typeof";return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(e)}function Mu(){return Mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
47for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mu.apply(this,arguments)}function Vf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Kf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vf(Object(r),!0).forEach(function(n){aN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aN(e,t,r){return t=iN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iN(e){var t=oN(e,"string");return kn(t)=="symbol"?t:t+""}function oN(e,t){if(kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gf={curveBasisClosed:tx,curveBasisOpen:rx,curveBasis:ex,curveBumpX:Ww,curveBumpY:Fw,curveLinearClosed:nx,curveLinear:Ni,curveMonotoneX:ax,curveMonotoneY:ix,curveNatural:ox,curveStep:ux,curveStepAfter:cx,curveStepBefore:sx},ma=function(t){return t.x===+t.x&&t.y===+t.y},an=function(t){return t.x},on=function(t){return t.y},uN=function(t,r){if(Z(t))return t;var n="curve".concat(Ci(t));return(n==="curveMonotone"||n==="curveBump")&&r?Gf["".concat(n).concat(r==="vertical"?"Y":"X")]:Gf[n]||Ni},sN=function(t){var r=t.type,n=r===void 0?"linear":r,a=t.points,i=a===void 0?[]:a,o=t.baseLine,u=t.layout,s=t.connectNulls,c=s===void 0?!1:s,f=uN(n,u),l=c?i.filter(function(m){return ma(m)}):i,d;if(Array.isArray(o)){var h=c?o.filter(function(m){return ma(m)}):o,p=l.map(function(m,y){return Kf(Kf({},m),{},{base:h[y]})});return u==="vertical"?d=ia().y(on).x1(an).x0(function(m){return m.base.x}):d=ia().x(an).y1(on).y0(function(m){return m.base.y}),d.defined(ma).curve(f),d(p)}return u==="vertical"&&q(o)?d=ia().y(on).x1(an).x0(o):q(o)?d=ia().x(an).y1(on).y0(o):d=qh().x(an).y(on),d.defined(ma).curve(f),d(l)},ju=function(t){var r=t.className,n=t.points,a=t.path,i=t.pathRef;if((!n||!n.length)&&!a)return null;var o=n&&n.length?sN(t):a;return L.createElement("path",Mu({},G(t,!1),Pa(t),{className:te("recharts-curve",r),d:o,ref:i}))},Um={exports:{}},cN="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",lN=cN,fN=lN;function zm(){}function Hm(){}Hm.resetWarningCache=zm;var dN=function(){function e(n,a,i,o,u,s){if(s!==fN){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Hm,resetWarningCache:zm};return r.PropTypes=r,r};Um.exports=dN();var hN=Um.exports;const ne=ce(hN);var pN=Object.getOwnPropertyNames,mN=Object.getOwnPropertySymbols,vN=Object.prototype.hasOwnProperty;function Yf(e,t){return function(n,a,i){return e(n,a,i)&&t(n,a,i)}}function va(e){return function(r,n,a){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,a);var i=a.cache,o=i.get(r),u=i.get(n);if(o&&u)return o===n&&u===r;i.set(r,n),i.set(n,r);var s=e(r,n,a);return i.delete(r),i.delete(n),s}}function Jf(e){return pN(e).concat(mN(e))}var yN=Object.hasOwn||function(e,t){return vN.call(e,t)};function ir(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var gN="__v",bN="__o",wN="_owner",Zf=Object.getOwnPropertyDescriptor,Qf=Object.keys;function xN(e,t,r){var 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 ON(e,t){return ir(e.getTime(),t.getTime())}function PN(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function SN(e,t){return e===t}function ed(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),i=e.entries(),o,u,s=0;(o=i.next())&&!o.done;){for(var c=t.entries(),f=!1,l=0;(u=c.next())&&!u.done;){if(a[l]){l++;continue}var d=o.value,h=u.value;if(r.equals(d[0],h[0],s,l,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){f=a[l]=!0;break}l++}if(!f)return!1;s++}return!0}var AN=ir;function _N(e,t,r){var n=Qf(e),a=n.length;if(Qf(t).length!==a)return!1;for(;a-- >0;)if(!Xm(e,t,r,n[a]))return!1;return!0}function un(e,t,r){var n=Jf(e),a=n.length;if(Jf(t).length!==a)return!1;for(var i,o,u;a-- >0;
47)if(i=n[a],!Xm(e,t,r,i)||(o=Zf(e,i),u=Zf(t,i),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function $N(e,t){return ir(e.valueOf(),t.valueOf())}function TN(e,t){return e.source===t.source&&e.flags===t.flags}function td(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),i=e.values(),o,u;(o=i.next())&&!o.done;){for(var s=t.values(),c=!1,f=0;(u=s.next())&&!u.done;){if(!a[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){c=a[f]=!0;break}f++}if(!c)return!1}return!0}function MN(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function jN(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 Xm(e,t,r,n){return(n===wN||n===bN||n===gN)&&(e.$$typeof||t.$$typeof)?!0:yN(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var EN="[object Arguments]",CN="[object Boolean]",IN="[object Date]",NN="[object Error]",DN="[object Map]",kN="[object Number]",RN="[object Object]",LN="[object RegExp]",BN="[object Set]",WN="[object String]",FN="[object URL]",qN=Array.isArray,rd=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,nd=Object.assign,UN=Object.prototype.toString.call.bind(Object.prototype.toString);function zN(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,o=e.areNumbersEqual,u=e.areObjectsEqual,s=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,f=e.areSetsEqual,l=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(p,m,y){if(p===m)return!0;if(p==null||m==null)return!1;var b=typeof p;if(b!==typeof m)return!1;if(b!=="object")return b==="number"?o(p,m,y):b==="function"?a(p,m,y):!1;var x=p.constructor;if(x!==m.constructor)return!1;if(x===Object)return u(p,m,y);if(qN(p))return t(p,m,y);if(rd!=null&&rd(p))return l(p,m,y);if(x===Date)return r(p,m,y);if(x===RegExp)return c(p,m,y);if(x===Map)return i(p,m,y);if(x===Set)return f(p,m,y);var w=UN(p);return w===IN?r(p,m,y):w===LN?c(p,m,y):w===DN?i(p,m,y):w===BN?f(p,m,y):w===RN?typeof p.then!="function"&&typeof m.then!="function"&&u(p,m,y):w===FN?d(p,m,y):w===NN?n(p,m,y):w===EN?u(p,m,y):w===CN||w===kN||w===WN?s(p,m,y):!1}}function HN(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?un:xN,areDatesEqual:ON,areErrorsEqual:PN,areFunctionsEqual:SN,areMapsEqual:n?Yf(ed,un):ed,areNumbersEqual:AN,areObjectsEqual:n?un:_N,arePrimitiveWrappersEqual:$N,areRegExpsEqual:TN,areSetsEqual:n?Yf(td,un):td,areTypedArraysEqual:n?un:MN,areUrlsEqual:jN};if(r&&(a=nd({},a,r(a))),t){var i=va(a.areArraysEqual),o=va(a.areMapsEqual),u=va(a.areObjectsEqual),s=va(a.areSetsEqual);a=nd({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:s})}return a}function XN(e){return function(t,r,n,a,i,o,u){return e(t,r,u)}}function VN(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,i=e.strict;if(n)return function(s,c){var f=n(),l=f.cache,d=l===void 0?t?new WeakMap:void 0:l,h=f.meta;return r(s,c,{cache:d,equals:a,meta:h,strict:i})};if(t)return function(s,c){return r(s,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var o={cache:void 0,equals:a,meta:void 0,strict:i};return function(s,c){return r(s,c,o)}}var KN=It();It({strict:!0});It({circular:!0});It({circular:!0,strict:!0});It({createInternalComparator:function(){return ir}});It({strict:!0,createInternalComparator:function(){return ir}});It({circular:!0,createInternalComparator:function(){return ir}});It({circular:!0,createInternalComparator:function(){return ir},strict:!0});function It(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,u=HN(e),s=zN(u),c=n?n(s):XN(s);return VN({circular:r,comparator:s,createState:a,equals:c,strict:o})}function GN(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function ad(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(i){r<0&&(r=i),i-r>t?(e(i),r=-1):GN(a)};requestAnimationFrame(n)}function Eu(e){"@babel/helpers - typeof";return Eu=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},Eu(e)}function YN(e){return eD(e)||QN(e)||ZN(e)||JN()}
vendor: 40,236 bytes, lines 47-65
47function JN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 48In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZN(e,t){if(e){if(typeof e=="string")return id(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 id(e,t)}}function id(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 QN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eD(e){if(Array.isArray(e))return e}function tD(){var e={},t=function(){return null},r=!1,n=function a(i){if(!r){if(Array.isArray(i)){if(!i.length)return;var o=i,u=YN(o),s=u[0],c=u.slice(1);if(typeof s=="number"){ad(a.bind(null,c),s);return}a(s),ad(a.bind(null,c));return}Eu(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){r=!0},start:function(i){r=!1,n(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}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 od(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ud(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?od(Object(r),!0).forEach(function(n){Vm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):od(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vm(e,t,r){return t=rD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rD(e){var t=nD(e,"string");return Rn(t)==="symbol"?t:String(t)}function nD(e,t){if(Rn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aD=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,a){return n.filter(function(i){return a.includes(i)})})},iD=function(t){return t},oD=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},dn=function(t,r){return Object.keys(r).reduce(function(n,a){return ud(ud({},n),{},Vm({},a,t(a,r[a])))},{})},sd=function(t,r,n){return t.map(function(a){return"".concat(oD(a)," ").concat(r,"ms ").concat(n)}).join(",")};function uD(e,t){return lD(e)||cD(e,t)||Km(e,t)||sD()}function sD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 49In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,u=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,a=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}function lD(e){if(Array.isArray(e))return e}function fD(e){return pD(e)||hD(e)||Km(e)||dD()}function dD(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 50In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Km(e,t){if(e){if(typeof e=="string")return Cu(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 Cu(e,t)}}function hD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pD(e){if(Array.isArray(e))return Cu(e)}function Cu(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 Za=1e-4,Gm=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},Ym=function(t,r){return t.map(function(n,a){return n*Math.pow(r,a)}).reduce(function(n,a){return n+a})},cd=function(t,r){return function(n){var a=Gm(t,r);return Ym(a,n)}},mD=function(t,r){return function(n){var a=Gm(t,r),i=[].concat(fD(a.map(function(o,u){return o*u}).slice(1)),[0]);return Ym(i,n)}},ld=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0],i=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":a=0,i=0,o=1,u=1;break;case"ease":a=.25,i=.1,o=.25,u=1;break;case"ease-in":a=.42,i=0,o=1,u=1;break;case"ease-out":a=.42,i=0,o=.58,u=1;break;case"ease-in-out":a=0,i=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(y){return parseFloat(y)}),f=uD(c,4);a=f[0],i=f[1],o=f[2],u=f[3]}}}var l=cd(a,o),d=cd(i,u),h=mD(a,o),p=function(b){return b>1?1:b<0?0:b},m=function(b){for(var x=b>1?1:b,w=x,P=0;P<8;++P){var v=l(w)-x,g=h(w);if(Math.abs(v-x)<Za||g<Za)return d(w);w=p(w-v/g)}return d(w)};return m.isStepper=!1,m},vD=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,a=t.damping,i=a===void 0?8:a,o=t.dt,u=o===void 0?17:o,s=function(f,l,d){var h=-(f-l)*n,p=d*i,m=d+(h-p)*u/1e3,y=d*u/1e3+f;return Math.abs(y-l)<Za&&Math.abs(m)<Za?[l,0]:[y,m]};return s.isStepper=!0,s.dt=u,s},yD=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ld(a);case"spring":return vD();default:if(a.split("(")[0]==="cubic-bezier")return ld(a)}return typeof a=="function"?a:null};function Ln(e){"@babel/helpers - typeof";return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ln(e)}function fd(e){return wD(e)||bD(e)||Jm(e)||gD()}function gD(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 51In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wD(e){if(Array.isArray(e))return Nu(e)}function dd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dd(Object(r),!0).forEach(function(n){Iu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iu(e,t,r){return t=xD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xD(e){var t=OD(e,"string");return Ln(t)==="symbol"?t:String(t)}function OD(e,t){if(Ln(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ln(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PD(e,t){return _D(e)||AD(e,t)||Jm(e,t)||SD()}function SD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 52In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jm(e,t){if(e){if(typeof e=="string")return Nu(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 Nu(e,t)}}function Nu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function AD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,u=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,a=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}function _D(e){if(Array.isArray(e))return e}var Qa=function(t,r,n){return t+(r-t)*n},Du=function(t){var r=t.from,n=t.to;return r!==n},$D=function e(t,r,n){var a=dn(function(i,o){if(Du(o)){var u=t(o.from,o.to,o.velocity),s=PD(u,2),c=s[0],f=s[1];return je(je({},o),{},{from:c,velocity:f})}return o},r);return n<1?dn(function(i,o){return Du(o)?je(je({},o),{},{velocity:Qa(o.velocity,a[i].velocity,n),from:Qa(o.from,a[i].from,n)}):o},r):e(t,a,n-1)};const TD=function(e,t,r,n,a){var i=aD(e,t),o=i.reduce(function(y,b){return je(je({},y),{},Iu({},b,[e[b],t[b]]))},{}),u=i.reduce(function(y,b){return je(je({},y),{},Iu({},b,{from:e[b],velocity:0,to:t[b]}))},{}),s=-1,c,f,l=function(){return null},d=function(){return dn(function(b,x){return x.from},u)},h=function(){return!Object.values(u).filter(Du).length},p=function(b){c||(c=b);var x=b-c,w=x/r.dt;u=$D(r,u,w),a(je(je(je({},e),t),d())),c=b,h()||(s=requestAnimationFrame(l))},m=function(b){f||(f=b);var x=(b-f)/n,w=dn(function(v,g){return Qa.apply(void 0,fd(g).concat([r(x)]))},o);if(a(je(je(je({},e),t),w)),x<1)s=requestAnimationFrame(l);else{var P=dn(function(v,g){return Qa.apply(void 0,fd(g).concat([r(1)]))},o);a(je(je(je({},e),t),P))}};return l=r.isStepper?p:m,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}};function Tr(e){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(e)}var MD=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function jD(e,t){if(e==null)return{};var r=ED(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ED(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function jo(e){return DD(e)||ND(e)||ID(e)||CD()}function CD(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 53In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ID(e,t){if(e){if(typeof e=="string")return ku(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 ku(e,t)}}function ND(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DD(e){if(Array.isArray(e))return ku(e)}function ku(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 hd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hd(Object(r),!0).forEach(function(n){cn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cn(e,t,r){return t=Zm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RD(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,Zm(n.key),n)}}function LD(e,t,r){return t&&RD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zm(e){var t=BD(e,"string");return Tr(t)==="symbol"?t:String(t)}function BD(e,t){if(Tr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WD(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&&Ru(e,t)}function Ru(e,t){return Ru=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Ru(e,t)}function FD(e){var t=qD();return function(){var n=ei(e),a;if(t){var i=ei(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return Lu(this,a)}}function Lu(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 Bu(e)}function Bu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qD(){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 ei(e){return ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ei(e)}var Tt=function(e){WD(r,e);var t=FD(r);function r(n,a){var i;kD(this,r),i=t.call(this,n,a);var o=i.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,d=o.children,h=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(Bu(i)),i.changeStyle=i.changeStyle.bind(Bu(i)),!u||h<=0)return i.state={style:{}},typeof d=="function"&&(i.state={style:f}),Lu(i);if(l&&l.length)i.state={style:l[0].style};else if(c){if(typeof d=="function")return i.state={style:c},Lu(i);i.state={style:s?cn({},s,c):c}}else i.state={style:{}};return i}return LD(r,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,u=i.canBegin,s=i.attributeName,c=i.shouldReAnimate,f=i.to,l=i.from,d=this.state.style;if(u){if(!o){var h={style:s?cn({},s,f):f};this.state&&d&&(s&&d[s]!==f||!s&&d!==f)&&this.setState(h);return}if(!(KN(a.to,f)&&a.canBegin&&a.isActive)){var p=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=p||c?l:a.to;if(this.state&&d){var y={style:s?cn({},s,m):m};(s&&d[s]!==m||!s&&d!==m)&&this.setState(y)}this.runAnimation(Qe(Qe({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,u=a.to,s=a.duration,c=a.easing,f=a.begin,l=a.onAnimationEnd,d=a.onAnimationStart,h=TD(o,u,yD(c),s,this.changeStyle),p=function(){i.stopJSAnimation=h()};this.manager.start([d,f,p,s,l])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,u=a.begin,s=a.onAnimationStart,c=o[0],f=c.style,l=c.duration,d=l===void 0?0:l,h=function(m,y,b){if(b===0)return m;var x=y.duration,w=y.easing,P=w===void 0?"ease":w,v=y.style,g=y.properties,O=y.onAnimationEnd,S=b>0?o[b-1]:y,_=g||Object.keys(v);if(typeof P=="function"||P==="spring")return[].concat(jo(m),[i.runJSAnimation.bind(i,{from:S.style,to:v,duration:x,easing:P}),x]);var j=sd(_,x,P),$=Qe(Qe(Qe({},S.style),v),{},{transition:j});return[].concat(jo(m),[$,x,O]).filter(iD)};return this.manager.start([s].concat(jo(o.reduce(h,[f,Math.max(d,u)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=tD());var i=a.begin,o=a.duration,u=a.attributeName,s=a.to,c=a.easing,f=a.onAnimationStart,l=a.onAnimationEnd,d=a.steps,h=a.children,p=this.manager;if(this.unSubscribe=p.subscribe(this.handleStyleChange),typeof c=="function"||typeof h=="function"||c==="spring"){this.runJSAnimation(a);return}if(d.length>1){this.runStepAnimation(a);return}var m=u?cn({},u,s):s,y=sd(Object.keys(m),o,c);p.start([f,i,Qe(Qe({},m),{},{transition:y}),o,l])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var u=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var s=jD(a,MD),c=L.Children.count(i),f=this.state.style;if(typeof i=="function")return i(f);if(!u||c===0||o<=0)return i;var l=function(h){var p=h.props,m=p.style,y=m===void 0?{}:m,b=p.className,x=L.cloneElement(h,Qe(Qe({},s),{},{style:Qe(Qe({},y),f),className:b}));return x};return c===1?l(L.Children.only(i)):A.createElement("div",null,L.Children.map(i,function(d){return l(d)}))}}]),r}(L.PureComponent);Tt.displayName="Animate";Tt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Tt.propTypes={from:ne.oneOfType([ne.object,ne.string]),to:ne.oneOfType([ne.object,ne.string]),attributeName:ne.string,duration:ne.number,begin:ne.number,easing:ne.oneOfType([ne.string,ne.func]),steps:ne.arrayOf(ne.shape({duration:ne.number.isRequired,style:ne.object.isRequired,easing:ne.oneOfType([ne.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ne.func]),properties:ne.arrayOf("string"),onAnimationEnd:ne.func})),children:ne.oneOfType([ne.node,ne.func]),isActive:ne.bool,canBegin:ne.bool,onAnimationEnd:ne.func,shouldReAnimate:ne.bool,onAnimationStart:ne.func,onAnimationReStart:ne.func};function Bn(e){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(e)}function ti(){return ti=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},ti.apply(this,arguments)}function UD(e,t){return VD(e)||XD(e,t)||HD(e,t)||zD()}function zD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 54In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HD(e,t){if(e){if(typeof e=="string")return pd(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 pd(e,t)}}function pd(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 XD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,u=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,a=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}function VD(e){if(Array.isArray(e))return e}function md(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?md(Object(r),!0).forEach(function(n){KD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):md(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KD(e,t,r){return t=GD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GD(e){var t=YD(e,"string");return Bn(t)=="symbol"?t:t+""}function YD(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yd=function(t,r,n,a,i){var o=Math.min(Math.abs(n)/2,Math.abs(a)/2),u=a>=0?1:-1,s=n>=0?1:-1,c=a>=0&&n>=0||a<0&&n<0?1:0,f;if(o>0&&i instanceof Array){for(var l=[0,0,0,0],d=0,h=4;d<h;d++)l[d]=i[d]>o?o:i[d];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,`, 55 `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+a-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,`, 56 `).concat(t+n-s*l[2],",").concat(r+a)),f+="L ".concat(t+s*l[3],",").concat(r+a),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`, 57 `).concat(t,",").concat(r+a-u*l[3])),f+="Z"}else if(o>0&&i===+i&&i>0){var p=Math.min(o,i);f="M ".concat(t,",").concat(r+u*p,` 58 A `).concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+s*p,",").concat(r,` 59 L `).concat(t+n-s*p,",").concat(r,` 60 A `).concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*p,` 61 L `).concat(t+n,",").concat(r+a-u*p,` 62 A `).concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+n-s*p,",").concat(r+a,` 63 L `).concat(t+s*p,",").concat(r+a,` 64 A `).concat(p,",").concat(p,",0,0,").concat(c,",").concat(t,",").concat(r+a-u*p," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return f},JD=function(t,r){if(!t||!r)return!1;var n=t.x,a=t.y,i=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(i,i+u),f=Math.max(i,i+u),l=Math.min(o,o+s),d=Math.max(o,o+s);return n>=c&&n<=f&&a>=l&&a<=d}return!1},ZD={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ic=function(t){var r=vd(vd({},ZD),t),n=L.useRef(),a=L.useState(-1),i=UD(a,2),o=i[0],u=i[1];L.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var P=n.current.getTotalLength();P&&u(P)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,d=r.radius,h=r.className,p=r.animationEasing,m=r.animationDuration,y=r.animationBegin,b=r.isAnimationActive,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var w=te("recharts-rectangle",h);return x?A.createElement(Tt,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:m,animationEasing:p,isActive:x},function(P){var v=P.width,g=P.height,O=P.x,S=P.y;return A.createElement(Tt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:m,isActive:b,easing:p},A.createElement("path",ti({},G(r,!0),{className:w,d:yd(O,S,v,g,d),ref:n})))}):A.createElement("path",ti({},G(r,!0),{className:w,d:yd(s,c,f,l,d)}))},QD=["points","className","baseLinePoints","connectNulls"];function fr(){return fr=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},fr.apply(this,arguments)}function ek(e,t){if(e==null)return{};var r=tk(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tk(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 gd(e){return ik(e)||ak(e)||nk(e)||rk()}function rk(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 65In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nk(e,t){if(e){if(typeof e=="string")return Wu(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 Wu(e,t)}}function ak(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ik(e){if(Array.isArray(e))return Wu(e)}function Wu(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 bd=function(t){return t&&t.x===+t.x&&t.y===+t.y},ok=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){bd(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),bd(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},hn=function(t,r){var n=ok(t);r&&(n=[n.reduce(function(i,o){return[].concat(gd(i),gd(o))},[])]);var a=n.map(function(i){return i.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(a,"Z"):a},uk=function(t,r,n){var a=hn(t,n);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(hn(r.reverse(),n).slice(1))},sk=function(t){var r=t.points,n=t.className,a=t.baseLinePoints,i=t.connectNulls,o=ek(t,QD);if(!r||!r.length)return null;var u=te("recharts-polygon",n);if(a&&a.length){var s=o.stroke&&o.stroke!=="none",c=uk(r,a,i);return A.createElement("g",{className:u},A.createElement("path",fr({},G(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),s?A.createElement("path",fr({},G(o,!0),{fill:"none",d:hn(r,i)})):null,s?A.createElement("path",fr({},G(o,!0),{fill:"none",d:hn(a,i)})):null)}var f=hn(r,i);return A.createElement("path",fr({},G(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function Fu(){return Fu=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},Fu.apply(this,arguments)}var oc=function(t){var r=t.cx,n=t.cy,a=t.r,i=t.className,o=te("recharts-dot",i);return r===+r&&n===+n&&a===+a?L.createElement("circle",Fu({},G(t,!1),Pa(t),{className:o,cx:r,cy:n,r:a})):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)}var ck=["x","y","top","left","width","height","className"];function qu(){return qu=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},qu.apply(this,arguments)}function wd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function lk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wd(Object(r),!0).forEach(function(n){fk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fk(e,t,r){return t=dk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dk(e){var t=hk(e,"string");return Wn(t)=="symbol"?t:t+""}function hk(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pk(e,t){if(e==null)return{};var r=mk(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mk(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 vk=function(t,r,n,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(r,"h").concat(n)},yk=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,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,d=t.height,h=d===void 0?0:d,p=t.className,m=pk(t,ck),y=lk({x:n,y:i,top:u,left:c,width:l,height:h},m);return!q(n)||!q(i)||!q(l)||!q(h)||!q(u)||!q(c)?null:A.createElement("path",qu({},G(y,!0),{className:te("recharts-cross",p),d:vk(n,i,l,h,u,c)}))},gk=Hi,bk=mm,wk=jt;function xk(e,t){return e&&e.length?gk(e,wk(t),bk):void 0}var Ok=xk;const Pk=ce(Ok);var Sk=Hi,Ak=jt,_k=vm;function $k(e,t){return e&&e.length?Sk(e,Ak(t),_k):void 0}var Tk=$k;const Mk=ce(Tk);var jk=["cx","cy","angle","ticks","axisLine"],Ek=["ticks","tick","angle","tickFormatter","stroke"];function Mr(e){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mr(e)}function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pn.apply(this,arguments)}function xd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xd(Object(r),!0).forEach(function(n){Yi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Od(e,t){if(e==null)return{};var r=Ck(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ck(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ik(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,ev(n.key),n)}}function Nk(e,t,r){return t&&Pd(e.prototype,t),r&&Pd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dk(e,t,r){return t=ri(t),kk(e,Qm()?Reflect.construct(t,r||[],ri(e).constructor):t.apply(e,r))}function kk(e,t){if(t&&(Mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rk(e)}function Rk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qm=function(){return!!e})()}function ri(e){return ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ri(e)}function Lk(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&&Uu(e,t)}function Uu(e,t){return Uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Uu(e,t)}function Yi(e,t,r){return t=ev(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ev(e){var t=Bk(e,"string");return Mr(t)=="symbol"?t:t+""}function Bk(e,t){if(Mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ji=function(e){function t(){return Ik(this,t),Dk(this,t,arguments)}return Lk(t,e),Nk(t,[{key:"getTickValueCoord",value:function(n){var a=n.coordinate,i=this.props,o=i.angle,u=i.cx,s=i.cy;return de(u,s,a,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,a;switch(n){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.angle,u=n.ticks,s=Pk(u,function(f){return f.coordinate||0}),c=Mk(u,function(f){return f.coordinate||0});return{cx:a,cy:i,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.angle,u=n.ticks,s=n.axisLine,c=Od(n,jk),f=u.reduce(function(p,m){return[Math.min(p[0],m.coordinate),Math.max(p[1],m.coordinate)]},[1/0,-1/0]),l=de(a,i,f[0],o),d=de(a,i,f[1],o),h=Rt(Rt(Rt({},G(c,!1)),{},{fill:"none"},G(s,!1)),{},{x1:l.x,y1:l.y,x2:d.x,y2:d.y});return A.createElement("line",pn({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,a=this.props,i=a.ticks,o=a.tick,u=a.angle,s=a.tickFormatter,c=a.stroke,f=Od(a,Ek),l=this.getTickTextAnchor(),d=G(f,!1),h=G(o,!1),p=i.map(function(m,y){var b=n.getTickValueCoord(m),x=Rt(Rt(Rt(Rt({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(b.x,", ").concat(b.y,")")},d),{},{stroke:"none",fill:c},h),{},{index:y},b),{},{payload:m});return A.createElement(ge,pn({className:te("recharts-polar-radius-axis-tick",Bm(o)),key:"tick-".concat(m.coordinate)},Ei(n.props,m,y)),t.renderTickItem(o,x,s?s(m.value,y):m.value))});return A.createElement(ge,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,a=n.ticks,i=n.axisLine,o=n.tick;return!a||!a.length?null:A.createElement(ge,{className:te("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),o&&this.renderTicks(),Ee.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,a,i){var o;return A.isValidElement(n)?o=A.cloneElement(n,a):Z(n)?o=n(a):o=A.createElement(Or,pn({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}])}(L.PureComponent);Yi(Ji,"displayName","PolarRadiusAxis");Yi(Ji,"axisType","radiusAxis");Yi(Ji,"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 jr(e){"@babel/helpers - typeof";return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jr(e)}function qt(){return qt=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},qt.apply(this,arguments)}function Sd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sd(Object(r),!0).forEach(function(n){Zi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ad(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,rv(n.key),n)}}function Fk(e,t,r){return t&&Ad(e.prototype,t),r&&Ad(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qk(e,t,r){return t=ni(t),Uk(e,tv()?Reflect.construct(t,r||[],ni(e).constructor):t.apply(e,r))}function Uk(e,t){if(t&&(jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zk(e)}function zk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tv=function(){return!!e})()}function ni(e){return ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ni(e)}function Hk(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&&zu(e,t)}function zu(e,t){return zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},zu(e,t)}function Zi(e,t,r){return t=rv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rv(e){var t=Xk(e,"string");return jr(t)=="symbol"?t:t+""}function Xk(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vk=Math.PI/180,_d=1e-5,Qi=function(e){function t(){return Wk(this,t),qk(this,t,arguments)}return Hk(t,e),Fk(t,[{key:"getTickLineCoord",value:function(n){var a=this.props,i=a.cx,o=a.cy,u=a.radius,s=a.orientation,c=a.tickSize,f=c||8,l=de(i,o,u,n.coordinate),d=de(i,o,u+(s==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var a=this.props.orientation,i=Math.cos(-n.coordinate*Vk),o;return i>_d?o=a==="outer"?"start":"end":i<-_d?o=a==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.radius,u=n.axisLine,s=n.axisLineType,c=Lt(Lt({},G(this.props,!1)),{},{fill:"none"},G(u,!1));if(s==="circle")return A.createElement(oc,qt({className:"recharts-polar-angle-axis-line"},c,{cx:a,cy:i,r:o}));var f=this.props.ticks,l=f.map(function(d){return de(a,i,o,d.coordinate)});return A.createElement(sk,qt({className:"recharts-polar-angle-axis-line"},c,{points:l}))}},{key:"renderTicks",value:function(){var n=this,a=this.props,i=a.ticks,o=a.tick,u=a.tickLine,s=a.tickFormatter,c=a.stroke,f=G(this.props,!1),l=G(o,!1),d=Lt(Lt({},f),{},{fill:"none"}
65,G(u,!1)),h=i.map(function(p,m){var y=n.getTickLineCoord(p),b=n.getTickTextAnchor(p),x=Lt(Lt(Lt({textAnchor:b},f),{},{stroke:"none",fill:c},l),{},{index:m,payload:p,x:y.x2,y:y.y2});return A.createElement(ge,qt({className:te("recharts-polar-angle-axis-tick",Bm(o)),key:"tick-".concat(p.coordinate)},Ei(n.props,p,m)),u&&A.createElement("line",qt({className:"recharts-polar-angle-axis-tick-line"},d,y)),o&&t.renderTickItem(o,x,s?s(p.value,m):p.value))});return A.createElement(ge,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,a=n.ticks,i=n.radius,o=n.axisLine;return i<=0||!a||!a.length?null:A.createElement(ge,{className:te("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,a,i){var o;return A.isValidElement(n)?o=A.cloneElement(n,a):Z(n)?o=n(a):o=A.createElement(Or,qt({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}])}(L.PureComponent);Zi(Qi,"displayName","PolarAngleAxis");Zi(Qi,"axisType","angleAxis");Zi(Qi,"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 Kk=dp,Gk=Kk(Object.getPrototypeOf,Object),Yk=Gk,Jk=xt,Zk=Yk,Qk=Ot,eR="[object Object]",tR=Function.prototype,rR=Object.prototype,nv=tR.toString,nR=rR.hasOwnProperty,aR=nv.call(Object);function iR(e){if(!Qk(e)||Jk(e)!=eR)return!1;var t=Zk(e);if(t===null)return!0;var r=nR.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&nv.call(r)==aR}var oR=iR;const uR=ce(oR);var sR=xt,cR=Ot,lR="[object Boolean]";function fR(e){return e===!0||e===!1||cR(e)&&sR(e)==lR}var dR=fR;const hR=ce(dR);function Fn(e){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(e)}function ai(){return ai=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},ai.apply(this,arguments)}function pR(e,t){return gR(e)||yR(e,t)||vR(e,t)||mR()}function mR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 66In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vR(e,t){if(e){if(typeof e=="string")return $d(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 $d(e,t)}}function $d(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 yR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,u=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,a=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}function gR(e){if(Array.isArray(e))return e}function Td(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Md(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Td(Object(r),!0).forEach(function(n){bR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Td(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bR(e,t,r){return t=wR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wR(e){var t=xR(e,"string");return Fn(t)=="symbol"?t:t+""}function xR(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jd=function(t,r,n,a,i){var o=n-a,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+i),u+="L ".concat(t+n-o/2-a,",").concat(r+i),u+="L ".concat(t,",").concat(r," Z"),u}
vendor: 15,312 bytes, line 66
66,OR={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},PR=function(t){var r=Md(Md({},OR),t),n=L.useRef(),a=L.useState(-1),i=pR(a,2),o=i[0],u=i[1];L.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,d=r.height,h=r.className,p=r.animationEasing,m=r.animationDuration,y=r.animationBegin,b=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||d!==+d||f===0&&l===0||d===0)return null;var x=te("recharts-trapezoid",h);return b?A.createElement(Tt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:d,x:s,y:c},duration:m,animationEasing:p,isActive:b},function(w){var P=w.upperWidth,v=w.lowerWidth,g=w.height,O=w.x,S=w.y;return A.createElement(Tt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:m,easing:p},A.createElement("path",ai({},G(r,!0),{className:x,d:jd(O,S,P,v,g),ref:n})))}):A.createElement("g",null,A.createElement("path",ai({},G(r,!0),{className:x,d:jd(s,c,f,l,d)})))},SR=["option","shapeType","propTransformer","activeClassName","isActive"];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 AR(e,t){if(e==null)return{};var r=_R(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _R(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 Ed(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ii(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ed(Object(r),!0).forEach(function(n){$R(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ed(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $R(e,t,r){return t=TR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TR(e){var t=MR(e,"string");return qn(t)=="symbol"?t:t+""}function MR(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jR(e,t){return ii(ii({},t),e)}function ER(e,t){return e==="symbols"}function Cd(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return A.createElement(ic,r);case"trapezoid":return A.createElement(PR,r);case"sector":return A.createElement(qm,r);case"symbols":if(ER(t))return A.createElement(ws,r);break;default:return null}}function CR(e){return L.isValidElement(e)?e.props:e}function IR(e){var t=e.option,r=e.shapeType,n=e.propTransformer,a=n===void 0?jR:n,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,u=e.isActive,s=AR(e,SR),c;if(L.isValidElement(t))c=L.cloneElement(t,ii(ii({},s),CR(t)));else if(Z(t))c=t(s);else if(uR(t)&&!hR(t)){var f=a(t,s);c=A.createElement(Cd,{shapeType:r,elementProps:f})}else{var l=s;c=A.createElement(Cd,{shapeType:r,elementProps:l})}return u?A.createElement(ge,{className:o},c):c}function eo(e,t){return t!=null&&"trapezoids"in e.props}function to(e,t){return t!=null&&"sectors"in e.props}function Un(e,t){return t!=null&&"points"in e.props}function NR(e,t){var r,n,a=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,i=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return a&&i}function DR(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function kR(e,t){var r=e.x===t.x,n=e.y===t.y,a=e.z===t.z;return r&&n&&a}function RR(e,t){var r;return eo(e,t)?r=NR:to(e,t)?r=DR:Un(e,t)&&(r=kR),r}function LR(e,t){var r;return eo(e,t)?r="trapezoids":to(e,t)?r="sectors":Un(e,t)&&(r="points"),r}function BR(e,t){if(eo(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(to(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 Un(e,t)?t.payload:{}}function WR(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,a=LR(r,t),i=BR(r,t),o=n.filter(function(s,c){var f=ec(i,s),l=r.props[a].filter(function(p){var m=RR(r,t);return m(p,t)}),d=r.props[a].indexOf(l[l.length-1]),h=c===d;return f&&h}),u=n.indexOf(o[o.length-1]);return u}var xa;function Er(e){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(e)}function dr(){return dr=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},dr.apply(this,arguments)}function Id(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Id(Object(r),!0).forEach(function(n){Xe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Id(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nd(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,iv(n.key),n)}}function qR(e,t,r){return t&&Nd(e.prototype,t),r&&Nd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function UR(e,t,r){return t=oi(t),zR(e,av()?Reflect.construct(t,r||[],oi(e).constructor):t.apply(e,r))}function zR(e,t){if(t&&(Er(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HR(e)}function HR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function av(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(av=function(){return!!e})()}function oi(e){return oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oi(e)}function XR(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&&Hu(e,t)}function Hu(e,t){return Hu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Hu(e,t)}function Xe(e,t,r){return t=iv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iv(e){var t=VR(e,"string");return Er(t)=="symbol"?t:t+""}function VR(e,t){if(Er(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var St=function(e){function t(r){var n;return FR(this,t),n=UR(this,t,[r]),Xe(n,"pieRef",null),Xe(n,"sectorRefs",[]),Xe(n,"id",ji("recharts-pie-")),Xe(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Z(a)&&a()}),Xe(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Z(a)&&a()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return XR(t,e),qR(t,[{key:"isActiveIndex",value:function(n){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(n)!==-1:n===a}},{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 a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.label,u=i.labelLine,s=i.dataKey,c=i.valueKey,f=G(this.props,!1),l=G(o,!1),d=G(u,!1),h=o&&o.offsetRadius||20,p=n.map(function(m,y){var b=(m.startAngle+m.endAngle)/2,x=de(m.cx,m.cy,m.outerRadius+h,b),w=le(le(le(le({},f),m),{},{stroke:"none"},l),{},{index:y,textAnchor:t.getTextAnchor(x.x,m.cx)},x),P=le(le(le(le({},f),m),{},{fill:"none",stroke:m.fill},d),{},{index:y,points:[de(m.cx,m.cy,m.outerRadius,b),x]}),v=s;return Q(s)&&Q(c)?v="value":Q(s)&&(v=c),A.createElement(ge,{key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(y)},u&&t.renderLabelLineItem(u,P,"line"),t.renderLabelItem(o,w,Fe(m,v)))});return A.createElement(ge,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(n){var a=this,i=this.props,o=i.activeShape,u=i.blendStroke,s=i.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=a.isActiveIndex(f),d=s&&a.hasActiveIndex()?s:null,h=l?o:d,p=le(le({},c),{},{stroke:u?c.fill:c.stroke,tabIndex:-1});return A.createElement(ge,dr({ref:function(y){y&&!a.sectorRefs.includes(y)&&a.sectorRefs.push(y)},tabIndex:-1,className:"recharts-pie-sector"},Ei(a.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(IR,dr({option:h,isActive:l,shapeType:"sector"},p)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,a=this.props,i=a.sectors,o=a.isAnimationActive,u=a.animationBegin,s=a.animationDuration,c=a.animationEasing,f=a.animationId,l=this.state,d=l.prevSectors,h=l.prevIsAnimationActive;return A.createElement(Tt,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(p){var m=p.t,y=[],b=i&&i[0],x=b.startAngle;return i.forEach(function(w,P){var v=d&&d[P],g=P>0?tt(w,"paddingAngle",0):0;if(v){var O=Ac(v.endAngle-v.startAngle,w.endAngle-w.startAngle),S=le(le({},w),{},{startAngle:x+g,endAngle:x+O(m)+g});y.push(S),x=S.endAngle}else{var _=w.endAngle,j=w.startAngle,$=Ac(0,_-j),T=$(m),E=le(le({},w),{},{startAngle:x+g,endAngle:x+T+g});y.push(E),x=E.endAngle}}),A.createElement(ge,null,n.renderSectorsStatically(y))})}},{key:"attachKeyboardHandlers",value:function(n){var a=this;n.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var o=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[u].focus(),a.setState({sectorToFocus:u});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,a=n.sectors,i=n.isAnimationActive,o=this.state.prevSectors;return i&&a&&a.length&&(!o||!ec(o,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,a=this.props,i=a.hide,o=a.sectors,u=a.className,s=a.label,c=a.cx,f=a.cy,l=a.innerRadius,d=a.outerRadius,h=a.isAnimationActive,p=this.state.isAnimationFinished;if(i||!o||!o.length||!q(c)||!q(f)||!q(l)||!q(d))return null;var m=te("recharts-pie",u);return A.createElement(ge,{tabIndex:this.props.rootTabIndex,className:m,ref:function(b){n.pieRef=b}},this.renderSectors(),s&&this.renderLabels(o),Ee.renderCallByParent(this.props,null,!1),(!h||p)&&er.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return a.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:n.sectors!==a.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,a){return n>a?"start":n<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,a,i){if(A.isValidElement(n))return A.cloneElement(n,a);if(Z(n))return n(a);var o=te("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return A.createElement(ju,dr({},a,{key:i,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,a,i){if(A.isValidElement(n))return A.cloneElement(n,a);var o=i;if(Z(n)&&(o=n(a),A.isValidElement(o)))return o;var u=te("recharts-pie-label-text",typeof n!="boolean"&&!Z(n)?n.className:"");return A.createElement(Or,dr({},a,{alignmentBaseline:"middle",className:u}),o)}}])}(L.PureComponent);xa=St;Xe(St,"displayName","Pie");Xe(St,"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:!Jt.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Xe(St,"parseDeltaAngle",function(e,t){var r=Ve(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Xe(St,"getRealPieData",function(e){var t=e.data,r=e.children,n=G(e,!1),a=it(r,Es);return t&&t.length?t.map(function(i,o){return le(le(le({payload:i},n),i),a&&a[o]&&a[o].props)}):a&&a.length?a.map(function(i){return le(le({},n),i.props)}):[]});Xe(St,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,a=t.width,i=t.height,o=Lm(a,i),u=n+ke(e.cx,a,a/2),s=r+ke(e.cy,i,i/2),c=ke(e.innerRadius,o,0),f=ke(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:u,cy:s,innerRadius:c,outerRadius:f,maxRadius:l}});Xe(St,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?le(le({},t.type.defaultProps),t.props):t.props,a=xa.getRealPieData(n);if(!a||!a.length)return null;var i=n.cornerRadius,o=n.startAngle,u=n.endAngle,s=n.paddingAngle,c=n.dataKey,f=n.nameKey,l=n.valueKey,d=n.tooltipType,h=Math.abs(n.minAngle),p=xa.parseCoordinateOfPie(n,r),m=xa.parseDeltaAngle(o,u),y=Math.abs(m),b=c;Q(c)&&Q(l)?(vt(!1,`Use "dataKey" to specify the value of pie,
67 the props "valueKey" will be deprecated in 1.1.0`),b="value"):Q(c)&&(vt(!1,`Use "dataKey" to specify the value of pie, 68 the props "valueKey" will be deprecated in 1.1.0`),b=l);var x=a.filter(function(S){return Fe(S,b,0)!==0}).length,w=(y>=360?x:x-1)*s,P=y-x*h-w,v=a.reduce(function(S,_){var j=Fe(_,b,0);return S+(q(j)?j:0)},0),g;if(v>0){var O;g=a.map(function(S,_){var j=Fe(S,b,0),$=Fe(S,f,_),T=(q(j)?j:0)/v,E;_?E=O.endAngle+Ve(m)*s*(j!==0?1:0):E=o;var I=E+Ve(m)*((j!==0?h:0)+T*P),C=(E+I)/2,D=(p.innerRadius+p.outerRadius)/2,R=[{name:$,value:j,payload:S,dataKey:b,type:d}],B=de(p.cx,p.cy,D,C);return O=le(le(le({percent:T,cornerRadius:i,name:$,tooltipPayload:R,midAngle:C,middleRadius:D,tooltipPosition:B},S),p),{},{value:Fe(S,b),startAngle:E,endAngle:I,payload:S,paddingAngle:Ve(m)*s}),O})}return le(le({},p),{},{sectors:g,data:a})});var KR=Math.ceil,GR=Math.max;function YR(e,t,r,n){for(var a=-1,i=GR(KR((t-e)/(r||1)),0),o=Array(i);i--;)o[n?i:++a]=e,e+=r;return o}var JR=YR,ZR=jp,Dd=1/0,QR=17976931348623157e292;function eL(e){if(!e)return e===0?e:0;if(e=ZR(e),e===Dd||e===-Dd){var t=e<0?-1:1;return t*QR}return e===e?e:0}var tL=eL,rL=JR,nL=Li,Eo=tL;function aL(e){return function(t,r,n){return n&&typeof n!="number"&&nL(t,r,n)&&(r=n=void 0),t=Eo(t),r===void 0?(r=t,t=0):r=Eo(r),n=n===void 0?t<r?1:-1:Eo(n),rL(t,r,n,e)}}var iL=aL,oL=iL,uL=oL(),sL=uL;const ui=ce(sL);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 kd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Rd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kd(Object(r),!0).forEach(function(n){ov(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ov(e,t,r){return t=cL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cL(e){var t=lL(e,"string");return zn(t)=="symbol"?t:t+""}function lL(e,t){if(zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fL=["Webkit","Moz","O","ms"],dL=function(t,r){var n=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=fL.reduce(function(i,o){return Rd(Rd({},i),{},ov({},o+n,r))},{});return a[t]=r,a};function Cr(e){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(e)}function si(){return si=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},si.apply(this,arguments)}function Ld(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Co(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ld(Object(r),!0).forEach(function(n){Be(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ld(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bd(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,sv(n.key),n)}}function pL(e,t,r){return t&&Bd(e.prototype,t),r&&Bd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mL(e,t,r){return t=ci(t),vL(e,uv()?Reflect.construct(t,r||[],ci(e).constructor):t.apply(e,r))}function vL(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 yL(e)}function yL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uv=function(){return!!e})()}
vendor: 7,644 bytes, line 68
68function ci(e){return ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ci(e)}function gL(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&&Xu(e,t)}function Xu(e,t){return Xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Xu(e,t)}function Be(e,t,r){return t=sv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sv(e){var t=bL(e,"string");return Cr(t)=="symbol"?t:t+""}function bL(e,t){if(Cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wL=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,i=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,c=ln().domain(ui(0,s)).range([i,i+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(a),scale:c,scaleValues:f}},Wd=function(t){return t.changedTouches&&!!t.changedTouches.length},Ir=function(e){function t(r){var n;return hL(this,t),n=mL(this,t,[r]),Be(n,"handleDrag",function(a){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(a):n.state.isSlideMoving&&n.handleSlideDrag(a)}),Be(n,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&n.handleDrag(a.changedTouches[0])}),Be(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=n.props,i=a.endIndex,o=a.onDragEnd,u=a.startIndex;o==null||o({endIndex:i,startIndex:u})}),n.detachDragEndListener()}),Be(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Be(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Be(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Be(n,"handleSlideDragStart",function(a){var i=Wd(a)?a.changedTouches[0]:a;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return gL(t,e),pL(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var a=n.startX,i=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,c=u.data,f=c.length-1,l=Math.min(a,i),d=Math.max(a,i),h=t.getIndexInRange(o,l),p=t.getIndexInRange(o,d);return{startIndex:h-h%s,endIndex:p===f?f:p-p%s}}},{key:"getTextOfTick",value:function(n){var a=this.props,i=a.data,o=a.tickFormatter,u=a.dataKey,s=Fe(i[n],u,n);return Z(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 a=this.state,i=a.slideMoveStartX,o=a.startX,u=a.endX,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,d=s.startIndex,h=s.endIndex,p=s.onChange,m=n.pageX-i;m>0?m=Math.min(m,c+f-l-u,c+f-l-o):m<0&&(m=Math.max(m,c-o,c-u));var y=this.getIndex({startX:o+m,endX:u+m});(y.startIndex!==d||y.endIndex!==h)&&p&&p(y),this.setState({startX:o+m,endX:u+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,a){var i=Wd(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var a=this.state,i=a.brushMoveStartX,o=a.movingTravellerId,u=a.endX,s=a.startX,c=this.state[o],f=this.props,l=f.x,d=f.width,h=f.travellerWidth,p=f.onChange,m=f.gap,y=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-i;x>0?x=Math.min(x,l+d-h-c):x<0&&(x=Math.max(x,l-c)),b[o]=c+x;var w=this.getIndex(b),P=w.startIndex,v=w.endIndex,g=function(){var S=y.length-1;return o==="startX"&&(u>s?P%m===0:v%m===0)||u<s&&v===S||o==="endX"&&(u>s?v%m===0:P%m===0)||u>s&&v===S};this.setState(Be(Be({},o,c+x),"brushMoveStartX",n.pageX),function(){p&&g()&&p(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,a){var i=this,o=this.state,u=o.scaleValues,s=o.startX,c=o.endX,f=this.state[a],l=u.indexOf(f);if(l!==-1){var d=l+n;if(!(d===-1||d>=u.length)){var h=u[d];a==="startX"&&h>=c||a==="endX"&&h<=s||this.setState(Be({},a,h),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,u=n.height,s=n.fill,c=n.stroke;return A.createElement("rect",{stroke:c,fill:s,x:a,y:i,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,u=n.height,s=n.data,c=n.children,f=n.padding,l=L.Children.only(c);return l?A.cloneElement(l,{x:a,y:i,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,a){var i,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,d=s.traveller,h=s.ariaLabel,p=s.data,m=s.startIndex,y=s.endIndex,b=Math.max(n,this.props.x),x=Co(Co({},G(this.props,!1)),{},{x:b,y:c,width:f,height:l}),w=h||"Min value: ".concat((i=p[m])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=p[y])===null||o===void 0?void 0:o.name);return A.createElement(ge,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(v){["ArrowLeft","ArrowRight"].includes(v.key)&&(v.preventDefault(),v.stopPropagation(),u.handleTravellerMoveKeyboard(v.key==="ArrowRight"?1:-1,a))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,x))}},{key:"renderSlide",value:function(n,a){var i=this.props,o=i.y,u=i.height,s=i.stroke,c=i.travellerWidth,f=Math.min(n,a)+c,l=Math.max(Math.abs(a-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,a=n.startIndex,i=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,d=f.endX,h=5,p={pointerEvents:"none",fill:c};return A.createElement(ge,{className:"recharts-brush-texts"},A.createElement(Or,si({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,d)-h,y:o+u/2},p),this.getTextOfTick(a)),A.createElement(Or,si({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,d)+s+h,y:o+u/2}
68,p),this.getTextOfTick(i)))}},{key:"render",value:function(){var n=this.props,a=n.data,i=n.className,o=n.children,u=n.x,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,d=this.state,h=d.startX,p=d.endX,m=d.isTextActive,y=d.isSlideMoving,b=d.isTravellerMoving,x=d.isTravellerFocused;if(!a||!a.length||!q(u)||!q(s)||!q(c)||!q(f)||c<=0||f<=0)return null;var w=te("recharts-brush",i),P=A.Children.count(o)===1,v=dL("userSelect","none");return A.createElement(ge,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),P&&this.renderPanorama(),this.renderSlide(h,p),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(p,"endX"),(m||y||b||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var a=n.x,i=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(i+u/2)-1;return A.createElement(A.Fragment,null,A.createElement("rect",{x:a,y:i,width:o,height:u,fill:s,stroke:"none"}),A.createElement("line",{x1:a+1,y1:c,x2:a+o-1,y2:c,fill:"none",stroke:"#fff"}),A.createElement("line",{x1:a+1,y1:c+2,x2:a+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,a){var i;return A.isValidElement(n)?i=A.cloneElement(n,a):Z(n)?i=n(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(n,a){var i=n.data,o=n.width,u=n.x,s=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(i!==a.prevData||c!==a.prevUpdateId)return Co({prevData:i,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},i&&i.length?wL({data:i,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(a.scale&&(o!==a.prevWidth||u!==a.prevX||s!==a.prevTravellerWidth)){a.scale.range([u,u+o-s]);var d=a.scale.domain().map(function(h){return a.scale(h)});return{prevData:i,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o,startX:a.scale(n.startIndex),endX:a.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,a){for(var i=n.length,o=0,u=i-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>a?u=s:o=s}return a>=n[u]?u:o}}])}(L.PureComponent);Be(Ir,"displayName","Brush");Be(Ir,"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 xL=Ts;function OL(e,t){var r;return xL(e,function(n,a,i){return r=t(n,a,i),!r}),!!r}var PL=OL,SL=ap,AL=jt,_L=PL,$L=Le,TL=Li;function ML(e,t,r){var n=$L(e)?SL:_L;return r&&TL(e,t,r)&&(t=void 0),n(e,AL(t))}var jL=ML;const EL=ce(jL);var ut=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},Fd=Ap;function CL(e,t,r){t=="__proto__"&&Fd?Fd(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var IL=CL,NL=IL,DL=Pp,kL=jt;function RL(e,t){var r={};return t=kL(t),DL(e,function(n,a,i){NL(r,a,t(n,a,i))}),r}var LL=RL;const BL=ce(LL);function WL(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var FL=WL,qL=Ts;function UL(e,t){var r=!0;return qL(e,function(n,a,i){return r=!!t(n,a,i),r}),r}var zL=UL,HL=FL,XL=zL,VL=jt,KL=Le,GL=Li;function YL(e,t,r){var n=KL(e)?HL:XL;return r&&GL(e,t,r)&&(t=void 0),n(e,VL(t))}var JL=YL;const ZL=ce(JL);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 QL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qd(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,cv(n.key),n)}}function eB(e,t,r){return t&&qd(e.prototype,t),r&&qd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ud(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ya(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 58,782 bytes, lines 68-72
68t%2?Ud(Object(r),!0).forEach(function(n){uc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ud(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uc(e,t,r){return t=cv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cv(e){var t=tB(e,"string");return Hn(t)=="symbol"?t:t+""}function tB(e,t){if(Hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lv=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},rB=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return lv({x:r,y:n},{x:a,y:i})},fv=function(){function e(t){QL(this,e),this.scale=t}return eB(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]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){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(a){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(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}])}();uc(fv,"EPS",1e-4);var sc=function(t){var r=Object.keys(t).reduce(function(n,a){return ya(ya({},n),{},uc({},a,fv.create(t[a])))},{});return ya(ya({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,u=i.position;return BL(a,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(a){return ZL(a,function(i,o){return r[o].isInRange(i)})}})},nB=Cb(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("")}),dv=L.createContext(void 0),hv=L.createContext(void 0),pv=L.createContext(void 0),aB=L.createContext({}),mv=L.createContext(void 0),iB=L.createContext(0),oB=L.createContext(0),zd=function(t){var r=t.state,n=r.xAxisMap,a=r.yAxisMap,i=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,f=nB(i);return A.createElement(dv.Provider,{value:n},A.createElement(hv.Provider,{value:a},A.createElement(aB.Provider,{value:i},A.createElement(pv.Provider,{value:f},A.createElement(mv.Provider,{value:o},A.createElement(iB.Provider,{value:c},A.createElement(oB.Provider,{value:s},u)))))))},uB=function(){return L.useContext(mv)},sB=function(t){var r=L.useContext(dv);r==null&&_r();var n=r[t];return n==null&&_r(),n},cB=function(t){var r=L.useContext(hv);r==null&&_r();var n=r[t];return n==null&&_r(),n},lB=function(){var t=L.useContext(pv);return t};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 fB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dB(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,yv(n.key),n)}}function hB(e,t,r){return t&&dB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pB(e,t,r){return t=li(t),mB(e,vv()?Reflect.construct(t,r||[],li(e).constructor):t.apply(e,r))}function mB(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 vB(e)}function vB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vv=function(){return!!e})()}function li(e){return li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},li(e)}function yB(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&&Vu(e,t)}function Vu(e,t){return Vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Vu(e,t)}function Hd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Xd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hd(Object(r),!0).forEach(function(n){cc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cc(e,t,r){return t=yv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yv(e){var t=gB(e,"string");return Nr(t)=="symbol"?t:t+""}function gB(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bB(e,t){return PB(e)||OB(e,t)||xB(e,t)||wB()}function wB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 69In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xB(e,t){if(e){if(typeof e=="string")return Vd(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 Vd(e,t)}}function Vd(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 OB(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,u=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,a=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}function PB(e){if(Array.isArray(e))return e}function Ku(){return Ku=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},Ku.apply(this,arguments)}var SB=function(t,r){var n;return A.isValidElement(t)?n=A.cloneElement(t,r):Z(t)?n=t(r):n=A.createElement("line",Ku({},r,{className:"recharts-reference-line-line"})),n},AB=function(t,r,n,a,i,o,u,s,c){var f=i.x,l=i.y,d=i.width,h=i.height;if(n){var p=c.y,m=t.y.apply(p,{position:o});if(ut(c,"discard")&&!t.y.isInRange(m))return null;var y=[{x:f+d,y:m},{x:f,y:m}];return s==="left"?y.reverse():y}if(r){var b=c.x,x=t.x.apply(b,{position:o});if(ut(c,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+h},{x,y:l}];return u==="top"?w.reverse():w}if(a){var P=c.segment,v=P.map(function(g){return t.apply(g,{position:o})});return ut(c,"discard")&&EL(v,function(g){return!t.isInRange(g)})?null:v}return null};function _B(e){var t=e.x,r=e.y,n=e.segment,a=e.xAxisId,i=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=uB(),f=sB(a),l=cB(i),d=lB();if(!c||!d)return null;vt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=sc({x:f.scale,y:l.scale}),p=Se(t),m=Se(r),y=n&&n.length===2,b=AB(h,p,m,y,d,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=bB(b,2),w=x[0],P=w.x,v=w.y,g=x[1],O=g.x,S=g.y,_=ut(e,"hidden")?"url(#".concat(c,")"):void 0,j=Xd(Xd({clipPath:_},G(e,!0)),{},{x1:P,y1:v,x2:O,y2:S});return A.createElement(ge,{className:te("recharts-reference-line",u)},SB(o,j),Ee.renderCallByParent(e,rB({x1:P,y1:v,x2:O,y2:S})))}var lc=function(e){function t(){return fB(this,t),pB(this,t,arguments)}return yB(t,e),hB(t,[{key:"render",value:function(){return A.createElement(_B,this.props)}}])}(A.Component);cc(lc,"displayName","ReferenceLine");cc(lc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Gu(){return Gu=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},Gu.apply(this,arguments)}function Dr(e){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(e)}function Kd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Gd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kd(Object(r),!0).forEach(function(n){ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bv(n.key),n)}}function MB(e,t,r){return t&&TB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jB(e,t,r){return t=fi(t),EB(e,gv()?Reflect.construct(t,r||[],fi(e).constructor):t.apply(e,r))}function EB(e,t){if(t&&(Dr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CB(e)}function CB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gv=function(){return!!e})()}function fi(e){return fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fi(e)}function IB(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&&Yu(e,t)}function Yu(e,t){return Yu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Yu(e,t)}function ro(e,t,r){return t=bv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bv(e){var t=NB(e,"string");return Dr(t)=="symbol"?t:t+""}function NB(e,t){if(Dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var DB=function(t){var r=t.x,n=t.y,a=t.xAxis,i=t.yAxis,o=sc({x:a.scale,y:i.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return ut(t,"discard")&&!o.isInRange(u)?null:u},no=function(e){function t(){return $B(this,t),jB(this,t,arguments)}return IB(t,e),MB(t,[{key:"render",value:function(){var n=this.props,a=n.x,i=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=Se(a),f=Se(i);if(vt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=DB(this.props);if(!l)return null;var d=l.x,h=l.y,p=this.props,m=p.shape,y=p.className,b=ut(this.props,"hidden")?"url(#".concat(s,")"):void 0,x=Gd(Gd({clipPath:b},G(this.props,!0)),{},{cx:d,cy:h});return A.createElement(ge,{className:te("recharts-reference-dot",y)},t.renderDot(m,x),Ee.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])}(A.Component);ro(no,"displayName","ReferenceDot");ro(no,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ro(no,"renderDot",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):Z(e)?r=e(t):r=A.createElement(oc,Gu({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Ju(){return Ju=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},Ju.apply(this,arguments)}function kr(e){"@babel/helpers - typeof";return kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kr(e)}function Yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Jd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yd(Object(r),!0).forEach(function(n){ao(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RB(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,xv(n.key),n)}}function LB(e,t,r){return t&&RB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BB(e,t,r){return t=di(t),WB(e,wv()?Reflect.construct(t,r||[],di(e).constructor):t.apply(e,r))}function WB(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 FB(e)}function FB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wv=function(){return!!e})()}function di(e){return di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},di(e)}function qB(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&&Zu(e,t)}function Zu(e,t){return Zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Zu(e,t)}function ao(e,t,r){return t=xv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xv(e){var t=UB(e,"string");return kr(t)=="symbol"?t:t+""}function UB(e,t){if(kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zB=function(t,r,n,a,i){var o=i.x1,u=i.x2,s=i.y1,c=i.y2,f=i.xAxis,l=i.yAxis;if(!f||!l)return null;var d=sc({x:f.scale,y:l.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},p={x:r?d.x.apply(u,{position:"end"}):d.x.rangeMax,y:a?d.y.apply(c,{position:"end"}):d.y.rangeMax};return ut(i,"discard")&&(!d.isInRange(h)||!d.isInRange(p))?null:lv(h,p)},io=function(e){function t(){return kB(this,t),BB(this,t,arguments)}return qB(t,e),LB(t,[{key:"render",value:function(){var n=this.props,a=n.x1,i=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,f=n.clipPathId;vt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Se(a),d=Se(i),h=Se(o),p=Se(u),m=this.props.shape;if(!l&&!d&&!h&&!p&&!m)return null;var y=zB(l,d,h,p,this.props);if(!y&&!m)return null;var b=ut(this.props,"hidden")?"url(#".concat(f,")"):void 0;return A.createElement(ge,{className:te("recharts-reference-area",s)},t.renderRect(m,Jd(Jd({clipPath:b},G(this.props,!0)),y)),Ee.renderCallByParent(this.props,y))}}])}(A.Component);ao(io,"displayName","ReferenceArea");ao(io,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});ao(io,"renderRect",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):Z(e)?r=e(t):r=A.createElement(ic,Ju({},t,{className:"recharts-reference-area-rect"})),r});function Zd(e){return KB(e)||VB(e)||XB(e)||HB()}function HB(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 70In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XB(e,t){if(e){if(typeof e=="string")return Qu(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 Qu(e,t)}}function VB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KB(e){if(Array.isArray(e))return Qu(e)}function Qu(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 es=function(t,r,n,a,i){var o=it(t,lc),u=it(t,no),s=[].concat(Zd(o),Zd(u)),c=it(t,io),f="".concat(a,"Id"),l=a[0],d=r;if(s.length&&(d=s.reduce(function(m,y){if(y.props[f]===n&&ut(y.props,"extendDomain")&&q(y.props[l])){var b=y.props[l];return[Math.min(m[0],b),Math.max(m[1],b)]}return m},d)),c.length){var h="".concat(l,"1"),p="".concat(l,"2");d=c.reduce(function(m,y){if(y.props[f]===n&&ut(y.props,"extendDomain")&&q(y.props[h])&&q(y.props[p])){var b=y.props[h],x=y.props[p];return[Math.min(m[0],b,x),Math.max(m[1],b,x)]}return m},d)}return i&&i.length&&(d=i.reduce(function(m,y){return q(y)?[Math.min(m[0],y),Math.max(m[1],y)]:m},d)),d},Ov={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function i(s,c,f,l,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new a(f,l||s,d),p=r?r+c:c;return s._events[p]?s._events[p].fn?s._events[p]=[s._events[p],h]:s._events[p].push(h):(s._events[p]=h,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 d=0,h=l.length,p=new Array(h);d<h;d++)p[d]=l[d].fn;return p},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,d,h,p){var m=r?r+c:c;if(!this._events[m])return!1;var y=this._events[m],b=arguments.length,x,w;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),b){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,f),!0;case 3:return y.fn.call(y.context,f,l),!0;case 4:return y.fn.call(y.context,f,l,d),!0;case 5:return y.fn.call(y.context,f,l,d,h),!0;case 6:return y.fn.call(y.context,f,l,d,h,p),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];y.fn.apply(y.context,x)}else{var P=y.length,v;for(w=0;w<P;w++)switch(y[w].once&&this.removeListener(c,y[w].fn,void 0,!0),b){case 1:y[w].fn.call(y[w].context);break;case 2:y[w].fn.call(y[w].context,f);break;case 3:y[w].fn.call(y[w].context,f,l);break;case 4:y[w].fn.call(y[w].context,f,l,d);break;default:if(!x)for(v=1,x=new Array(b-1);v<b;v++)x[v-1]=arguments[v];y[w].fn.apply(y[w].context,x)}}return!0},u.prototype.on=function(c,f,l){return i(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return i(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,d){var h=r?r+c:c;if(!this._events[h])return this;if(!f)return o(this,h),this;var p=this._events[h];if(p.fn)p.fn===f&&(!d||p.once)&&(!l||p.context===l)&&o(this,h);else{for(var m=0,y=[],b=p.length;m<b;m++)(p[m].fn!==f||d&&!p[m].once||l&&p[m].context!==l)&&y.push(p[m]);y.length?this._events[h]=y.length===1?y[0]:y:o(this,h)}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})(Ov);var GB=Ov.exports;const YB=ce(GB);var Io=new YB,No="recharts.syncMouseEvents";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 JB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZB(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,Pv(n.key),n)}}function QB(e,t,r){return t&&ZB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Do(e,t,r){return t=Pv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pv(e){var t=eW(e,"string");return Xn(t)=="symbol"?t:t+""}function eW(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 String(e)}var tW=function(){function e(){JB(this,e),Do(this,"activeIndex",0),Do(this,"coordinateList",[]),Do(this,"layout","horizontal")}return QB(e,[{key:"setDetails",value:function(r){var n,a=r.coordinateList,i=a===void 0?null:a,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,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=i??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=h??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 a=this.container.getBoundingClientRect(),i=a.x,o=a.y,u=a.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=i+s+c,d=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:d})}}}])}();function rW(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],a=e==null?void 0:e[1];if(n&&a&&q(n)&&q(a))return!0}return!1}function nW(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-a,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Sv(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,i=e.endAngle,o=de(t,r,n,a),u=de(t,r,n,i);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}function aW(e,t,r){var n,a,i,o;if(e==="horizontal")n=t.x,i=n,a=r.top,o=r.top+r.height;else if(e==="vertical")a=t.y,o=a,n=r.left,i=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,d=de(u,s,c,l),h=de(u,s,f,l);n=d.x,a=d.y,i=h.x,o=h.y}else return Sv(t);return[{x:n,y:a},{x:i,y:o}]}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 Qd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ga(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qd(Object(r),!0).forEach(function(n){iW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iW(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=uW(e,"string");return Vn(t)=="symbol"?t:t+""}function uW(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sW(e){var t,r,n=e.element,a=e.tooltipEventType,i=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!i||!o||d!=="ScatterChart"&&a!=="axis")return null;var p,m=ju;if(d==="ScatterChart")p=o,m=yk;else if(d==="BarChart")p=nW(l,o,s,f),m=ic;else if(l==="radial"){var y=Sv(o),b=y.cx,x=y.cy,w=y.radius,P=y.startAngle,v=y.endAngle;p={cx:b,cy:x,startAngle:P,endAngle:v,innerRadius:w,outerRadius:w},m=qm}else p={points:aW(l,o,s)},m=ju;var g=ga(ga(ga(ga({stroke:"#ccc",pointerEvents:"none"},s),p),G(h,!1)),{},{payload:u,payloadIndex:c,className:te("recharts-tooltip-cursor",h.className)});return L.isValidElement(h)?L.cloneElement(h,g):L.createElement(m,g)}var cW=["item"],lW=["children","className","width","height","style","compact","title","desc"];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 hr(){return hr=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},hr.apply(this,arguments)}function eh(e,t){return hW(e)||dW(e,t)||_v(e,t)||fW()}function fW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 71In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,u=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,a=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}function hW(e){if(Array.isArray(e))return e}function th(e,t){if(e==null)return{};var r=pW(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pW(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 mW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vW(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,$v(n.key),n)}}function yW(e,t,r){return t&&vW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gW(e,t,r){return t=hi(t),bW(e,Av()?Reflect.construct(t,r||[],hi(e).constructor):t.apply(e,r))}function bW(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 wW(e)}function wW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Av(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Av=function(){return!!e})()}function hi(e){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hi(e)}function xW(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&&ts(e,t)}function ts(e,t){return ts=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ts(e,t)}function Lr(e){return SW(e)||PW(e)||_v(e)||OW()}function OW(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 72In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _v(e,t){if(e){if(typeof e=="string")return rs(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 rs(e,t)}}function PW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SW(e){if(Array.isArray(e))return rs(e)}function rs(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 rh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rh(Object(r),!0).forEach(function(n){H(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H(e,t,r){return t=$v(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $v(e){var t=AW(e,"string");return Rr(t)=="symbol"?t:t+""}function AW(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _W={xAxis:["bottom","top"],yAxis:["left","right"]},$W={width:"100%",height:"100%"},Tv={x:0,y:0};function ba(e){return e}var TW=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},MW=function(t,r,n,a){var i=r.find(function(f){return f&&f.index===n});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var o=i.coordinate,u=a.radius;return M(M(M({},a),de(a.cx,a.cy,u,o)),{},{angle:o,radius:u})}var s=i.coordinate,c=a.angle;return M(M(M({},a),de(a.cx,a.cy,s,c)),{},{angle:c,radius:s})}return Tv},oo=function(t,r){var n=r.graphicalItems,a=r.dataStartIndex,i=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(Lr(u),Lr(c)):u},[]);return o.length>0?o:t&&t.length&&q(a)&&q(i)?t.slice(a,i+1):[]};function Mv(e){return e==="number"?[0,"auto"]:void 0}var ns=function(t,r,n,a){var i=t.graphicalItems,o=t.tooltipAxis,u=oo(r,t);return n<0||!i||!i.length||n>=u.length?null:i.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 d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=l===void 0?u:l;d=ko(h,o.dataKey,a)}else d=l&&l[n]||u[n];return d?[].concat(Lr(s),[rI(c,d)]):s},[])},nh=function(t,r,n,a){var i=a||{x:t.chartX,y:t.chartY},o=TW(i,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=W2(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,d=ns(t,r,f,l),h=MW(n,u,f,i);return{activeTooltipIndex:f,activeLabel:l,activePayload:d,activeCoordinate:h}}return null},jW=function(t,r){var n=r.axes,a=r.graphicalItems,i=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=t.stackOffset,h=Dm(f,i);return n.reduce(function(p,m){var y,b=m.type.defaultProps!==void 0?M(M({},m.type.defaultProps),m.props):m.props,x=b.type,w=b.dataKey,P=b.allowDataOverflow,v=b.allowDuplicatedCategory,g=b.scale,O=b.ticks,S=b.includeHidden,_=b[o];if(p[_])return p;var j=oo(t.data,{graphicalItems:a.filter(function(z){var Y,be=o in z.props?z.props[o]:(Y=z.type.defaultProps)===null||Y===void 0?void 0:Y[o];return be===_}),dataStartIndex:s,dataEndIndex:c}),$=j.length,T,E,I;rW(b.domain,P,x)&&(T=Su(b.domain,null,P),h&&(x==="number"||g!=="auto")&&(I=fn(j,w,"category")));var C=Mv(x);if(!T||T.length===0){var D,R=(D=b.domain)!==null&&D!==void 0?D:C;if(w){if(T=fn(j,w,x),x==="category"&&h){var B=M0(T);v&&B?(E=T,T=ui(0,$)):v||(T=Rf(R,T,m).reduce(function(z,Y){return z.indexOf(Y)>=0?z:[].concat(Lr(z),[Y])},[]))}else if(x==="category")v?T=T.filter(function(z){return z!==""&&!Q(z)}):T=Rf(R,T,m).reduce(function(z,Y){return z.indexOf(Y)>=0||Y===""||Q(Y)?z:[].concat(Lr(z),[Y])},[]);else if(x==="number"){var F=H2(j,a.filter(function(z){var Y,be,Ie=o in z.props?z.props[o]:(Y=z.type.defaultProps)===null||Y===void 0?void 0:Y[o],Ze="hide"in z.props?z.props.hide:(be=z.type.defaultProps)===null||be===void 0?void 0:be.hide;return Ie===_&&(S||!Ze)}),w,i,f);F&&(T=F)}h&&(x==="number"||g!=="auto")&&(I=fn(j,w,"category"))}else h?T=ui(0,$):u&&u[_]&&u[_].hasStack&&x==="number"?T=d==="expand"?[0,1]:km(u[_].stackGroups,s,c):T=Nm(j,a.filter(function(z){var Y=o in z.props?z.props[o]:z.type.defaultProps[o],be="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return Y===_&&(S||!be)}),x,f,!0);if(x==="number")T=es(l,T,_,i,O),R&&(T=Su(R,T,P));else if(x==="category"&&R){var X=R,V=T.every(function(z){return X.indexOf(z)>=0});V&&(T=X)}}return M(M({},p),{},H({},_,M(M({},b),{},{axisType:i,domain:T,categoricalDomain:I,duplicateDomain:E,originalDomain:(y=b.domain)!==null&&y!==void 0?y:C,isCategorical:h,layout:f})))},{})},EW=function(t,r){var n=r.graphicalItems,a=r.Axis,i=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=oo(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),h=d.length,p=Dm(f,i),m=-1;return n.reduce(function(y,b){var x=b.type.defaultProps!==void 0?M(M({},b.type.defaultProps),b.props):b.props,w=x[o],P=Mv("number");if(!y[w]){m++;var v;return p?v=ui(0,h):u&&u[w]&&u[w].hasStack?(v=km(u[w].stackGroups,s,c),v=es(l,v,w,i)):(v=Su(P,Nm(d,n.filter(function(g){var O,S,_=o in g.props?g.props[o]:(O=g.type.defaultProps)===null||O===void 0?void 0:O[o],j="hide"in g.props?g.props.hide:(S=g.type.defaultProps)===null||S===void 0?void 0:S.hide;return _===w&&!j}),"number",f),a.defaultProps.allowDataOverflow),v=es(l,v,w,i)),M(M({},y),{},H({},w,M(M({axisType:i},a.defaultProps),{},{hide:!0,orientation:tt(_W,"".concat(i,".").concat(m%2),null),domain:v,originalDomain:P,isCategorical:p,layout:f})))}return y},{})},CW=function(t,r){var n=r.axisType,a=n===void 0?"xAxis":n,i=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(a,"Id"),d=it(f,i),h={};return d&&d.length?h=jW(t,{axes:d,graphicalItems:o,axisType:a,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(h=EW(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),h},IW=function(t){var r=cr(t),n=sn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Ms(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Au(r,n)}},ah=function(t){var r=t.children,n=t.defaultShowTooltip,a=He(r,Ir),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},NW=function(t){return!t||!t.length?!1:t.some(function(r){var n=mt(r&&r.type);return n&&n.indexOf("Bar")>=0})},ih=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"}},DW=function(t,r){var n=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,d=n.margin||{},h=He(l,Ir),p=He(l,Yt),m=Object.keys(s).reduce(function(v,g){var O=s[g],S=O.orientation;return!O.mirror&&!O.hide?M(M({},v),{},H({},S,v[S]+O.width)):v},{left:d.left||0,right:d.right||0}),y=Object.keys(o).reduce(function(v,g){var O=o[g],S=O.orientation;return!O.mirror&&!O.hide?M(M({},v),{},H({},S,tt(v,"".concat(S))+O.height)):v},{top:d.top||0,bottom:d.bottom||0}),b=M(M({},y),m),x=b.bottom;h&&(b.bottom+=h.props.height||Ir.defaultProps.height),p&&r&&(b=U2(b,a,n,r));var w=c-b.left-b.right,P=f-b.top-b.bottom;return M(M({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(P,0)})},kW=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},RW=function(t){var r=t.chartName,n=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,d=function(b,x){var w=x.graphicalItems,P=x.stackGroups,v=x.offset,g=x.updateId,O=x.dataStartIndex,S=x.dataEndIndex,_=b.barSize,j=b.layout,$=b.barGap,T=b.barCategoryGap,E=b.maxBarSize,I=ih(j),C=I.numericAxisName,D=I.cateAxisName,R=NW(w),B=[];return w.forEach(function(F,X){var V=oo(b.data,{graphicalItems:[F],dataStartIndex:O,dataEndIndex:S}),z=F.type.defaultProps!==void 0?M(M({},F.type.defaultProps),F.props):F.props,Y=z.dataKey,be=z.maxBarSize,Ie=z["".concat(C,"Id")],Ze=z["".concat(D,"Id")],Jr={},Ne=s.reduce(function(Nt,Dt){var uo=x["".concat(Dt.axisType,"Map")],hc=z["".concat(Dt.axisType,"Id")];uo&&uo[hc]||Dt.axisType==="zAxis"||_r();var pc=uo[hc];return M(M({},Nt),{},H(H({},Dt.axisType,pc),"".concat(Dt.axisType,"Ticks"),sn(pc)))},Jr),W=Ne[D],K=Ne["".concat(D,"Ticks")],J=P&&P[Ie]&&P[Ie].hasStack&&eI(F,P[Ie].stackGroups),N=mt(F.type).indexOf("Bar")>=0,ve=Au(W,K),ee=[],xe=R&&F2({barSize:_,stackGroups:P,totalSize:kW(Ne,D)});if(N){var Oe,De,At=Q(be)?E:be,or=(Oe=(De=Au(W,K,!0))!==null&&De!==void 0?De:At)!==null&&Oe!==void 0?Oe:0;ee=q2({barGap:$,barCategoryGap:T,bandSize:or!==ve?or:ve,sizeList:xe[Ze],maxBarSize:At}),or!==ve&&(ee=ee.map(function(Nt){return M(M({},Nt),{},{position:M(M({},Nt.position),{},{offset:Nt.position.offset-or/2})})}))}var na=F&&F.type&&F.type.getComposedData;na&&B.push({props:M(M({},na(M(M({},Ne),{},{displayedData:V,props:b,dataKey:Y,item:F,bandSize:ve,barPosition:ee,offset:v,stackedData:J,layout:j,dataStartIndex:O,dataEndIndex:S}))),{},H(H(H({key:F.key||"item-".concat(X)},C,Ne[C]),D,Ne[D]),"animationId",g)),childIndex:W0(F,b.children),item:F})}),B},h=function(b,x){var w=b.props,P=b.dataStartIndex,v=b.dataEndIndex,g=b.updateId;if(!jc({props:w}))return null;var O=w.children,S=w.layout,_=w.stackOffset,j=w.data,$=w.reverseStackOrder,T=ih(S),E=T.numericAxisName,I=T.cateAxisName,C=it(O,n),D=Z2(j,C,"".concat(E,"Id"),"".concat(I,"Id"),_,$),R=s.reduce(function(z,Y){var be="".concat(Y.axisType,"Map");return M(M({},z),{},H({},be,CW(w,M(M({},Y),{},{graphicalItems:C,stackGroups:Y.axisType===E&&D,dataStartIndex:P,dataEndIndex:v}))))},{}),B=DW(M(M({},R),{},{props:w,graphicalItems:C}),x==null?void 0:x.legendBBox);Object.keys(R).forEach(function(z){R[z]=f(w,R[z],B,z.replace("Map",""),r)});var F=R["".concat(I,"Map")],X=IW(F),V=d(w,M(M({},R),{},{dataStartIndex:P,dataEndIndex:v,updateId:g,graphicalItems:C,stackGroups:D,offset:B}));return M(M({formattedGraphicalItems:V,graphicalItems:C,offset:B,stackGroups:D},X),R)},p=function(y){function b(x){var w,P,v;return mW(this,b),v=gW(this,b,[x]),H(v,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),H(v,"accessibilityManager",new tW),H(v,"handleLegendBBoxUpdate",function(g){if(g){var O=v.state,S=O.dataStartIndex,_=O.dataEndIndex,j=O.updateId;v.setState(M({legendBBox:g},h({props:v.props,dataStartIndex:S,dataEndIndex:_,updateId:j},M(M({},v.state),{},{legendBBox:g}))))}}),H(v,"handleReceiveSyncEvent",function(g,O,S){if(v.props.syncId===g){if(S===v.eventEmitterSymbol&&typeof v.props.syncMethod!="function")return;v.applySyncEvent(O)}}),H(v,"handleBrushChange",function(g){var O=g.startIndex,S=g.endIndex;if(O!==v.state.dataStartIndex||S!==v.state.dataEndIndex){var _=v.state.updateId;v.setState(function(){return M({dataStartIndex:O,dataEndIndex:S},h({props:v.props,dataStartIndex:O,dataEndIndex:S,updateId:_},v.state))}),v.triggerSyncEvent({dataStartIndex:O,dataEndIndex:S})}}),H(v,"handleMouseEnter",function(g){var O=v.getMouseInfo(g);if(O){var S=M(M({},O),{},{isTooltipActive:!0});v.setState(S),v.triggerSyncEvent(S);var _=v.props.onMouseEnter;Z(_)&&_(S,g)}}),H(v,"triggeredAfterMouseMove",function(g){var O=v.getMouseInfo(g),S=O?M(M({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};v.setState(S),v.triggerSyncEvent(S);var _=v.props.onMouseMove;Z(_)&&_(S,g)}),H(v,"handleItemMouseEnter",function(g){v.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),H(v,"handleItemMouseLeave",function(){v.setState(function(){return{isTooltipActive:!1}})}),H(v,"handleMouseMove",function(g){g.persist(),v.throttleTriggeredAfterMouseMove(g)}),H(v,"handleMouseLeave",function(g){v.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};v.setState(O),v.triggerSyncEvent(O);var S=v.props.onMouseLeave;Z(S)&&S(O,g)}),H(v,"handleOuterEvent",function(g){var O=B0(g),S=tt(v.props,"".concat(O));if(O&&Z(S)){var _,j;/.*touch.*/i.test(O)?j=v.getMouseInfo(g.changedTouches[0]):j=v.getMouseInfo(g),S((_=j)!==null&&_!==void 0?_:{},g)}}),H(v,"handleClick",function(g){var O=v.getMouseInfo(g);if(O){var S=M(M({},O),{},{isTooltipActive:!0});v.setState(S),v.triggerSyncEvent(S);var _=v.props.onClick;Z(_)&&_(S,g)}}),H(v,"handleMouseDown",function(g){var O=v.props.onMouseDown;if(Z(O)){var S=v.getMouseInfo(g);O(S,g)}}),H(v,"handleMouseUp",function(g){var O=v.props.onMouseUp;if(Z(O)){var S=v.getMouseInfo(g);O(S,g)}}),H(v,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&v.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),H(v,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&v.handleMouseDown(g.changedTouches[0])}),H(v,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&v.handleMouseUp(g.changedTouches[0])}),H(v,"handleDoubleClick",function(g){var O=v.props.onDoubleClick;if(Z(O)){var S=v.getMouseInfo(g);O(S,g)}}),H(v,"handleContextMenu",function(g){var O=v.props.onContextMenu;if(Z(O)){var S=v.getMouseInfo(g);O(S,g)}}),H(v,"triggerSyncEvent",function(g){v.props.syncId!==void 0&&Io.emit(No,v.props.syncId,g,v.eventEmitterSymbol)}),H(v,"applySyncEvent",function(g){var O=v.props,S=O.layout,_=O.syncMethod,j=v.state.updateId,$=g.dataStartIndex,T=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)v.setState(M({dataStartIndex:$,dataEndIndex:T},h({props:v.props,dataStartIndex:$,dataEndIndex:T,updateId:j},v.state)));else if(g.activeTooltipIndex!==void 0){var E=g.chartX,I=g.chartY,C=g.activeTooltipIndex,D=v.state,R=D.offset,B=D.tooltipTicks;if(!R)return;if(typeof _=="function")C=_(B,g);else if(_==="value"){C=-1;for(var F=0;F<B.length;F++)if(B[F].value===g.activeLabel){C=F;break}}var X=M(M({},R),{},{x:R.left,y:R.top}),V=Math.min(E,X.x+X.width),z=Math.min(I,X.y+X.height),Y=B[C]&&B[C].value,be=ns(v.state,v.props.data,C),Ie=B[C]?{x:S==="horizontal"?B[C].coordinate:V,y:S==="horizontal"?z:B[C].coordinate}:Tv;v.setState(M(M({},g),{},{activeLabel:Y,activeCoordinate:Ie,activePayload:be,activeTooltipIndex:C}))}else v.setState(g)}),H(v,"renderCursor",function(g){var O,S=v.state,_=S.isTooltipActive,j=S.activeCoordinate,$=S.activePayload,T=S.offset,E=S.activeTooltipIndex,I=S.tooltipAxisBandSize,C=v.getTooltipEventType(),D=(O=g.props.active)!==null&&O!==void 0?O:_,R=v.props.layout,B=g.key||"_recharts-cursor";return A.createElement(sW,{key:B,activeCoordinate:j,activePayload:$,activeTooltipIndex:E,chartName:r,element:g,isActive:D,layout:R,offset:T,tooltipAxisBandSize:I,tooltipEventType:C})}),H(v,"renderPolarAxis",function(g,O,S){var _=tt(g,"type.axisType"),j=tt(v.state,"".concat(_,"Map")),$=g.type.defaultProps,T=$!==void 0?M(M({},$),g.props):g.props,E=j&&j[T["".concat(_,"Id")]];return L.cloneElement(g,M(M({},E),{},{className:te(_,E.className),key:g.key||"".concat(O,"-").concat(S),ticks:sn(E,!0)}))}),H(v,"renderPolarGrid",function(g){var O=g.props,S=O.radialLines,_=O.polarAngles,j=O.polarRadius,$=v.state,T=$.radiusAxisMap,E=$.angleAxisMap,I=cr(T),C=cr(E),D=C.cx,R=C.cy,B=C.innerRadius,F=C.outerRadius;return L.cloneElement(g,{polarAngles:Array.isArray(_)?_:sn(C,!0).map(function(X){return X.coordinate}),polarRadius:Array.isArray(j)?j:sn(I,!0).map(function(X){return X.coordinate}),cx:D,cy:R,innerRadius:B,outerRadius:F,key:g.key||"polar-grid",radialLines:S})}),H(v,"renderLegend",function(){var g=v.state.formattedGraphicalItems,O=v.props,S=O.children,_=O.width,j=O.height,$=v.props.margin||{},T=_-($.left||0)-($.right||0),E=Cm({children:S,formattedGraphicalItems:g,legendWidth:T,legendContent:c});if(!E)return null;var I=E.item,C=th(E,cW);return L.cloneElement(I,M(M({},C),{},{chartWidth:_,chartHeight:j,margin:$,onBBoxUpdate:v.handleLegendBBoxUpdate}))}),H(v,"renderTooltip",function(){var g,O=v.props,S=O.children,_=O.accessibilityLayer,j=He(S,nt);if(!j)return null;var $=v.state,T=$.isTooltipActive,E=$.activeCoordinate,I=$.activePayload,C=$.activeLabel,D=$.offset,R=(g=j.props.active)!==null&&g!==void 0?g:T;return L.cloneElement(j,{viewBox:M(M({},D),{},{x:D.left,y:D.top}),active:R,label:C,payload:R?I:[],coordinate:E,accessibilityLayer:_})}),H(v,"renderBrush",function(g){var O=v.props,S=O.margin,_=O.data,j=v.state,$=j.offset,T=j.dataStartIndex,E=j.dataEndIndex,I=j.updateId;return L.cloneElement(g,{key:g.key||"_recharts-brush",onChange:ha(v.handleBrushChange,g.props.onChange),data:_,x:q(g.props.x)?g.props.x:$.left,y:q(g.props.y)?g.props.y:$.top+$.height+$.brushBottom-(S.bottom||0),width:q(g.props.width)?g.props.width:$.width,startIndex:T,endIndex:E,updateId:"brush-".concat(I)})}),H(v,"renderReferenceElement",function(g,O,S){if(!g)return null;var _=v,j=_.clipPathId,$=v.state,T=$.xAxisMap,E=$.yAxisMap,I=$.offset,C=g.type.defaultProps||{},D=g.props,R=D.xAxisId,B=R===void 0?C.xAxisId:R,F=D.yAxisId,X=F===void 0?C.yAxisId:F;return L.cloneElement(g,{key:g.key||"".concat(O,"-").concat(S),xAxis:T[B],yAxis:E[X],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:j})}),H(v,"renderActivePoints",function(g){var O=g.item,S=g.activePoint,_=g.basePoint,j=g.childIndex,$=g.isRange,T=[],E=O.props.key,I=O.item.type.defaultProps!==void 0?M(M({},O.item.type.defaultProps),O.item.props):O.item.props,C=I.activeDot,D=I.dataKey,R=M(M({index:j,dataKey:D,cx:S.x,cy:S.y,r:4,fill:ac(O.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},G(C,!1)),Pa(C));return T.push(b.renderActiveDot(C,R,"".concat(E,"-activePoint-").concat(j))),_?T.push(b.renderActiveDot(C,M(M({},R),{},{cx:_.x,cy:_.y}),"".concat(E,"-basePoint-").concat(j))):$&&T.push(null),T}),H(v,"renderGraphicChild",function(g,O,S){var _=v.filterFormatItem(g,O,S);if(!_)return null;var j=v.getTooltipEventType(),$=v.state,T=$.isTooltipActive,E=$.tooltipAxis,I=$.activeTooltipIndex,C=$.activeLabel,D=v.props.children,R=He(D,nt),B=_.props,F=B.points,X=B.isRange,V=B.baseLine,z=_.item.type.defaultProps!==void 0?M(M({},_.item.type.defaultProps),_.item.props):_.item.props,Y=z.activeDot,be=z.hide,Ie=z.activeBar,Ze=z.activeShape,Jr=!!(!be&&T&&R&&(Y||Ie||Ze)),Ne={};j!=="axis"&&R&&R.props.trigger==="click"?Ne={onClick:ha(v.handleItemMouseEnter,g.props.onClick)}:j!=="axis"&&(Ne={onMouseLeave:ha(v.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:ha(v.handleItemMouseEnter,g.props.onMouseEnter)});var W=L.cloneElement(g,M(M({},_.props),Ne));function K(Dt){return typeof E.dataKey=="function"?E.dataKey(Dt.payload):null}if(Jr)if(I>=0){var J,N;if(E.dataKey&&!E.allowDuplicatedCategory){var ve=typeof E.dataKey=="function"?K:"payload.".concat(E.dataKey.toString());J=ko(F,ve,C),N=X&&V&&ko(V,ve,C)}else J=F==null?void 0:F[I],N=X&&V&&V[I];if(Ze||Ie){var ee=g.props.activeIndex!==void 0?g.props.activeIndex:I;return[L.cloneElement(g,M(M(M({},_.props),Ne),{},{activeIndex:ee})),null,null]}if(!Q(J))return[W].concat(Lr(v.renderActivePoints({item:_,activePoint:J,basePoint:N,childIndex:I,isRange:X})))}else{var xe,Oe=(xe=v.getItemByXY(v.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:W},De=Oe.graphicalItem,At=De.item,or=At===void 0?g:At,na=De.childIndex,Nt=M(M(M({},_.props),Ne),{},{activeIndex:na});return[L.cloneElement(or,Nt),null,null]}return X?[W,null,null]:[W,null]}),H(v,"renderCustomized",function(g,O,S){return L.cloneElement(g,M(M({key:"recharts-customized-".concat(S)},v.props),v.state))}),H(v,"renderMap",{CartesianGrid:{handler:ba,once:!0},ReferenceArea:{handler:v.renderReferenceElement},ReferenceLine:{handler:ba},ReferenceDot:{handler:v.renderReferenceElement},XAxis:{handler:ba},YAxis:{handler:ba},Brush:{handler:v.renderBrush,once:!0},Bar:{handler:v.renderGraphicChild},Line:{handler:v.renderGraphicChild},Area:{handler:v.renderGraphicChild},Radar:{handler:v.renderGraphicChild},RadialBar:{handler:v.renderGraphicChild},Scatter:{handler:v.renderGraphicChild},Pie:{handler:v.renderGraphicChild},Funnel:{handler:v.renderGraphicChild},Tooltip:{handler:v.renderCursor,once:!0},PolarGrid:{handler:v.renderPolarGrid,once:!0},PolarAngleAxis:{handler:v.renderPolarAxis},PolarRadiusAxis:{handler:v.renderPolarAxis},Customized:{handler:v.renderCustomized}}),v.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:ji("recharts"),"-clip"),v.throttleTriggeredAfterMouseMove=Ep(v.triggeredAfterMouseMove,(P=x.throttleDelay)!==null&&P!==void 0?P:1e3/60),v.state={},v}return xW(b,y),yW(b,[{key:"componentDidMount",value:function(){var w,P;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,P=w.children,v=w.data,g=w.height,O=w.layout,S=He(P,nt);if(S){var _=S.props.defaultIndex;if(!(typeof _!="number"||_<0||_>this.state.tooltipTicks.length-1)){var j=this.state.tooltipTicks[_]&&this.state.tooltipTicks[_].value,$=ns(this.state,v,_,j),T=this.state.tooltipTicks[_].coordinate,E=(this.state.offset.top+g)/2,I=O==="horizontal",C=I?{x:T,y:E}:{y:T,x:E},D=this.state.formattedGraphicalItems.find(function(B){var F=B.item;return F.type.name==="Scatter"});D&&(C=M(M({},C),D.props.points[_].tooltipPosition),$=D.props.points[_].tooltipPayload);var R={activeTooltipIndex:_,isTooltipActive:!0,activeLabel:j,activePayload:$,activeCoordinate:C};this.setState(R),this.renderCursor(S),this.accessibilityManager.setIndex(_)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,P){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==P.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 v,g;this.accessibilityManager.setDetails({offset:{left:(v=this.props.margin.left)!==null&&v!==void 0?v:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(w){Bo([He(w.children,nt)],[He(this.props.children,nt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=He(this.props.children,nt);if(w&&typeof w.props.shared=="boolean"){var P=w.props.shared?"axis":"item";return u.indexOf(P)>=0?P:i}return i}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var P=this.container,v=P.getBoundingClientRect(),g=pM(v),O={chartX:Math.round(w.pageX-g.left),chartY:Math.round(w.pageY-g.top)},S=v.width/P.offsetWidth||1,_=this.inRange(O.chartX,O.chartY,S);if(!_)return null;var j=this.state,$=j.xAxisMap,T=j.yAxisMap,E=this.getTooltipEventType(),I=nh(this.state,this.props.data,this.props.layout,_);if(E!=="axis"&&$&&T){var C=cr($).scale,D=cr(T).scale,R=C&&C.invert?C.invert(O.chartX):null,B=D&&D.invert?D.invert(O.chartY):null;return M(M({},O),{},{xValue:R,yValue:B},I)}return I?M(M({},O),I):null}},{key:"inRange",value:function(w,P){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,O=w/v,S=P/v;if(g==="horizontal"||g==="vertical"){var _=this.state.offset,j=O>=_.left&&O<=_.left+_.width&&S>=_.top&&S<=_.top+_.height;return j?{x:O,y:S}:null}var $=this.state,T=$.angleAxisMap,E=$.radiusAxisMap;if(T&&E){var I=cr(T);return Wf({x:O,y:S},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,P=this.getTooltipEventType(),v=He(w,nt),g={};v&&P==="axis"&&(v.props.trigger==="click"?g={onClick:this.handleClick}:g={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 O=Pa(this.props,this.handleOuterEvent);return M(M({},O),g)}},{key:"addListener",value:function(){Io.on(No,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Io.removeListener(No,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,P,v){for(var g=this.state.formattedGraphicalItems,O=0,S=g.length;O<S;O++){var _=g[O];if(_.item===w||_.props.key===w.key||P===mt(_.item.type)&&v===_.childIndex)return _}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,P=this.state.offset,v=P.left,g=P.top,O=P.height,S=P.width;return A.createElement("defs",null,A.createElement("clipPath",{id:w},A.createElement("rect",{x:v,y:g,height:O,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(P,v){var g=eh(v,2),O=g[0],S=g[1];return M(M({},P),{},H({},O,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(P,v){var g=eh(v,2),O=g[0],S=g[1];return M(M({},P),{},H({},O,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var P;return(P=this.state.xAxisMap)===null||P===void 0||(P=P[w])===null||P===void 0?void 0:P.scale}},{key:"getYScaleByAxisId",value:function(w){var P;return(P=this.state.yAxisMap)===null||P===void 0||(P=P[w])===null||P===void 0?void 0:P.scale}},{key:"getItemByXY",value:function(w){var P=this.state,v=P.formattedGraphicalItems,g=P.activeItem;if(v&&v.length)for(var O=0,S=v.length;O<S;O++){var _=v[O],j=_.props,$=_.item,T=$.type.defaultProps!==void 0?M(M({},$.type.defaultProps),$.props):$.props,E=mt($.type);if(E==="Bar"){var I=(j.data||[]).find(function(B){return JD(w,B)});if(I)return{graphicalItem:_,payload:I}}else if(E==="RadialBar"){var C=(j.data||[]).find(function(B){return Wf(w,B)});if(C)return{graphicalItem:_,payload:C}}else if(eo(_,g)||to(_,g)||Un(_,g)){var D=WR({graphicalItem:_,activeTooltipItem:g,itemData:T.data}),R=T.activeIndex===void 0?D:T.activeIndex;return{graphicalItem:M(M({},_),{},{childIndex:R}),payload:Un(_,g)?T.data[D]:_.props.data[D]}}}return null}},{key:"render",value:function(){var w=this;if(!jc(this))return null;var P=this.props,v=P.children,g=P.className,O=P.width,S=P.height,_=P.style,j=P.compact,$=P.title,T=P.desc,E=th(P,lW),I=G(E,!1);if(j)return A.createElement(zd,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement(Fo,hr({},I,{width:O,height:S,title:$,desc:T}),this.renderClipPath(),Cc(v,this.renderMap)));if(this.props.accessibilityLayer){var C,D;I.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,I.role=(D=this.props.role)!==null&&D!==void 0?D:"application",I.onKeyDown=function(B){w.accessibilityManager.keyboardEvent(B)},I.onFocus=function(){w.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return A.createElement(zd,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement("div",hr({className:te("recharts-wrapper",g),style:M({position:"relative",curs
72or:"default",width:O,height:S},_)},R,{ref:function(F){w.container=F}}),A.createElement(Fo,hr({},I,{width:O,height:S,title:$,desc:T,style:$W}),this.renderClipPath(),Cc(v,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(L.Component);H(p,"displayName",r),H(p,"defaultProps",M({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),H(p,"getDerivedStateFromProps",function(y,b){var x=y.dataKey,w=y.data,P=y.children,v=y.width,g=y.height,O=y.layout,S=y.stackOffset,_=y.margin,j=b.dataStartIndex,$=b.dataEndIndex;if(b.updateId===void 0){var T=ah(y);return M(M(M({},T),{},{updateId:0},h(M(M({props:y},T),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:w,prevWidth:v,prevHeight:g,prevLayout:O,prevStackOffset:S,prevMargin:_,prevChildren:P})}if(x!==b.prevDataKey||w!==b.prevData||v!==b.prevWidth||g!==b.prevHeight||O!==b.prevLayout||S!==b.prevStackOffset||!Ro(_,b.prevMargin)){var E=ah(y),I={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},C=M(M({},nh(b,w,O)),{},{updateId:b.updateId+1}),D=M(M(M({},E),I),C);return M(M(M({},D),h(M({props:y},D),b)),{},{prevDataKey:x,prevData:w,prevWidth:v,prevHeight:g,prevLayout:O,prevStackOffset:S,prevMargin:_,prevChildren:P})}if(!Bo(P,b.prevChildren)){var R,B,F,X,V=He(P,Ir),z=V&&(R=(B=V.props)===null||B===void 0?void 0:B.startIndex)!==null&&R!==void 0?R:j,Y=V&&(F=(X=V.props)===null||X===void 0?void 0:X.endIndex)!==null&&F!==void 0?F:$,be=z!==j||Y!==$,Ie=!Q(w),Ze=Ie&&!be?b.updateId:b.updateId+1;return M(M({updateId:Ze},h(M(M({props:y},b),{},{updateId:Ze,dataStartIndex:z,dataEndIndex:Y}),b)),{},{prevChildren:P,dataStartIndex:z,dataEndIndex:Y})}return null}),H(p,"renderActiveDot",function(y,b,x){var w;return L.isValidElement(y)?w=L.cloneElement(y,b):Z(y)?w=y(b):w=A.createElement(oc,b),A.createElement(ge,{className:"recharts-active-dot",key:x},w)});var m=L.forwardRef(function(b,x){return A.createElement(p,hr({},b,{ref:x}))});return m.displayName=p.displayName,m},LW=RW({chartName:"PieChart",GraphicalChild:St,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Qi},{axisType:"radiusAxis",AxisComp:Ji}],formatAxisMap:fI,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const oh=["hsl(145, 63%, 32%)","hsl(45, 93%, 47%)","hsl(220, 25%, 30%)","hsl(0, 72%, 51%)","hsl(200, 70%, 50%)","hsl(280, 60%, 50%)","hsl(30, 80%, 50%)","hsl(170, 50%, 40%)","hsl(320, 60%, 50%)","hsl(60, 70%, 45%)","hsl(100, 50%, 40%)"],BW={banca:"Banca",seguros:"Seguros",hospitalidad:"Hospitalidad",gastronomia:"GastronomÃa",tecnologia:"TecnologÃa",retail:"Retail",automotriz:"Automotriz",salud:"Salud",inmobiliario:"Inmobiliario",entretenimiento:"Entretenimiento",general:"General"};function WW(){const{data:e,isLoading:t}=Vv(),r=Object.entries(e??{}).map(([n,a])=>({name:BW[n]||n,value:a}));return k.jsxs(Xt,{children:[k.jsx(Vt,{children:k.jsx(Kt,{className:"text-base",children:"Prospectos por Sector"})}),k.jsx(Gt,{children:t?k.jsx(Gn,{className:"h-[220px] w-full"}):r.length===0?k.jsx("p",{className:"text-sm text-muted-foreground text-center py-8",children:"Sin datos aún"}):k.jsx(uM,{width:"100%",height:220,children:k.jsxs(LW,{children:[k.jsx(St,{data:r,dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:80,innerRadius:40,paddingAngle:2,children:r.map((n,a)=>k.jsx(Es,{fill:oh[a%oh.length]},a))}),k.jsx(nt,{}),k.jsx(Yt,{wrapperStyle:{fontSize:"12px"}})]})})})]})}function $e(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function FW(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const wa=43200,uh=1440;let qW={};function jv(){return qW}function sh(e,t){var u,s,c,f;const r=jv(),n=(t==null?void 0:t.weekStartsOn)??((s=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:s.weekStartsOn)??r.weekStartsOn??((f=(c=r.locale)==null?void 0:c.options)==null?void 0:f.weekStartsOn)??0,a=$e(e),i=a.getDay(),o=(i<n?7:0)+i-n;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function ch(e){const t=$e(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Oa(e,t){const r=$e(e),n=$e(t),a=r.getTime()-n.getTime();return a<0?-1:a>0?1:a}function UW(e){return FW(e,Date.now())}function zW(e,t){const r=$e(e),n=$e(t),a=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return a*12+i}function HW(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function XW(e,t){return+$e(e)-+$e(t)}function VW(e){const t=$e(e);return t.setHours(23,59,59,999),t}function KW(e){const t=$e(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function GW(e){const t=$e(e);return+VW(t)==+KW(t)}function YW(e,t){const r=$e(e),n=$e(t),a=Oa(r,n),i=Math.abs(zW(r,n));let o;if(i<1)o=0;else{r.getMonth()===1&&r.getDate()>
7227&&r.setDate(30),r.setMonth(r.getMonth()-a*i);let u=Oa(r,n)===-a;GW($e(e))&&i===1&&Oa(e,n)===1&&(u=!1),o=a*(i-Number(u))}return o===0?0:o}function JW(e,t,r){const n=XW(e,t)/1e3;return HW(r==null?void 0:r.roundingMethod)(n)}const ZW={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},QW=(e,t,r)=>{let n;const a=ZW[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Te(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const e3={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},t3={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},r3={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},n3={date:Te({formats:e3,defaultWidth:"full"}),time:Te({formats:t3,defaultWidth:"full"}),dateTime:Te({formats:r3,defaultWidth:"full"})},a3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},i3=(e,t,r,n)=>a3[e];function ae(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let a;if(n==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,u=r!=null&&r.width?String(r.width):o;a=e.formattingValues[u]||e.formattingValues[o]}else{const o=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const o3={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},u3={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s3={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},c3={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l3={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},f3={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d3=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},h3={ordinalNumber:d3,era:ae({values:o3,defaultWidth:"wide"}),quarter:ae({values:u3,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ae({values:s3,defaultWidth:"wide"}),day:ae({values:c3,defaultWidth:"wide"}),dayPeriod:ae({values:l3,defaultWidth:"wide",formattingValues:f3,defaultFormattingWidth:"wide"})};function ie(e){return(t,r={})=>{const n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const o=i[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(u)?m3(u,l=>l.test(o)):p3(u,l=>l.test(o));let c;c=e.valueCallback?e.valueCallback(s):s,c=r.valueCallback?r.valueCallback(c):c;const f=t.slice(o.length);return{value:c,rest:f}}}function p3(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function m3(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Yr(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const a=n[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;const u=t.slice(a.length);return{value:o,rest:u}}}const v3=/^(\d+)(th|st|nd|rd)?/i,y3=/\d+/i,g3={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},b3={any:[/^b/i,/^(a|c)/i]},w3={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},x3={any:[/1/i,/2/i,/3/i,/4/i]},O3={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},P3={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},S3={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},A3={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},_3={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},$3={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},T3={ordinalNumber:Yr({matchPattern:v3,parsePattern:y3,valueCallback:e=>parseInt(e,10)}),era:ie({matchPatterns:g3,defaultMatchWidth:"wide",parsePatterns:b3,defaultParseWidth:"any"}),quarter:ie({matchPatterns:w3,defaultMatchWidth:"wide",parsePatterns:x3,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ie({matchPatterns:O3,defaultMatchWidth:"wide",parsePatterns:P3,defaultParseWidth:"any"}),day:ie({matchPatterns:S3,defaultMatchWidth:"wide",parsePatterns:A3,defaultParseWidth:"any"}),dayPeriod:ie({matchPatterns:_3,defaultMatchWidth:"any",parsePatterns:$3,defaultParseWidth:"any"})},Ev={code:"en-US",formatDistance:QW,formatLong:n3,formatRelative:i3,localize:h3,match:T3,options:{weekStartsOn:0,firstWeekContainsDate:1}};function M3(e,t,r){const n=jv(),a=(r==null?void 0:r.locale)??n.locale??Ev,i=2520,o=Oa(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const u=Object.assign({},r,{addSuffix:r==null?void 0:r.addSuffix,comparison:o});let s,c;o>0?(s=$e(t),c=$e(e)):(s=$e(e),c=$e(t));const f=JW(c,s),l=(ch(c)-ch(s))/1e3,d=Math.round((f-l)/60);let h;if(d<2)return r!=null&&r.includeSeconds?f<5?a.formatDistance("lessThanXSeconds",5,u):f<10?a.formatDistance("lessThanXSeconds",10,u):f<20?a.formatDistance("lessThanXSeconds",20,u):f<40?a.formatDistance("halfAMinute",0,u):f<60?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",1,u):d===0?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",d,u);
72if(d<45)return a.formatDistance("xMinutes",d,u);if(d<90)return a.formatDistance("aboutXHours",1,u);if(d<uh){const p=Math.round(d/60);return a.formatDistance("aboutXHours",p,u)}else{if(d<i)return a.formatDistance("xDays",1,u);if(d<wa){const p=Math.round(d/uh);return a.formatDistance("xDays",p,u)}else if(d<wa*2)return h=Math.round(d/wa),a.formatDistance("aboutXMonths",h,u)}if(h=YW(c,s),h<12){const p=Math.round(d/wa);return a.formatDistance("xMonths",p,u)}else{const p=h%12,m=Math.trunc(h/12);return p<3?a.formatDistance("aboutXYears",m,u):p<9?a.formatDistance("overXYears",m,u):a.formatDistance("almostXYears",m+1,u)}}function j3(e,t){return M3(e,UW(e),t)}function E3(e,t,r){const n=sh(e,r),a=sh(t,r);return+n==+a}const lh={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},C3=(e,t,r)=>{let n;const a=r!=null&&r.addSuffix?lh[e].withPreposition:lh[e].standalone;return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:"vor "+n:n},I3={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},N3={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},D3={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},k3={date:Te({formats:I3,defaultWidth:"full"}),time:Te({formats:N3,defaultWidth:"full"}),dateTime:Te({formats:D3,defaultWidth:"full"})},R3={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},L3=(e,t,r,n)=>R3[e],B3={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},W3={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},as={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},F3={narrow:as.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:as.wide},q3={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},U3={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nac
72hm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},z3={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},H3=e=>Number(e)+".",X3={ordinalNumber:H3,era:ae({values:B3,defaultWidth:"wide"}),quarter:ae({values:W3,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ae({values:as,formattingValues:F3,defaultWidth:"wide"}),day:ae({values:q3,defaultWidth:"wide"}),dayPeriod:ae({values:U3,defaultWidth:"wide",formattingValues:z3,defaultFormattingWidth:"wide"})},V3=/^(\d+)(\.)?/i,K3=/\d+/i,G3={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},Y3={any:[/^v/i,/^n/i]},J3={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},Z3={any:[/1/i,/2/i,/3/i,/4/i]},Q3={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},eF={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tF={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},rF={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},nF={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},aF={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},iF={ordinalNumber:Yr({matchPattern:V3,parsePattern:K3,valueCallback:e=>parseInt(e)}),era:ie({matchPatterns:G3,defaultMatchWidth:"wide",parsePatterns:Y3,defaultParseWidth:"any"}),quarter:ie({matchPatterns:J3,defaultMatchWidth:"wide",parsePatterns:Z3,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ie({matchPatterns:Q3,defaultMatchWidth:"wide",parsePatterns:eF,defaultParseWidth:"any"}),day:ie({matchPatterns:tF,defaultMatchWidth:"wide",parsePatterns:rF,defaultParseWidth:"any"}),dayPeriod:ie({matchPatterns:nF,defaultMatchWidth:"wide",parsePatterns:aF,defaultParseWidth:"any"})},oF={code:"de",formatDistance:C3,formatLong:k3,formatRelative:L3,localize:X3,match:iF,options:{weekStartsOn:1,firstWeekContainsDate:4}},uF={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dÃa",other:"{{count}} dÃas"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},sF=(e,t,r)=>{let n;const a=uF[e];
72return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+n:"hace "+n:n},cF={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},lF={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fF={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dF={date:Te({formats:cF,defaultWidth:"full"}),time:Te({formats:lF,defaultWidth:"full"}),dateTime:Te({formats:fF,defaultWidth:"full"})},hF={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},pF={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},mF=(e,t,r,n)=>t.getHours()!==1?pF[e]:hF[e],vF={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]}
72,yF={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},gF={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},bF={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},wF={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},xF={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},OF=(e,t)=>Number(e)+"º",PF={ordinalNumber:OF,era:ae({values:vF,defaultWidth:"wide"}),quarter:ae({values:yF,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:ae({values:gF,defaultWidth:"wide"}),day:ae({values:bF,defaultWidth:"wide"}),dayPeriod:ae({values:wF,defaultWidth:"wide",formattingValues:xF,defaultFormattingWidth:"wide"})},SF=/^(\d+)(º)?/i,AF=/\d+/i,_F={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},$F={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},TF={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},MF={any:[/1/i,/2/i,/3/i,/4/i]},jF={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},EF={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},CF={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},IF={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},NF={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},DF={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},kF={ordinalNumber:Yr({matchPattern:SF,parsePattern:AF,valueCallback:function(e){return parseInt(e,10)}}),era:ie({matchPatterns:_F,defaultMatchWidth:"wide",parsePatterns:$F,defaultParseWidth:"any"}),quarter:ie({matchPatterns:TF,defaultMatchWidth:"wide",parsePatterns:MF,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ie({matchPatterns:jF,defaultMatchWidth:"wide",parsePatterns:EF,defaultParseWidth:"any"}),day:ie({matchPatterns:CF,defaultMatchWidth:"wide",parsePatterns:IF,defaultParseWidth:"any"}),dayPeriod:ie({matchPatterns:NF,defaultMatchWidth:"any",parsePatterns:DF,defaultParseWidth:"any"})},RF={code:"es",formatDistance:sF,formatLong:dF,formatRelative:mF,localize:PF,match:kF,options:{weekStartsOn:1,firstWeekContainsDate:1}},LF={lessThanXSeconds:{one:"moins dâune seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins dâune minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus dâun an",other:"plus de {{count}} ans"},almostXYears:{one:"presquâun an",other:"presque {{count}} ans"}},BF=(e,t,r)=>{let n;const a=LF[e];
72return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dans "+n:"il y a "+n:n},WF={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},FF={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},qF={full:"{{date}} 'à ' {{time}}",long:"{{date}} 'à ' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},UF={date:Te({formats:WF,defaultWidth:"full"}),time:Te({formats:FF,defaultWidth:"full"}),dateTime:Te({formats:qF,defaultWidth:"full"})},zF={lastWeek:"eeee 'dernier à ' p",yesterday:"'hier à ' p",today:"'aujourdâhui à ' p",tomorrow:"'demain à ' p'",nextWeek:"eeee 'prochain à ' p",other:"P"},HF=(e,t,r,n)=>zF[e],XF={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},VF={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},KF={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},GF={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},YF={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de lâaprès-midi",evening:"du soir",night:"du matin"}},JF=(e,t)=>{const r=Number(e),n=t==null?void 0:t.unit;if(r===0)return"0";const a=["year","week","hour","minute","second"];let i;return r===1?i=n&&a.includes(n)?"ère":"er":i="ème",r+i},ZF=["MMM","MMMM"],QF={preprocessor:(e,t)=>e.getDate()===1||!t.some(n=>n.isToken&&ZF.includes(n.value))?t:t.map(n=>n.isToken&&n.value==="do"?{isToken:!0,value:"d"}:n),ordinalNumber:JF,era:ae({values:XF,defaultWidth:"wide"}),quarter:ae({values:VF,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ae({values:KF,defaultWidth:"wide"}),day:ae({values:GF,defaultWidth:"wide"}),dayPeriod:ae({values:YF,defaultWidth:"wide"})},e5=/^(\d+)(ième|ère|ème|er|e)?/i,t5=/\d+/i,r5={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},n5={any:[/^av/i,/^ap/i]},a5={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},i5={any:[/1/i,/2/i,/3/i,/4/i]},o5={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},u5={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},s5={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},c5={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},l5={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},f5={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},d5={ordinalNumber:Yr({matchPattern:e5,parsePattern:t5,valueCallback:e=>parseInt(e)}),era:ie({matchPatterns:r5,defaultMatchWidth:"wide",parsePatterns:n5,defaultParseWidth:"any"}),quarter:ie({matchPatterns:a5,defaultMatchWidth:"wide",parsePatterns:i5,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ie({matchPatterns:o5,defaultMatchWidth:"wide",parsePatterns:u5,defaultParseWidth:"any"}),day:ie({matchPatterns:s5,defaultMatchWidth:"wide",parsePatterns:c5,defaultParseWidth:"any"}),dayPeriod:ie({matchPatterns:l5,defaultMatchWidth:"any",parsePatterns:f5,defaultParseWidth:"any"})},h5={code:"fr",formatDistance:BF,formatLong:UF,formatRelative:HF,localize:QF,match:d5,options:{weekStartsOn:1,firstWeekContainsDate:4}},p5={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},m5=(e,t,r)=>{let n;const a=p5[e];
72return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"em "+n:"há "+n:n},v5={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},y5={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},g5={full:"{{date}} 'à s' {{time}}",long:"{{date}} 'à s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},b5={date:Te({formats:v5,defaultWidth:"full"}),time:Te({formats:y5,defaultWidth:"full"}),dateTime:Te({formats:g5,defaultWidth:"full"})},w5={lastWeek:e=>{const t=e.getDay();return"'"+(t===0||t===6?"último":"última")+"' eeee 'à s' p"},yesterday:"'ontem à s' p",today:"'hoje à s' p",tomorrow:"'amanhã à s' p",nextWeek:"eeee 'à s' p",other:"P"},x5=(e,t,r,n)=>{const a=w5[e];return typeof a=="function"?a(t):a},O5={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},P5={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},S5={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},A5={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},_5={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},$5={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},T5=(e,t)=>{const r=Number(e);return(t==null?void 0:t.unit)==="week"?r+"ª":r+"º"},M5={ordinalNumber:T5,era:ae({values:O5,defaultWidth:"wide"}),quarter:ae({values:P5,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ae({values:S5,defaultWidth:"wide"}),day:ae({values:A5,defaultWidth:"wide"}),dayPeriod:ae({values:_5,defaultWidth:"wide",formattingValues:$5,defaultFormattingWidth:"wide"})},j5=/^(\d+)[ºªo]?/i,E5=/\d+/i,C5={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},I5={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},N5={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},D5={any:[/1/i,/2/i,/3/i,/4/i]},k5={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},R5={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},L5={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},B5={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},W5={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(d
72a) (manhã|tarde|noite))/i},F5={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},q5={ordinalNumber:Yr({matchPattern:j5,parsePattern:E5,valueCallback:e=>parseInt(e,10)}),era:ie({matchPatterns:C5,defaultMatchWidth:"wide",parsePatterns:I5,defaultParseWidth:"any"}),quarter:ie({matchPatterns:N5,defaultMatchWidth:"wide",parsePatterns:D5,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ie({matchPatterns:k5,defaultMatchWidth:"wide",parsePatterns:R5,defaultParseWidth:"any"}),day:ie({matchPatterns:L5,defaultMatchWidth:"wide",parsePatterns:B5,defaultParseWidth:"any"}),dayPeriod:ie({matchPatterns:W5,defaultMatchWidth:"any",parsePatterns:F5,defaultParseWidth:"any"})},U5={code:"pt-BR",formatDistance:m5,formatLong:b5,formatRelative:x5,localize:M5,match:q5,options:{weekStartsOn:0,firstWeekContainsDate:1}},z5={lessThanXSeconds:{one:"ä¸å° 1 ç§",other:"ä¸å° {{count}} ç§"},xSeconds:{one:"1 ç§",other:"{{count}} ç§"},halfAMinute:"ååé",lessThanXMinutes:{one:"ä¸å° 1 åé",other:"ä¸å° {{count}} åé"},xMinutes:{one:"1 åé",other:"{{count}} åé"},xHours:{one:"1 å°æ¶",other:"{{count}} å°æ¶"},aboutXHours:{one:"大约 1 å°æ¶",other:"大约 {{count}} å°æ¶"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个ææ",other:"大约 {{count}} 个ææ"},xWeeks:{one:"1 个ææ",other:"{{count}} 个ææ"},aboutXMonths:{one:"大约 1 个æ",other:"大约 {{count}} 个æ"},xMonths:{one:"1 个æ",other:"{{count}} 个æ"},aboutXYears:{one:"大约 1 å¹´",other:"大约 {{count}} å¹´"},xYears:{one:"1 å¹´",other:"{{count}} å¹´"},overXYears:{one:"è¶
è¿ 1 å¹´",other:"è¶
è¿ {{count}} å¹´"},almostXYears:{one:"å°è¿ 1 å¹´",other:"å°è¿ {{count}} å¹´"}},H5=(e,t,r)=>{let n;const a=z5[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?n+"å
":n+"å":n},X5={full:"y'å¹´'M'æ'd'æ¥' EEEE",long:"y'å¹´'M'æ'd'æ¥'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},V5={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},K5={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},G5={date:Te({formats:X5,defaultWidth:"full"}),time:Te({formats:V5,defaultWidth:"full"}),dateTime:Te({formats:K5,defaultWidth:"full"})};function fh(e,t,r){const n="eeee p";return E3(e,t,r)?n:e.getTime()>t.getTime()?"'ä¸ä¸ª'"+n:"'ä¸ä¸ª'"+n}const Y5={lastWeek:fh,yesterday:"'æ¨å¤©' p",today:"'ä»å¤©' p",tomorrow:"'æå¤©' p",nextWeek:fh,other:"PP p"},J5=(e,t,r,n)=>{const a=Y5[e];return typeof a=="function"?a(t,r,n):a},Z5={narrow:["å","å
Œ
"],abbreviated:["å","å
Œ
"],wide:["å
Œ
å","å
Œ
"]},Q5={narrow:["1","2","3","4"],abbreviated:["第ä¸å£","第äºå£","第ä¸å£","第åå£"],wide:["第ä¸å£åº¦","第äºå£åº¦","第ä¸å£åº¦","第åå£åº¦"]},e4={narrow:["ä¸","äº","ä¸","å","äº","å
","ä¸","å
«","ä¹","å","åä¸","åäº"],abbreviated:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"],wide:["䏿","äºæ","䏿","åæ","äºæ","å
æ","䏿","å
«æ","乿","åæ","å䏿","åäºæ"]},t4={narrow:["æ¥","ä¸","äº","ä¸","å","äº","å
"],short:["æ¥","ä¸","äº","ä¸","å","äº","å
"],abbreviated:["卿¥","å¨ä¸","å¨äº","å¨ä¸","å¨å","å¨äº","å¨å
"],wide:["æææ¥","ææä¸","ææäº","ææä¸","ææå","ææäº","ææå
"]},r4={narrow:{am:"ä¸",pm:"ä¸",midnight:"忍",noon:"å",morning:"æ©",afternoon:"ä¸å",evening:"æ",night:"å¤"},abbreviated:{am:"ä¸å",pm:"ä¸å",midnight:"忍",noon:"ä¸å",morning:"æ©æ¨",afternoon:"ä¸å",evening:"æä¸",night:"å¤é´"},wide:{am:"ä¸å",pm:"ä¸å",midnight:"忍",noon:"ä¸å",morning:"æ©æ¨",afternoon:"ä¸å",evening:"æä¸",night:"å¤é´"}},n4={narrow:{am:"ä¸",pm:"ä¸",midnight:"忍",noon:"å",morning:"æ©",afternoon:"ä¸å",evening:"æ",night:"å¤"},abbreviated:{am:"ä¸å",pm:"ä¸å",midnight:"忍",noon:"ä¸å",morning:"æ©æ¨",afternoon:"ä¸å",evening:"æä¸",night:"å¤é´"},wide:{am:"ä¸å",pm:"ä¸å",midnight:"忍",noon:"ä¸å",morning:"æ©æ¨",afternoon:"ä¸å",evening:"æä¸",night:"å¤é´"}},a4=(e,t)=>
72{const r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"æ¥";case"hour":return r.toString()+"æ¶";case"minute":return r.toString()+"å";case"second":return r.toString()+"ç§";default:return"第 "+r.toString()}},i4={ordinalNumber:a4,era:ae({values:Z5,defaultWidth:"wide"}),quarter:ae({values:Q5,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ae({values:e4,defaultWidth:"wide"}),day:ae({values:t4,defaultWidth:"wide"}),dayPeriod:ae({values:r4,defaultWidth:"wide",formattingValues:n4,defaultFormattingWidth:"wide"})},o4=/^(第\s*)?\d+(æ¥|æ¶|å|ç§)?/i,u4=/\d+/i,s4={narrow:/^(å)/i,abbreviated:/^(å)/i,wide:/^(å
Œ
å|å
Œ
)/i},c4={any:[/^(å)/i,/^(å
Œ
)/i]},l4={narrow:/^[1234]/i,abbreviated:/^第[ä¸äºä¸å]å»/i,wide:/^第[ä¸äºä¸å]å»é/i},f4={any:[/(1|ä¸)/i,/(2|äº)/i,/(3|ä¸)/i,/(4|å)/i]},d4={narrow:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸])/i,abbreviated:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸]|\d|1[12])æ/i,wide:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸])æ/i},h4={narrow:[/^ä¸/i,/^äº/i,/^ä¸/i,/^å/i,/^äº/i,/^å
/i,/^ä¸/i,/^å
«/i,/^ä¹/i,/^å(?!(ä¸|äº))/i,/^åä¸/i,/^åäº/i],any:[/^ä¸|1/i,/^äº|2/i,/^ä¸|3/i,/^å|4/i,/^äº|5/i,/^å
|6/i,/^ä¸|7/i,/^å
«|8/i,/^ä¹|9/i,/^å(?!(ä¸|äº))|10/i,/^åä¸|11/i,/^åäº|12/i]},p4={narrow:/^[ä¸äºä¸åäºå
æ¥]/i,short:/^[ä¸äºä¸åäºå
æ¥]/i,abbreviated:/^å¨[ä¸äºä¸åäºå
æ¥]/i,wide:/^ææ[ä¸äºä¸åäºå
æ¥]/i},m4={any:[/æ¥/i,/ä¸/i,/äº/i,/ä¸/i,/å/i,/äº/i,/å
/i]},v4={any:/^(ä¸å?|ä¸å?|åå¤|[䏿£]å|æ©ä¸?|ä¸å|æä¸?|忍|)/i},y4={any:{am:/^ä¸å?/i,pm:/^ä¸å?/i,midnight:/^åå¤/i,noon:/^[䏿£]å/i,morning:/^æ©ä¸/i,afternoon:/^ä¸å/i,evening:/^æä¸?/i,night:/^忍/i}},g4={ordinalNumber:Yr({matchPattern:o4,parsePattern:u4,valueCallback:e=>parseInt(e,10)}),era:ie({matchPatterns:s4,defaultMatchWidth:"wide",parsePatterns:c4,defaultParseWidth:"any"}),quarter:ie({matchPatterns:l4,defaultMatchWidth:"wide",parsePatterns:f4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ie({matchPatterns:d4,defaultMatchWidth:"wide",parsePatterns:h4,defaultParseWidth:"any"}),day:ie({matchPatterns:p4,defaultMatchWidth:"wide",parsePatterns:m4,defaultParseWidth:"any"}),dayPeriod:ie({matchPatterns:v4,defaultMatchWidth:"any",parsePatterns:y4,defaultParseWidth:"any"})},b4={code:"zh-CN",formatDistance:H5,formatLong:G5,formatRelative:J5,localize:i4,match:g4,options:{weekStartsOn:1,firstWeekContainsDate:4}},w4={es:RF,en:Ev,pt:U5,fr:h5,de:oF,zh:b4};function x4(e){return w4[e]}function O4(){const{data:e,isLoading:t}=Kv(),{t:r,locale:n}=ph(),a=x4(n);return k.jsxs(Xt,{children:[k.jsx(Vt,{children:k.jsx(Kt,{className:"text-base",children:r("act.title")})}),k.jsx(Gt,{children:t?k.jsx("div",{className:"space-y-3",children:Array.from({length:4}).map((i,o)=>k.jsx(Gn,{className:"h-10 w-full"},o))}):e!=null&&e.length?k.jsx("div",{className:"space-y-3",children:e.map(i=>k.jsxs("div",{className:"flex items-start gap-3",children:[k.jsx("div",{className:`mt-0.5 p-1.5 rounded-md ${i.type==="prospect"?"bg-primary/10 text-primary":"bg-accent/20 text-accent-foreground"}`,children:i.type==="prospect"?k.jsx(mh,{className:"h-3.5 w-3.5"}):k.jsx(Lv,{className:"h-3.5 w-3.5"})}),k.jsxs("div",{className:"flex-1 min-w-0",children:[k.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:i.title}),k.jsx("p",{className:"text-xs text-muted-foreground truncate",children:i.detail})]}),k.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:j3(new Date(i.date),{addSuffix:!0,locale:a})})]},i.id))}):k.jsx("p",{className:"text-sm text-muted-foreground text-center py-6",children:r("act.empty")})})]})}function P4(){const{data:e,isLoading:t}=Gv();return k.jsxs(Xt,{children:[k.jsx(Vt,{children:k.jsxs(Kt,{className:"text-base flex items-center gap-2",children:[k.jsx(Bv,{className:"h-4 w-4 text-accent"}),"Ranking por Vendedor"]})}),k.jsx(Gt,{children:t?k.jsx("div",{className:"space-y-3",children:Array.from({length:3}).map((r,n)=>k.jsx(Gn,{className:"h-12 w-full"},n))}):e!=null&&e.length?k.jsx("div",{className:"space-y-3",children:e.map((r,n)=>k.jsxs("div",{className:"flex items-center gap-3 p-2 rounded-lg bg-secondary/50",children:[k.jsxs("span",{className:`text-sm font-bold w-6 text-center ${n===0?"text-accent":"text-muted-foreground"}`,children:["#",n+1]}),k.jsxs("div",{className:"flex-1 min-w-0",children:[k.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:r.name}),k.jsxs("div",{className:"flex gap-3 text-xs text-muted-foreground",children:[k.jsxs("span",{children:[r.prospects," prospectos"]}),k.jsxs("span",{children:[r.proposals," propuestas"]}),k.jsxs("span",{children:[r.closedDeals," cerradas"]})]})]}),k.jsxs("span",{className:"text-sm font-semibold text-foreground",children:["$",r.revenue.toLocaleStr
72ing("es-MX")]})]},r.userId))}):k.jsx("p",{className:"text-sm text-muted-foreground text-center py-6",children:"Sin datos de vendedores aún"})})]})}var fc="Progress",dc=100,[S4,k4]=Wv(fc),[A4,_4]=S4(fc),Cv=L.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:a,getValueLabel:i=$4,...o}=e;(a||a===0)&&!dh(a)&&console.error(T4(`${a}`,"Progress"));const u=dh(a)?a:dc;n!==null&&!hh(n,u)&&console.error(M4(`${n}`,"Progress"));const s=hh(n,u)?n:null,c=pi(s)?i(s,u):void 0;return k.jsx(A4,{scope:r,value:s,max:u,children:k.jsx(vh.div,{"aria-valuemax":u,"aria-valuemin":0,"aria-valuenow":pi(s)?s:void 0,"aria-valuetext":c,role:"progressbar","data-state":Dv(s,u),"data-value":s??void 0,"data-max":u,...o,ref:t})})});Cv.displayName=fc;var Iv="ProgressIndicator",Nv=L.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,a=_4(Iv,r);return k.jsx(vh.div,{"data-state":Dv(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...n,ref:t})});Nv.displayName=Iv;function $4(e,t){return`${Math.round(e/t*100)}%`}function Dv(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function pi(e){return typeof e=="number"}function dh(e){return pi(e)&&!isNaN(e)&&e>0}function hh(e,t){return pi(e)&&!isNaN(e)&&e<=t&&e>=0}function T4(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${dc}\`.`}function M4(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 73 - a positive number 74 - less than the value passed to \`max\` (or ${dc} if no \`max\` prop is set) 75 - \`null\` or \`undefined\` if the progress is indeterminate. 76 77Defaulting to \`null\`.`}var kv=Cv,j4=Nv;const Rv=L.forwardRef(({className:e,value:t,...r},n)=>k.jsx(kv,{ref:n,className:Fv("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:k.jsx(j4,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Rv.displayName=kv.displayName;function E4(){const{user:e}=Kn(),t=yh(),r=new Date,{data:n,isLoading:a}=vr({queryKey:["sales-target",e==null?void 0:e.id,r.getMonth()+1,r.getFullYear()],queryFn:async()=>{const{data:o}=await pt.from("sales_targets").select("*").eq("user_id",e.id).eq("month",r.getMonth()+1).eq("year",r.getFullYear()).maybeSingle();return o},enabled:!!e}),i=[{label:"Ingresos",current:t.totalRevenue,target:(n==null?void 0:n.target_amount)??0,fmt:o=>`$${o.toLocaleString("es-MX")}`},{label:"Ventas Cerradas",current:t.closedDeals,target:(n==null?void 0:n.target_deals)??0,fmt:o=>String(o)},{label:"Prospectos",current:t.prospects,target:(n==null?void 0:n.target_prospects)??0,fmt:o=>String(o)}];return a||t.loading?k.jsxs(Xt,{children:[k.jsx(Vt,{children:k.jsx(Kt,{className:"text-base",children:"Metas del Mes"})}),k.jsx(Gt,{children:k.jsx(Gn,{className:"h-32 w-full"})})]}):n?k.jsxs(Xt,{children:[k.jsx(Vt,{children:k.jsxs(Kt,{className:"text-base flex items-center gap-2",children:[k.jsx(mc,{className:"h-4 w-4 text-primary"}),"Metas del Mes"]})}),k.jsx(Gt,{className:"space-y-4",children:i.map(o=>{const u=o.target>0?Math.min(Math.round(o.current/o.target*100),100):0;return k.jsxs("div",{className:"space-y-1.5",children:[k.jsxs("div",{className:"flex justify-between text-sm",children:[k.jsx("span",{className:"text-muted-foreground",children:o.label}),k.jsxs("span",{className:"font-medium text-foreground",children:[o.fmt(o.current)," / ",o.fmt(o.target)]})]}),k.jsx(Rv,{value:u,className:"h-2"}),k.jsxs("p",{className:"text-xs text-right text-muted-foreground",children:[u,"%"]})]},o.label)})})]}):k.jsxs(Xt,{children:[k.jsx(Vt,{children:k.jsxs(Kt,{className:"text-base flex items-center gap-2",children:[k.jsx(mc,{className:"h-4 w-4 text-primary"}),"Metas del Mes"]})}),k.jsx(Gt,{children:k.jsx("p",{className:"text-sm text-muted-foreground text-center py-6",children:"No tienes metas configuradas para este mes. Pide a tu admin que las configure."})})]})}function R4(){const{t:e,locale:t}=ph(),r=yh(),n=Uv[t],a=o=>o>=1e3?`$${(o/1e3).toFixed(o%1e3===0?0:1)}k`:`$${o.toLocaleString(n)}`,i=[{labelKey:"dash.kpi1",value:r.prospects,icon:mh,color:"text-primary"},{labelKey:"dash.kpi2",value:r.activePackages,icon:Hv,color:"text-accent"},{labelKey:"dash.kpi3",value:r.closedDeals,icon:Xv,color:"text-mundial-green"},{labelKey:"dash.kpi4",value:a(r.totalRevenue),icon:qv,color:"text-mundial-gold"}];return k.jsxs("div",{className:"space-y-6",children:[k.jsxs("div",{children:[k.jsx("h1",{className:"text-3xl font-bold text-foreground",children:e("dash.title")}),k.jsx("p",{className:"text-muted-foreground mt-1",children:e("dash.sub")}),r.loading?k.jsx(zv,{}):null]}),k.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:i.map(({labelKey:o,value:u,icon:s,color:c})=>k.jsxs(Xt,{children:[k.jsxs(Vt,{className:"flex flex-row items-center justify-between pb-2",children:[k.jsx(Kt,{className:"text-sm font-medium text-muted-foreground",children:e(o)}),k.jsx(s,{className:`h-5 w-5 ${c}`})]}),k.jsx(Gt,{children:r.loading?k.jsx(Gn,{className:"h-9 w-20"}):k.jsx("p",{className:"text-3xl font-bold text-foreground",children:u})})]},o))}),k.jsx(WW,{}),k.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[k.jsx(E4,{}),k.jsx(O4,{})]}),k.jsx(P4,{})]})}
77export{R4 as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.