@cryptofi/core-ui 1.6.3 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{chakra as
6
6
  * Copyright (c) 2021 Jason Wilson
7
7
  * Released under MIT license
8
8
  */
9
- var yr={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(e,t){var r=t.pattern,n=t.negativePattern,o=t.symbol,i=t.separator,a=t.decimal,c=t.groups,l=(""+e).replace(/^-/,"").split("."),u=l[0],s=l[1];return(e.value>=0?r:n).replace("!",o).replace("#",u.replace(c,"$1"+i)+(s?a+s:""))},fromCents:!1},vr=function(e){return Math.round(e)},mr=function(e){return Math.pow(10,e)},gr=/(\d)(?=(\d{3})+\b)/g,br=/(\d)(?=(\d\d)+\d\b)/g;function wr(e,t){var r=this;if(!(r instanceof wr))return new wr(e,t);var n=Object.assign({},yr,t),o=mr(n.precision),i=xr(e,n);r.intValue=i,r.value=i/o,n.increment=n.increment||1/o,n.useVedic?n.groups=br:n.groups=gr,this.s=n,this.p=o}function xr(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=0,o=t.decimal,i=t.errorOnInvalid,a=t.precision,c=t.fromCents,l=mr(a),u="number"==typeof e,s=e instanceof wr;if(s&&c)return e.intValue;if(u||s)n=s?e.value:e;else if("string"==typeof e){var f=new RegExp("[^-\\d"+o+"]","g"),p=new RegExp("\\"+o,"g");n=(n=e.replace(/\((.*)\)/,"-$1").replace(f,"").replace(p,"."))||0}else{if(i)throw Error("Invalid Input");n=0}return c||(n=(n*=l).toFixed(4)),r?vr(n):n}wr.prototype={add:function(e){var t=this.intValue,r=this.s,n=this.p;return wr((t+=xr(e,r))/(r.fromCents?1:n),r)},subtract:function(e){var t=this.intValue,r=this.s,n=this.p;return wr((t-=xr(e,r))/(r.fromCents?1:n),r)},multiply:function(e){var t=this.intValue,r=this.s;return wr((t*=e)/(r.fromCents?1:mr(r.precision)),r)},divide:function(e){var t=this.intValue,r=this.s;return wr(t/=xr(e,r,!1),r)},distribute:function(e){for(var t=this.intValue,r=this.p,n=this.s,o=[],i=Math[t>=0?"floor":"ceil"](t/e),a=Math.abs(t-i*e),c=n.fromCents?1:r;0!==e;e--){var l=wr(i/c,n);a-- >0&&(l=l[t>=0?"add":"subtract"](1/c)),o.push(l)}return o},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(e){var t=this.s;return"function"==typeof e?e(this,t):t.format(this,Object.assign({},t,e))},toString:function(){var e,t,r=this.intValue,n=this.p,o=this.s;return(e=r/n,t=o.increment,vr(e/t)*t).toFixed(o.precision)},toJSON:function(){return this.value}};const Or=({amount:e,autoPrecision:t,precision:r=2,signDisplay:n=!1})=>{const o=Number(e);if(!Number.isFinite(o))return console.log(`Amount is not a finite number. (amount: ${o}, method: formatUsd)`),e;const i=wr(o,{precision:t&&o>-1&&o<1&&0!==o?5:r}).format();return n&&o>0?`+${i}`:i},Sr=({data:e,dataKey:t})=>{const r=e?.length?Number(e[0][t]):0,n=e?.length?Number(e[e.length-1][t]):0;if(!e?.length)return{startingAmount:0,endingAmount:0,delta:0,percentChange:0,isNetGain:!0};if(!Number.isFinite(r)||!Number.isFinite(n))throw new Error(`Starting or ending amount is not a finite number. (startingAmount: ${r}, endingAmount: ${n}, method: getDelta)`);const o=new Jt(r),i=new Jt(n),a=i.minus(o);return{startingAmount:r,endingAmount:n,delta:a.toNumber(),percentChange:0===o.toNumber()?0:a.div(o).mul(100).toNumber(),isNetGain:i.gt(o)}},jr=e=>{let t;return["sm","xs"].includes(e)&&(t="xs"),t},Pr=()=>{try{return window.self!==window.top}catch(e){return!0}},Mr=e=>Array.from(e).reverse(),Ar=({arr:e,n:t})=>{const r=Mr(e);return Mr(r.filter(((e,r)=>r%t==0)))},kr=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([A-Z][a-z])/g,"$1 $2").trim(),Er={redRemains:(e=1)=>Cr({rgb:"rgb(255, 223, 223)",alpha:e}),heroicRed:(e=1)=>Cr({rgb:"rgb(210, 25, 25)",alpha:e}),aijiroWhite:(e=1)=>Cr({rgb:"rgb(238, 248, 247)",alpha:e}),mint:(e=1)=>Cr({rgb:"rgb(64, 178, 136)",alpha:e}),white:(e=1)=>Cr({rgb:"rgb(255, 255, 255)",alpha:e,enabledAlphaValues:[.2]}),lighthouse:(e=1)=>Cr({rgb:"rgb(244, 244, 244)",alpha:e}),coolElegance:(e=1)=>Cr({rgb:"rgb(205, 207, 209)",alpha:e}),sonicSilver:(e=1)=>Cr({rgb:"rgb(117, 117, 117)",alpha:e}),black:(e=1)=>Cr({rgb:"rgb(0, 0, 0)",alpha:e,enabledAlphaValues:[.08]})},Cr=({rgb:e,alpha:t,enabledAlphaValues:r=[1]})=>{if(![...r,1].includes(t))throw`Unsupported alpha value: ${t}. Update the color function in uiColors.ts to enable additional values.`;const[n,o,i]=e.replace(/[^\d,]/g,"").split(",");return`rgba(${n}, ${o}, ${i}, ${t})`},_r=({usd:e,precision:t=2,autoPrecision:r})=>{const n=wr(e).value;return wr(e,{precision:r&&n>-1&&n<1&&0!==n?5:t}).value},Tr="22rem",Dr={dateOnly:"MM/DD/YY",dateWithTime:"MM/DD/YYYY h:mm A",shortDateWithTime:"MMM D, h:mm A",shortDateWithYear:"MMM D, YYYY"};ar.extend(pr);const Ir=({dateFormat:e=Dr.dateOnly,timeString:t})=>ar.utc(t).local().format(e),{definePartsStyle:Nr,defineMultiStyleConfig:Rr}=o(It.keys),Lr=Rr({baseStyle:Nr({root:{display:"flex",flexDirection:"column",gap:2},container:{borderRadius:"lg",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.300",bg:"gray.100",color:Er.black(),overflow:"hidden",'&:has(button[aria-expanded="true"])':{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"}},button:{px:4,py:4,bg:Er.white(),fontSize:"md",_hover:{bg:Er.lighthouse()}},panel:{borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"gray.300",fontSize:"sm",bg:Er.lighthouse(),py:"4",px:"4"}}),variants:{spacious:Nr({container:{borderRadius:"lg"},button:{py:8,px:6,fontSize:"md"},panel:{fontSize:"sm",bg:Er.lighthouse(),p:"8"}})}}),{definePartsStyle:Br,defineMultiStyleConfig:zr}=o(Nt.keys),$r=zr({baseStyle:Br((e=>{const{colorScheme:t,theme:r}=e,n=r.colors[t];return{icon:{svg:{path:{fill:n[500]}}},container:{bg:n[100],borderColor:n[500],borderRadius:"lg",borderStyle:"solid",borderWidth:1,padding:4},description:{color:"blackAlpha.900"},title:{color:"blackAlpha.900"}}})),defaultProps:{variant:"subtle"}}),Hr=i({borderColor:"red.700",color:"red.700",border:"solid 2px",":hover, :focus":{backgroundColor:"gray.200"},svg:{path:{fill:"red.700"}}}),Fr=i({":hover, :focus":{background:"brand.600"}}),Vr={color:"brand.700 !important",bg:"brand.50 !important",opacity:"0.6 !important",filter:"grayscale() !important"},Ur=i({background:"brand.50",color:"brand.500",svg:{path:{fill:"brand.500"}},":hover, :focus":{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}},_disabled:{...Vr},":hover[disabled], :focus[disabled]":{...Vr},_active:{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}}}),Zr=i({border:"solid 2px",borderColor:"brand.600",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),Wr=i({boxShadow:"none",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),qr=a({baseStyle:{boxShadow:"0px 8px 16px 0px rgba(0,0,0,0.08)",svg:{width:"1em",height:"1em",path:{fill:"white"}}},sizes:{xs:i({lineHeight:1})},variants:{alert:Hr,outline:Zr,ghost:Wr,secondary:Ur,solid:Fr}}),{definePartsStyle:Yr,defineMultiStyleConfig:Xr}=o(Rt.keys),Gr=Xr({baseStyle:Yr({control:{borderRadius:"base",borderColor:"brand.500",svg:{path:{fill:"inherit"}},_checked:{svg:{path:{fill:"white"}}},_hover:{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)",_disabled:{bg:"gray.100"}},_indeterminate:{bg:"brand.100",borderColor:"brand.100",_hover:{bg:"brand.100",boxShadow:"none"}},_invalid:{_checked:{borderColor:"brand.500"}}}}),sizes:{lg:{control:{boxSize:7,svg:{width:"1.75em"}}},md:{control:{boxSize:6,svg:{width:"1.5em"}}},sm:{control:{boxSize:4,svg:{width:"1.5em"}}}}}),Kr=a({baseStyle:{helperText:{fontSize:"sm"}}}),Jr=a({sizes:{sm:{text:{fontSize:"xs"}},xs:{text:{fontSize:"xs"}}}}),Qr=a({baseStyle:{color:Er.sonicSilver(),fontFamily:"heading",fontSize:"sm",_disabled:{opacity:1}},sizes:{sm:{fontSize:"sm"},xs:{fontSize:"xs"}}}),en=a({sizes:{xl:i({fontSize:"4xl"}),lg:i({fontSize:"3xl"}),md:i({fontSize:"2xl"}),sm:i({fontSize:"xl"}),xs:i({fontSize:"md"})}}),{definePartsStyle:tn,defineMultiStyleConfig:rn}=o(Lt.keys),nn=rn({baseStyle:tn({group:{"svg:not(.asset-logo)":{width:"1em",height:"1em"}},field:{_readOnly:{pointerEvents:"none"}}}),sizes:{lg:tn({field:{fontSize:"md"}})},variants:{outline:{group:{"svg:not(.asset-logo)":{path:{fill:Er.sonicSilver()}},_groupFocus:{"svg:not(.asset-logo)":{path:{fill:Er.black()}}},_groupDisabled:{"svg:not(.asset-logo)":{path:{fill:Er.coolElegance()}}}},field:{border:"solid 1px",borderRadius:"lg",borderColor:Er.coolElegance(),color:Er.sonicSilver(),":focus":{color:Er.black(),borderColor:Er.black()},":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},_disabled:{color:Er.sonicSilver(),opacity:1,bg:Er.lighthouse(),":focus, :hover":{borderColor:Er.coolElegance(),bg:Er.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}},addon:{bg:"white",border:"solid 1px",borderRadius:"lg",borderColor:Er.coolElegance(),color:Er.black(),":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},":focus":{borderColor:Er.black()},_disabled:{color:Er.sonicSilver(),opacity:1,bg:Er.lighthouse(),":focus, :hover":{borderColor:Er.coolElegance(),bg:Er.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}}}},defaultProps:{size:"lg",variant:"outline"}}),{definePartsStyle:on,defineMultiStyleConfig:an}=o(Bt.keys),cn=an({baseStyle:on({field:{_readOnly:{pointerEvents:"none"}}}),sizes:{lg:on({field:{fontSize:"md"}})},variants:{outline:{field:{border:"solid 1px",borderColor:Er.coolElegance(),borderRadius:"lg",color:Er.sonicSilver(),pr:10,_focus:{color:Er.black(),borderColor:Er.black(),"+.chakra-select__icon-wrapper":{svg:{color:Er.black(),path:{fill:Er.black()}}}},":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},_disabled:{color:Er.sonicSilver(),opacity:1,bg:Er.lighthouse(),":focus, :hover":{borderColor:Er.coolElegance(),bg:Er.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}},icon:{width:"1em",height:"1em",fontSize:"1em",mr:2,path:{fill:Er.sonicSilver()},_disabled:{opacity:1,path:{fill:Er.coolElegance()}}}}},defaultProps:{size:"lg",variant:"outline"}}),ln=a({variants:{simple:{th:{borderColor:Er.coolElegance()},td:{borderColor:Er.coolElegance()},tr:{_last:{td:{border:"none"}}}},grayHeader:{th:{background:Er.lighthouse(),color:Er.sonicSilver(),borderBottom:"1px solid",borderColor:Er.coolElegance()},td:{borderBottom:"1px solid",borderColor:Er.coolElegance()},tr:{_last:{td:{border:"none"}}}}}}),{definePartsStyle:un,defineMultiStyleConfig:sn}=o(zt.keys),fn=un({container:{color:"blackAlpha.900",fontWeight:"bold",borderRadius:"full",svg:{path:{fill:"blackAlpha.900"}}}}),pn=un({container:{bg:"red.100",borderWidth:1,borderColor:"red.500"}}),dn=un({container:{bg:"yellow.100",borderColor:"yellow.500",borderWidth:1}});var hn=c({colors:{brand:{50:"#fcf2fe",100:"#f0c4f9",200:"#eaacf7",300:"#e495f4",400:"#de7ef2",500:"#d250ed",600:"#c622e8",700:"#b816da",800:"#a514c3",900:"#7e0f95"}},components:{Accordion:Lr,Alert:$r,Button:qr,Checkbox:Gr,Input:nn,Heading:en,Form:Kr,FormLabel:Qr,FormError:Jr,Select:cn,Table:ln,Tag:sn({baseStyle:fn,defaultProps:{variant:"outline"},variants:{error:pn,success:un({container:{bg:"green.100",borderColor:"green.500",borderWidth:1}}),warning:dn,outline:{container:{boxShadow:"none",borderColor:"brand.500",borderWidth:1}}},sizes:{sm:{container:{px:4,py:0}},md:{container:{px:6,py:1}},lg:{container:{px:6,py:1}}}})},styles:{global:{"[data-focus], :focus":{boxShadow:"none !important"},"::placeholder":{color:"gray.500"},"input[type=date]:invalid::-webkit-datetime-edit":{color:"gray.500"},"::-webkit-calendar-picker-indicator":{cursor:"pointer",filter:"opacity(40%)"},".recharts-surface":{overflow:"visible !important"},".recharts-surface .shadow":{filter:"drop-shadow(0 3px 5px rgba(0, 0, 0, 0.075))"}}}},l({colorScheme:"brand"}));const yn={components:hn.components,styles:hn.styles},vn=e=>{const t=String(e).replace(/\D/g,"").match(/^(\d{3})(\d{3})(\d{4})$/);return t?`(${t[1]}) ${t[2]}-${t[3]}`:e};let mn,gn,bn=(e=21)=>{var t;t=e|=0,!mn||mn.length<t?(mn=Buffer.allocUnsafe(128*t),K.randomFillSync(mn),gn=0):gn+t>mn.length&&(K.randomFillSync(mn),gn=0),gn+=t;let r="";for(let t=gn-e;t<gn;t++)r+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&mn[t]];return r};function wn(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=wn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function xn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=wn(e))&&(n&&(n+=" "),n+=t);return n}var On,Sn,jn,Pn,Mn,An,kn,En,Cn,_n,Tn,Dn,In,Nn,Rn,Ln,Bn,zn,$n,Hn,Fn,Vn,Un,Zn,Wn,qn,Yn,Xn,Gn,Kn,Jn,Qn,eo,to,ro,no,oo,io,ao,co,lo,uo,so,fo,po,ho,yo,vo,mo,go,bo,wo,xo,Oo,So,jo,Po,Mo,Ao,ko,Eo,Co,_o,To,Do,Io,No,Ro,Lo,Bo,zo,$o,Ho,Fo,Vo,Uo,Zo,Wo,qo,Yo,Xo,Go,Ko,Jo,Qo,ei,ti,ri,ni,oi,ii,ai,ci,li,ui,si,fi,pi,di,hi,yi,vi,mi,gi;function bi(){if(Sn)return On;Sn=1;var e=Array.isArray;return On=e}function wi(){if(Pn)return jn;Pn=1;var e="object"==typeof er&&er&&er.Object===Object&&er;return jn=e}function xi(){if(An)return Mn;An=1;var e=wi(),t="object"==typeof self&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Mn=r}function Oi(){if(En)return kn;En=1;var e=xi().Symbol;return kn=e}function Si(){if(Nn)return In;Nn=1;var e=Oi(),t=function(){if(_n)return Cn;_n=1;var e=Oi(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;return Cn=function(e){var t=r.call(e,o),i=e[o];try{e[o]=void 0;var a=!0}catch(e){}var c=n.call(e);return a&&(t?e[o]=i:delete e[o]),c}}(),r=function(){if(Dn)return Tn;Dn=1;var e=Object.prototype.toString;return Tn=function(t){return e.call(t)}}(),n=e?e.toStringTag:void 0;return In=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":n&&n in Object(e)?t(e):r(e)}}function ji(){if(Ln)return Rn;return Ln=1,Rn=function(e){return null!=e&&"object"==typeof e}}function Pi(){if(zn)return Bn;zn=1;var e=Si(),t=ji();return Bn=function(r){return"symbol"==typeof r||t(r)&&"[object Symbol]"==e(r)}}function Mi(){if(Hn)return $n;Hn=1;var e=bi(),t=Pi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return $n=function(o,i){if(e(o))return!1;var a=typeof o;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=o&&!t(o))||(n.test(o)||!r.test(o)||null!=i&&o in Object(i))},$n}function Ai(){if(Vn)return Fn;return Vn=1,Fn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function ki(){if(Zn)return Un;Zn=1;var e=Si(),t=Ai();return Un=function(r){if(!t(r))return!1;var n=e(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function Ei(){if(Xn)return Yn;Xn=1;var e,t=function(){if(qn)return Wn;qn=1;var e=xi()["__core-js_shared__"];return Wn=e}(),r=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return Yn=function(e){return!!r&&r in e}}function Ci(){if(Kn)return Gn;Kn=1;var e=Function.prototype.toString;return Gn=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function _i(){if(no)return ro;no=1;var e=function(){if(Qn)return Jn;Qn=1;var e=ki(),t=Ei(),r=Ai(),n=Ci(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,c=i.toString,l=a.hasOwnProperty,u=RegExp("^"+c.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Jn=function(i){return!(!r(i)||t(i))&&(e(i)?u:o).test(n(i))}}(),t=(to||(to=1,eo=function(e,t){return null==e?void 0:e[t]}),eo);return ro=function(r,n){var o=t(r,n);return e(o)?o:void 0},ro}function Ti(){if(io)return oo;io=1;var e=_i()(Object,"create");return oo=e}function Di(){if(go)return mo;go=1;var e=function(){if(co)return ao;co=1;var e=Ti();return ao=function(){this.__data__=e?e(null):{},this.size=0}}(),t=uo?lo:(uo=1,lo=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),r=function(){if(fo)return so;fo=1;var e=Ti(),t=Object.prototype.hasOwnProperty;return so=function(r){var n=this.__data__;if(e){var o=n[r];return"__lodash_hash_undefined__"===o?void 0:o}return t.call(n,r)?n[r]:void 0}}(),n=function(){if(ho)return po;ho=1;var e=Ti(),t=Object.prototype.hasOwnProperty;return po=function(r){var n=this.__data__;return e?void 0!==n[r]:t.call(n,r)}}(),o=function(){if(vo)return yo;vo=1;var e=Ti();return yo=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=e&&void 0===r?"__lodash_hash_undefined__":r,this}}();function i(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,mo=i}function Ii(){if(Oo)return xo;return Oo=1,xo=function(e,t){return e===t||e!=e&&t!=t}}function Ni(){if(jo)return So;jo=1;var e=Ii();return So=function(t,r){for(var n=t.length;n--;)if(e(t[n][0],r))return n;return-1},So}function Ri(){if(Io)return Do;Io=1;var e=wo?bo:(wo=1,bo=function(){this.__data__=[],this.size=0}),t=function(){if(Mo)return Po;Mo=1;var e=Ni(),t=Array.prototype.splice;return Po=function(r){var n=this.__data__,o=e(n,r);return!(o<0||(o==n.length-1?n.pop():t.call(n,o,1),--this.size,0))}}(),r=function(){if(ko)return Ao;ko=1;var e=Ni();return Ao=function(t){var r=this.__data__,n=e(r,t);return n<0?void 0:r[n][1]}}(),n=function(){if(Co)return Eo;Co=1;var e=Ni();return Eo=function(t){return e(this.__data__,t)>-1}}(),o=function(){if(To)return _o;To=1;var e=Ni();return _o=function(t,r){var n=this.__data__,o=e(n,t);return o<0?(++this.size,n.push([t,r])):n[o][1]=r,this}}();function i(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Do=i}function Li(){if(Ro)return No;Ro=1;var e=_i()(xi(),"Map");return No=e}function Bi(){if(Fo)return Ho;Fo=1;var e=$o?zo:($o=1,zo=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return Ho=function(t,r){var n=t.__data__;return e(r)?n["string"==typeof r?"string":"hash"]:n.map},Ho}function zi(){if(Jo)return Ko;Jo=1;var e=function(){if(Bo)return Lo;Bo=1;var e=Di(),t=Ri(),r=Li();return Lo=function(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}}(),t=function(){if(Uo)return Vo;Uo=1;var e=Bi();return Vo=function(t){var r=e(this,t).delete(t);return this.size-=r?1:0,r}}(),r=function(){if(Wo)return Zo;Wo=1;var e=Bi();return Zo=function(t){return e(this,t).get(t)}}(),n=function(){if(Yo)return qo;Yo=1;var e=Bi();return qo=function(t){return e(this,t).has(t)}}(),o=function(){if(Go)return Xo;Go=1;var e=Bi();return Xo=function(t,r){var n=e(this,t),o=n.size;return n.set(t,r),this.size+=n.size==o?0:1,this}}();function i(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Ko=i}function $i(){if(ei)return Qo;ei=1;var e=zi();function t(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var o=function(){var e=arguments,t=n?n.apply(this,e):e[0],i=o.cache;if(i.has(t))return i.get(t);var a=r.apply(this,e);return o.cache=i.set(t,a)||i,a};return o.cache=new(t.Cache||e),o}return t.Cache=e,Qo=t}function Hi(){if(oi)return ni;oi=1;var e=function(){if(ri)return ti;ri=1;var e=$i();return ti=function(t){var r=e(t,(function(e){return 500===n.size&&n.clear(),e})),n=r.cache;return r}}(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e((function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(t,(function(e,t,o,i){n.push(o?i.replace(r,"$1"):t||e)})),n}));return ni=n}function Fi(){if(ai)return ii;return ai=1,ii=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},ii}function Vi(){if(si)return ui;si=1;var e=function(){if(li)return ci;li=1;var e=Oi(),t=Fi(),r=bi(),n=Pi(),o=e?e.prototype:void 0,i=o?o.toString:void 0;return ci=function e(o){if("string"==typeof o)return o;if(r(o))return t(o,e)+"";if(n(o))return i?i.call(o):"";var a=o+"";return"0"==a&&1/o==-1/0?"-0":a},ci}();return ui=function(t){return null==t?"":e(t)}}function Ui(){if(pi)return fi;pi=1;var e=bi(),t=Mi(),r=Hi(),n=Vi();return fi=function(o,i){return e(o)?o:t(o,i)?[o]:r(n(o))},fi}function Zi(){if(hi)return di;hi=1;var e=Pi();return di=function(t){if("string"==typeof t||e(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}}function Wi(){if(vi)return yi;vi=1;var e=Ui(),t=Zi();return yi=function(r,n){for(var o=0,i=(n=e(n,r)).length;null!=r&&o<i;)r=r[t(n[o++])];return o&&o==i?r:void 0},yi}function qi(){if(gi)return mi;gi=1;var e=Wi();return mi=function(t,r,n){var o=null==t?void 0:e(t,r);return void 0===o?n:o},mi}var Yi,Xi,Gi=tr(qi());var Ki,Ji,Qi=tr(Xi?Yi:(Xi=1,Yi=function(e){return null==e}));var ea,ta=function(){if(Ji)return Ki;Ji=1;var e=Si(),t=bi(),r=ji();return Ki=function(n){return"string"==typeof n||!t(n)&&r(n)&&"[object String]"==e(n)}}(),ra=tr(ta),na=tr(ki()),oa=tr(Ai()),ia={exports:{}},aa={};var ca,la,ua={};
9
+ var yr={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(e,t){var r=t.pattern,n=t.negativePattern,o=t.symbol,i=t.separator,a=t.decimal,c=t.groups,l=(""+e).replace(/^-/,"").split("."),u=l[0],s=l[1];return(e.value>=0?r:n).replace("!",o).replace("#",u.replace(c,"$1"+i)+(s?a+s:""))},fromCents:!1},vr=function(e){return Math.round(e)},mr=function(e){return Math.pow(10,e)},gr=/(\d)(?=(\d{3})+\b)/g,br=/(\d)(?=(\d\d)+\d\b)/g;function wr(e,t){var r=this;if(!(r instanceof wr))return new wr(e,t);var n=Object.assign({},yr,t),o=mr(n.precision),i=xr(e,n);r.intValue=i,r.value=i/o,n.increment=n.increment||1/o,n.useVedic?n.groups=br:n.groups=gr,this.s=n,this.p=o}function xr(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=0,o=t.decimal,i=t.errorOnInvalid,a=t.precision,c=t.fromCents,l=mr(a),u="number"==typeof e,s=e instanceof wr;if(s&&c)return e.intValue;if(u||s)n=s?e.value:e;else if("string"==typeof e){var f=new RegExp("[^-\\d"+o+"]","g"),p=new RegExp("\\"+o,"g");n=(n=e.replace(/\((.*)\)/,"-$1").replace(f,"").replace(p,"."))||0}else{if(i)throw Error("Invalid Input");n=0}return c||(n=(n*=l).toFixed(4)),r?vr(n):n}wr.prototype={add:function(e){var t=this.intValue,r=this.s,n=this.p;return wr((t+=xr(e,r))/(r.fromCents?1:n),r)},subtract:function(e){var t=this.intValue,r=this.s,n=this.p;return wr((t-=xr(e,r))/(r.fromCents?1:n),r)},multiply:function(e){var t=this.intValue,r=this.s;return wr((t*=e)/(r.fromCents?1:mr(r.precision)),r)},divide:function(e){var t=this.intValue,r=this.s;return wr(t/=xr(e,r,!1),r)},distribute:function(e){for(var t=this.intValue,r=this.p,n=this.s,o=[],i=Math[t>=0?"floor":"ceil"](t/e),a=Math.abs(t-i*e),c=n.fromCents?1:r;0!==e;e--){var l=wr(i/c,n);a-- >0&&(l=l[t>=0?"add":"subtract"](1/c)),o.push(l)}return o},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(e){var t=this.s;return"function"==typeof e?e(this,t):t.format(this,Object.assign({},t,e))},toString:function(){var e,t,r=this.intValue,n=this.p,o=this.s;return(e=r/n,t=o.increment,vr(e/t)*t).toFixed(o.precision)},toJSON:function(){return this.value}};const Or=({amount:e,autoPrecision:t,precision:r=2,signDisplay:n=!1})=>{const o=Number(e);if(!Number.isFinite(o))return console.log(`Amount is not a finite number. (amount: ${o}, method: formatUsd)`),e;const i=wr(o,{precision:t&&o>-1&&o<1&&0!==o?5:r}).format();return n&&o>0?`+${i}`:i},Sr=({data:e,dataKey:t})=>{const r=e?e.filter((e=>Boolean(e[t]))):[],n=r?.length?Number(r[0][t]):0,o=r?.length?Number(r[r.length-1][t]):0;if(!e?.length)return{startingAmount:0,endingAmount:0,delta:0,percentChange:0,isNetGain:!0};if(!Number.isFinite(n)||!Number.isFinite(o))throw new Error(`Starting or ending amount is not a finite number. (startingAmount: ${n}, endingAmount: ${o}, method: getDelta)`);const i=new Jt(n),a=new Jt(o),c=a.minus(i);return{startingAmount:n,endingAmount:o,delta:c.toNumber(),percentChange:0===i.toNumber()?0:c.div(i).mul(100).toNumber(),isNetGain:a.gt(i)}},jr=e=>{let t;return["sm","xs"].includes(e)&&(t="xs"),t},Pr=()=>{try{return window.self!==window.top}catch(e){return!0}},Mr=e=>Array.from(e).reverse(),Ar=({arr:e,n:t})=>{const r=Mr(e);return Mr(r.filter(((e,r)=>r%t==0)))},kr=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([A-Z][a-z])/g,"$1 $2").trim(),Er={redRemains:(e=1)=>Cr({rgb:"rgb(255, 223, 223)",alpha:e}),heroicRed:(e=1)=>Cr({rgb:"rgb(210, 25, 25)",alpha:e}),aijiroWhite:(e=1)=>Cr({rgb:"rgb(238, 248, 247)",alpha:e}),mint:(e=1)=>Cr({rgb:"rgb(64, 178, 136)",alpha:e}),white:(e=1)=>Cr({rgb:"rgb(255, 255, 255)",alpha:e,enabledAlphaValues:[.2]}),lighthouse:(e=1)=>Cr({rgb:"rgb(244, 244, 244)",alpha:e}),coolElegance:(e=1)=>Cr({rgb:"rgb(205, 207, 209)",alpha:e}),sonicSilver:(e=1)=>Cr({rgb:"rgb(117, 117, 117)",alpha:e}),black:(e=1)=>Cr({rgb:"rgb(0, 0, 0)",alpha:e,enabledAlphaValues:[.08]})},Cr=({rgb:e,alpha:t,enabledAlphaValues:r=[1]})=>{if(![...r,1].includes(t))throw`Unsupported alpha value: ${t}. Update the color function in uiColors.ts to enable additional values.`;const[n,o,i]=e.replace(/[^\d,]/g,"").split(",");return`rgba(${n}, ${o}, ${i}, ${t})`},_r=({usd:e,precision:t=2,autoPrecision:r})=>{const n=wr(e).value;return wr(e,{precision:r&&n>-1&&n<1&&0!==n?5:t}).value},Tr="22rem",Dr={dateOnly:"MM/DD/YY",dateWithTime:"MM/DD/YYYY h:mm A",shortDateWithTime:"MMM D, h:mm A",shortDateWithYear:"MMM D, YYYY"};ar.extend(pr);const Ir=({dateFormat:e=Dr.dateOnly,timeString:t})=>ar.utc(t).local().format(e),{definePartsStyle:Nr,defineMultiStyleConfig:Rr}=o(It.keys),Lr=Rr({baseStyle:Nr({root:{display:"flex",flexDirection:"column",gap:2},container:{borderRadius:"lg",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.300",bg:"gray.100",color:Er.black(),overflow:"hidden",'&:has(button[aria-expanded="true"])':{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"}},button:{px:4,py:4,bg:Er.white(),fontSize:"md",_hover:{bg:Er.lighthouse()}},panel:{borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"gray.300",fontSize:"sm",bg:Er.lighthouse(),py:"4",px:"4"}}),variants:{spacious:Nr({container:{borderRadius:"lg"},button:{py:8,px:6,fontSize:"md"},panel:{fontSize:"sm",bg:Er.lighthouse(),p:"8"}})}}),{definePartsStyle:Br,defineMultiStyleConfig:zr}=o(Nt.keys),$r=zr({baseStyle:Br((e=>{const{colorScheme:t,theme:r}=e,n=r.colors[t];return{icon:{svg:{path:{fill:n[500]}}},container:{bg:n[100],borderColor:n[500],borderRadius:"lg",borderStyle:"solid",borderWidth:1,padding:4},description:{color:"blackAlpha.900"},title:{color:"blackAlpha.900"}}})),defaultProps:{variant:"subtle"}}),Hr=i({borderColor:"red.700",color:"red.700",border:"solid 2px",":hover, :focus":{backgroundColor:"gray.200"},svg:{path:{fill:"red.700"}}}),Fr=i({":hover, :focus":{background:"brand.600"}}),Vr={color:"brand.700 !important",bg:"brand.50 !important",opacity:"0.6 !important",filter:"grayscale() !important"},Ur=i({background:"brand.50",color:"brand.500",svg:{path:{fill:"brand.500"}},":hover, :focus":{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}},_disabled:{...Vr},":hover[disabled], :focus[disabled]":{...Vr},_active:{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}}}),Zr=i({border:"solid 2px",borderColor:"brand.600",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),Wr=i({boxShadow:"none",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),qr=a({baseStyle:{boxShadow:"0px 8px 16px 0px rgba(0,0,0,0.08)",svg:{width:"1em",height:"1em",path:{fill:"white"}}},sizes:{xs:i({lineHeight:1})},variants:{alert:Hr,outline:Zr,ghost:Wr,secondary:Ur,solid:Fr}}),{definePartsStyle:Yr,defineMultiStyleConfig:Xr}=o(Rt.keys),Gr=Xr({baseStyle:Yr({control:{borderRadius:"base",borderColor:"brand.500",svg:{path:{fill:"inherit"}},_checked:{svg:{path:{fill:"white"}}},_hover:{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)",_disabled:{bg:"gray.100"}},_indeterminate:{bg:"brand.100",borderColor:"brand.100",_hover:{bg:"brand.100",boxShadow:"none"}},_invalid:{_checked:{borderColor:"brand.500"}}}}),sizes:{lg:{control:{boxSize:7,svg:{width:"1.75em"}}},md:{control:{boxSize:6,svg:{width:"1.5em"}}},sm:{control:{boxSize:4,svg:{width:"1.5em"}}}}}),Kr=a({baseStyle:{helperText:{fontSize:"sm"}}}),Jr=a({sizes:{sm:{text:{fontSize:"xs"}},xs:{text:{fontSize:"xs"}}}}),Qr=a({baseStyle:{color:Er.sonicSilver(),fontFamily:"heading",fontSize:"sm",_disabled:{opacity:1}},sizes:{sm:{fontSize:"sm"},xs:{fontSize:"xs"}}}),en=a({sizes:{xl:i({fontSize:"4xl"}),lg:i({fontSize:"3xl"}),md:i({fontSize:"2xl"}),sm:i({fontSize:"xl"}),xs:i({fontSize:"md"})}}),{definePartsStyle:tn,defineMultiStyleConfig:rn}=o(Lt.keys),nn=rn({baseStyle:tn({group:{"svg:not(.asset-logo)":{width:"1em",height:"1em"}},field:{_readOnly:{pointerEvents:"none"}}}),sizes:{lg:tn({field:{fontSize:"md"}})},variants:{outline:{group:{"svg:not(.asset-logo)":{path:{fill:Er.sonicSilver()}},_groupFocus:{"svg:not(.asset-logo)":{path:{fill:Er.black()}}},_groupDisabled:{"svg:not(.asset-logo)":{path:{fill:Er.coolElegance()}}}},field:{border:"solid 1px",borderRadius:"lg",borderColor:Er.coolElegance(),color:Er.sonicSilver(),":focus":{color:Er.black(),borderColor:Er.black()},":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},_disabled:{color:Er.sonicSilver(),opacity:1,bg:Er.lighthouse(),":focus, :hover":{borderColor:Er.coolElegance(),bg:Er.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}},addon:{bg:"white",border:"solid 1px",borderRadius:"lg",borderColor:Er.coolElegance(),color:Er.black(),":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},":focus":{borderColor:Er.black()},_disabled:{color:Er.sonicSilver(),opacity:1,bg:Er.lighthouse(),":focus, :hover":{borderColor:Er.coolElegance(),bg:Er.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}}}},defaultProps:{size:"lg",variant:"outline"}}),{definePartsStyle:on,defineMultiStyleConfig:an}=o(Bt.keys),cn=an({baseStyle:on({field:{_readOnly:{pointerEvents:"none"}}}),sizes:{lg:on({field:{fontSize:"md"}})},variants:{outline:{field:{border:"solid 1px",borderColor:Er.coolElegance(),borderRadius:"lg",color:Er.sonicSilver(),pr:10,_focus:{color:Er.black(),borderColor:Er.black(),"+.chakra-select__icon-wrapper":{svg:{color:Er.black(),path:{fill:Er.black()}}}},":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},_disabled:{color:Er.sonicSilver(),opacity:1,bg:Er.lighthouse(),":focus, :hover":{borderColor:Er.coolElegance(),bg:Er.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}},icon:{width:"1em",height:"1em",fontSize:"1em",mr:2,path:{fill:Er.sonicSilver()},_disabled:{opacity:1,path:{fill:Er.coolElegance()}}}}},defaultProps:{size:"lg",variant:"outline"}}),ln=a({variants:{simple:{th:{borderColor:Er.coolElegance()},td:{borderColor:Er.coolElegance()},tr:{_last:{td:{border:"none"}}}},grayHeader:{th:{background:Er.lighthouse(),color:Er.sonicSilver(),borderBottom:"1px solid",borderColor:Er.coolElegance()},td:{borderBottom:"1px solid",borderColor:Er.coolElegance()},tr:{_last:{td:{border:"none"}}}}}}),{definePartsStyle:un,defineMultiStyleConfig:sn}=o(zt.keys),fn=un({container:{color:"blackAlpha.900",fontWeight:"bold",borderRadius:"full",svg:{path:{fill:"blackAlpha.900"}}}}),pn=un({container:{bg:"red.100",borderWidth:1,borderColor:"red.500"}}),dn=un({container:{bg:"yellow.100",borderColor:"yellow.500",borderWidth:1}});var hn=c({colors:{brand:{50:"#fcf2fe",100:"#f0c4f9",200:"#eaacf7",300:"#e495f4",400:"#de7ef2",500:"#d250ed",600:"#c622e8",700:"#b816da",800:"#a514c3",900:"#7e0f95"}},components:{Accordion:Lr,Alert:$r,Button:qr,Checkbox:Gr,Input:nn,Heading:en,Form:Kr,FormLabel:Qr,FormError:Jr,Select:cn,Table:ln,Tag:sn({baseStyle:fn,defaultProps:{variant:"outline"},variants:{error:pn,success:un({container:{bg:"green.100",borderColor:"green.500",borderWidth:1}}),warning:dn,outline:{container:{boxShadow:"none",borderColor:"brand.500",borderWidth:1}}},sizes:{sm:{container:{px:4,py:0}},md:{container:{px:6,py:1}},lg:{container:{px:6,py:1}}}})},styles:{global:{"[data-focus], :focus":{boxShadow:"none !important"},"::placeholder":{color:"gray.500"},"input[type=date]:invalid::-webkit-datetime-edit":{color:"gray.500"},"::-webkit-calendar-picker-indicator":{cursor:"pointer",filter:"opacity(40%)"},".recharts-surface":{overflow:"visible !important"},".recharts-surface .shadow":{filter:"drop-shadow(0 3px 5px rgba(0, 0, 0, 0.075))"}}}},l({colorScheme:"brand"}));const yn={components:hn.components,styles:hn.styles},vn=e=>{const t=String(e).replace(/\D/g,"").match(/^(\d{3})(\d{3})(\d{4})$/);return t?`(${t[1]}) ${t[2]}-${t[3]}`:e};let mn,gn,bn=(e=21)=>{var t;t=e|=0,!mn||mn.length<t?(mn=Buffer.allocUnsafe(128*t),K.randomFillSync(mn),gn=0):gn+t>mn.length&&(K.randomFillSync(mn),gn=0),gn+=t;let r="";for(let t=gn-e;t<gn;t++)r+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&mn[t]];return r};function wn(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=wn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function xn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=wn(e))&&(n&&(n+=" "),n+=t);return n}var On,Sn,jn,Pn,Mn,An,kn,En,Cn,_n,Tn,Dn,In,Nn,Rn,Ln,Bn,zn,$n,Hn,Fn,Vn,Un,Zn,Wn,qn,Yn,Xn,Gn,Kn,Jn,Qn,eo,to,ro,no,oo,io,ao,co,lo,uo,so,fo,po,ho,yo,vo,mo,go,bo,wo,xo,Oo,So,jo,Po,Mo,Ao,ko,Eo,Co,_o,To,Do,Io,No,Ro,Lo,Bo,zo,$o,Ho,Fo,Vo,Uo,Zo,Wo,qo,Yo,Xo,Go,Ko,Jo,Qo,ei,ti,ri,ni,oi,ii,ai,ci,li,ui,si,fi,pi,di,hi,yi,vi,mi,gi;function bi(){if(Sn)return On;Sn=1;var e=Array.isArray;return On=e}function wi(){if(Pn)return jn;Pn=1;var e="object"==typeof er&&er&&er.Object===Object&&er;return jn=e}function xi(){if(An)return Mn;An=1;var e=wi(),t="object"==typeof self&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Mn=r}function Oi(){if(En)return kn;En=1;var e=xi().Symbol;return kn=e}function Si(){if(Nn)return In;Nn=1;var e=Oi(),t=function(){if(_n)return Cn;_n=1;var e=Oi(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;return Cn=function(e){var t=r.call(e,o),i=e[o];try{e[o]=void 0;var a=!0}catch(e){}var c=n.call(e);return a&&(t?e[o]=i:delete e[o]),c}}(),r=function(){if(Dn)return Tn;Dn=1;var e=Object.prototype.toString;return Tn=function(t){return e.call(t)}}(),n=e?e.toStringTag:void 0;return In=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":n&&n in Object(e)?t(e):r(e)}}function ji(){if(Ln)return Rn;return Ln=1,Rn=function(e){return null!=e&&"object"==typeof e}}function Pi(){if(zn)return Bn;zn=1;var e=Si(),t=ji();return Bn=function(r){return"symbol"==typeof r||t(r)&&"[object Symbol]"==e(r)}}function Mi(){if(Hn)return $n;Hn=1;var e=bi(),t=Pi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return $n=function(o,i){if(e(o))return!1;var a=typeof o;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=o&&!t(o))||(n.test(o)||!r.test(o)||null!=i&&o in Object(i))},$n}function Ai(){if(Vn)return Fn;return Vn=1,Fn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function ki(){if(Zn)return Un;Zn=1;var e=Si(),t=Ai();return Un=function(r){if(!t(r))return!1;var n=e(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function Ei(){if(Xn)return Yn;Xn=1;var e,t=function(){if(qn)return Wn;qn=1;var e=xi()["__core-js_shared__"];return Wn=e}(),r=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return Yn=function(e){return!!r&&r in e}}function Ci(){if(Kn)return Gn;Kn=1;var e=Function.prototype.toString;return Gn=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function _i(){if(no)return ro;no=1;var e=function(){if(Qn)return Jn;Qn=1;var e=ki(),t=Ei(),r=Ai(),n=Ci(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,c=i.toString,l=a.hasOwnProperty,u=RegExp("^"+c.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Jn=function(i){return!(!r(i)||t(i))&&(e(i)?u:o).test(n(i))}}(),t=(to||(to=1,eo=function(e,t){return null==e?void 0:e[t]}),eo);return ro=function(r,n){var o=t(r,n);return e(o)?o:void 0},ro}function Ti(){if(io)return oo;io=1;var e=_i()(Object,"create");return oo=e}function Di(){if(go)return mo;go=1;var e=function(){if(co)return ao;co=1;var e=Ti();return ao=function(){this.__data__=e?e(null):{},this.size=0}}(),t=uo?lo:(uo=1,lo=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),r=function(){if(fo)return so;fo=1;var e=Ti(),t=Object.prototype.hasOwnProperty;return so=function(r){var n=this.__data__;if(e){var o=n[r];return"__lodash_hash_undefined__"===o?void 0:o}return t.call(n,r)?n[r]:void 0}}(),n=function(){if(ho)return po;ho=1;var e=Ti(),t=Object.prototype.hasOwnProperty;return po=function(r){var n=this.__data__;return e?void 0!==n[r]:t.call(n,r)}}(),o=function(){if(vo)return yo;vo=1;var e=Ti();return yo=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=e&&void 0===r?"__lodash_hash_undefined__":r,this}}();function i(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,mo=i}function Ii(){if(Oo)return xo;return Oo=1,xo=function(e,t){return e===t||e!=e&&t!=t}}function Ni(){if(jo)return So;jo=1;var e=Ii();return So=function(t,r){for(var n=t.length;n--;)if(e(t[n][0],r))return n;return-1},So}function Ri(){if(Io)return Do;Io=1;var e=wo?bo:(wo=1,bo=function(){this.__data__=[],this.size=0}),t=function(){if(Mo)return Po;Mo=1;var e=Ni(),t=Array.prototype.splice;return Po=function(r){var n=this.__data__,o=e(n,r);return!(o<0||(o==n.length-1?n.pop():t.call(n,o,1),--this.size,0))}}(),r=function(){if(ko)return Ao;ko=1;var e=Ni();return Ao=function(t){var r=this.__data__,n=e(r,t);return n<0?void 0:r[n][1]}}(),n=function(){if(Co)return Eo;Co=1;var e=Ni();return Eo=function(t){return e(this.__data__,t)>-1}}(),o=function(){if(To)return _o;To=1;var e=Ni();return _o=function(t,r){var n=this.__data__,o=e(n,t);return o<0?(++this.size,n.push([t,r])):n[o][1]=r,this}}();function i(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Do=i}function Li(){if(Ro)return No;Ro=1;var e=_i()(xi(),"Map");return No=e}function Bi(){if(Fo)return Ho;Fo=1;var e=$o?zo:($o=1,zo=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return Ho=function(t,r){var n=t.__data__;return e(r)?n["string"==typeof r?"string":"hash"]:n.map},Ho}function zi(){if(Jo)return Ko;Jo=1;var e=function(){if(Bo)return Lo;Bo=1;var e=Di(),t=Ri(),r=Li();return Lo=function(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}}(),t=function(){if(Uo)return Vo;Uo=1;var e=Bi();return Vo=function(t){var r=e(this,t).delete(t);return this.size-=r?1:0,r}}(),r=function(){if(Wo)return Zo;Wo=1;var e=Bi();return Zo=function(t){return e(this,t).get(t)}}(),n=function(){if(Yo)return qo;Yo=1;var e=Bi();return qo=function(t){return e(this,t).has(t)}}(),o=function(){if(Go)return Xo;Go=1;var e=Bi();return Xo=function(t,r){var n=e(this,t),o=n.size;return n.set(t,r),this.size+=n.size==o?0:1,this}}();function i(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Ko=i}function $i(){if(ei)return Qo;ei=1;var e=zi();function t(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var o=function(){var e=arguments,t=n?n.apply(this,e):e[0],i=o.cache;if(i.has(t))return i.get(t);var a=r.apply(this,e);return o.cache=i.set(t,a)||i,a};return o.cache=new(t.Cache||e),o}return t.Cache=e,Qo=t}function Hi(){if(oi)return ni;oi=1;var e=function(){if(ri)return ti;ri=1;var e=$i();return ti=function(t){var r=e(t,(function(e){return 500===n.size&&n.clear(),e})),n=r.cache;return r}}(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e((function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(t,(function(e,t,o,i){n.push(o?i.replace(r,"$1"):t||e)})),n}));return ni=n}function Fi(){if(ai)return ii;return ai=1,ii=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},ii}function Vi(){if(si)return ui;si=1;var e=function(){if(li)return ci;li=1;var e=Oi(),t=Fi(),r=bi(),n=Pi(),o=e?e.prototype:void 0,i=o?o.toString:void 0;return ci=function e(o){if("string"==typeof o)return o;if(r(o))return t(o,e)+"";if(n(o))return i?i.call(o):"";var a=o+"";return"0"==a&&1/o==-1/0?"-0":a},ci}();return ui=function(t){return null==t?"":e(t)}}function Ui(){if(pi)return fi;pi=1;var e=bi(),t=Mi(),r=Hi(),n=Vi();return fi=function(o,i){return e(o)?o:t(o,i)?[o]:r(n(o))},fi}function Zi(){if(hi)return di;hi=1;var e=Pi();return di=function(t){if("string"==typeof t||e(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}}function Wi(){if(vi)return yi;vi=1;var e=Ui(),t=Zi();return yi=function(r,n){for(var o=0,i=(n=e(n,r)).length;null!=r&&o<i;)r=r[t(n[o++])];return o&&o==i?r:void 0},yi}function qi(){if(gi)return mi;gi=1;var e=Wi();return mi=function(t,r,n){var o=null==t?void 0:e(t,r);return void 0===o?n:o},mi}var Yi,Xi,Gi=tr(qi());var Ki,Ji,Qi=tr(Xi?Yi:(Xi=1,Yi=function(e){return null==e}));var ea,ta=function(){if(Ji)return Ki;Ji=1;var e=Si(),t=bi(),r=ji();return Ki=function(n){return"string"==typeof n||!t(n)&&r(n)&&"[object String]"==e(n)}}(),ra=tr(ta),na=tr(ki()),oa=tr(Ai()),ia={exports:{}},aa={};var ca,la,ua={};
10
10
  /**
11
11
  * @license React
12
12
  * react-is.development.js
@@ -15,7 +15,7 @@ var yr={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,patte
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var sa,fa,pa,da,ha=(la||(la=1,"production"===process.env.NODE_ENV?ia.exports=function(){if(ea)return aa;ea=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case n:case i:case o:case s:case f:return e;default:switch(e=e&&e.$$typeof){case l:case c:case u:case d:case p:case a:return e;default:return h}}case r:return h}}}return e=Symbol.for("react.module.reference"),aa.ContextConsumer=c,aa.ContextProvider=a,aa.Element=t,aa.ForwardRef=u,aa.Fragment=n,aa.Lazy=d,aa.Memo=p,aa.Portal=r,aa.Profiler=i,aa.StrictMode=o,aa.Suspense=s,aa.SuspenseList=f,aa.isAsyncMode=function(){return!1},aa.isConcurrentMode=function(){return!1},aa.isContextConsumer=function(e){return y(e)===c},aa.isContextProvider=function(e){return y(e)===a},aa.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},aa.isForwardRef=function(e){return y(e)===u},aa.isFragment=function(e){return y(e)===n},aa.isLazy=function(e){return y(e)===d},aa.isMemo=function(e){return y(e)===p},aa.isPortal=function(e){return y(e)===r},aa.isProfiler=function(e){return y(e)===i},aa.isStrictMode=function(e){return y(e)===o},aa.isSuspense=function(e){return y(e)===s},aa.isSuspenseList=function(e){return y(e)===f},aa.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===s||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===p||t.$$typeof===a||t.$$typeof===c||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},aa.typeOf=y,aa}():ia.exports=(ca||(ca=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var y=e.type;switch(y){case n:case i:case o:case s:case f:return y;default:var v=y&&y.$$typeof;switch(v){case l:case c:case u:case d:case p:case a:return v;default:return h}}case r:return h}}}e=Symbol.for("react.module.reference");var v=c,m=a,g=t,b=u,w=n,x=d,O=p,S=r,j=i,P=o,M=s,A=f,k=!1,E=!1;ua.ContextConsumer=v,ua.ContextProvider=m,ua.Element=g,ua.ForwardRef=b,ua.Fragment=w,ua.Lazy=x,ua.Memo=O,ua.Portal=S,ua.Profiler=j,ua.StrictMode=P,ua.Suspense=M,ua.SuspenseList=A,ua.isAsyncMode=function(e){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},ua.isConcurrentMode=function(e){return E||(E=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},ua.isContextConsumer=function(e){return y(e)===c},ua.isContextProvider=function(e){return y(e)===a},ua.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ua.isForwardRef=function(e){return y(e)===u},ua.isFragment=function(e){return y(e)===n},ua.isLazy=function(e){return y(e)===d},ua.isMemo=function(e){return y(e)===p},ua.isPortal=function(e){return y(e)===r},ua.isProfiler=function(e){return y(e)===i},ua.isStrictMode=function(e){return y(e)===o},ua.isSuspense=function(e){return y(e)===s},ua.isSuspenseList=function(e){return y(e)===f},ua.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===s||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===p||t.$$typeof===a||t.$$typeof===c||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},ua.typeOf=y}()),ua)),ia.exports);function ya(){if(fa)return sa;fa=1;var e=Si(),t=ji();return sa=function(r){return"number"==typeof r||t(r)&&"[object Number]"==e(r)}}var va=function(){if(da)return pa;da=1;var e=ya();return pa=function(t){return e(t)&&t!=+t}}(),ma=tr(va),ga=tr(ya()),ba=function(e){return 0===e?0:e>0?1:-1},wa=function(e){return ra(e)&&e.indexOf("%")===e.length-1},xa=function(e){return ga(e)&&!ma(e)},Oa=function(e){return xa(e)||ra(e)},Sa=0,ja=function(e){var t=++Sa;return"".concat(e||"").concat(t)},Pa=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!xa(e)&&!ra(e))return n;if(wa(e)){var i=e.indexOf("%");r=t*parseFloat(e.slice(0,i))/100}else r=+e;return ma(r)&&(r=n),o&&r>t&&(r=t),r},Ma=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},Aa=function(e,t){return xa(e)&&xa(t)?function(r){return e+r*(t-e)}:function(){return t}};function ka(e,t,r){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):Gi(e,t))===r})):null}function Ea(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 Ca(e){return Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ca(e)}var _a=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Ta=["points","pathLength"],Da={svg:["viewBox","children"],polygon:Ta,polyline:Ta},Ia=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Na=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(Q(e)&&(r=e.props),!oa(r))return null;var n={};return Object.keys(r).forEach((function(e){Ia.includes(e)&&(n[e]=t||function(t){return r[e](r,t)})})),n},Ra=function(e,t,r){if(!oa(e)||"object"!==Ca(e))return null;var n=null;return Object.keys(e).forEach((function(o){var i=e[o];Ia.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(e,t,r){return function(n){return e(t,r,n),null}}(i,t,r))})),n},La=["children"],Ba=["children"];function za(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function $a(e){return $a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$a(e)}var Ha={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Fa=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},Va=null,Ua=null,Za=function e(t){if(t===Va&&Array.isArray(Ua))return Ua;var r=[];return ee.forEach(t,(function(t){Qi(t)||(ha.isFragment(t)?r=r.concat(e(t.props.children)):r.push(t))})),Ua=r,Va=t,r};function Wa(e,t){var r=[],n=[];return n=Array.isArray(t)?t.map((function(e){return Fa(e)})):[Fa(t)],Za(e).forEach((function(e){var t=Gi(e,"type.displayName")||Gi(e,"type.name");-1!==n.indexOf(t)&&r.push(e)})),r}function qa(e,t){var r=Wa(e,t);return r&&r[0]}var Ya=function(e){if(!e||!e.props)return!1;var t=e.props,r=t.width,n=t.height;return!(!xa(r)||r<=0||!xa(n)||n<=0)},Xa=["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"],Ga=function(e){return e&&"object"===$a(e)&&"clipDot"in e},Ka=function(e,t,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if(Q(e)&&(n=e.props),!oa(n))return null;var o={};return Object.keys(n).forEach((function(e){var i;(function(e,t,r,n){var o,i=null!==(o=null==Da?void 0:Da[n])&&void 0!==o?o:[];return!na(e)&&(n&&i.includes(t)||_a.includes(t))||r&&Ia.includes(t)})(null===(i=n)||void 0===i?void 0:i[e],e,t,r)&&(o[e]=n[e])})),o},Ja=function e(t,r){if(t===r)return!0;var n=ee.count(t);if(n!==ee.count(r))return!1;if(0===n)return!0;if(1===n)return Qa(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var o=0;o<n;o++){var i=t[o],a=r[o];if(Array.isArray(i)||Array.isArray(a)){if(!e(i,a))return!1}else if(!Qa(i,a))return!1}return!0},Qa=function(e,t){if(Qi(e)&&Qi(t))return!0;if(!Qi(e)&&!Qi(t)){var r=e.props||{},n=r.children,o=za(r,La),i=t.props||{},a=i.children,c=za(i,Ba);return n&&a?Ea(o,c)&&Ja(n,a):!n&&!a&&Ea(o,c)}return!1},ec=function(e,t){var r=[],n={};return Za(e).forEach((function(e,o){if(function(e){return e&&e.type&&ra(e.type)&&Xa.indexOf(e.type)>=0}(e))r.push(e);else if(e){var i=Fa(e.type),a=t[i]||{},c=a.handler,l=a.once;if(c&&(!l||!n[i])){var u=c(e,i,o);r.push(u),n[i]=!0}}})),r},tc=["children","width","height","viewBox","className","style","title","desc"];function rc(){return rc=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},rc.apply(this,arguments)}function nc(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function oc(e){var t=e.children,r=e.width,n=e.height,o=e.viewBox,i=e.className,a=e.style,c=e.title,l=e.desc,u=nc(e,tc),s=o||{width:r,height:n,x:0,y:0},f=xn("recharts-surface",i);return J.createElement("svg",rc({},Ka(u,!0,"svg"),{className:f,width:r,height:n,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),J.createElement("title",null,c),J.createElement("desc",null,l),t)}var ic=["children","className"];function ac(){return ac=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},ac.apply(this,arguments)}function cc(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var lc,uc,sc,fc,pc,dc,hc,yc,vc,mc,gc,bc,wc,xc,Oc,Sc,jc=J.forwardRef((function(e,t){var r=e.children,n=e.className,o=cc(e,ic),i=xn("recharts-layer",n);return J.createElement("g",ac({className:i},Ka(o,!0),{ref:t}),r)})),Pc="production"!==process.env.NODE_ENV,Mc=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(Pc&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(t.replace(/%s/g,(function(){return n[i++]})))}};function Ac(){if(fc)return sc;fc=1;var e=(uc||(uc=1,lc=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}),lc);return sc=function(t,r,n){var o=t.length;return n=void 0===n?o:n,!r&&n>=o?t:e(t,r,n)},sc}function kc(){if(dc)return pc;dc=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return pc=function(t){return e.test(t)},pc}function Ec(){if(bc)return gc;bc=1;var e=(yc||(yc=1,hc=function(e){return e.split("")}),hc),t=kc(),r=function(){if(mc)return vc;mc=1;var e="\\ud800-\\udfff",t="["+e+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+n+")?",l="[\\ufe0e\\ufe0f]?",u=l+c+"(?:\\u200d(?:"+[o,i,a].join("|")+")"+l+c+")*",s="(?:"+[o+r+"?",r,i,a,t].join("|")+")",f=RegExp(n+"(?="+n+")|"+s+u,"g");return vc=function(e){return e.match(f)||[]},vc}();return gc=function(n){return t(n)?r(n):e(n)},gc}var Cc=function(){if(Sc)return Oc;Sc=1;var e=function(){if(xc)return wc;xc=1;var e=Ac(),t=kc(),r=Ec(),n=Vi();return wc=function(o){return function(i){i=n(i);var a=t(i)?r(i):void 0,c=a?a[0]:i.charAt(0),l=a?e(a,1).join(""):i.slice(1);return c[o]()+l}},wc}(),t=e("toUpperCase");return Oc=t}(),_c=tr(Cc);function Tc(e){return function(){return e}}const Dc=Math.cos,Ic=Math.sin,Nc=Math.sqrt,Rc=Math.PI,Lc=2*Rc,Bc=Math.PI,zc=2*Bc,$c=1e-6,Hc=zc-$c;function Fc(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class Vc{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Fc:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Fc;const r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,o,i){this._append`C${+e},${+t},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,r,n,o){if(e=+e,t=+t,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,c=r-e,l=n-t,u=i-e,s=a-t,f=u*u+s*s;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>$c)if(Math.abs(s*c-l*u)>$c&&o){let p=r-i,d=n-a,h=c*c+l*l,y=p*p+d*d,v=Math.sqrt(h),m=Math.sqrt(f),g=o*Math.tan((Bc-Math.acos((h+f-y)/(2*v*m)))/2),b=g/m,w=g/v;Math.abs(b-1)>$c&&this._append`L${e+b*u},${t+b*s}`,this._append`A${o},${o},0,0,${+(s*p>u*d)},${this._x1=e+w*c},${this._y1=t+w*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,n,o,i){if(e=+e,t=+t,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),l=e+a,u=t+c,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${l},${u}`:(Math.abs(this._x1-l)>$c||Math.abs(this._y1-u)>$c)&&this._append`L${l},${u}`,r&&(f<0&&(f=f%zc+zc),f>Hc?this._append`A${r},${r},0,1,${s},${e-a},${t-c}A${r},${r},0,1,${s},${this._x1=l},${this._y1=u}`:f>$c&&this._append`A${r},${r},0,${+(f>=Bc)},${s},${this._x1=e+r*Math.cos(o)},${this._y1=t+r*Math.sin(o)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function Uc(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{const e=Math.floor(r);if(!(e>=0))throw new RangeError(`invalid digits: ${r}`);t=e}return e},()=>new Vc(t)}function Zc(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Wc(e){this._context=e}function qc(e){return new Wc(e)}function Yc(e){return e[0]}function Xc(e){return e[1]}function Gc(e,t){var r=Tc(!0),n=null,o=qc,i=null,a=Uc(c);function c(c){var l,u,s,f=(c=Zc(c)).length,p=!1;for(null==n&&(i=o(s=a())),l=0;l<=f;++l)!(l<f&&r(u=c[l],l,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+e(u,l,c),+t(u,l,c));if(s)return i=null,s+""||null}return e="function"==typeof e?e:void 0===e?Yc:Tc(e),t="function"==typeof t?t:void 0===t?Xc:Tc(t),c.x=function(t){return arguments.length?(e="function"==typeof t?t:Tc(+t),c):e},c.y=function(e){return arguments.length?(t="function"==typeof e?e:Tc(+e),c):t},c.defined=function(e){return arguments.length?(r="function"==typeof e?e:Tc(!!e),c):r},c.curve=function(e){return arguments.length?(o=e,null!=n&&(i=o(n)),c):o},c.context=function(e){return arguments.length?(null==e?n=i=null:i=o(n=e),c):n},c}function Kc(e,t,r){var n=null,o=Tc(!0),i=null,a=qc,c=null,l=Uc(u);function u(u){var s,f,p,d,h,y=(u=Zc(u)).length,v=!1,m=new Array(y),g=new Array(y);for(null==i&&(c=a(h=l())),s=0;s<=y;++s){if(!(s<y&&o(d=u[s],s,u))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(m[p],g[p]);c.lineEnd(),c.areaEnd()}v&&(m[s]=+e(d,s,u),g[s]=+t(d,s,u),c.point(n?+n(d,s,u):m[s],r?+r(d,s,u):g[s]))}if(h)return c=null,h+""||null}function s(){return Gc().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?Yc:Tc(+e),t="function"==typeof t?t:Tc(void 0===t?0:+t),r="function"==typeof r?r:void 0===r?Xc:Tc(+r),u.x=function(t){return arguments.length?(e="function"==typeof t?t:Tc(+t),n=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:Tc(+t),u):e},u.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Tc(+e),u):n},u.y=function(e){return arguments.length?(t="function"==typeof e?e:Tc(+e),r=null,u):t},u.y0=function(e){return arguments.length?(t="function"==typeof e?e:Tc(+e),u):t},u.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Tc(+e),u):r},u.lineX0=u.lineY0=function(){return s().x(e).y(t)},u.lineY1=function(){return s().x(e).y(r)},u.lineX1=function(){return s().x(n).y(t)},u.defined=function(e){return arguments.length?(o="function"==typeof e?e:Tc(!!e),u):o},u.curve=function(e){return arguments.length?(a=e,null!=i&&(c=a(i)),u):a},u.context=function(e){return arguments.length?(null==e?i=c=null:c=a(i=e),u):i},u}Wc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(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)}}};class Jc{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}var Qc={draw(e,t){const r=Nc(t/Rc);e.moveTo(r,0),e.arc(0,0,r,0,Lc)}},el={draw(e,t){const r=Nc(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()}};const tl=Nc(1/3),rl=2*tl;var nl={draw(e,t){const r=Nc(t/rl),n=r*tl;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},ol={draw(e,t){const r=Nc(t),n=-r/2;e.rect(n,n,r,r)}};const il=Ic(Rc/10)/Ic(7*Rc/10),al=Ic(Lc/10)*il,cl=-Dc(Lc/10)*il;var ll={draw(e,t){const r=Nc(.8908130915292852*t),n=al*r,o=cl*r;e.moveTo(0,-r),e.lineTo(n,o);for(let t=1;t<5;++t){const i=Lc*t/5,a=Dc(i),c=Ic(i);e.lineTo(c*r,-a*r),e.lineTo(a*n-c*o,c*n+a*o)}e.closePath()}};const ul=Nc(3);var sl={draw(e,t){const r=-Nc(t/(3*ul));e.moveTo(0,2*r),e.lineTo(-ul*r,-r),e.lineTo(ul*r,-r),e.closePath()}};const fl=-.5,pl=Nc(3)/2,dl=1/Nc(12),hl=3*(dl/2+1);var yl={draw(e,t){const r=Nc(t/hl),n=r/2,o=r*dl,i=n,a=r*dl+r,c=-i,l=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(c,l),e.lineTo(fl*n-pl*o,pl*n+fl*o),e.lineTo(fl*i-pl*a,pl*i+fl*a),e.lineTo(fl*c-pl*l,pl*c+fl*l),e.lineTo(fl*n+pl*o,fl*o-pl*n),e.lineTo(fl*i+pl*a,fl*a-pl*i),e.lineTo(fl*c+pl*l,fl*l-pl*c),e.closePath()}};function vl(){}function ml(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 gl(e){this._context=e}function bl(e){this._context=e}function wl(e){this._context=e}function xl(e){this._context=e}function Ol(e){return e<0?-1:1}function Sl(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0),c=(i*o+a*n)/(n+o);return(Ol(i)+Ol(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function jl(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Pl(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,c=(i-n)/3;e._context.bezierCurveTo(n+c,o+c*t,i-c,a-c*r,i,a)}function Ml(e){this._context=e}function Al(e){this._context=new kl(e)}function kl(e){this._context=e}function El(e){this._context=e}function Cl(e){var t,r,n=e.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/i[t-1],i[t]-=r,a[t]-=r*a[t-1];for(o[n-1]=a[n-1]/i[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function _l(e,t){this._context=e,this._t=t}function Tl(e,t){if((o=e.length)>1)for(var r,n,o,i=1,a=e[t[0]],c=a.length;i<o;++i)for(n=a,a=e[t[i]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Dl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Il(e,t){return e[t]}function Nl(e){const t=[];return t.key=e,t}function Rl(e){return Rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rl(e)}gl.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:ml(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(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:ml(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},bl.prototype={areaStart:vl,areaEnd:vl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(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:ml(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},wl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(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:ml(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},xl.prototype={areaStart:vl,areaEnd:vl,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))}},Ml.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:Pl(this,this._t0,jl(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+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,Pl(this,jl(this,r=Sl(this,e,t)),r);break;default:Pl(this,this._t0,r=Sl(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(Al.prototype=Object.create(Ml.prototype)).point=function(e,t){Ml.prototype.point.call(this,t,e)},kl.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,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}},El.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]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=Cl(e),o=Cl(t),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===r)&&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)}},_l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var Ll=["type","size","sizeType"];function Bl(){return Bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bl.apply(this,arguments)}function zl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(r),!0).forEach((function(t){Hl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Hl(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Rl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Rl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rl(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fl(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Vl={symbolCircle:Qc,symbolCross:el,symbolDiamond:nl,symbolSquare:ol,symbolStar:ll,symbolTriangle:sl,symbolWye:yl},Ul=Math.PI/180,Zl=function(e){var t,r,n=e.type,o=void 0===n?"circle":n,i=e.size,a=void 0===i?64:i,c=e.sizeType,l=void 0===c?"area":c,u=$l($l({},Fl(e,Ll)),{},{type:o,size:a,sizeType:l}),s=u.className,f=u.cx,p=u.cy,d=Ka(u,!0);return f===+f&&p===+p&&a===+a?J.createElement("path",Bl({},d,{className:xn("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(p,")"),d:(t=function(e){var t="symbol".concat(_c(e));return Vl[t]||Qc}(o),r=function(e,t){let r=null,n=Uc(o);function o(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return e="function"==typeof e?e:Tc(e||Qc),t="function"==typeof t?t:Tc(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:Tc(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:Tc(+e),o):t},o.context=function(e){return arguments.length?(r=null==e?null:e,o):r},o}().type(t).size(function(e,t,r){if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*Ul;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(a,l,o)),r())})):null};function Wl(e){return Wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wl(e)}function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ql.apply(this,arguments)}function Yl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xl(e,t,r){return t&&function(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,tu(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gl(e,t,r){return t=Jl(t),function(e,t){if(t&&("object"===Wl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Kl()?Reflect.construct(t,r||[],Jl(e).constructor):t.apply(e,r))}function Kl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kl=function(){return!!e})()}function Jl(e){return Jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jl(e)}function Ql(e,t){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ql(e,t)}function eu(e,t,r){return(t=tu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tu(e){var t=function(e,t){if("object"!=Wl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Wl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Wl(t)?t:t+""}Zl.registerSymbol=function(e,t){Vl["symbol".concat(_c(e))]=t};var ru,nu,ou,iu,au,cu,lu,uu,su,fu,pu,du,hu,yu,vu,mu,gu,bu,wu,xu,Ou,Su,ju,Pu,Mu,Au,ku,Eu,Cu,_u,Tu,Du,Iu,Nu,Ru,Lu,Bu,zu,$u,Hu,Fu,Vu,Uu,Zu,Wu,qu,Yu,Xu,Gu=32,Ku=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Gl(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&Ql(e,t)}(t,te),Xl(t,[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,r=16,n=Gu/6,o=Gu/3,i=e.inactive?t:e.color;if("plainline"===e.type)return J.createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:r,x2:Gu,y2:r,className:"recharts-legend-icon"});if("line"===e.type)return J.createElement("path",{strokeWidth:4,fill:"none",stroke:i,d:"M0,".concat(r,"h").concat(o,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*o,",").concat(r,"\n H").concat(Gu,"M").concat(2*o,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(o,",").concat(r),className:"recharts-legend-icon"});if("rect"===e.type)return J.createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(Gu,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(J.isValidElement(e.legendIcon)){var a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yl(Object(r),!0).forEach((function(t){eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return delete a.legendIcon,J.cloneElement(e.legendIcon,a)}return J.createElement(Zl,{fill:i,cx:r,cy:r,size:Gu,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,r=t.payload,n=t.iconSize,o=t.layout,i=t.formatter,a=t.inactiveColor,c={x:0,y:0,width:Gu,height:Gu},l={display:"horizontal"===o?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(t,r){var o=t.formatter||i,s=xn(eu(eu({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",t.inactive));if("none"===t.type)return null;var f=na(t.value)?null:t.value;Mc(!na(t.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 p=t.inactive?a:t.color;return J.createElement("li",ql({className:s,style:l,key:"legend-item-".concat(r)},Ra(e.props,t,r)),J.createElement(oc,{width:n,height:n,viewBox:c,style:u},e.renderIcon(t)),J.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},o?o(f,t,r):f))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,r=e.layout,n=e.align;if(!t||!t.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return J.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}();function Ju(){if(du)return pu;du=1;var e=Ri(),t=function(){if(nu)return ru;nu=1;var e=Ri();return ru=function(){this.__data__=new e,this.size=0}}(),r=iu?ou:(iu=1,ou=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}),n=cu?au:(cu=1,au=function(e){return this.__data__.get(e)}),o=uu?lu:(uu=1,lu=function(e){return this.__data__.has(e)}),i=function(){if(fu)return su;fu=1;var e=Ri(),t=Li(),r=zi();return su=function(n,o){var i=this.__data__;if(i instanceof e){var a=i.__data__;if(!t||a.length<199)return a.push([n,o]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(n,o),this.size=i.size,this}}();function a(t){var r=this.__data__=new e(t);this.size=r.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=i,pu=a}function Qu(){if(bu)return gu;bu=1;var e=zi(),t=yu?hu:(yu=1,hu=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),r=mu?vu:(mu=1,vu=function(e){return this.__data__.has(e)});function n(t){var r=-1,n=null==t?0:t.length;for(this.__data__=new e;++r<n;)this.add(t[r])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,gu=n}function es(){if(xu)return wu;return xu=1,wu=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},wu}function ts(){if(Su)return Ou;return Su=1,Ou=function(e,t){return e.has(t)}}function rs(){if(Pu)return ju;Pu=1;var e=Qu(),t=es(),r=ts();return ju=function(n,o,i,a,c,l){var u=1&i,s=n.length,f=o.length;if(s!=f&&!(u&&f>s))return!1;var p=l.get(n),d=l.get(o);if(p&&d)return p==o&&d==n;var h=-1,y=!0,v=2&i?new e:void 0;for(l.set(n,o),l.set(o,n);++h<s;){var m=n[h],g=o[h];if(a)var b=u?a(g,m,h,o,n,l):a(m,g,h,n,o,l);if(void 0!==b){if(b)continue;y=!1;break}if(v){if(!t(o,(function(e,t){if(!r(v,t)&&(m===e||c(m,e,i,a,l)))return v.push(t)}))){y=!1;break}}else if(m!==g&&!c(m,g,i,a,l)){y=!1;break}}return l.delete(n),l.delete(o),y},ju}function ns(){if(_u)return Cu;return _u=1,Cu=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Cu}function os(){if(Du)return Tu;Du=1;var e=Oi(),t=function(){if(Au)return Mu;Au=1;var e=xi().Uint8Array;return Mu=e}(),r=Ii(),n=rs(),o=(Eu||(Eu=1,ku=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}),ku),i=ns(),a=e?e.prototype:void 0,c=a?a.valueOf:void 0;return Tu=function(e,a,l,u,s,f,p){switch(l){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!f(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var d=o;case"[object Set]":var h=1&u;if(d||(d=i),e.size!=a.size&&!h)return!1;var y=p.get(e);if(y)return y==a;u|=2,p.set(e,a);var v=n(d(e),d(a),u,s,f,p);return p.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(a)}return!1},Tu}function is(){if(Nu)return Iu;return Nu=1,Iu=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},Iu}function as(){if(Vu)return Fu;Vu=1;var e=(zu||(zu=1,Bu=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}),Bu),t=Hu?$u:(Hu=1,$u=function(){return[]}),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,o=n?function(t){return null==t?[]:(t=Object(t),e(n(t),(function(e){return r.call(t,e)})))}:t;return Fu=o}function cs(){if(Xu)return Yu;Xu=1;var e=function(){if(qu)return Wu;qu=1;var e=Si(),t=ji();return Wu=function(r){return t(r)&&"[object Arguments]"==e(r)}}(),t=ji(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(e){return t(e)&&n.call(e,"callee")&&!o.call(e,"callee")};return Yu=i}eu(Ku,"displayName","Legend"),eu(Ku,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ls,us,ss,fs,ps,ds,hs,ys,vs,ms,gs,bs={exports:{}};function ws(){return ss||(ss=1,function(e,t){var r=xi(),n=us?ls:(us=1,ls=function(){return!1}),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c}(bs,bs.exports)),bs.exports}function xs(){if(ps)return fs;ps=1;var e=/^(?:0|[1-9]\d*)$/;return fs=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}}function Os(){if(hs)return ds;hs=1;return ds=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function Ss(){if(gs)return ms;return gs=1,ms=function(e){return function(t){return e(t)}}}bs.exports;var js,Ps,Ms,As,ks,Es,Cs,_s,Ts,Ds,Is,Ns,Rs,Ls,Bs,zs,$s,Hs,Fs,Vs,Us,Zs,Ws,qs,Ys,Xs,Gs,Ks,Js,Qs,ef,tf,rf,nf,of,af,cf,lf,uf,sf,ff,pf,df,hf,yf,vf,mf,gf,bf,wf,xf,Of,Sf,jf,Pf,Mf,Af,kf,Ef,Cf,_f,Tf,Df,If,Nf,Rf,Lf,Bf,zf,$f,Hf,Ff,Vf,Uf,Zf,Wf,qf,Yf,Xf,Gf,Kf,Jf,Qf,ep={exports:{}};function tp(){if(Ms)return Ps;Ms=1;var e=function(){if(vs)return ys;vs=1;var e=Si(),t=Os(),r=ji(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,ys=function(o){return r(o)&&t(o.length)&&!!n[e(o)]}}(),t=Ss(),r=function(){return js||(js=1,e=ep,t=ep.exports,r=wi(),n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,i=o&&o.exports===n&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}(),e.exports=a),ep.exports;var e,t,r,n,o,i,a}(),n=r&&r.isTypedArray,o=n?t(n):e;return Ps=o}function rp(){if(ks)return As;ks=1;var e=Zu?Uu:(Zu=1,Uu=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}),t=cs(),r=bi(),n=ws(),o=xs(),i=tp(),a=Object.prototype.hasOwnProperty;return As=function(c,l){var u=r(c),s=!u&&t(c),f=!u&&!s&&n(c),p=!u&&!s&&!f&&i(c),d=u||s||f||p,h=d?e(c.length,String):[],y=h.length;for(var v in c)!l&&!a.call(c,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,y))||h.push(v);return h}}function np(){if(Ts)return _s;return Ts=1,_s=function(e,t){return function(r){return e(t(r))}}}function op(){if(Rs)return Ns;Rs=1;var e=function(){if(Cs)return Es;Cs=1;var e=Object.prototype;return Es=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}}(),t=function(){if(Is)return Ds;Is=1;var e=np()(Object.keys,Object);return Ds=e}(),r=Object.prototype.hasOwnProperty;return Ns=function(n){if(!e(n))return t(n);var o=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&o.push(i);return o},Ns}function ip(){if(Bs)return Ls;Bs=1;var e=ki(),t=Os();return Ls=function(r){return null!=r&&t(r.length)&&!e(r)}}function ap(){if($s)return zs;$s=1;var e=rp(),t=op(),r=ip();return zs=function(n){return r(n)?e(n):t(n)},zs}function cp(){if(Fs)return Hs;Fs=1;var e=function(){if(Lu)return Ru;Lu=1;var e=is(),t=bi();return Ru=function(r,n,o){var i=n(r);return t(r)?i:e(i,o(r))},Ru}(),t=as(),r=ap();return Hs=function(n){return e(n,r,t)},Hs}function lp(){if(Gs)return Xs;Gs=1;var e=_i()(xi(),"Set");return Xs=e}function up(){if(ef)return Qs;ef=1;var e=function(){if(Ws)return Zs;Ws=1;var e=_i()(xi(),"DataView");return Zs=e}(),t=Li(),r=function(){if(Ys)return qs;Ys=1;var e=_i()(xi(),"Promise");return qs=e}(),n=lp(),o=function(){if(Js)return Ks;Js=1;var e=_i()(xi(),"WeakMap");return Ks=e}(),i=Si(),a=Ci(),c="[object Map]",l="[object Promise]",u="[object Set]",s="[object WeakMap]",f="[object DataView]",p=a(e),d=a(t),h=a(r),y=a(n),v=a(o),m=i;return(e&&m(new e(new ArrayBuffer(1)))!=f||t&&m(new t)!=c||r&&m(r.resolve())!=l||n&&m(new n)!=u||o&&m(new o)!=s)&&(m=function(e){var t=i(e),r="[object Object]"==t?e.constructor:void 0,n=r?a(r):"";if(n)switch(n){case p:return f;case d:return c;case h:return l;case y:return u;case v:return s}return t}),Qs=m}function sp(){if(rf)return tf;rf=1;var e=Ju(),t=rs(),r=os(),n=function(){if(Us)return Vs;Us=1;var e=cp(),t=Object.prototype.hasOwnProperty;return Vs=function(r,n,o,i,a,c){var l=1&o,u=e(r),s=u.length;if(s!=e(n).length&&!l)return!1;for(var f=s;f--;){var p=u[f];if(!(l?p in n:t.call(n,p)))return!1}var d=c.get(r),h=c.get(n);if(d&&h)return d==n&&h==r;var y=!0;c.set(r,n),c.set(n,r);for(var v=l;++f<s;){var m=r[p=u[f]],g=n[p];if(i)var b=l?i(g,m,p,n,r,c):i(m,g,p,r,n,c);if(!(void 0===b?m===g||a(m,g,o,i,c):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var w=r.constructor,x=n.constructor;w==x||!("constructor"in r)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(y=!1)}return c.delete(r),c.delete(n),y},Vs}(),o=up(),i=bi(),a=ws(),c=tp(),l="[object Arguments]",u="[object Array]",s="[object Object]",f=Object.prototype.hasOwnProperty;return tf=function(p,d,h,y,v,m){var g=i(p),b=i(d),w=g?u:o(p),x=b?u:o(d),O=(w=w==l?s:w)==s,S=(x=x==l?s:x)==s,j=w==x;if(j&&a(p)){if(!a(d))return!1;g=!0,O=!1}if(j&&!O)return m||(m=new e),g||c(p)?t(p,d,h,y,v,m):r(p,d,w,h,y,v,m);if(!(1&h)){var P=O&&f.call(p,"__wrapped__"),M=S&&f.call(d,"__wrapped__");if(P||M){var A=P?p.value():p,k=M?d.value():d;return m||(m=new e),v(A,k,h,y,m)}}return!!j&&(m||(m=new e),n(p,d,h,y,v,m))},tf}function fp(){if(of)return nf;of=1;var e=sp(),t=ji();return nf=function r(n,o,i,a,c){return n===o||(null==n||null==o||!t(n)&&!t(o)?n!=n&&o!=o:e(n,o,i,a,r,c))},nf}function pp(){if(uf)return lf;uf=1;var e=Ai();return lf=function(t){return t==t&&!e(t)}}function dp(){if(df)return pf;return df=1,pf=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},pf}function hp(){if(yf)return hf;yf=1;var e=function(){if(cf)return af;cf=1;var e=Ju(),t=fp();return af=function(r,n,o,i){var a=o.length,c=a,l=!i;if(null==r)return!c;for(r=Object(r);a--;){var u=o[a];if(l&&u[2]?u[1]!==r[u[0]]:!(u[0]in r))return!1}for(;++a<c;){var s=(u=o[a])[0],f=r[s],p=u[1];if(l&&u[2]){if(void 0===f&&!(s in r))return!1}else{var d=new e;if(i)var h=i(f,p,s,r,n,d);if(!(void 0===h?t(p,f,3,i,d):h))return!1}}return!0},af}(),t=function(){if(ff)return sf;ff=1;var e=pp(),t=ap();return sf=function(r){for(var n=t(r),o=n.length;o--;){var i=n[o],a=r[i];n[o]=[i,a,e(a)]}return n},sf}(),r=dp();return hf=function(n){var o=t(n);return 1==o.length&&o[0][2]?r(o[0][0],o[0][1]):function(t){return t===n||e(t,n,o)}},hf}function yp(){if(xf)return wf;xf=1;var e=(mf||(mf=1,vf=function(e,t){return null!=e&&t in Object(e)}),vf),t=function(){if(bf)return gf;bf=1;var e=Ui(),t=cs(),r=bi(),n=xs(),o=Os(),i=Zi();return gf=function(a,c,l){for(var u=-1,s=(c=e(c,a)).length,f=!1;++u<s;){var p=i(c[u]);if(!(f=null!=a&&l(a,p)))break;a=a[p]}return f||++u!=s?f:!!(s=null==a?0:a.length)&&o(s)&&n(p,s)&&(r(a)||t(a))},gf}();return wf=function(r,n){return null!=r&&t(r,n,e)},wf}function vp(){if(Pf)return jf;return Pf=1,jf=function(e){return e}}function mp(){if(_f)return Cf;_f=1;var e=(Af||(Af=1,Mf=function(e){return function(t){return null==t?void 0:t[e]}}),Mf),t=function(){if(Ef)return kf;Ef=1;var e=Wi();return kf=function(t){return function(r){return e(r,t)}},kf}(),r=Mi(),n=Zi();return Cf=function(o){return r(o)?e(n(o)):t(o)}}function gp(){if(Df)return Tf;Df=1;var e=hp(),t=function(){if(Sf)return Of;Sf=1;var e=fp(),t=qi(),r=yp(),n=Mi(),o=pp(),i=dp(),a=Zi();return Of=function(c,l){return n(c)&&o(l)?i(a(c),l):function(n){var o=t(n,c);return void 0===o&&o===l?r(n,c):e(l,o,3)}},Of}(),r=vp(),n=bi(),o=mp();return Tf=function(i){return"function"==typeof i?i:null==i?r:"object"==typeof i?n(i)?t(i[0],i[1]):e(i):o(i)}}function bp(){if(Nf)return If;return Nf=1,If=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1},If}function wp(){if(Hf)return $f;Hf=1;var e=bp(),t=Lf?Rf:(Lf=1,Rf=function(e){return e!=e}),r=(zf||(zf=1,Bf=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}),Bf);return $f=function(n,o,i){return o==o?r(n,o,i):e(n,t,i)},$f}function xp(){if(Xf)return Yf;Xf=1;var e=lp(),t=qf?Wf:(qf=1,Wf=function(){}),r=ns(),n=e&&1/r(new e([,-0]))[1]==1/0?function(t){return new e(t)}:t;return Yf=n}function Op(){if(Kf)return Gf;Kf=1;var e=Qu(),t=function(){if(Vf)return Ff;Vf=1;var e=wp();return Ff=function(t,r){return!(null==t||!t.length)&&e(t,r,0)>-1},Ff}(),r=(Zf||(Zf=1,Uf=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}),Uf),n=ts(),o=xp(),i=ns();return Gf=function(a,c,l){var u=-1,s=t,f=a.length,p=!0,d=[],h=d;if(l)p=!1,s=r;else if(f>=200){var y=c?null:o(a);if(y)return i(y);p=!1,s=n,h=new e}else h=c?[]:d;e:for(;++u<f;){var v=a[u],m=c?c(v):v;if(v=l||0!==v?v:0,p&&m==m){for(var g=h.length;g--;)if(h[g]===m)continue e;c&&h.push(m),d.push(v)}else s(h,m,l)||(h!==d&&h.push(m),d.push(v))}return d},Gf}ep.exports;var Sp=function(){if(Qf)return Jf;Qf=1;var e=gp(),t=Op();return Jf=function(r,n){return r&&r.length?t(r,e(n,2)):[]},Jf}(),jp=tr(Sp);function Pp(e,t,r){return!0===t?jp(e,r):na(t)?jp(e,t):e}function Mp(e){return Mp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mp(e)}var Ap=["ref"];function kp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ep(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kp(Object(r),!0).forEach((function(t){Np(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Cp(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,Rp(n.key),n)}}function _p(e,t,r){return t=Dp(t),function(e,t){if(t&&("object"===Mp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Tp()?Reflect.construct(t,r||[],Dp(e).constructor):t.apply(e,r))}function Tp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tp=function(){return!!e})()}function Dp(e){return Dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dp(e)}function Ip(e,t){return Ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ip(e,t)}function Np(e,t,r){return(t=Rp(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rp(e){var t=function(e,t){if("object"!=Mp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Mp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mp(t)?t:t+""}function Lp(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Bp(e){return e.value}var zp,$p,Hp,Fp,Vp,Up,Zp,Wp,qp,Yp,Xp,Gp,Kp,Jp,Qp,ed,td,rd,nd,od,id,ad,cd,ld,ud,sd,fd,pd,dd,hd,yd,vd,md,gd,bd,wd,xd,Od,Sd,jd,Pd,Md,Ad,kd,Ed=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Np(e=_p(this,t,[].concat(n)),"lastBoundingBox",{width:-1,height:-1}),e}return function(e,t){if("function"!=typeof t&&null!==t)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&&Ip(e,t)}(t,te),r=t,o=[{key:"getWithHeight",value:function(e,t){var r=Ep(Ep({},this.defaultProps),e.props).layout;return"vertical"===r&&xa(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ep({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,l=n.chartWidth,u=n.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((l||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(r="middle"===a?{top:((u||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Ep(Ep({},t),r)}},{key:"render",value:function(){var e=this,t=this.props,r=t.content,n=t.width,o=t.height,i=t.wrapperStyle,a=t.payloadUniqBy,c=t.payload,l=Ep(Ep({position:"absolute",width:n||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return J.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,t){if(J.isValidElement(e))return J.cloneElement(e,t);if("function"==typeof e)return J.createElement(e,t);t.ref;var r=Lp(t,Ap);return J.createElement(Ku,r)}(r,Ep(Ep({},this.props),{},{payload:Pp(c,a,Bp)})))}}])&&Cp(r.prototype,n),o&&Cp(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function Cd(){if(Fp)return Hp;Fp=1;var e=is(),t=function(){if($p)return zp;$p=1;var e=Oi(),t=cs(),r=bi(),n=e?e.isConcatSpreadable:void 0;return zp=function(e){return r(e)||t(e)||!!(n&&e&&e[n])}}();return Hp=function r(n,o,i,a,c){var l=-1,u=n.length;for(i||(i=t),c||(c=[]);++l<u;){var s=n[l];o>0&&i(s)?o>1?r(s,o-1,i,a,c):e(c,s):a||(c[c.length]=s)}return c},Hp}function _d(){if(Wp)return Zp;Wp=1;var e=(Up||(Up=1,Vp=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),c=a.length;c--;){var l=a[e?c:++o];if(!1===r(i[l],l,i))break}return t}}),Vp),t=e();return Zp=t}function Td(){if(Yp)return qp;Yp=1;var e=_d(),t=ap();return qp=function(r,n){return r&&e(r,n,t)},qp}function Dd(){if(Jp)return Kp;Jp=1;var e=Td(),t=function(){if(Gp)return Xp;Gp=1;var e=ip();return Xp=function(t,r){return function(n,o){if(null==n)return n;if(!e(n))return t(n,o);for(var i=n.length,a=r?i:-1,c=Object(n);(r?a--:++a<i)&&!1!==o(c[a],a,c););return n}}}()(e);return Kp=t}function Id(){if(ed)return Qp;ed=1;var e=Dd(),t=ip();return Qp=function(r,n){var o=-1,i=t(r)?Array(r.length):[];return e(r,(function(e,t,r){i[++o]=n(e,t,r)})),i}}function Nd(){if(ad)return id;ad=1;var e=function(){if(od)return nd;od=1;var e=Pi();return nd=function(t,r){if(t!==r){var n=void 0!==t,o=null===t,i=t==t,a=e(t),c=void 0!==r,l=null===r,u=r==r,s=e(r);if(!l&&!s&&!a&&t>r||a&&c&&u&&!l&&!s||o&&c&&u||!n&&u||!i)return 1;if(!o&&!a&&!s&&t<r||s&&n&&i&&!o&&!a||l&&n&&i||!c&&i||!u)return-1}return 0}}();return id=function(t,r,n){for(var o=-1,i=t.criteria,a=r.criteria,c=i.length,l=n.length;++o<c;){var u=e(i[o],a[o]);if(u)return o>=l?u:u*("desc"==n[o]?-1:1)}return t.index-r.index},id}function Rd(){if(ld)return cd;ld=1;var e=Fi(),t=Wi(),r=gp(),n=Id(),o=(rd||(rd=1,td=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}),td),i=Ss(),a=Nd(),c=vp(),l=bi();return cd=function(u,s,f){s=s.length?e(s,(function(e){return l(e)?function(r){return t(r,1===e.length?e[0]:e)}:e})):[c];var p=-1;s=e(s,i(r));var d=n(u,(function(t,r,n){return{criteria:e(s,(function(e){return e(t)})),index:++p,value:t}}));return o(d,(function(e,t){return a(e,t,f)}))},cd}function Ld(){if(pd)return fd;pd=1;var e=sd?ud:(sd=1,ud=function(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)}),t=Math.max;return fd=function(r,n,o){return n=t(void 0===n?r.length-1:n,0),function(){for(var i=arguments,a=-1,c=t(i.length-n,0),l=Array(c);++a<c;)l[a]=i[n+a];a=-1;for(var u=Array(n+1);++a<n;)u[a]=i[a];return u[n]=o(l),e(r,this,u)}},fd}function Bd(){if(vd)return yd;vd=1;var e=_i(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return yd=t}function zd(){if(gd)return md;gd=1;var e=hd?dd:(hd=1,dd=function(e){return function(){return e}}),t=Bd(),r=vp(),n=t?function(r,n){return t(r,"toString",{configurable:!0,enumerable:!1,value:e(n),writable:!0})}:r;return md=n}function $d(){if(Od)return xd;Od=1;var e=zd(),t=function(){if(wd)return bd;wd=1;var e=Date.now;return bd=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}},bd}(),r=t(e);return xd=r}function Hd(){if(Md)return Pd;Md=1;var e=Ii(),t=ip(),r=xs(),n=Ai();return Pd=function(o,i,a){if(!n(a))return!1;var c=typeof i;return!!("number"==c?t(a)&&r(i,a.length):"string"==c&&i in a)&&e(a[i],o)},Pd}Np(Ed,"displayName","Legend"),Np(Ed,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Fd=function(){if(kd)return Ad;kd=1;var e=Cd(),t=Rd(),r=function(){if(jd)return Sd;jd=1;var e=vp(),t=Ld(),r=$d();return Sd=function(n,o){return r(t(n,o,e),n+"")}}(),n=Hd(),o=r((function(r,o){if(null==r)return[];var i=o.length;return i>1&&n(r,o[0],o[1])?o=[]:i>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(r,e(o,1),[])}));return Ad=o}(),Vd=tr(Fd);function Ud(e){return Ud="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ud(e)}function Zd(){return Zd=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},Zd.apply(this,arguments)}function Wd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qd(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(r),!0).forEach((function(t){Gd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gd(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Ud(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ud(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ud(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kd(e){return Array.isArray(e)&&Oa(e[0])&&Oa(e[1])?e.join(" ~ "):e}var Jd=function(e){var t=e.separator,r=void 0===t?" : ":t,n=e.contentStyle,o=void 0===n?{}:n,i=e.itemStyle,a=void 0===i?{}:i,c=e.labelStyle,l=void 0===c?{}:c,u=e.payload,s=e.formatter,f=e.itemSorter,p=e.wrapperClassName,d=e.labelClassName,h=e.label,y=e.labelFormatter,v=e.accessibilityLayer,m=void 0!==v&&v,g=Xd({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),b=Xd({margin:0},l),w=!Qi(h),x=w?h:"",O=xn("recharts-default-tooltip",p),S=xn("recharts-tooltip-label",d);w&&y&&null!=u&&(x=y(h,u));var j=m?{role:"status","aria-live":"assertive"}:{};return J.createElement("div",Zd({className:O,style:g},j),J.createElement("p",{className:S,style:b},J.isValidElement(x)?x:"".concat(x)),function(){if(u&&u.length){var e=(f?Vd(u,f):u).map((function(e,t){if("none"===e.type)return null;var n=Xd({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},a),o=e.formatter||s||Kd,i=e.value,c=e.name,l=i,f=c;if(o&&null!=l&&null!=f){var p=o(i,c,e,t,u);if(Array.isArray(p)){var d=Wd(p,2);l=d[0],f=d[1]}else l=p}return J.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:n},Oa(f)?J.createElement("span",{className:"recharts-tooltip-item-name"},f):null,Oa(f)?J.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,J.createElement("span",{className:"recharts-tooltip-item-value"},l),J.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return J.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function Qd(e){return Qd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qd(e)}function eh(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Qd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Qd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qd(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var th="recharts-tooltip-wrapper",rh={visibility:"hidden"};function nh(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return xn(th,eh(eh(eh(eh({},"".concat(th,"-right"),xa(r)&&t&&xa(t.x)&&r>=t.x),"".concat(th,"-left"),xa(r)&&t&&xa(t.x)&&r<t.x),"".concat(th,"-bottom"),xa(n)&&t&&xa(t.y)&&n>=t.y),"".concat(th,"-top"),xa(n)&&t&&xa(t.y)&&n<t.y))}function oh(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,c=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(i&&xa(i[n]))return i[n];var s=r[n]-c-o,f=r[n]+o;return t[n]?a[n]?s:f:a[n]?s<l[n]?Math.max(f,l[n]):Math.max(s,l[n]):f+c>l[n]+u?Math.max(s,l[n]):Math.max(f,l[n])}function ih(e){return ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ih(e)}function ah(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ch(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ah(Object(r),!0).forEach((function(t){dh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ah(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function lh(e,t,r){return t&&function(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,hh(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uh(e,t,r){return t=fh(t),function(e,t){if(t&&("object"===ih(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,sh()?Reflect.construct(t,r||[],fh(e).constructor):t.apply(e,r))}function sh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sh=function(){return!!e})()}function fh(e){return fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fh(e)}function ph(e,t){return ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ph(e,t)}function dh(e,t,r){return(t=hh(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hh(e){var t=function(e,t){if("object"!=ih(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ih(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ih(t)?t:t+""}var yh=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return dh(e=uh(this,t,[].concat(n)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),dh(e,"handleKeyDown",(function(t){var r,n,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=e.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),e}return function(e,t){if("function"!=typeof t&&null!==t)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&&ph(e,t)}(t,te),lh(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.state.lastBoundingBox.width)>1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||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 e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,t=this.props,r=t.active,n=t.allowEscapeViewBox,o=t.animationDuration,i=t.animationEasing,a=t.children,c=t.coordinate,l=t.hasPayload,u=t.isAnimationActive,s=t.offset,f=t.position,p=t.reverseDirection,d=t.useTranslate3d,h=t.viewBox,y=t.wrapperStyle,v=function(e){var t,r,n=e.allowEscapeViewBox,o=e.coordinate,i=e.offsetTopLeft,a=e.position,c=e.reverseDirection,l=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox;return{cssProperties:l.height>0&&l.width>0&&o?function(e){var t=e.translateX,r=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}({translateX:t=oh({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:l.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=oh({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:l.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:u}):rh,cssClasses:nh({translateX:t,translateY:r,coordinate:o})}}({allowEscapeViewBox:n,coordinate:c,offsetTopLeft:s,position:f,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:h}),m=v.cssClasses,g=v.cssProperties,b=ch(ch({transition:u&&r?"transform ".concat(o,"ms ").concat(i):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&l?"visible":"hidden",position:"absolute",top:0,left:0},y);return J.createElement("div",{tabIndex:-1,className:m,style:b,ref:function(t){e.wrapperNode=t}},a)}}])}(),vh=!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout);function mh(e){return mh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mh(e)}function gh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gh(Object(r),!0).forEach((function(t){Ph(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wh(e,t,r){return t&&function(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,Mh(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xh(e,t,r){return t=Sh(t),function(e,t){if(t&&("object"===mh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Oh()?Reflect.construct(t,r||[],Sh(e).constructor):t.apply(e,r))}function Oh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oh=function(){return!!e})()}function Sh(e){return Sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sh(e)}function jh(e,t){return jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jh(e,t)}function Ph(e,t,r){return(t=Mh(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mh(e){var t=function(e,t){if("object"!=mh(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=mh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==mh(t)?t:t+""}function Ah(e){return e.dataKey}var kh,Eh,Ch,_h,Th,Dh,Ih,Nh,Rh,Lh,Bh,zh,$h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),xh(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&jh(e,t)}(t,te),wh(t,[{key:"render",value:function(){var e=this,t=this.props,r=t.active,n=t.allowEscapeViewBox,o=t.animationDuration,i=t.animationEasing,a=t.content,c=t.coordinate,l=t.filterNull,u=t.isAnimationActive,s=t.offset,f=t.payload,p=t.payloadUniqBy,d=t.position,h=t.reverseDirection,y=t.useTranslate3d,v=t.viewBox,m=t.wrapperStyle,g=null!=f?f:[];l&&g.length&&(g=Pp(f.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,Ah));var b=g.length>0;return J.createElement(yh,{allowEscapeViewBox:n,animationDuration:o,animationEasing:i,isAnimationActive:u,active:r,coordinate:c,hasPayload:b,offset:s,position:d,reverseDirection:h,useTranslate3d:y,viewBox:v,wrapperStyle:m},function(e,t){return J.isValidElement(e)?J.cloneElement(e,t):"function"==typeof e?J.createElement(e,t):J.createElement(Jd,t)}(a,bh(bh({},this.props),{},{payload:g})))}}])}();function Hh(){if(Dh)return Th;Dh=1;var e=function(){if(_h)return Ch;_h=1;var e=/\s/;return Ch=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r},Ch}(),t=/^\s+/;return Th=function(r){return r?r.slice(0,e(r)+1).replace(t,""):r},Th}function Fh(){if(Nh)return Ih;Nh=1;var e=Hh(),t=Ai(),r=Pi(),n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt;return Ih=function(c){if("number"==typeof c)return c;if(r(c))return NaN;if(t(c)){var l="function"==typeof c.valueOf?c.valueOf():c;c=t(l)?l+"":l}if("string"!=typeof c)return 0===c?c:+c;c=e(c);var u=o.test(c);return u||i.test(c)?a(c.slice(2),u?2:8):n.test(c)?NaN:+c}}function Vh(){if(Lh)return Rh;Lh=1;var e=Ai(),t=function(){if(Eh)return kh;Eh=1;var e=xi();return kh=function(){return e.Date.now()}}(),r=Fh(),n=Math.max,o=Math.min;return Rh=function(i,a,c){var l,u,s,f,p,d,h=0,y=!1,v=!1,m=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function g(e){var t=l,r=u;return l=u=void 0,h=e,f=i.apply(r,t)}function b(e){var t=e-d;return void 0===d||t>=a||t<0||v&&e-h>=s}function w(){var e=t();if(b(e))return x(e);p=setTimeout(w,function(e){var t=a-(e-d);return v?o(t,s-(e-h)):t}(e))}function x(e){return p=void 0,m&&l?g(e):(l=u=void 0,f)}function O(){var e=t(),r=b(e);if(l=arguments,u=this,d=e,r){if(void 0===p)return function(e){return h=e,p=setTimeout(w,a),y?g(e):f}(d);if(v)return clearTimeout(p),p=setTimeout(w,a),g(d)}return void 0===p&&(p=setTimeout(w,a)),f}return a=r(a)||0,e(c)&&(y=!!c.leading,s=(v="maxWait"in c)?n(r(c.maxWait)||0,a):s,m="trailing"in c?!!c.trailing:m),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=d=u=p=void 0},O.flush=function(){return void 0===p?f:x(t())},O},Rh}Ph($h,"displayName","Tooltip"),Ph($h,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!vh,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 Uh=function(){if(zh)return Bh;zh=1;var e=Vh(),t=Ai();return Bh=function(r,n,o){var i=!0,a=!0;if("function"!=typeof r)throw new TypeError("Expected a function");return t(o)&&(i="leading"in o?!!o.leading:i,a="trailing"in o?!!o.trailing:a),e(r,n,{leading:i,maxWait:n,trailing:a})}}(),Zh=tr(Uh);function Wh(e){return Wh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wh(e)}function qh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qh(Object(r),!0).forEach((function(t){Xh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xh(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Wh(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Wh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wh(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Jh=re((function(e,t){var r=e.aspect,n=e.initialDimension,o=void 0===n?{width:-1,height:-1}:n,i=e.width,a=void 0===i?"100%":i,c=e.height,l=void 0===c?"100%":c,u=e.minWidth,s=void 0===u?0:u,f=e.minHeight,p=e.maxHeight,d=e.children,h=e.debounce,y=void 0===h?0:h,v=e.id,m=e.className,g=e.onResize,b=e.style,w=void 0===b?{}:b,x=ne(null),O=ne();O.current=g,oe(t,(function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})}));var S=Gh(ie({containerWidth:o.width,containerHeight:o.height}),2),j=S[0],P=S[1],M=ae((function(e,t){P((function(r){var n=Math.round(e),o=Math.round(t);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}}))}),[]);ce((function(){var e=function(e){var t,r=e[0].contentRect,n=r.width,o=r.height;M(n,o),null===(t=O.current)||void 0===t||t.call(O,n,o)};y>0&&(e=Zh(e,y,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),r=x.current.getBoundingClientRect(),n=r.width,o=r.height;return M(n,o),t.observe(x.current),function(){t.disconnect()}}),[M,y]);var A=le((function(){var e=j.containerWidth,t=j.containerHeight;if(e<0||t<0)return null;Mc(wa(a)||wa(l),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,l),Mc(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=wa(a)?e:a,o=wa(l)?t:l;r&&r>0&&(n?o=n/r:o&&(n=o*r),p&&o>p&&(o=p)),Mc(n>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,o,a,l,s,f,r);var i=!Array.isArray(d)&&Fa(d.type).endsWith("Chart");return J.Children.map(d,(function(e){return J.isValidElement(e)?ue(e,Yh({width:n,height:o},i?{style:Yh({height:"100%",width:"100%",maxHeight:o,maxWidth:n},e.props.style)}:{})):e}))}),[r,d,l,p,f,s,j,a]);return J.createElement("div",{id:v?"".concat(v):void 0,className:xn("recharts-responsive-container",m),style:Yh(Yh({},w),{},{width:a,height:l,minWidth:s,minHeight:f,maxHeight:p}),ref:x},A)})),Qh=function(e){return null};function ey(e){return ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ey(e)}function ty(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ry(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ty(Object(r),!0).forEach((function(t){ny(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ty(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ny(e,t,r){return t=function(e){var t=function(e,t){if("object"!=ey(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ey(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ey(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Qh.displayName="Cell";var oy={widthCache:{},cacheCount:0},iy={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ay="recharts_measurement_span";var cy=function(e){if(null==e||vh)return{width:0,height:0};var t,r=(t=ry({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),Object.keys(t).forEach((function(e){t[e]||delete t[e]})),t),n=JSON.stringify({text:e,copyStyle:r});if(oy.widthCache[n])return oy.widthCache[n];try{var o=document.getElementById(ay);o||((o=document.createElement("span")).setAttribute("id",ay),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var i=ry(ry({},iy),r);Object.assign(o.style,i),o.textContent="".concat(e);var a=o.getBoundingClientRect(),c={width:a.width,height:a.height};return oy.widthCache[n]=c,++oy.cacheCount>2e3&&(oy.cacheCount=0,oy.widthCache={}),c}catch(e){return{width:0,height:0}}};function ly(e){return ly="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ly(e)}function uy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fy(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,py(n.key),n)}}function py(e){var t=function(e,t){if("object"!=ly(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=ly(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==ly(t)?t:t+""}var dy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,hy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yy=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,vy=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,my={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},gy=Object.keys(my),by="NaN";var wy=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),""===r||yy.test(r)||(this.num=NaN,this.unit=""),gy.includes(r)&&(this.num=function(e,t){return e*my[t]}(t,r),this.unit="px")}return t=e,n=[{key:"parse",value:function(t){var r,n=uy(null!==(r=vy.exec(t))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new e(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&fy(t.prototype,r),n&&fy(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function xy(e){if(e.includes(by))return by;for(var t=e;t.includes("*")||t.includes("/");){var r,n=uy(null!==(r=dy.exec(t))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],c=wy.parse(null!=o?o:""),l=wy.parse(null!=a?a:""),u="*"===i?c.multiply(l):c.divide(l);if(u.isNaN())return by;t=t.replace(dy,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var s,f=uy(null!==(s=hy.exec(t))&&void 0!==s?s:[],4),p=f[1],d=f[2],h=f[3],y=wy.parse(null!=p?p:""),v=wy.parse(null!=h?h:""),m="+"===d?y.add(v):y.subtract(v);if(m.isNaN())return by;t=t.replace(hy,m.toString())}return t}var Oy=/\(([^()]*)\)/;function Sy(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var r=uy(Oy.exec(t),2)[1];t=t.replace(Oy,xy(r))}return t}(t),t=xy(t)}function jy(e){var t=function(e){try{return Sy(e)}catch(e){return by}}(e.slice(5,-1));return t===by?"":t}var Py=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],My=["dx","dy","angle","className","breakAll"];function Ay(){return Ay=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},Ay.apply(this,arguments)}function ky(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Ey(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _y=/[ \f\n\r\t\v\u2028\u2029]+/,Ty=function(e){var t=e.children,r=e.breakAll,n=e.style;try{var o=[];return Qi(t)||(o=r?t.toString().split(""):t.toString().split(_y)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:cy(e,n).width}})),spaceWidth:r?0:cy(" ",n).width}}catch(e){return null}},Dy=function(e){return[{words:Qi(e)?[]:e.toString().split(_y)}]},Iy=function(e){var t=e.width,r=e.scaleToFit,n=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||r)&&!vh){var c=Ty({breakAll:i,children:n,style:o});return c?function(e,t,r,n,o){var i=e.maxLines,a=e.children,c=e.style,l=e.breakAll,u=xa(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,c=e[e.length-1];if(c&&(null==n||o||c.width+a+r<Number(n)))c.words.push(i),c.width+=a+r;else{var l={words:[i],width:a};e.push(l)}return e}),[])},p=f(t);if(!u)return p;for(var d,h=function(e){var t=s.slice(0,e),r=Ty({breakAll:l,style:c,children:t+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(n);return[a,o]},y=0,v=s.length-1,m=0;y<=v&&m<=s.length-1;){var g=Math.floor((y+v)/2),b=Ey(h(g-1),2),w=b[0],x=b[1],O=Ey(h(g),1)[0];if(w||O||(y=g+1),w&&O&&(v=g-1),!w&&O){d=x;break}m++}return d||p}({breakAll:i,children:n,maxLines:a,style:o},c.wordsWithComputedWidth,c.spaceWidth,t,r):Dy(n)}return Dy(n)},Ny="#808080",Ry=function(e){var t=e.x,r=void 0===t?0:t,n=e.y,o=void 0===n?0:n,i=e.lineHeight,a=void 0===i?"1em":i,c=e.capHeight,l=void 0===c?"0.71em":c,u=e.scaleToFit,s=void 0!==u&&u,f=e.textAnchor,p=void 0===f?"start":f,d=e.verticalAnchor,h=void 0===d?"end":d,y=e.fill,v=void 0===y?Ny:y,m=ky(e,Py),g=le((function(){return Iy({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:s,style:m.style,width:m.width})}),[m.breakAll,m.children,m.maxLines,s,m.style,m.width]),b=m.dx,w=m.dy,x=m.angle,O=m.className,S=m.breakAll,j=ky(m,My);if(!Oa(r)||!Oa(o))return null;var P,M=r+(xa(b)?b:0),A=o+(xa(w)?w:0);switch(h){case"start":P=jy("calc(".concat(l,")"));break;case"middle":P=jy("calc(".concat((g.length-1)/2," * -").concat(a," + (").concat(l," / 2))"));break;default:P=jy("calc(".concat(g.length-1," * -").concat(a,")"))}var k=[];if(s){var E=g[0].width,C=m.width;k.push("scale(".concat((xa(C)?C/E:1)/E,")"))}return x&&k.push("rotate(".concat(x,", ").concat(M,", ").concat(A,")")),k.length&&(j.transform=k.join(" ")),J.createElement("text",Ay({},Ka(j,!0),{x:M,y:A,className:xn("recharts-text",O),textAnchor:p,fill:v.includes("url")?Ny:v}),g.map((function(e,t){var r=e.words.join(S?"":" ");return J.createElement("tspan",{x:M,dy:0===t?P:a,key:"".concat(r,"-").concat(t)},r)})))};function Ly(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function By(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function zy(e){let t,r,n;function o(e,n,o=0,i=e.length){if(o<i){if(0!==t(n,n))return i;do{const t=o+i>>>1;r(e[t],n)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=Ly,r=(t,r)=>Ly(e(t),r),n=(t,r)=>e(t)-r):(t=e===Ly||e===By?e:$y,r=e,n=e),{left:o,center:function(e,t,r=0,i=e.length){const a=o(e,t,r,i-1);return a>r&&n(e[a-1],t)>-n(e[a],t)?a-1:a},right:function(e,n,o=0,i=e.length){if(o<i){if(0!==t(n,n))return i;do{const t=o+i>>>1;r(e[t],n)<=0?o=t+1:i=t}while(o<i)}return o}}}function $y(){return 0}function Hy(e){return null===e?NaN:+e}const Fy=zy(Ly).right;zy(Hy).center;class Vy extends Map{constructor(e,t=Zy){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(Uy(this,e))}has(e){return super.has(Uy(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){const n=t(r);e.has(n)&&(r=e.get(n),e.delete(n));return r}(this,e))}}function Uy({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Zy(e){return null!==e&&"object"==typeof e?e.valueOf():e}function Wy(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const qy=Math.sqrt(50),Yy=Math.sqrt(10),Xy=Math.sqrt(2);function Gy(e,t,r){const n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=qy?10:i>=Yy?5:i>=Xy?2:1;let c,l,u;return o<0?(u=Math.pow(10,-o)/a,c=Math.round(e*u),l=Math.round(t*u),c/u<e&&++c,l/u>t&&--l,u=-u):(u=Math.pow(10,o)*a,c=Math.round(e/u),l=Math.round(t/u),c*u<e&&++c,l*u>t&&--l),l<c&&.5<=r&&r<2?Gy(e,t,2*r):[c,l,u]}function Ky(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[o,i,a]=n?Gy(t,e,r):Gy(e,t,r);if(!(i>=o))return[];const c=i-o+1,l=new Array(c);if(n)if(a<0)for(let e=0;e<c;++e)l[e]=(i-e)/-a;else for(let e=0;e<c;++e)l[e]=(i-e)*a;else if(a<0)for(let e=0;e<c;++e)l[e]=(o+e)/-a;else for(let e=0;e<c;++e)l[e]=(o+e)*a;return l}function Jy(e,t,r){return Gy(e=+e,t=+t,r=+r)[2]}function Qy(e,t,r){r=+r;const n=(t=+t)<(e=+e),o=n?Jy(t,e,r):Jy(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}function ev(e,t){let r;for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);return r}function tv(e,t){let r;for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);return r}function rv(e,t,r=0,n=1/0,o){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(o=void 0===o?Wy:function(e=Ly){if(e===Ly)return Wy;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||0===n?n:(0===e(r,r))-(0===e(t,t))}}(o);n>r;){if(n-r>600){const i=n-r+1,a=t-r+1,c=Math.log(i),l=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*l*(i-l)/i)*(a-i/2<0?-1:1);rv(e,t,Math.max(r,Math.floor(t-a*l/i+u)),Math.min(n,Math.floor(t+(i-a)*l/i+u)),o)}const i=e[t];let a=r,c=n;for(nv(e,r,t),o(e[n],i)>0&&nv(e,r,n);a<c;){for(nv(e,a,c),++a,--c;o(e[a],i)<0;)++a;for(;o(e[c],i)>0;)--c}0===o(e[r],i)?nv(e,r,c):(++c,nv(e,c,n)),c<=t&&(r=c+1),t<=c&&(n=c-1)}return e}function nv(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function ov(e,t,r=Hy){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,o=(n-1)*t,i=Math.floor(o),a=+r(e[i],i,e);return a+(+r(e[i+1],i+1,e)-a)*(o-i)}}function iv(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function av(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const cv=Symbol("implicit");function lv(){var e=new Vy,t=[],r=[],n=cv;function o(o){let i=e.get(o);if(void 0===i){if(n!==cv)return n;e.set(o,i=t.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new Vy;for(const n of r)e.has(n)||e.set(n,t.push(n)-1);return o},o.range=function(e){return arguments.length?(r=Array.from(e),o):r.slice()},o.unknown=function(e){return arguments.length?(n=e,o):n},o.copy=function(){return lv(t,r).unknown(n)},iv.apply(o,arguments),o}function uv(){var e,t,r=lv().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,c=!1,l=0,u=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,d=f?i:a;e=(d-p)/Math.max(1,r-l+2*u),c&&(e=Math.floor(e)),p+=(d-p-e*(r-l))*s,t=e*(1-l),c&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((t-e)/r)),i=new Array(o);++n<o;)i[n]=e+n*r;return i}(r).map((function(t){return p+e*t}));return o(f?h.reverse():h)}return delete r.unknown,r.domain=function(e){return arguments.length?(n(e),f()):n()},r.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,c=!0,f()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(c=!!e,f()):c},r.padding=function(e){return arguments.length?(l=Math.min(1,u=+e),f()):l},r.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),f()):l},r.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},r.align=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),f()):s},r.copy=function(){return uv(n(),[i,a]).round(c).paddingInner(l).paddingOuter(u).align(s)},iv.apply(f(),arguments)}function sv(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return sv(t())},e}function fv(){return sv(uv.apply(null,arguments).paddingInner(1))}function pv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function dv(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function hv(){}var yv=.7,vv=1/yv,mv="\\s*([+-]?\\d+)\\s*",gv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wv=/^#([0-9a-f]{3,8})$/,xv=new RegExp(`^rgb\\(${mv},${mv},${mv}\\)$`),Ov=new RegExp(`^rgb\\(${bv},${bv},${bv}\\)$`),Sv=new RegExp(`^rgba\\(${mv},${mv},${mv},${gv}\\)$`),jv=new RegExp(`^rgba\\(${bv},${bv},${bv},${gv}\\)$`),Pv=new RegExp(`^hsl\\(${gv},${bv},${bv}\\)$`),Mv=new RegExp(`^hsla\\(${gv},${bv},${bv},${gv}\\)$`),Av={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function kv(){return this.rgb().formatHex()}function Ev(){return this.rgb().formatRgb()}function Cv(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=wv.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?_v(t):3===r?new Iv(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Tv(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Tv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=xv.exec(e))?new Iv(t[1],t[2],t[3],1):(t=Ov.exec(e))?new Iv(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Sv.exec(e))?Tv(t[1],t[2],t[3],t[4]):(t=jv.exec(e))?Tv(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Pv.exec(e))?$v(t[1],t[2]/100,t[3]/100,1):(t=Mv.exec(e))?$v(t[1],t[2]/100,t[3]/100,t[4]):Av.hasOwnProperty(e)?_v(Av[e]):"transparent"===e?new Iv(NaN,NaN,NaN,0):null}function _v(e){return new Iv(e>>16&255,e>>8&255,255&e,1)}function Tv(e,t,r,n){return n<=0&&(e=t=r=NaN),new Iv(e,t,r,n)}function Dv(e,t,r,n){return 1===arguments.length?((o=e)instanceof hv||(o=Cv(o)),o?new Iv((o=o.rgb()).r,o.g,o.b,o.opacity):new Iv):new Iv(e,t,r,null==n?1:n);var o}function Iv(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Nv(){return`#${zv(this.r)}${zv(this.g)}${zv(this.b)}`}function Rv(){const e=Lv(this.opacity);return`${1===e?"rgb(":"rgba("}${Bv(this.r)}, ${Bv(this.g)}, ${Bv(this.b)}${1===e?")":`, ${e})`}`}function Lv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Bv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zv(e){return((e=Bv(e))<16?"0":"")+e.toString(16)}function $v(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Fv(e,t,r,n)}function Hv(e){if(e instanceof Fv)return new Fv(e.h,e.s,e.l,e.opacity);if(e instanceof hv||(e=Cv(e)),!e)return new Fv;if(e instanceof Fv)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,c=i-o,l=(i+o)/2;return c?(a=t===i?(r-n)/c+6*(r<n):r===i?(n-t)/c+2:(t-r)/c+4,c/=l<.5?i+o:2-i-o,a*=60):c=l>0&&l<1?0:a,new Fv(a,c,l,e.opacity)}function Fv(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Vv(e){return(e=(e||0)%360)<0?e+360:e}function Uv(e){return Math.max(0,Math.min(1,e||0))}function Zv(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}pv(hv,Cv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:kv,formatHex:kv,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Hv(this).formatHsl()},formatRgb:Ev,toString:Ev}),pv(Iv,Dv,dv(hv,{brighter(e){return e=null==e?vv:Math.pow(vv,e),new Iv(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?yv:Math.pow(yv,e),new Iv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Iv(Bv(this.r),Bv(this.g),Bv(this.b),Lv(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:Nv,formatHex:Nv,formatHex8:function(){return`#${zv(this.r)}${zv(this.g)}${zv(this.b)}${zv(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Rv,toString:Rv})),pv(Fv,(function(e,t,r,n){return 1===arguments.length?Hv(e):new Fv(e,t,r,null==n?1:n)}),dv(hv,{brighter(e){return e=null==e?vv:Math.pow(vv,e),new Fv(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?yv:Math.pow(yv,e),new Fv(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Iv(Zv(e>=240?e-240:e+120,o,n),Zv(e,o,n),Zv(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Fv(Vv(this.h),Uv(this.s),Uv(this.l),Lv(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=Lv(this.opacity);return`${1===e?"hsl(":"hsla("}${Vv(this.h)}, ${100*Uv(this.s)}%, ${100*Uv(this.l)}%${1===e?")":`, ${e})`}`}}));var Wv=e=>()=>e;function qv(e){return 1==(e=+e)?Yv:function(t,r){return r-t?function(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)}}(t,r,e):Wv(isNaN(t)?r:t)}}function Yv(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Wv(isNaN(e)?t:e)}var Xv=function e(t){var r=qv(t);function n(e,t){var n=r((e=Dv(e)).r,(t=Dv(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Yv(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);function Gv(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(r=0;r<n;++r)o[r]=e[r]*(1-i)+t[r]*i;return o}}function Kv(e,t){var r,n=t?t.length:0,o=e?Math.min(n,e.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=om(e[r],t[r]);for(;r<n;++r)a[r]=t[r];return function(e){for(r=0;r<o;++r)a[r]=i[r](e);return a}}function Jv(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Qv(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function em(e,t){var r,n={},o={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?n[r]=om(e[r],t[r]):o[r]=t[r];return function(e){for(r in n)o[r]=n[r](e);return o}}var tm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rm=new RegExp(tm.source,"g");function nm(e,t){var r,n,o,i=tm.lastIndex=rm.lastIndex=0,a=-1,c=[],l=[];for(e+="",t+="";(r=tm.exec(e))&&(n=rm.exec(t));)(o=n.index)>i&&(o=t.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,l.push({i:a,x:Qv(r,n)})),i=rm.lastIndex;return i<t.length&&(o=t.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var r,n=0;n<t;++n)c[(r=l[n]).i]=r.x(e);return c.join("")})}function om(e,t){var r,n=typeof t;return null==t||"boolean"===n?Wv(t):("number"===n?Qv:"string"===n?(r=Cv(t))?(t=r,Xv):nm:t instanceof Cv?Xv:t instanceof Date?Jv:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Gv:Array.isArray(t)?Kv:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?em:Qv)(e,t)}function im(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function am(e,t){void 0===t&&(t=e,e=om);for(var r=0,n=t.length-1,o=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(o,o=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return i[t](e-t)}}function cm(e){return+e}var lm=[0,1];function um(e){return e}function sm(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function fm(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o<n?(n=sm(o,n),i=r(a,i)):(n=sm(n,o),i=r(i,a)),function(e){return i(n(e))}}function pm(e,t,r){var n=Math.min(e.length,t.length)-1,o=new Array(n),i=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)o[a]=sm(e[a],e[a+1]),i[a]=r(t[a],t[a+1]);return function(t){var r=Fy(e,t,1,n)-1;return i[r](o[r](t))}}function dm(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function hm(){var e,t,r,n,o,i,a=lm,c=lm,l=om,u=um;function s(){var e=Math.min(a.length,c.length);return u!==um&&(u=function(e,t){var r;return e>t&&(r=e,e=t,t=r),function(r){return Math.max(e,Math.min(t,r))}}(a[0],a[e-1])),n=e>2?pm:fm,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?r:(o||(o=n(a.map(e),c,l)))(e(u(t)))}return f.invert=function(r){return u(t((i||(i=n(c,a.map(e),Qv)))(r)))},f.domain=function(e){return arguments.length?(a=Array.from(e,cm),s()):a.slice()},f.range=function(e){return arguments.length?(c=Array.from(e),s()):c.slice()},f.rangeRound=function(e){return c=Array.from(e),l=im,s()},f.clamp=function(e){return arguments.length?(u=!!e||um,s()):u!==um},f.interpolate=function(e){return arguments.length?(l=e,s()):l},f.unknown=function(e){return arguments.length?(r=e,f):r},function(r,n){return e=r,t=n,s()}}function ym(){return hm()(um,um)}function vm(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 mm(e){return(e=vm(Math.abs(e)))?e[1]:NaN}var gm,bm=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wm(e){if(!(t=bm.exec(e)))throw new Error("invalid format: "+e);var t;return new xm({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]})}function xm(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Om(e,t){var r=vm(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}wm.prototype=xm.prototype,xm.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Sm={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},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)=>Om(100*e,t),r:Om,s:function(e,t){var r=vm(e,t);if(!r)return e+"";var n=r[0],o=r[1],i=o-(gm=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+vm(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function jm(e){return e}var Pm,Mm,Am,km=Array.prototype.map,Em=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Cm(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?jm:(t=km.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var o=e.length,i=[],a=0,c=t[0],l=0;o>0&&c>0&&(l+c+1>n&&(c=Math.max(1,n-l)),i.push(e.substring(o-=c,o+c)),!((l+=c+1)>n));)c=t[a=(a+1)%t.length];return i.reverse().join(r)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",c=void 0===e.numerals?jm:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(km.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",s=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=wm(e)).fill,r=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,y=e.comma,v=e.precision,m=e.trim,g=e.type;"n"===g?(y=!0,g="g"):Sm[g]||(void 0===v&&(v=12),m=!0,g="g"),(d||"0"===t&&"="===r)&&(d=!0,t="0",r="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===p?i:/[%p]/.test(g)?l:"",x=Sm[g],O=/[defgprs%]/.test(g);function S(e){var o,i,l,p=b,S=w;if("c"===g)S=x(e)+S,e="";else{var j=(e=+e)<0||1/e<0;if(e=isNaN(e)?s:x(Math.abs(e),v),m&&(e=function(e){e:for(var t,r=e.length,n=1,o=-1;n<r;++n)switch(e[n]){case".":o=t=n;break;case"0":0===o&&(o=n),t=n;break;default:if(!+e[n])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),j&&0==+e&&"+"!==f&&(j=!1),p=(j?"("===f?f:u:"-"===f||"("===f?"":f)+p,S=("s"===g?Em[8+gm/3]:"")+S+(j&&"("===f?")":""),O)for(o=-1,i=e.length;++o<i;)if(48>(l=e.charCodeAt(o))||l>57){S=(46===l?a+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}y&&!d&&(e=n(e,1/0));var P=p.length+e.length+S.length,M=P<h?new Array(h-P+1).join(t):"";switch(y&&d&&(e=n(M+e,M.length?h-S.length:1/0),M=""),r){case"<":e=p+e+S+M;break;case"=":e=p+M+e+S;break;case"^":e=M.slice(0,P=M.length>>1)+p+e+S+M.slice(P);break;default:e=M+p+e+S}return c(e)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return e+""},S}return{format:f,formatPrefix:function(e,t){var r=f(((e=wm(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(mm(t)/3))),o=Math.pow(10,-n),i=Em[8+n/3];return function(e){return r(o*e)+i}}}}function _m(e,t,r,n){var o,i=Qy(e,t,r);switch((n=wm(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(mm(t)/3)))-mm(Math.abs(e)))}(i,a))||(n.precision=o),Am(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,mm(t)-mm(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(e){return Math.max(0,-mm(Math.abs(e)))}(i))||(n.precision=o-2*("%"===n.type))}return Mm(n)}function Tm(e){var t=e.domain;return e.ticks=function(e){var r=t();return Ky(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return _m(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,o,i=t(),a=0,c=i.length-1,l=i[a],u=i[c],s=10;for(u<l&&(o=l,l=u,u=o,o=a,a=c,c=o);s-- >0;){if((o=Jy(l,u,r))===n)return i[a]=l,i[c]=u,t(i);if(o>0)l=Math.floor(l/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,u=Math.floor(u*o)/o}n=o}return e},e}function Dm(){var e=ym();return e.copy=function(){return dm(e,Dm())},iv.apply(e,arguments),Tm(e)}function Im(e,t){var r,n=0,o=(e=e.slice()).length-1,i=e[n],a=e[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),e[n]=t.floor(i),e[o]=t.ceil(a),e}function Nm(e){return Math.log(e)}function Rm(e){return Math.exp(e)}function Lm(e){return-Math.log(-e)}function Bm(e){return-Math.exp(-e)}function zm(e){return isFinite(e)?+("1e"+e):e<0?0:e}function $m(e){return(t,r)=>-e(-t,r)}function Hm(e){const t=e(Nm,Rm),r=t.domain;let n,o,i=10;function a(){return n=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?zm:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),r()[0]<0?(n=$m(n),o=$m(o),e(Lm,Bm)):e(Nm,Rm),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(r(e),a()):r()},t.ticks=e=>{const t=r();let a=t[0],c=t[t.length-1];const l=c<a;l&&([a,c]=[c,a]);let u,s,f=n(a),p=n(c);const d=null==e?10:+e;let h=[];if(!(i%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(u=1;u<i;++u)if(s=f<0?u/o(-f):u*o(f),!(s<a)){if(s>c)break;h.push(s)}}else for(;f<=p;++f)for(u=i-1;u>=1;--u)if(s=f>0?u/o(-f):u*o(f),!(s<a)){if(s>c)break;h.push(s)}2*h.length<d&&(h=Ky(a,c,d))}else h=Ky(f,p,Math.min(p-f,d)).map(o);return l?h.reverse():h},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=wm(r)).precision||(r.trim=!0),r=Mm(r)),e===1/0)return r;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(n(e)));return t*i<i-.5&&(t*=i),t<=a?r(e):""}},t.nice=()=>r(Im(r(),{floor:e=>o(Math.floor(n(e))),ceil:e=>o(Math.ceil(n(e)))})),t}function Fm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Vm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Um(e){var t=1,r=e(Fm(t),Vm(t));return r.constant=function(r){return arguments.length?e(Fm(t=+r),Vm(t)):t},Tm(r)}function Zm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Wm(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function qm(e){return e<0?-e*e:e*e}function Ym(e){var t=e(um,um),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(um,um):.5===r?e(Wm,qm):e(Zm(r),Zm(1/r)):r},Tm(t)}function Xm(){var e=Ym(hm());return e.copy=function(){return dm(e,Xm()).exponent(e.exponent())},iv.apply(e,arguments),e}function Gm(e){return Math.sign(e)*e*e}Pm=Cm({thousands:",",grouping:[3],currency:["$",""]}),Mm=Pm.format,Am=Pm.formatPrefix;const Km=new Date,Jm=new Date;function Qm(e,t,r,n){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),o.round=e=>{const t=o(e),r=o.ceil(e);return e-t<r-e?t:r},o.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let c;do{a.push(c=new Date(+r)),t(r,i),e(r)}while(c<r&&r<n);return a},o.filter=r=>Qm((t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)}),((e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););})),r&&(o.count=(t,n)=>(Km.setTime(+t),Jm.setTime(+n),e(Km),e(Jm),Math.floor(r(Km,Jm))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(n?t=>n(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const eg=Qm((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));eg.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Qm((t=>{t.setTime(Math.floor(t/e)*e)}),((t,r)=>{t.setTime(+t+r*e)}),((t,r)=>(r-t)/e)):eg:null),eg.range;const tg=1e3,rg=6e4,ng=36e5,og=864e5,ig=6048e5,ag=2592e6,cg=31536e6,lg=Qm((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*tg)}),((e,t)=>(t-e)/tg),(e=>e.getUTCSeconds()));lg.range;const ug=Qm((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*tg)}),((e,t)=>{e.setTime(+e+t*rg)}),((e,t)=>(t-e)/rg),(e=>e.getMinutes()));ug.range;const sg=Qm((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*rg)}),((e,t)=>(t-e)/rg),(e=>e.getUTCMinutes()));sg.range;const fg=Qm((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*tg-e.getMinutes()*rg)}),((e,t)=>{e.setTime(+e+t*ng)}),((e,t)=>(t-e)/ng),(e=>e.getHours()));fg.range;const pg=Qm((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*ng)}),((e,t)=>(t-e)/ng),(e=>e.getUTCHours()));pg.range;const dg=Qm((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*rg)/og),(e=>e.getDate()-1));dg.range;const hg=Qm((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/og),(e=>e.getUTCDate()-1));hg.range;const yg=Qm((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/og),(e=>Math.floor(e/og)));function vg(e){return Qm((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*rg)/ig))}yg.range;const mg=vg(0),gg=vg(1),bg=vg(2),wg=vg(3),xg=vg(4),Og=vg(5),Sg=vg(6);function jg(e){return Qm((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/ig))}mg.range,gg.range,bg.range,wg.range,xg.range,Og.range,Sg.range;const Pg=jg(0),Mg=jg(1),Ag=jg(2),kg=jg(3),Eg=jg(4),Cg=jg(5),_g=jg(6);Pg.range,Mg.range,Ag.range,kg.range,Eg.range,Cg.range,_g.range;const Tg=Qm((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));Tg.range;const Dg=Qm((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));Dg.range;const Ig=Qm((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()));Ig.every=e=>isFinite(e=Math.floor(e))&&e>0?Qm((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)})):null,Ig.range;const Ng=Qm((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()));function Rg(e,t,r,n,o,i){const a=[[lg,1,tg],[lg,5,5e3],[lg,15,15e3],[lg,30,3e4],[i,1,rg],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,ng],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,og],[n,2,1728e5],[r,1,ig],[t,1,ag],[t,3,7776e6],[e,1,cg]];function c(t,r,n){const o=Math.abs(r-t)/n,i=zy((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(Qy(t/cg,r/cg,n));if(0===i)return eg.every(Math.max(Qy(t,r,n),1));const[c,l]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return c.every(l)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const o=r&&"function"==typeof r.range?r:c(e,t,r),i=o?o.range(e,+t+1):[];return n?i.reverse():i},c]}Ng.every=e=>isFinite(e=Math.floor(e))&&e>0?Qm((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)})):null,Ng.range;const[Lg,Bg]=Rg(Ng,Dg,Pg,yg,pg,sg),[zg,$g]=Rg(Ig,Tg,mg,dg,fg,ug);function Hg(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 Fg(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 Vg(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var Ug,Zg,Wg,qg={"-":"",_:" ",0:"0"},Yg=/^\s*\d+/,Xg=/^%/,Gg=/[\\^$*+?|[\]().{}]/g;function Kg(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(t)+o:o)}function Jg(e){return e.replace(Gg,"\\$&")}function Qg(e){return new RegExp("^(?:"+e.map(Jg).join("|")+")","i")}function eb(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function tb(e,t,r){var n=Yg.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function rb(e,t,r){var n=Yg.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function nb(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function ob(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function ib(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function ab(e,t,r){var n=Yg.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function cb(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function lb(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 ub(e,t,r){var n=Yg.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function sb(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function fb(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function pb(e,t,r){var n=Yg.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function db(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function hb(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function yb(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function vb(e,t,r){var n=Yg.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function mb(e,t,r){var n=Yg.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function gb(e,t,r){var n=Xg.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function bb(e,t,r){var n=Yg.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function wb(e,t,r){var n=Yg.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function xb(e,t){return Kg(e.getDate(),t,2)}function Ob(e,t){return Kg(e.getHours(),t,2)}function Sb(e,t){return Kg(e.getHours()%12||12,t,2)}function jb(e,t){return Kg(1+dg.count(Ig(e),e),t,3)}function Pb(e,t){return Kg(e.getMilliseconds(),t,3)}function Mb(e,t){return Pb(e,t)+"000"}function Ab(e,t){return Kg(e.getMonth()+1,t,2)}function kb(e,t){return Kg(e.getMinutes(),t,2)}function Eb(e,t){return Kg(e.getSeconds(),t,2)}function Cb(e){var t=e.getDay();return 0===t?7:t}function _b(e,t){return Kg(mg.count(Ig(e)-1,e),t,2)}function Tb(e){var t=e.getDay();return t>=4||0===t?xg(e):xg.ceil(e)}function Db(e,t){return e=Tb(e),Kg(xg.count(Ig(e),e)+(4===Ig(e).getDay()),t,2)}function Ib(e){return e.getDay()}function Nb(e,t){return Kg(gg.count(Ig(e)-1,e),t,2)}function Rb(e,t){return Kg(e.getFullYear()%100,t,2)}function Lb(e,t){return Kg((e=Tb(e)).getFullYear()%100,t,2)}function Bb(e,t){return Kg(e.getFullYear()%1e4,t,4)}function zb(e,t){var r=e.getDay();return Kg((e=r>=4||0===r?xg(e):xg.ceil(e)).getFullYear()%1e4,t,4)}function $b(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Kg(t/60|0,"0",2)+Kg(t%60,"0",2)}function Hb(e,t){return Kg(e.getUTCDate(),t,2)}function Fb(e,t){return Kg(e.getUTCHours(),t,2)}function Vb(e,t){return Kg(e.getUTCHours()%12||12,t,2)}function Ub(e,t){return Kg(1+hg.count(Ng(e),e),t,3)}function Zb(e,t){return Kg(e.getUTCMilliseconds(),t,3)}function Wb(e,t){return Zb(e,t)+"000"}function qb(e,t){return Kg(e.getUTCMonth()+1,t,2)}function Yb(e,t){return Kg(e.getUTCMinutes(),t,2)}function Xb(e,t){return Kg(e.getUTCSeconds(),t,2)}function Gb(e){var t=e.getUTCDay();return 0===t?7:t}function Kb(e,t){return Kg(Pg.count(Ng(e)-1,e),t,2)}function Jb(e){var t=e.getUTCDay();return t>=4||0===t?Eg(e):Eg.ceil(e)}function Qb(e,t){return e=Jb(e),Kg(Eg.count(Ng(e),e)+(4===Ng(e).getUTCDay()),t,2)}function ew(e){return e.getUTCDay()}function tw(e,t){return Kg(Mg.count(Ng(e)-1,e),t,2)}function rw(e,t){return Kg(e.getUTCFullYear()%100,t,2)}function nw(e,t){return Kg((e=Jb(e)).getUTCFullYear()%100,t,2)}function ow(e,t){return Kg(e.getUTCFullYear()%1e4,t,4)}function iw(e,t){var r=e.getUTCDay();return Kg((e=r>=4||0===r?Eg(e):Eg.ceil(e)).getUTCFullYear()%1e4,t,4)}function aw(){return"+0000"}function cw(){return"%"}function lw(e){return+e}function uw(e){return Math.floor(+e/1e3)}function sw(e){return new Date(e)}function fw(e){return e instanceof Date?+e:+new Date(+e)}function pw(e,t,r,n,o,i,a,c,l,u){var s=ym(),f=s.invert,p=s.domain,d=u(".%L"),h=u(":%S"),y=u("%I:%M"),v=u("%I %p"),m=u("%a %d"),g=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(l(e)<e?d:c(e)<e?h:a(e)<e?y:i(e)<e?v:n(e)<e?o(e)<e?m:g:r(e)<e?b:w)(e)}return s.invert=function(e){return new Date(f(e))},s.domain=function(e){return arguments.length?p(Array.from(e,fw)):p().map(sw)},s.ticks=function(t){var r=p();return e(r[0],r[r.length-1],null==t?10:t)},s.tickFormat=function(e,t){return null==t?x:u(t)},s.nice=function(e){var r=p();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?p(Im(r,e)):s},s.copy=function(){return dm(s,pw(e,t,r,n,o,i,a,c,l,u))},s}function dw(){var e,t,r,n,o,i=0,a=1,c=um,l=!1;function u(t){return null==t||isNaN(t=+t)?o:c(0===r?.5:(t=(n(t)-e)*r,l?Math.max(0,Math.min(1,t)):t))}function s(e){return function(t){var r,n;return arguments.length?([r,n]=t,c=e(r,n),u):[c(0),c(1)]}}return u.domain=function(o){return arguments.length?([i,a]=o,e=n(i=+i),t=n(a=+a),r=e===t?0:1/(t-e),u):[i,a]},u.clamp=function(e){return arguments.length?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(c=e,u):c},u.range=s(om),u.rangeRound=s(im),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return n=o,e=o(i),t=o(a),r=e===t?0:1/(t-e),u}}function hw(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function yw(){var e=Ym(dw());return e.copy=function(){return hw(e,yw()).exponent(e.exponent())},av.apply(e,arguments)}function vw(){var e,t,r,n,o,i,a,c=0,l=.5,u=1,s=1,f=um,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(s*e<s*t?n:o),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var r,n,o;return arguments.length?([r,n,o]=t,f=am(e,[r,n,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([c,l,u]=a,e=i(c=+c),t=i(l=+l),r=i(u=+u),n=e===t?0:.5/(t-e),o=t===r?0:.5/(r-t),s=t<e?-1:1,d):[c,l,u]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(om),d.rangeRound=h(im),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return i=a,e=a(c),t=a(l),r=a(u),n=e===t?0:.5/(t-e),o=t===r?0:.5/(r-t),s=t<e?-1:1,d}}function mw(){var e=Ym(vw());return e.copy=function(){return hw(e,mw()).exponent(e.exponent())},av.apply(e,arguments)}!function(e){Ug=function(e){var t=e.dateTime,r=e.date,n=e.time,o=e.periods,i=e.days,a=e.shortDays,c=e.months,l=e.shortMonths,u=Qg(o),s=eb(o),f=Qg(i),p=eb(i),d=Qg(a),h=eb(a),y=Qg(c),v=eb(c),m=Qg(l),g=eb(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:xb,e:xb,f:Mb,g:Lb,G:zb,H:Ob,I:Sb,j:jb,L:Pb,m:Ab,M:kb,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:lw,s:uw,S:Eb,u:Cb,U:_b,V:Db,w:Ib,W:Nb,x:null,X:null,y:Rb,Y:Bb,Z:$b,"%":cw},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:Hb,e:Hb,f:Wb,g:nw,G:iw,H:Fb,I:Vb,j:Ub,L:Zb,m:qb,M:Yb,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:lw,s:uw,S:Xb,u:Gb,U:Kb,V:Qb,w:ew,W:tw,x:null,X:null,y:rw,Y:ow,Z:aw,"%":cw},x={a:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=f.exec(t.slice(r));return n?(e.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=y.exec(t.slice(r));return n?(e.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return j(e,t,r,n)},d:fb,e:fb,f:mb,g:cb,G:ab,H:db,I:db,j:pb,L:vb,m:sb,M:hb,p:function(e,t,r){var n=u.exec(t.slice(r));return n?(e.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:ub,Q:bb,s:wb,S:yb,u:rb,U:nb,V:ob,w:tb,W:ib,x:function(e,t,n){return j(e,r,t,n)},X:function(e,t,r){return j(e,n,t,r)},y:cb,Y:ab,Z:lb,"%":gb};function O(e,t){return function(r){var n,o,i,a=[],c=-1,l=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++c<u;)37===e.charCodeAt(c)&&(a.push(e.slice(l,c)),null!=(o=qg[n=e.charAt(++c)])?n=e.charAt(++c):o="e"===n?" ":"0",(i=t[n])&&(n=i(r,o)),a.push(n),l=c+1);return a.push(e.slice(l,c)),a.join("")}}function S(e,t){return function(r){var n,o,i=Vg(1900,void 0,1);if(j(i,e,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=Fg(Vg(i.y,0,1))).getUTCDay(),n=o>4||0===o?Mg.ceil(n):Mg(n),n=hg.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=Hg(Vg(i.y,0,1))).getDay(),n=o>4||0===o?gg.ceil(n):gg(n),n=dg.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Fg(Vg(i.y,0,1)).getUTCDay():Hg(Vg(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Fg(i)):Hg(i)}}function j(e,t,r,n){for(var o,i,a=0,c=t.length,l=r.length;a<c;){if(n>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in qg?t.charAt(a++):o])||(n=i(e,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(t,b),w.x=O(r,w),w.X=O(n,w),w.c=O(t,w),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}(e),Zg=Ug.format,Ug.parse,Wg=Ug.utcFormat,Ug.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var gw,bw,ww,xw,Ow,Sw,jw=Object.freeze({__proto__:null,scaleBand:uv,scaleDiverging:function e(){var t=Tm(vw()(um));return t.copy=function(){return hw(t,e())},av.apply(t,arguments)},scaleDivergingLog:function e(){var t=Hm(vw()).domain([.1,1,10]);return t.copy=function(){return hw(t,e()).base(t.base())},av.apply(t,arguments)},scaleDivergingPow:mw,scaleDivergingSqrt:function(){return mw.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=Um(vw());return t.copy=function(){return hw(t,e()).constant(t.constant())},av.apply(t,arguments)},scaleIdentity:function e(t){var r;function n(e){return null==e||isNaN(e=+e)?r:e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,cm),n):t.slice()},n.unknown=function(e){return arguments.length?(r=e,n):r},n.copy=function(){return e(t).unknown(r)},t=arguments.length?Array.from(t,cm):[0,1],Tm(n)},scaleImplicit:cv,scaleLinear:Dm,scaleLog:function e(){const t=Hm(hm()).domain([1,10]);return t.copy=()=>dm(t,e()).base(t.base()),iv.apply(t,arguments),t},scaleOrdinal:lv,scalePoint:fv,scalePow:Xm,scaleQuantile:function e(){var t,r=[],n=[],o=[];function i(){var e=0,t=Math.max(1,n.length);for(o=new Array(t-1);++e<t;)o[e-1]=ov(r,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:n[Fy(o,e)]}return a.invertExtent=function(e){var t=n.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:r[0],t<o.length?o[t]:r[r.length-1]]},a.domain=function(e){if(!arguments.length)return r.slice();r=[];for(let t of e)null==t||isNaN(t=+t)||r.push(t);return r.sort(Ly),i()},a.range=function(e){return arguments.length?(n=Array.from(e),i()):n.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(r).range(n).unknown(t)},iv.apply(a,arguments)},scaleQuantize:function e(){var t,r=0,n=1,o=1,i=[.5],a=[0,1];function c(e){return null!=e&&e<=e?a[Fy(i,e,0,o)]:t}function l(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*n-(e-o)*r)/(o+1);return c}return c.domain=function(e){return arguments.length?([r,n]=e,r=+r,n=+n,l()):[r,n]},c.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,l()):a.slice()},c.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[r,i[0]]:t>=o?[i[o-1],n]:[i[t-1],i[t]]},c.unknown=function(e){return arguments.length?(t=e,c):c},c.thresholds=function(){return i.slice()},c.copy=function(){return e().domain([r,n]).range(a).unknown(t)},iv.apply(Tm(c),arguments)},scaleRadial:function e(){var t,r=ym(),n=[0,1],o=!1;function i(e){var n=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(r(e));return isNaN(n)?t:o?Math.round(n):n}return i.invert=function(e){return r.invert(Gm(e))},i.domain=function(e){return arguments.length?(r.domain(e),i):r.domain()},i.range=function(e){return arguments.length?(r.range((n=Array.from(e,cm)).map(Gm)),i):n.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(r.clamp(e),i):r.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(r.domain(),n).round(o).clamp(r.clamp()).unknown(t)},iv.apply(i,arguments),Tm(i)},scaleSequential:function e(){var t=Tm(dw()(um));return t.copy=function(){return hw(t,e())},av.apply(t,arguments)},scaleSequentialLog:function e(){var t=Hm(dw()).domain([1,10]);return t.copy=function(){return hw(t,e()).base(t.base())},av.apply(t,arguments)},scaleSequentialPow:yw,scaleSequentialQuantile:function e(){var t=[],r=um;function n(e){if(null!=e&&!isNaN(e=+e))return r((Fy(t,e,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(Ly),n},n.interpolator=function(e){return arguments.length?(r=e,n):r},n.range=function(){return t.map(((e,n)=>r(n/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((r,n)=>function(e,t,r){if((n=(e=Float64Array.from(function*(e,t){for(let t of e)null!=t&&(t=+t)>=t&&(yield t)}(e))).length)&&!isNaN(t=+t)){if(t<=0||n<2)return tv(e);if(t>=1)return ev(e);var n,o=(n-1)*t,i=Math.floor(o),a=ev(rv(e,i).subarray(0,i+1));return a+(tv(e.subarray(i+1))-a)*(o-i)}}(t,n/e)))},n.copy=function(){return e(r).domain(t)},av.apply(n,arguments)},scaleSequentialSqrt:function(){return yw.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=Um(dw());return t.copy=function(){return hw(t,e()).constant(t.constant())},av.apply(t,arguments)},scaleSqrt:function(){return Xm.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=Um(hm());return t.copy=function(){return dm(t,e()).constant(t.constant())},iv.apply(t,arguments)},scaleThreshold:function e(){var t,r=[.5],n=[0,1],o=1;function i(e){return null!=e&&e<=e?n[Fy(r,e,0,o)]:t}return i.domain=function(e){return arguments.length?(r=Array.from(e),o=Math.min(r.length,n.length-1),i):r.slice()},i.range=function(e){return arguments.length?(n=Array.from(e),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var t=n.indexOf(e);return[r[t-1],r[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(r).range(n).unknown(t)},iv.apply(i,arguments)},scaleTime:function(){return iv.apply(pw(zg,$g,Ig,Tg,mg,dg,fg,ug,lg,Zg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return iv.apply(pw(Lg,Bg,Ng,Dg,Pg,hg,pg,sg,lg,Wg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:_m});function Pw(){if(bw)return gw;bw=1;var e=Pi();return gw=function(t,r,n){for(var o=-1,i=t.length;++o<i;){var a=t[o],c=r(a);if(null!=c&&(void 0===l?c==c&&!e(c):n(c,l)))var l=c,u=a}return u},gw}var Mw,Aw,kw,Ew,Cw=function(){if(Sw)return Ow;Sw=1;var e=Pw(),t=xw?ww:(xw=1,ww=function(e,t){return e>t}),r=vp();return Ow=function(n){return n&&n.length?e(n,r,t):void 0},Ow}(),_w=tr(Cw);var Tw,Dw,Iw,Nw,Rw=function(){if(Ew)return kw;Ew=1;var e=Pw(),t=Aw?Mw:(Aw=1,Mw=function(e,t){return e<t}),r=vp();return kw=function(n){return n&&n.length?e(n,r,t):void 0},kw}(),Lw=tr(Rw);var Bw,zw,$w=function(){if(Nw)return Iw;Nw=1;var e=Cd(),t=function(){if(Dw)return Tw;Dw=1;var e=Fi(),t=gp(),r=Id(),n=bi();return Tw=function(o,i){return(n(o)?e:r)(o,t(i,3))}}();return Iw=function(r,n){return e(t(r,n),1)}}(),Hw=tr($w);var Fw,Vw=tr(function(){if(zw)return Bw;zw=1;var e=fp();return Bw=function(t,r){return e(t,r)}}()),Uw=1e9,Zw=!0,Ww="[DecimalError] ",qw=Ww+"Invalid argument: ",Yw=Ww+"Exponent out of range: ",Xw=Math.floor,Gw=Math.pow,Kw=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Jw=1e7,Qw=7,ex=9007199254740991,tx=Xw(ex/Qw),rx={};function nx(e,t){var r,n,o,i,a,c,l,u,s=e.constructor,f=s.precision;if(!e.s||!t.s)return t.s||(t=new s(e)),Zw?dx(t,f):t;if(l=e.d,u=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o){for(i<0?(n=l,i=-i,c=u.length):(n=u,o=a,c=l.length),i>(c=(a=Math.ceil(f/Qw))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=l.length)-(i=u.length)<0&&(i=c,n=u,u=l,l=n),r=0;i;)r=(l[--i]=l[i]+u[i]+r)/Jw|0,l[i]%=Jw;for(r&&(l.unshift(r),++o),c=l.length;0==l[--c];)l.pop();return t.d=l,t.e=o,Zw?dx(t,f):t}function ox(e,t,r){if(e!==~~e||e<t||e>r)throw Error(qw+e)}function ix(e){var t,r,n,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)n=e[t]+"",(r=Qw-n.length)&&(i+=sx(r)),i+=n;a=e[t],(r=Qw-(n=a+"").length)&&(i+=sx(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}rx.absoluteValue=rx.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},rx.comparedTo=rx.cmp=function(e){var t,r,n,o,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(t=0,r=(n=i.d.length)<(o=e.d.length)?n:o;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},rx.decimalPlaces=rx.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Qw;if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},rx.dividedBy=rx.div=function(e){return ax(this,new this.constructor(e))},rx.dividedToIntegerBy=rx.idiv=function(e){var t=this.constructor;return dx(ax(this,new t(e),0,1),t.precision)},rx.equals=rx.eq=function(e){return!this.cmp(e)},rx.exponent=function(){return lx(this)},rx.greaterThan=rx.gt=function(e){return this.cmp(e)>0},rx.greaterThanOrEqualTo=rx.gte=function(e){return this.cmp(e)>=0},rx.isInteger=rx.isint=function(){return this.e>this.d.length-2},rx.isNegative=rx.isneg=function(){return this.s<0},rx.isPositive=rx.ispos=function(){return this.s>0},rx.isZero=function(){return 0===this.s},rx.lessThan=rx.lt=function(e){return this.cmp(e)<0},rx.lessThanOrEqualTo=rx.lte=function(e){return this.cmp(e)<1},rx.logarithm=rx.log=function(e){var t,r=this,n=r.constructor,o=n.precision,i=o+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(Fw))throw Error(Ww+"NaN");if(r.s<1)throw Error(Ww+(r.s?"NaN":"-Infinity"));return r.eq(Fw)?new n(0):(Zw=!1,t=ax(fx(r,i),fx(e,i),i),Zw=!0,dx(t,o))},rx.minus=rx.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?hx(t,e):nx(t,(e.s=-e.s,e))},rx.modulo=rx.mod=function(e){var t,r=this,n=r.constructor,o=n.precision;if(!(e=new n(e)).s)throw Error(Ww+"NaN");return r.s?(Zw=!1,t=ax(r,e,0,1).times(e),Zw=!0,r.minus(t)):dx(new n(r),o)},rx.naturalExponential=rx.exp=function(){return cx(this)},rx.naturalLogarithm=rx.ln=function(){return fx(this)},rx.negated=rx.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},rx.plus=rx.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nx(t,e):hx(t,(e.s=-e.s,e))},rx.precision=rx.sd=function(e){var t,r,n,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(qw+e);if(t=lx(o)+1,r=(n=o.d.length-1)*Qw+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},rx.squareRoot=rx.sqrt=function(){var e,t,r,n,o,i,a,c=this,l=c.constructor;if(c.s<1){if(!c.s)return new l(0);throw Error(Ww+"NaN")}for(e=lx(c),Zw=!1,0==(o=Math.sqrt(+c))||o==1/0?(((t=ix(c.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Xw((e+1)/2)-(e<0||e%2),n=new l(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new l(o.toString()),o=a=(r=l.precision)+3;;)if(n=(i=n).plus(ax(c,i,a+2)).times(.5),ix(i.d).slice(0,a)===(t=ix(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(dx(i,r+1,0),i.times(i).eq(c)){n=i;break}}else if("9999"!=t)break;a+=4}return Zw=!0,dx(n,r)},rx.times=rx.mul=function(e){var t,r,n,o,i,a,c,l,u,s=this,f=s.constructor,p=s.d,d=(e=new f(e)).d;if(!s.s||!e.s)return new f(0);for(e.s*=s.s,r=s.e+e.e,(l=p.length)<(u=d.length)&&(i=p,p=d,d=i,a=l,l=u,u=a),i=[],n=a=l+u;n--;)i.push(0);for(n=u;--n>=0;){for(t=0,o=l+n;o>n;)c=i[o]+d[n]*p[o-n-1]+t,i[o--]=c%Jw|0,t=c/Jw|0;i[o]=(i[o]+t)%Jw|0}for(;!i[--a];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,Zw?dx(e,f.precision):e},rx.toDecimalPlaces=rx.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(ox(e,0,Uw),void 0===t?t=n.rounding:ox(t,0,8),dx(r,e+lx(r)+1,t))},rx.toExponential=function(e,t){var r,n=this,o=n.constructor;return void 0===e?r=yx(n,!0):(ox(e,0,Uw),void 0===t?t=o.rounding:ox(t,0,8),r=yx(n=dx(new o(n),e+1,t),!0,e+1)),r},rx.toFixed=function(e,t){var r,n,o=this,i=o.constructor;return void 0===e?yx(o):(ox(e,0,Uw),void 0===t?t=i.rounding:ox(t,0,8),r=yx((n=dx(new i(o),e+lx(o)+1,t)).abs(),!1,e+lx(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},rx.toInteger=rx.toint=function(){var e=this,t=e.constructor;return dx(new t(e),lx(e)+1,t.rounding)},rx.toNumber=function(){return+this},rx.toPower=rx.pow=function(e){var t,r,n,o,i,a,c=this,l=c.constructor,u=+(e=new l(e));if(!e.s)return new l(Fw);if(!(c=new l(c)).s){if(e.s<1)throw Error(Ww+"Infinity");return c}if(c.eq(Fw))return c;if(n=l.precision,e.eq(Fw))return dx(c,n);if(a=(t=e.e)>=(r=e.d.length-1),i=c.s,a){if((r=u<0?-u:u)<=ex){for(o=new l(Fw),t=Math.ceil(n/Qw+4),Zw=!1;r%2&&vx((o=o.times(c)).d,t),0!==(r=Xw(r/2));)vx((c=c.times(c)).d,t);return Zw=!0,e.s<0?new l(Fw).div(o):dx(o,n)}}else if(i<0)throw Error(Ww+"NaN");return i=i<0&&1&e.d[Math.max(t,r)]?-1:1,c.s=1,Zw=!1,o=e.times(fx(c,n+12)),Zw=!0,(o=cx(o)).s=i,o},rx.toPrecision=function(e,t){var r,n,o=this,i=o.constructor;return void 0===e?n=yx(o,(r=lx(o))<=i.toExpNeg||r>=i.toExpPos):(ox(e,1,Uw),void 0===t?t=i.rounding:ox(t,0,8),n=yx(o=dx(new i(o),e,t),e<=(r=lx(o))||r<=i.toExpNeg,e)),n},rx.toSignificantDigits=rx.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(ox(e,1,Uw),void 0===t?t=r.rounding:ox(t,0,8)),dx(new r(this),e,t)},rx.toString=rx.valueOf=rx.val=rx.toJSON=rx[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=lx(e),r=e.constructor;return yx(e,t<=r.toExpNeg||t>=r.toExpPos)};var ax=function(){function e(e,t){var r,n=0,o=e.length;for(e=e.slice();o--;)r=e[o]*t+n,e[o]=r%Jw|0,n=r/Jw|0;return n&&e.unshift(n),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]<t[r]?1:0,e[r]=n*Jw+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,o,i,a){var c,l,u,s,f,p,d,h,y,v,m,g,b,w,x,O,S,j,P=n.constructor,M=n.s==o.s?1:-1,A=n.d,k=o.d;if(!n.s)return new P(n);if(!o.s)throw Error(Ww+"Division by zero");for(l=n.e-o.e,S=k.length,x=A.length,h=(d=new P(M)).d=[],u=0;k[u]==(A[u]||0);)++u;if(k[u]>(A[u]||0)&&--l,(g=null==i?i=P.precision:a?i+(lx(n)-lx(o))+1:i)<0)return new P(0);if(g=g/Qw+2|0,u=0,1==S)for(s=0,k=k[0],g++;(u<x||s)&&g--;u++)b=s*Jw+(A[u]||0),h[u]=b/k|0,s=b%k|0;else{for((s=Jw/(k[0]+1)|0)>1&&(k=e(k,s),A=e(A,s),S=k.length,x=A.length),w=S,v=(y=A.slice(0,S)).length;v<S;)y[v++]=0;(j=k.slice()).unshift(0),O=k[0],k[1]>=Jw/2&&++O;do{s=0,(c=t(k,y,S,v))<0?(m=y[0],S!=v&&(m=m*Jw+(y[1]||0)),(s=m/O|0)>1?(s>=Jw&&(s=Jw-1),1==(c=t(f=e(k,s),y,p=f.length,v=y.length))&&(s--,r(f,S<p?j:k,p))):(0==s&&(c=s=1),f=k.slice()),(p=f.length)<v&&f.unshift(0),r(y,f,v),-1==c&&(c=t(k,y,S,v=y.length))<1&&(s++,r(y,S<v?j:k,v)),v=y.length):0===c&&(s++,y=[0]),h[u++]=s,c&&y[0]?y[v++]=A[w]||0:(y=[A[w]],v=1)}while((w++<x||void 0!==y[0])&&g--)}return h[0]||h.shift(),d.e=l,dx(d,a?i+lx(d)+1:i)}}();function cx(e,t){var r,n,o,i,a,c=0,l=0,u=e.constructor,s=u.precision;if(lx(e)>16)throw Error(Yw+lx(e));if(!e.s)return new u(Fw);for(null==t?(Zw=!1,a=s):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),l+=5;for(a+=Math.log(Gw(2,l))/Math.LN10*2+5|0,r=n=o=new u(Fw),u.precision=a;;){if(n=dx(n.times(e),a),r=r.times(++c),ix((i=o.plus(ax(n,r,a))).d).slice(0,a)===ix(o.d).slice(0,a)){for(;l--;)o=dx(o.times(o),a);return u.precision=s,null==t?(Zw=!0,dx(o,s)):o}o=i}}function lx(e){for(var t=e.e*Qw,r=e.d[0];r>=10;r/=10)t++;return t}function ux(e,t,r){if(t>e.LN10.sd())throw Zw=!0,r&&(e.precision=r),Error(Ww+"LN10 precision limit exceeded");return dx(new e(e.LN10),t)}function sx(e){for(var t="";e--;)t+="0";return t}function fx(e,t){var r,n,o,i,a,c,l,u,s,f=1,p=e,d=p.d,h=p.constructor,y=h.precision;if(p.s<1)throw Error(Ww+(p.s?"NaN":"-Infinity"));if(p.eq(Fw))return new h(0);if(null==t?(Zw=!1,u=y):u=t,p.eq(10))return null==t&&(Zw=!0),ux(h,u);if(u+=10,h.precision=u,n=(r=ix(d)).charAt(0),i=lx(p),!(Math.abs(i)<15e14))return l=ux(h,u+2,y).times(i+""),p=fx(new h(n+"."+r.slice(1)),u-10).plus(l),h.precision=y,null==t?(Zw=!0,dx(p,y)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=ix((p=p.times(e)).d)).charAt(0),f++;for(i=lx(p),n>1?(p=new h("0."+r),i++):p=new h(n+"."+r.slice(1)),c=a=p=ax(p.minus(Fw),p.plus(Fw),u),s=dx(p.times(p),u),o=3;;){if(a=dx(a.times(s),u),ix((l=c.plus(ax(a,new h(o),u))).d).slice(0,u)===ix(c.d).slice(0,u))return c=c.times(2),0!==i&&(c=c.plus(ux(h,u+2,y).times(i+""))),c=ax(c,new h(f),u),h.precision=y,null==t?(Zw=!0,dx(c,y)):c;c=l,o+=2}}function px(e,t){var r,n,o;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;48===t.charCodeAt(n);)++n;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(n,o)){if(o-=n,r=r-n-1,e.e=Xw(r/Qw),e.d=[],n=(r+1)%Qw,r<0&&(n+=Qw),n<o){for(n&&e.d.push(+t.slice(0,n)),o-=Qw;n<o;)e.d.push(+t.slice(n,n+=Qw));t=t.slice(n),n=Qw-t.length}else n-=o;for(;n--;)t+="0";if(e.d.push(+t),Zw&&(e.e>tx||e.e<-tx))throw Error(Yw+r)}else e.s=0,e.e=0,e.d=[0];return e}function dx(e,t,r){var n,o,i,a,c,l,u,s,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((n=t-a)<0)n+=Qw,o=t,u=f[s=0];else{if((s=Math.ceil((n+1)/Qw))>=(i=f.length))return e;for(u=i=f[s],a=1;i>=10;i/=10)a++;o=(n%=Qw)-Qw+a}if(void 0!==r&&(c=u/(i=Gw(10,a-o-1))%10|0,l=t<0||void 0!==f[s+1]||u%i,l=r<4?(c||l)&&(0==r||r==(e.s<0?3:2)):c>5||5==c&&(4==r||l||6==r&&(n>0?o>0?u/Gw(10,a-o):0:f[s-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(i=lx(e),f.length=1,t=t-i-1,f[0]=Gw(10,(Qw-t%Qw)%Qw),e.e=Xw(-t/Qw)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==n?(f.length=s,i=1,s--):(f.length=s+1,i=Gw(10,Qw-n),f[s]=o>0?(u/Gw(10,a-o)%Gw(10,o)|0)*i:0),l)for(;;){if(0==s){(f[0]+=i)==Jw&&(f[0]=1,++e.e);break}if(f[s]+=i,f[s]!=Jw)break;f[s--]=0,i=1}for(n=f.length;0===f[--n];)f.pop();if(Zw&&(e.e>tx||e.e<-tx))throw Error(Yw+lx(e));return e}function hx(e,t){var r,n,o,i,a,c,l,u,s,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),Zw?dx(t,d):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),a=u-n){for((s=a<0)?(r=l,a=-a,c=f.length):(r=f,n=u,c=l.length),a>(o=Math.max(Math.ceil(d/Qw),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((s=(o=l.length)<(c=f.length))&&(c=o),o=0;o<c;o++)if(l[o]!=f[o]){s=l[o]<f[o];break}a=0}for(s&&(r=l,l=f,f=r,t.s=-t.s),c=l.length,o=f.length-c;o>0;--o)l[c++]=0;for(o=f.length;o>a;){if(l[--o]<f[o]){for(i=o;i&&0===l[--i];)l[i]=Jw-1;--l[i],l[o]+=Jw}l[o]-=f[o]}for(;0===l[--c];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(t.d=l,t.e=n,Zw?dx(t,d):t):new p(0)}function yx(e,t,r){var n,o=lx(e),i=ix(e.d),a=i.length;return t?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+sx(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+sx(-o-1)+i,r&&(n=r-a)>0&&(i+=sx(n))):o>=a?(i+=sx(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+sx(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=sx(n))),e.s<0?"-"+i:i}function vx(e,t){if(e.length>t)return e.length=t,!0}function mx(e){if(!e||"object"!=typeof e)throw Error(Ww+"Object expected");var t,r,n,o=["precision",1,Uw,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(n=e[r=o[t]])){if(!(Xw(n)===n&&n>=o[t+1]&&n<=o[t+2]))throw Error(qw+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(qw+r+": "+n);this[r]=new this(n)}return this}var gx=function e(t){var r,n,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(qw+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):px(t,e.toString())}if("string"!=typeof e)throw Error(qw+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!Kw.test(e))throw Error(qw+e);px(t,e)}if(i.prototype=rx,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=mx,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)t.hasOwnProperty(n=o[r++])||(t[n]=this[n]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Fw=new gx(1);var bx=gx;function wx(e){return function(e){if(Array.isArray(e))return xx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return xx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xx(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ox=function(e){return e},Sx={"@@functional/placeholder":!0},jx=function(e){return e===Sx},Px=function(e){return function t(){return 0===arguments.length||1===arguments.length&&jx(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},Mx=function e(t,r){return 1===t?r:Px((function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==Sx})).length;return a>=t?r.apply(void 0,o):e(t-a,Px((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=o.map((function(e){return jx(e)?t.shift():e}));return r.apply(void 0,wx(i).concat(t))})))}))},Ax=function(e){return Mx(e.length,e)},kx=function(e,t){for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},Ex=Ax((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),Cx=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.length)return Ox;var n=t.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},_x=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},Tx=function(e){var t=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return t&&o.every((function(e,r){return e===t[r]}))?r:(t=o,r=e.apply(void 0,o))}};var Dx=Ax((function(e,t,r){var n=+e;return n+r*(+t-n)})),Ix=Ax((function(e,t,r){var n=t-+e;return(r-e)/(n=n||1/0)})),Nx=Ax((function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))})),Rx={rangeStep:function(e,t,r){for(var n=new bx(e),o=0,i=[];n.lt(t)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new bx(e).abs().log(10).toNumber())+1},interpolateNumber:Dx,uninterpolateNumber:Ix,uninterpolateTruncation:Nx};function Lx(e){return function(e){if(Array.isArray(e))return $x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||zx(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||zx(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zx(e,t){if(e){if("string"==typeof e)return $x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$x(e,t):void 0}}function $x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Hx(e){var t=Bx(e,2),r=t[0],n=t[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function Fx(e,t,r){if(e.lte(0))return new bx(0);var n=Rx.getDigitCount(e.toNumber()),o=new bx(10).pow(n),i=e.div(o),a=1!==n?.05:.1,c=new bx(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return t?c:new bx(Math.ceil(c))}function Vx(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new bx(0),tickMin:new bx(0),tickMax:new bx(0)};var i,a=Fx(new bx(t).sub(e).div(r-1),n,o);i=e<=0&&t>=0?new bx(0):(i=new bx(e).add(t).div(2)).sub(new bx(i).mod(a));var c=Math.ceil(i.sub(e).div(a).toNumber()),l=Math.ceil(new bx(t).sub(i).div(a).toNumber()),u=c+l+1;return u>r?Vx(e,t,r,n,o+1):(u<r&&(l=t>0?l+(r-u):l,c=t>0?c:c+(r-u)),{step:a,tickMin:i.sub(new bx(c).mul(a)),tickMax:i.add(new bx(l).mul(a))})}var Ux=Tx((function(e){var t=Bx(e,2),r=t[0],n=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=Bx(Hx([r,n]),2),l=c[0],u=c[1];if(l===-1/0||u===1/0){var s=u===1/0?[l].concat(Lx(kx(0,o-1).map((function(){return 1/0})))):[].concat(Lx(kx(0,o-1).map((function(){return-1/0}))),[u]);return r>n?_x(s):s}if(l===u)return function(e,t,r){var n=1,o=new bx(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new bx(10).pow(Rx.getDigitCount(e)-1),o=new bx(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new bx(Math.floor(e)))}else 0===e?o=new bx(Math.floor((t-1)/2)):r||(o=new bx(Math.floor(e)));var a=Math.floor((t-1)/2);return Cx(Ex((function(e){return o.add(new bx(e-a).mul(n)).toNumber()})),kx)(0,t)}(l,o,i);var f=Vx(l,u,a,i),p=f.step,d=f.tickMin,h=f.tickMax,y=Rx.rangeStep(d,h.add(new bx(.1).mul(p)),p);return r>n?_x(y):y})),Zx=Tx((function(e,t){var r=Bx(e,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Bx(Hx([n,o]),2),c=a[0],l=a[1];if(c===-1/0||l===1/0)return[n,o];if(c===l)return[c];var u=Math.max(t,2),s=Fx(new bx(l).sub(c).div(u-1),i,0),f=[].concat(Lx(Rx.rangeStep(new bx(c),new bx(l).sub(new bx(.99).mul(s)),s)),[l]);return n>o?_x(f):f})),Wx="production"===process.env.NODE_ENV,qx="Invariant failed";function Yx(e,t){if(Wx)throw new Error(qx);var r="function"==typeof t?t():t,n=r?"".concat(qx,": ").concat(r):qx;throw new Error(n)}var Xx=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Gx(e){return Gx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gx(e)}function Kx(){return Kx=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},Kx.apply(this,arguments)}function Jx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qx(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eO(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function tO(e,t,r){return t&&function(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,cO(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rO(e,t,r){return t=oO(t),function(e,t){if(t&&("object"===Gx(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nO()?Reflect.construct(t,r||[],oO(e).constructor):t.apply(e,r))}function nO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nO=function(){return!!e})()}function oO(e){return oO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oO(e)}function iO(e,t){return iO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iO(e,t)}function aO(e,t,r){return(t=cO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cO(e){var t=function(e,t){if("object"!=Gx(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Gx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Gx(t)?t:t+""}var lO=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),rO(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&iO(e,t)}(t,J.Component),tO(t,[{key:"render",value:function(){var e=this.props,t=e.offset,r=e.layout,n=e.width,o=e.dataKey,i=e.data,a=e.dataPointFormatter,c=e.xAxis,l=e.yAxis,u=eO(e,Xx),s=Ka(u,!1);"x"===this.props.direction&&"number"!==c.type&&("production"!==process.env.NODE_ENV?Yx(0,'ErrorBar requires Axis type property to be "number".'):Yx());var f=i.map((function(e){var i=a(e,o),u=i.x,f=i.y,p=i.value,d=i.errorVal;if(!d)return null;var h,y,v=[];if(Array.isArray(d)){var m=Jx(d,2);h=m[0],y=m[1]}else h=y=d;if("vertical"===r){var g=c.scale,b=f+t,w=b+n,x=b-n,O=g(p-h),S=g(p+y);v.push({x1:S,y1:w,x2:S,y2:x}),v.push({x1:O,y1:b,x2:S,y2:b}),v.push({x1:O,y1:w,x2:O,y2:x})}else if("horizontal"===r){var j=l.scale,P=u+t,M=P-n,A=P+n,k=j(p-h),E=j(p+y);v.push({x1:M,y1:E,x2:A,y2:E}),v.push({x1:P,y1:k,x2:P,y2:E}),v.push({x1:M,y1:k,x2:A,y2:k})}return J.createElement(jc,Kx({className:"recharts-errorBar",key:"bar-".concat(v.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},s),v.map((function(e){return J.createElement("line",Kx({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return J.createElement(jc,{className:"recharts-errorBars"},f)}}])}();function uO(e){return uO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uO(e)}function sO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sO(Object(r),!0).forEach((function(t){pO(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pO(e,t,r){return t=function(e){var t=function(e,t){if("object"!=uO(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=uO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uO(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}aO(lO,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),aO(lO,"displayName","ErrorBar");var dO=function(e){var t=e.children,r=e.formattedGraphicalItems,n=e.legendWidth,o=e.legendContent,i=qa(t,Ed);if(!i)return null;var a,c=Ed.defaultProps,l=void 0!==c?fO(fO({},c),i.props):{};return a=i.props&&i.props.payload?i.props&&i.props.payload:"children"===o?(r||[]).reduce((function(e,t){var r=t.item,n=t.props,o=n.sectors||n.data||[];return e.concat(o.map((function(e){return{type:i.props.iconType||r.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,r=t.type.defaultProps,n=void 0!==r?fO(fO({},r),t.props):{},o=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:o,type:l.iconType||a||"square",color:OO(t),value:i||o,payload:n}})),fO(fO(fO({},l),Ed.getWithHeight(i,n)),{},{payload:a,item:i})};function hO(e){return hO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hO(e)}function yO(e){return function(e){if(Array.isArray(e))return vO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return vO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vO(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vO(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mO(Object(r),!0).forEach((function(t){bO(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bO(e,t,r){return t=function(e){var t=function(e,t){if("object"!=hO(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=hO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hO(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wO(e,t,r){return Qi(e)||Qi(t)?r:Oa(t)?Gi(e,t,r):na(t)?t(e):r}function xO(e,t,r,n){var o=Hw(e,(function(e){return wO(e,t)}));if("number"===r){var i=o.filter((function(e){return xa(e)||parseFloat(e)}));return i.length?[Lw(i),_w(i)]:[1/0,-1/0]}return(n?o.filter((function(e){return!Qi(e)})):o).map((function(e){return Oa(e)||e instanceof Date?e:""}))}var OO=function(e){var t,r,n=e.type.displayName,o=null!==(t=e.type)&&void 0!==t&&t.defaultProps?gO(gO({},e.type.defaultProps),e.props):e.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},SO=function(e,t,r,n,o){var i=Wa(t.props.children,lO).filter((function(e){return function(e,t,r){return!!Qi(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===r?"xAxis"===t:"y"!==r||"yAxis"===t)}(n,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var n=wO(t,r);if(Qi(n))return e;var o=Array.isArray(n)?[Lw(n),_w(n)]:[n,n],i=a.reduce((function(e,r){var n=wO(t,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},jO=function(e,t,r,n,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===r&&i&&SO(e,t,i,n)||xO(e,i,r,o)}));if("number"===r)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var r=0,n=t.length;r<n;r++)a[t[r]]||(a[t[r]]=!0,e.push(t[r]));return e}),[])},PO=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},MO=function(e,t,r){if(!e)return null;var n=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,c="scaleBand"===e.realScaleType?n.bandwidth()/2:2,l=(t||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return l="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*ba(a[0]-a[1])*l:l,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:n(t)+l,value:e,offset:l}})).filter((function(e){return!ma(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:n(e)+l,value:e,index:t,offset:l}})):n.ticks&&!r?n.ticks(e.tickCount).map((function(e){return{coordinate:n(e)+l,value:e,offset:l}})):n.domain().map((function(e,t){return{coordinate:n(e)+l,value:o?o[e]:e,index:t,offset:l}}))},AO=new WeakMap,kO=function(e,t){if("function"!=typeof t)return e;AO.has(e)||AO.set(e,new WeakMap);var r=AO.get(e);if(r.has(t))return r.get(t);var n=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return r.set(t,n),n},EO=1e-4,CO={sign:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var o=0,i=0,a=0;a<t;++a){var c=ma(e[a][r][1])?e[a][r][0]:e[a][r][1];c>=0?(e[a][r][0]=o,e[a][r][1]=o+c,o=e[a][r][1]):(e[a][r][0]=i,e[a][r][1]=i+c,i=e[a][r][1])}},expand:function(e,t){if((n=e.length)>0){for(var r,n,o,i=0,a=e[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Tl(e,t)}},none:Tl,silhouette:function(e,t){if((r=e.length)>0){for(var r,n=0,o=e[t[0]],i=o.length;n<i;++n){for(var a=0,c=0;a<r;++a)c+=e[a][n][1]||0;o[n][1]+=o[n][0]=-c/2}Tl(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(n=(r=e[t[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var c=0,l=0,u=0;c<o;++c){for(var s=e[t[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,d=0;d<c;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}l+=f,u+=p*f}r[a-1][1]+=r[a-1][0]=i,l&&(i-=u/l)}r[a-1][1]+=r[a-1][0]=i,Tl(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var o=0,i=0;i<t;++i){var a=ma(e[i][r][1])?e[i][r][0]:e[i][r][1];a>=0?(e[i][r][0]=o,e[i][r][1]=o+a,o=e[i][r][1]):(e[i][r][0]=0,e[i][r][1]=0)}}},_O=function(e,t,r){var n=t.map((function(e){return e.props.dataKey})),o=CO[r],i=function(){var e=Tc([]),t=Dl,r=Tl,n=Il;function o(o){var i,a,c=Array.from(e.apply(this,arguments),Nl),l=c.length,u=-1;for(const e of o)for(i=0,++u;i<l;++i)(c[i][u]=[0,+n(e,c[i].key,u,o)]).data=e;for(i=0,a=Zc(t(c));i<l;++i)c[a[i]].index=i;return r(c,a),c}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:Tc(Array.from(t)),o):e},o.value=function(e){return arguments.length?(n="function"==typeof e?e:Tc(+e),o):n},o.order=function(e){return arguments.length?(t=null==e?Dl:"function"==typeof e?e:Tc(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(r=null==e?Tl:e,o):r},o}().keys(n).value((function(e,t){return+wO(e,t,0)})).order(Dl).offset(o);return i(e)};function TO(e){var t=e.axis,r=e.ticks,n=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Qi(o[t.dataKey])){var c=ka(r,"value",o[t.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var l=wO(o,Qi(a)?t.dataKey:a);return Qi(l)?null:t.scale(l)}var DO=function(e){var t=e.axis,r=e.ticks,n=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return r[a]?r[a].coordinate+n:null;var c=wO(i,t.dataKey,t.domain[a]);return Qi(c)?null:t.scale(c)-o/2+n},IO=function(e,t,r){return Object.keys(e).reduce((function(n,o){var i=e[o].stackedData.reduce((function(e,n){var o=n.slice(t,r+1).reduce((function(e,t){return[Lw(t.concat([e[0]]).filter(xa)),_w(t.concat([e[1]]).filter(xa))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},NO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,RO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,LO=function(e,t,r){if(na(e))return e(t,r);if(!Array.isArray(e))return t;var n=[];if(xa(e[0]))n[0]=r?e[0]:Math.min(e[0],t[0]);else if(NO.test(e[0])){var o=+NO.exec(e[0])[1];n[0]=t[0]-o}else na(e[0])?n[0]=e[0](t[0]):n[0]=t[0];if(xa(e[1]))n[1]=r?e[1]:Math.max(e[1],t[1]);else if(RO.test(e[1])){var i=+RO.exec(e[1])[1];n[1]=t[1]+i}else na(e[1])?n[1]=e[1](t[1]):n[1]=t[1];return n},BO=function(e,t,r){if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=Vd(t,(function(e){return e.coordinate})),i=1/0,a=1,c=o.length;a<c;a++){var l=o[a],u=o[a-1];i=Math.min((l.coordinate||0)-(u.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},zO=function(e,t,r){return e&&e.length?Vw(e,Gi(r,"type.defaultProps.domain"))?t:e:t},$O=function(e,t){var r=e.type.defaultProps?gO(gO({},e.type.defaultProps),e.props):e.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,l=r.chartType,u=r.hide;return gO(gO({},Ka(e,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:OO(e),value:wO(t,n),type:c,payload:t,chartType:l,hide:u})};function HO(e){return HO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HO(e)}function FO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function VO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?FO(Object(r),!0).forEach((function(t){UO(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function UO(e,t,r){return t=function(e){var t=function(e,t){if("object"!=HO(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=HO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==HO(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ZO=Math.PI/180,WO=function(e){return 180*e/Math.PI},qO=function(e,t,r,n){return{x:e+Math.cos(-ZO*n)*r,y:t+Math.sin(-ZO*n)*r}},YO=function(e,t){var r=e.x,n=e.y,o=t.cx,i=t.cy,a=function(e,t){var r=e.x,n=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var c=(r-o)/a,l=Math.acos(c);return n>i&&(l=2*Math.PI-l),{radius:a,angle:WO(l),angleInRadian:l}},XO=function(e,t){var r=t.startAngle,n=t.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return e+360*Math.min(o,i)},GO=function(e,t){var r=e.x,n=e.y,o=YO({x:r,y:n},t),i=o.radius,a=o.angle,c=t.innerRadius,l=t.outerRadius;if(i<c||i>l)return!1;if(0===i)return!0;var u,s=function(e){var t=e.startAngle,r=e.endAngle,n=Math.floor(t/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:t-360*i,endAngle:r-360*i}}(t),f=s.startAngle,p=s.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;u=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;u=d>=p&&d<=f}return u?VO(VO({},t),{},{radius:i,angle:XO(d,t)}):null};function KO(e){return KO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KO(e)}var JO=["offset"];function QO(e){return function(e){if(Array.isArray(e))return eS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return eS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eS(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tS(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function rS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rS(Object(r),!0).forEach((function(t){oS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rS(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oS(e,t,r){return t=function(e){var t=function(e,t){if("object"!=KO(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=KO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==KO(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iS(){return iS=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},iS.apply(this,arguments)}var aS=function(e){var t=e.value,r=e.formatter,n=Qi(e.children)?t:e.children;return na(r)?r(n):n},cS=function(e,t,r){var n,o,i=e.position,a=e.viewBox,c=e.offset,l=e.className,u=a,s=u.cx,f=u.cy,p=u.innerRadius,d=u.outerRadius,h=u.startAngle,y=u.endAngle,v=u.clockWise,m=(p+d)/2,g=function(e,t){return ba(t-e)*Math.min(Math.abs(t-e),360)}(h,y),b=g>=0?1:-1;"insideStart"===i?(n=h+b*c,o=v):"insideEnd"===i?(n=y-b*c,o=!v):"end"===i&&(n=y+b*c,o=v),o=g<=0?o:!o;var w=qO(s,f,m,n),x=qO(s,f,m,n+359*(o?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n A").concat(m,",").concat(m,",0,1,").concat(o?0:1,",\n ").concat(x.x,",").concat(x.y),S=Qi(e.id)?ja("recharts-radial-line-"):e.id;return J.createElement("text",iS({},r,{dominantBaseline:"central",className:xn("recharts-radial-bar-label",l)}),J.createElement("defs",null,J.createElement("path",{id:S,d:O})),J.createElement("textPath",{xlinkHref:"#".concat(S)},t))},lS=function(e){var t=e.viewBox,r=e.offset,n=e.position,o=t,i=o.cx,a=o.cy,c=o.innerRadius,l=o.outerRadius,u=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=qO(i,a,l+r,u),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=qO(i,a,(c+l)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},uS=function(e){var t=e.viewBox,r=e.parentViewBox,n=e.offset,o=e.position,i=t,a=i.x,c=i.y,l=i.width,u=i.height,s=u>=0?1:-1,f=s*n,p=s>0?"end":"start",d=s>0?"start":"end",h=l>=0?1:-1,y=h*n,v=h>0?"end":"start",m=h>0?"start":"end";if("top"===o)return nS(nS({},{x:a+l/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:l}:{});if("bottom"===o)return nS(nS({},{x:a+l/2,y:c+u+f,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(r.y+r.height-(c+u),0),width:l}:{});if("left"===o){var g={x:a-y,y:c+u/2,textAnchor:v,verticalAnchor:"middle"};return nS(nS({},g),r?{width:Math.max(g.x-r.x,0),height:u}:{})}if("right"===o){var b={x:a+l+y,y:c+u/2,textAnchor:m,verticalAnchor:"middle"};return nS(nS({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:u}:{})}var w=r?{width:l,height:u}:{};return"insideLeft"===o?nS({x:a+y,y:c+u/2,textAnchor:m,verticalAnchor:"middle"},w):"insideRight"===o?nS({x:a+l-y,y:c+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?nS({x:a+l/2,y:c+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?nS({x:a+l/2,y:c+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?nS({x:a+y,y:c+f,textAnchor:m,verticalAnchor:d},w):"insideTopRight"===o?nS({x:a+l-y,y:c+f,textAnchor:v,verticalAnchor:d},w):"insideBottomLeft"===o?nS({x:a+y,y:c+u-f,textAnchor:m,verticalAnchor:p},w):"insideBottomRight"===o?nS({x:a+l-y,y:c+u-f,textAnchor:v,verticalAnchor:p},w):oa(o)&&(xa(o.x)||wa(o.x))&&(xa(o.y)||wa(o.y))?nS({x:a+Pa(o.x,l),y:c+Pa(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):nS({x:a+l/2,y:c+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},sS=function(e){return"cx"in e&&xa(e.cx)};function fS(e){var t,r=e.offset,n=nS({offset:void 0===r?5:r},tS(e,JO)),o=n.viewBox,i=n.position,a=n.value,c=n.children,l=n.content,u=n.className,s=void 0===u?"":u,f=n.textBreakAll;if(!o||Qi(a)&&Qi(c)&&!Q(l)&&!na(l))return null;if(Q(l))return ue(l,n);if(na(l)){if(Q(t=se(l,n)))return t}else t=aS(n);var p=sS(o),d=Ka(n,!0);if(p&&("insideStart"===i||"insideEnd"===i||"end"===i))return cS(n,t,d);var h=p?lS(n):uS(n);return J.createElement(Ry,iS({className:xn("recharts-label",s)},d,h,{breakAll:f}),t)}fS.displayName="Label";var pS,dS,hS=function(e){var t=e.cx,r=e.cy,n=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,c=e.radius,l=e.innerRadius,u=e.outerRadius,s=e.x,f=e.y,p=e.top,d=e.left,h=e.width,y=e.height,v=e.clockWise,m=e.labelViewBox;if(m)return m;if(xa(h)&&xa(y)){if(xa(s)&&xa(f))return{x:s,y:f,width:h,height:y};if(xa(p)&&xa(d))return{x:p,y:d,width:h,height:y}}return xa(s)&&xa(f)?{x:s,y:f,width:0,height:0}:xa(t)&&xa(r)?{cx:t,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:l||0,outerRadius:u||c||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};fS.parseViewBox=hS,fS.renderCallByParent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var n=e.children,o=hS(e),i=Wa(n,fS).map((function(e,r){return ue(e,{viewBox:t||o,key:"label-".concat(r)})}));if(!r)return i;var a=function(e,t){return e?!0===e?J.createElement(fS,{key:"label-implicit",viewBox:t}):Oa(e)?J.createElement(fS,{key:"label-implicit",viewBox:t,value:e}):Q(e)?e.type===fS?ue(e,{key:"label-implicit",viewBox:t}):J.createElement(fS,{key:"label-implicit",content:e,viewBox:t}):na(e)?J.createElement(fS,{key:"label-implicit",content:e,viewBox:t}):oa(e)?J.createElement(fS,iS({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||o);return[a].concat(QO(i))};var yS=(dS||(dS=1,pS=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}),pS),vS=tr(yS);function mS(e){return mS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mS(e)}var gS=["valueAccessor"],bS=["data","dataKey","clockWise","id","textBreakAll"];function wS(e){return function(e){if(Array.isArray(e))return xS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return xS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xS(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function OS(){return OS=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},OS.apply(this,arguments)}function SS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?SS(Object(r),!0).forEach((function(t){PS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SS(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function PS(e,t,r){return t=function(e){var t=function(e,t){if("object"!=mS(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=mS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mS(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MS(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var AS=function(e){return Array.isArray(e.value)?vS(e.value):e.value};function kS(e){var t=e.valueAccessor,r=void 0===t?AS:t,n=MS(e,gS),o=n.data,i=n.dataKey,a=n.clockWise,c=n.id,l=n.textBreakAll,u=MS(n,bS);return o&&o.length?J.createElement(jc,{className:"recharts-label-list"},o.map((function(e,t){var n=Qi(i)?r(e,t):wO(e&&e.payload,i),o=Qi(c)?{}:{id:"".concat(c,"-").concat(t)};return J.createElement(fS,OS({},Ka(e,!0),u,o,{parentViewBox:e.parentViewBox,value:n,textBreakAll:l,viewBox:fS.parseViewBox(Qi(a)?e:jS(jS({},e),{},{clockWise:a})),key:"label-".concat(t),index:t}))}))):null}function ES(e){return ES="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ES(e)}function CS(){return CS=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},CS.apply(this,arguments)}function _S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function TS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_S(Object(r),!0).forEach((function(t){DS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function DS(e,t,r){return t=function(e){var t=function(e,t){if("object"!=ES(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ES(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ES(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}kS.displayName="LabelList",kS.renderCallByParent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var n=Wa(e.children,kS).map((function(e,r){return ue(e,{data:t,key:"labelList-".concat(r)})}));return r?[function(e,t){return e?!0===e?J.createElement(kS,{key:"labelList-implicit",data:t}):J.isValidElement(e)||na(e)?J.createElement(kS,{key:"labelList-implicit",data:t,content:e}):oa(e)?J.createElement(kS,OS({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t)].concat(wS(n)):n};var IS=function(e){var t=e.cx,r=e.cy,n=e.radius,o=e.angle,i=e.sign,a=e.isExternal,c=e.cornerRadius,l=e.cornerIsExternal,u=c*(a?1:-1)+n,s=Math.asin(c/u)/ZO,f=l?o:o+i*s,p=l?o-i*s:o;return{center:qO(t,r,u,f),circleTangency:qO(t,r,n,f),lineTangency:qO(t,r,u*Math.cos(s*ZO),p),theta:s}},NS=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return ba(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),c=i+a,l=qO(t,r,o,i),u=qO(t,r,o,c),s="M ".concat(l.x,",").concat(l.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n ").concat(u.x,",").concat(u.y,"\n ");if(n>0){var f=qO(t,r,n,i),p=qO(t,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(t,",").concat(r," Z");return s},RS={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},LS=function(e){var t=TS(TS({},RS),e),r=t.cx,n=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,c=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,s=t.endAngle,f=t.className;if(i<o||u===s)return null;var p,d=xn("recharts-sector",f),h=i-o,y=Pa(a,h,0,!0);return p=y>0&&Math.abs(u-s)<360?function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,c=e.cornerIsExternal,l=e.startAngle,u=e.endAngle,s=ba(u-l),f=IS({cx:t,cy:r,radius:o,angle:l,sign:s,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,d=f.lineTangency,h=f.theta,y=IS({cx:t,cy:r,radius:o,angle:u,sign:-s,cornerRadius:i,cornerIsExternal:c}),v=y.circleTangency,m=y.lineTangency,g=y.theta,b=c?Math.abs(l-u):Math.abs(l-u)-h-g;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):NS({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:u});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var x=IS({cx:t,cy:r,radius:n,angle:l,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),O=x.circleTangency,S=x.lineTangency,j=x.theta,P=IS({cx:t,cy:r,radius:n,angle:u,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),M=P.circleTangency,A=P.lineTangency,k=P.theta,E=c?Math.abs(l-u):Math.abs(l-u)-j-k;if(E<0&&0===i)return"".concat(w,"L").concat(t,",").concat(r,"Z");w+="L".concat(A.x,",").concat(A.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(M.x,",").concat(M.y,"\n A").concat(n,",").concat(n,",0,").concat(+(E>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(t,",").concat(r,"Z");return w}({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(y,h/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:u,endAngle:s}):NS({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:u,endAngle:s}),J.createElement("path",CS({},Ka(t,!0),{className:d,d:p,role:"img"}))};function BS(e){return BS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BS(e)}function zS(){return zS=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},zS.apply(this,arguments)}function $S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function HS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$S(Object(r),!0).forEach((function(t){FS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function FS(e,t,r){return t=function(e){var t=function(e,t){if("object"!=BS(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=BS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BS(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var VS,US={curveBasisClosed:function(e){return new bl(e)},curveBasisOpen:function(e){return new wl(e)},curveBasis:function(e){return new gl(e)},curveBumpX:function(e){return new Jc(e,!0)},curveBumpY:function(e){return new Jc(e,!1)},curveLinearClosed:function(e){return new xl(e)},curveLinear:qc,curveMonotoneX:function(e){return new Ml(e)},curveMonotoneY:function(e){return new Al(e)},curveNatural:function(e){return new El(e)},curveStep:function(e){return new _l(e,.5)},curveStepAfter:function(e){return new _l(e,1)},curveStepBefore:function(e){return new _l(e,0)}},ZS=function(e){return e.x===+e.x&&e.y===+e.y},WS=function(e){return e.x},qS=function(e){return e.y},YS=function(e){var t,r=e.type,n=void 0===r?"linear":r,o=e.points,i=void 0===o?[]:o,a=e.baseLine,c=e.layout,l=e.connectNulls,u=void 0!==l&&l,s=function(e,t){if(na(e))return e;var r="curve".concat(_c(e));return"curveMonotone"!==r&&"curveBump"!==r||!t?US[r]||qc:US["".concat(r).concat("vertical"===t?"Y":"X")]}(n,c),f=u?i.filter((function(e){return ZS(e)})):i;if(Array.isArray(a)){var p=u?a.filter((function(e){return ZS(e)})):a,d=f.map((function(e,t){return HS(HS({},e),{},{base:p[t]})}));return(t="vertical"===c?Kc().y(qS).x1(WS).x0((function(e){return e.base.x})):Kc().x(WS).y1(qS).y0((function(e){return e.base.y}))).defined(ZS).curve(s),t(d)}return(t="vertical"===c&&xa(a)?Kc().y(qS).x1(WS).x0(a):xa(a)?Kc().x(WS).y1(qS).y0(a):Gc().x(WS).y(qS)).defined(ZS).curve(s),t(f)},XS=function(e){var t=e.className,r=e.points,n=e.path,o=e.pathRef;if(!(r&&r.length||n))return null;var i=r&&r.length?YS(e):n;return J.createElement("path",zS({},Ka(e,!1),Na(e),{className:xn("recharts-curve",t),d:i,ref:o}))},GS={exports:{}},KS={exports:{}},JS={};var QS,ej,tj,rj,nj,oj,ij,aj,cj,lj,uj,sj,fj,pj,dj,hj={};
18
+ */var sa,fa,pa,da,ha=(la||(la=1,"production"===process.env.NODE_ENV?ia.exports=function(){if(ea)return aa;ea=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case n:case i:case o:case s:case f:return e;default:switch(e=e&&e.$$typeof){case l:case c:case u:case d:case p:case a:return e;default:return h}}case r:return h}}}return e=Symbol.for("react.module.reference"),aa.ContextConsumer=c,aa.ContextProvider=a,aa.Element=t,aa.ForwardRef=u,aa.Fragment=n,aa.Lazy=d,aa.Memo=p,aa.Portal=r,aa.Profiler=i,aa.StrictMode=o,aa.Suspense=s,aa.SuspenseList=f,aa.isAsyncMode=function(){return!1},aa.isConcurrentMode=function(){return!1},aa.isContextConsumer=function(e){return y(e)===c},aa.isContextProvider=function(e){return y(e)===a},aa.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},aa.isForwardRef=function(e){return y(e)===u},aa.isFragment=function(e){return y(e)===n},aa.isLazy=function(e){return y(e)===d},aa.isMemo=function(e){return y(e)===p},aa.isPortal=function(e){return y(e)===r},aa.isProfiler=function(e){return y(e)===i},aa.isStrictMode=function(e){return y(e)===o},aa.isSuspense=function(e){return y(e)===s},aa.isSuspenseList=function(e){return y(e)===f},aa.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===s||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===p||t.$$typeof===a||t.$$typeof===c||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},aa.typeOf=y,aa}():ia.exports=(ca||(ca=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var y=e.type;switch(y){case n:case i:case o:case s:case f:return y;default:var v=y&&y.$$typeof;switch(v){case l:case c:case u:case d:case p:case a:return v;default:return h}}case r:return h}}}e=Symbol.for("react.module.reference");var v=c,m=a,g=t,b=u,w=n,x=d,O=p,S=r,j=i,P=o,M=s,A=f,k=!1,E=!1;ua.ContextConsumer=v,ua.ContextProvider=m,ua.Element=g,ua.ForwardRef=b,ua.Fragment=w,ua.Lazy=x,ua.Memo=O,ua.Portal=S,ua.Profiler=j,ua.StrictMode=P,ua.Suspense=M,ua.SuspenseList=A,ua.isAsyncMode=function(e){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},ua.isConcurrentMode=function(e){return E||(E=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},ua.isContextConsumer=function(e){return y(e)===c},ua.isContextProvider=function(e){return y(e)===a},ua.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ua.isForwardRef=function(e){return y(e)===u},ua.isFragment=function(e){return y(e)===n},ua.isLazy=function(e){return y(e)===d},ua.isMemo=function(e){return y(e)===p},ua.isPortal=function(e){return y(e)===r},ua.isProfiler=function(e){return y(e)===i},ua.isStrictMode=function(e){return y(e)===o},ua.isSuspense=function(e){return y(e)===s},ua.isSuspenseList=function(e){return y(e)===f},ua.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===s||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===p||t.$$typeof===a||t.$$typeof===c||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},ua.typeOf=y}()),ua)),ia.exports);function ya(){if(fa)return sa;fa=1;var e=Si(),t=ji();return sa=function(r){return"number"==typeof r||t(r)&&"[object Number]"==e(r)}}var va=function(){if(da)return pa;da=1;var e=ya();return pa=function(t){return e(t)&&t!=+t}}(),ma=tr(va),ga=tr(ya()),ba=function(e){return 0===e?0:e>0?1:-1},wa=function(e){return ra(e)&&e.indexOf("%")===e.length-1},xa=function(e){return ga(e)&&!ma(e)},Oa=function(e){return xa(e)||ra(e)},Sa=0,ja=function(e){var t=++Sa;return"".concat(e||"").concat(t)},Pa=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!xa(e)&&!ra(e))return n;if(wa(e)){var i=e.indexOf("%");r=t*parseFloat(e.slice(0,i))/100}else r=+e;return ma(r)&&(r=n),o&&r>t&&(r=t),r},Ma=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},Aa=function(e,t){return xa(e)&&xa(t)?function(r){return e+r*(t-e)}:function(){return t}};function ka(e,t,r){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):Gi(e,t))===r})):null}function Ea(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 Ca(e){return Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ca(e)}var _a=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Ta=["points","pathLength"],Da={svg:["viewBox","children"],polygon:Ta,polyline:Ta},Ia=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Na=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(Q(e)&&(r=e.props),!oa(r))return null;var n={};return Object.keys(r).forEach((function(e){Ia.includes(e)&&(n[e]=t||function(t){return r[e](r,t)})})),n},Ra=function(e,t,r){if(!oa(e)||"object"!==Ca(e))return null;var n=null;return Object.keys(e).forEach((function(o){var i=e[o];Ia.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(e,t,r){return function(n){return e(t,r,n),null}}(i,t,r))})),n},La=["children"],Ba=["children"];function za(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function $a(e){return $a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$a(e)}var Ha={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"},Fa=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},Va=null,Ua=null,Za=function e(t){if(t===Va&&Array.isArray(Ua))return Ua;var r=[];return ee.forEach(t,(function(t){Qi(t)||(ha.isFragment(t)?r=r.concat(e(t.props.children)):r.push(t))})),Ua=r,Va=t,r};function Wa(e,t){var r=[],n=[];return n=Array.isArray(t)?t.map((function(e){return Fa(e)})):[Fa(t)],Za(e).forEach((function(e){var t=Gi(e,"type.displayName")||Gi(e,"type.name");-1!==n.indexOf(t)&&r.push(e)})),r}function qa(e,t){var r=Wa(e,t);return r&&r[0]}var Ya=function(e){if(!e||!e.props)return!1;var t=e.props,r=t.width,n=t.height;return!(!xa(r)||r<=0||!xa(n)||n<=0)},Xa=["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"],Ga=function(e){return e&&"object"===$a(e)&&"clipDot"in e},Ka=function(e,t,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if(Q(e)&&(n=e.props),!oa(n))return null;var o={};return Object.keys(n).forEach((function(e){var i;(function(e,t,r,n){var o,i=null!==(o=null==Da?void 0:Da[n])&&void 0!==o?o:[];return!na(e)&&(n&&i.includes(t)||_a.includes(t))||r&&Ia.includes(t)})(null===(i=n)||void 0===i?void 0:i[e],e,t,r)&&(o[e]=n[e])})),o},Ja=function e(t,r){if(t===r)return!0;var n=ee.count(t);if(n!==ee.count(r))return!1;if(0===n)return!0;if(1===n)return Qa(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var o=0;o<n;o++){var i=t[o],a=r[o];if(Array.isArray(i)||Array.isArray(a)){if(!e(i,a))return!1}else if(!Qa(i,a))return!1}return!0},Qa=function(e,t){if(Qi(e)&&Qi(t))return!0;if(!Qi(e)&&!Qi(t)){var r=e.props||{},n=r.children,o=za(r,La),i=t.props||{},a=i.children,c=za(i,Ba);return n&&a?Ea(o,c)&&Ja(n,a):!n&&!a&&Ea(o,c)}return!1},ec=function(e,t){var r=[],n={};return Za(e).forEach((function(e,o){if(function(e){return e&&e.type&&ra(e.type)&&Xa.indexOf(e.type)>=0}(e))r.push(e);else if(e){var i=Fa(e.type),a=t[i]||{},c=a.handler,l=a.once;if(c&&(!l||!n[i])){var u=c(e,i,o);r.push(u),n[i]=!0}}})),r},tc=["children","width","height","viewBox","className","style","title","desc"];function rc(){return rc=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},rc.apply(this,arguments)}function nc(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function oc(e){var t=e.children,r=e.width,n=e.height,o=e.viewBox,i=e.className,a=e.style,c=e.title,l=e.desc,u=nc(e,tc),s=o||{width:r,height:n,x:0,y:0},f=xn("recharts-surface",i);return J.createElement("svg",rc({},Ka(u,!0,"svg"),{className:f,width:r,height:n,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),J.createElement("title",null,c),J.createElement("desc",null,l),t)}var ic=["children","className"];function ac(){return ac=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},ac.apply(this,arguments)}function cc(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var lc,uc,sc,fc,pc,dc,hc,yc,vc,mc,gc,bc,wc,xc,Oc,Sc,jc=J.forwardRef((function(e,t){var r=e.children,n=e.className,o=cc(e,ic),i=xn("recharts-layer",n);return J.createElement("g",ac({className:i},Ka(o,!0),{ref:t}),r)})),Pc="production"!==process.env.NODE_ENV,Mc=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(Pc&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(t.replace(/%s/g,(function(){return n[i++]})))}};function Ac(){if(fc)return sc;fc=1;var e=(uc||(uc=1,lc=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}),lc);return sc=function(t,r,n){var o=t.length;return n=void 0===n?o:n,!r&&n>=o?t:e(t,r,n)},sc}function kc(){if(dc)return pc;dc=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return pc=function(t){return e.test(t)},pc}function Ec(){if(bc)return gc;bc=1;var e=(yc||(yc=1,hc=function(e){return e.split("")}),hc),t=kc(),r=function(){if(mc)return vc;mc=1;var e="\\ud800-\\udfff",t="["+e+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+n+")?",l="[\\ufe0e\\ufe0f]?",u=l+c+"(?:\\u200d(?:"+[o,i,a].join("|")+")"+l+c+")*",s="(?:"+[o+r+"?",r,i,a,t].join("|")+")",f=RegExp(n+"(?="+n+")|"+s+u,"g");return vc=function(e){return e.match(f)||[]},vc}();return gc=function(n){return t(n)?r(n):e(n)},gc}var Cc=function(){if(Sc)return Oc;Sc=1;var e=function(){if(xc)return wc;xc=1;var e=Ac(),t=kc(),r=Ec(),n=Vi();return wc=function(o){return function(i){i=n(i);var a=t(i)?r(i):void 0,c=a?a[0]:i.charAt(0),l=a?e(a,1).join(""):i.slice(1);return c[o]()+l}},wc}(),t=e("toUpperCase");return Oc=t}(),_c=tr(Cc);function Tc(e){return function(){return e}}const Dc=Math.cos,Ic=Math.sin,Nc=Math.sqrt,Rc=Math.PI,Lc=2*Rc,Bc=Math.PI,zc=2*Bc,$c=1e-6,Hc=zc-$c;function Fc(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class Vc{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Fc:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Fc;const r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,o,i){this._append`C${+e},${+t},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,r,n,o){if(e=+e,t=+t,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,c=r-e,l=n-t,u=i-e,s=a-t,f=u*u+s*s;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>$c)if(Math.abs(s*c-l*u)>$c&&o){let p=r-i,d=n-a,h=c*c+l*l,y=p*p+d*d,v=Math.sqrt(h),m=Math.sqrt(f),g=o*Math.tan((Bc-Math.acos((h+f-y)/(2*v*m)))/2),b=g/m,w=g/v;Math.abs(b-1)>$c&&this._append`L${e+b*u},${t+b*s}`,this._append`A${o},${o},0,0,${+(s*p>u*d)},${this._x1=e+w*c},${this._y1=t+w*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,n,o,i){if(e=+e,t=+t,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),l=e+a,u=t+c,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${l},${u}`:(Math.abs(this._x1-l)>$c||Math.abs(this._y1-u)>$c)&&this._append`L${l},${u}`,r&&(f<0&&(f=f%zc+zc),f>Hc?this._append`A${r},${r},0,1,${s},${e-a},${t-c}A${r},${r},0,1,${s},${this._x1=l},${this._y1=u}`:f>$c&&this._append`A${r},${r},0,${+(f>=Bc)},${s},${this._x1=e+r*Math.cos(o)},${this._y1=t+r*Math.sin(o)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function Uc(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{const e=Math.floor(r);if(!(e>=0))throw new RangeError(`invalid digits: ${r}`);t=e}return e},()=>new Vc(t)}function Zc(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Wc(e){this._context=e}function qc(e){return new Wc(e)}function Yc(e){return e[0]}function Xc(e){return e[1]}function Gc(e,t){var r=Tc(!0),n=null,o=qc,i=null,a=Uc(c);function c(c){var l,u,s,f=(c=Zc(c)).length,p=!1;for(null==n&&(i=o(s=a())),l=0;l<=f;++l)!(l<f&&r(u=c[l],l,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+e(u,l,c),+t(u,l,c));if(s)return i=null,s+""||null}return e="function"==typeof e?e:void 0===e?Yc:Tc(e),t="function"==typeof t?t:void 0===t?Xc:Tc(t),c.x=function(t){return arguments.length?(e="function"==typeof t?t:Tc(+t),c):e},c.y=function(e){return arguments.length?(t="function"==typeof e?e:Tc(+e),c):t},c.defined=function(e){return arguments.length?(r="function"==typeof e?e:Tc(!!e),c):r},c.curve=function(e){return arguments.length?(o=e,null!=n&&(i=o(n)),c):o},c.context=function(e){return arguments.length?(null==e?n=i=null:i=o(n=e),c):n},c}function Kc(e,t,r){var n=null,o=Tc(!0),i=null,a=qc,c=null,l=Uc(u);function u(u){var s,f,p,d,h,y=(u=Zc(u)).length,v=!1,m=new Array(y),g=new Array(y);for(null==i&&(c=a(h=l())),s=0;s<=y;++s){if(!(s<y&&o(d=u[s],s,u))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(m[p],g[p]);c.lineEnd(),c.areaEnd()}v&&(m[s]=+e(d,s,u),g[s]=+t(d,s,u),c.point(n?+n(d,s,u):m[s],r?+r(d,s,u):g[s]))}if(h)return c=null,h+""||null}function s(){return Gc().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?Yc:Tc(+e),t="function"==typeof t?t:Tc(void 0===t?0:+t),r="function"==typeof r?r:void 0===r?Xc:Tc(+r),u.x=function(t){return arguments.length?(e="function"==typeof t?t:Tc(+t),n=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:Tc(+t),u):e},u.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Tc(+e),u):n},u.y=function(e){return arguments.length?(t="function"==typeof e?e:Tc(+e),r=null,u):t},u.y0=function(e){return arguments.length?(t="function"==typeof e?e:Tc(+e),u):t},u.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Tc(+e),u):r},u.lineX0=u.lineY0=function(){return s().x(e).y(t)},u.lineY1=function(){return s().x(e).y(r)},u.lineX1=function(){return s().x(n).y(t)},u.defined=function(e){return arguments.length?(o="function"==typeof e?e:Tc(!!e),u):o},u.curve=function(e){return arguments.length?(a=e,null!=i&&(c=a(i)),u):a},u.context=function(e){return arguments.length?(null==e?i=c=null:c=a(i=e),u):i},u}Wc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(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)}}};class Jc{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}var Qc={draw(e,t){const r=Nc(t/Rc);e.moveTo(r,0),e.arc(0,0,r,0,Lc)}},el={draw(e,t){const r=Nc(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()}};const tl=Nc(1/3),rl=2*tl;var nl={draw(e,t){const r=Nc(t/rl),n=r*tl;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},ol={draw(e,t){const r=Nc(t),n=-r/2;e.rect(n,n,r,r)}};const il=Ic(Rc/10)/Ic(7*Rc/10),al=Ic(Lc/10)*il,cl=-Dc(Lc/10)*il;var ll={draw(e,t){const r=Nc(.8908130915292852*t),n=al*r,o=cl*r;e.moveTo(0,-r),e.lineTo(n,o);for(let t=1;t<5;++t){const i=Lc*t/5,a=Dc(i),c=Ic(i);e.lineTo(c*r,-a*r),e.lineTo(a*n-c*o,c*n+a*o)}e.closePath()}};const ul=Nc(3);var sl={draw(e,t){const r=-Nc(t/(3*ul));e.moveTo(0,2*r),e.lineTo(-ul*r,-r),e.lineTo(ul*r,-r),e.closePath()}};const fl=-.5,pl=Nc(3)/2,dl=1/Nc(12),hl=3*(dl/2+1);var yl={draw(e,t){const r=Nc(t/hl),n=r/2,o=r*dl,i=n,a=r*dl+r,c=-i,l=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(c,l),e.lineTo(fl*n-pl*o,pl*n+fl*o),e.lineTo(fl*i-pl*a,pl*i+fl*a),e.lineTo(fl*c-pl*l,pl*c+fl*l),e.lineTo(fl*n+pl*o,fl*o-pl*n),e.lineTo(fl*i+pl*a,fl*a-pl*i),e.lineTo(fl*c+pl*l,fl*l-pl*c),e.closePath()}};function vl(){}function ml(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 gl(e){this._context=e}function bl(e){this._context=e}function wl(e){this._context=e}function xl(e){this._context=e}function Ol(e){return e<0?-1:1}function Sl(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0),c=(i*o+a*n)/(n+o);return(Ol(i)+Ol(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function jl(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Pl(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,c=(i-n)/3;e._context.bezierCurveTo(n+c,o+c*t,i-c,a-c*r,i,a)}function Ml(e){this._context=e}function Al(e){this._context=new kl(e)}function kl(e){this._context=e}function El(e){this._context=e}function Cl(e){var t,r,n=e.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/i[t-1],i[t]-=r,a[t]-=r*a[t-1];for(o[n-1]=a[n-1]/i[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function _l(e,t){this._context=e,this._t=t}function Tl(e,t){if((o=e.length)>1)for(var r,n,o,i=1,a=e[t[0]],c=a.length;i<o;++i)for(n=a,a=e[t[i]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Dl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Il(e,t){return e[t]}function Nl(e){const t=[];return t.key=e,t}function Rl(e){return Rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rl(e)}gl.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:ml(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(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:ml(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},bl.prototype={areaStart:vl,areaEnd:vl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(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:ml(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},wl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(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:ml(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},xl.prototype={areaStart:vl,areaEnd:vl,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))}},Ml.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:Pl(this,this._t0,jl(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+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,Pl(this,jl(this,r=Sl(this,e,t)),r);break;default:Pl(this,this._t0,r=Sl(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(Al.prototype=Object.create(Ml.prototype)).point=function(e,t){Ml.prototype.point.call(this,t,e)},kl.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,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}},El.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]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=Cl(e),o=Cl(t),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===r)&&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)}},_l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var Ll=["type","size","sizeType"];function Bl(){return Bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bl.apply(this,arguments)}function zl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(r),!0).forEach((function(t){Hl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Hl(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Rl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Rl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rl(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fl(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Vl={symbolCircle:Qc,symbolCross:el,symbolDiamond:nl,symbolSquare:ol,symbolStar:ll,symbolTriangle:sl,symbolWye:yl},Ul=Math.PI/180,Zl=function(e){var t,r,n=e.type,o=void 0===n?"circle":n,i=e.size,a=void 0===i?64:i,c=e.sizeType,l=void 0===c?"area":c,u=$l($l({},Fl(e,Ll)),{},{type:o,size:a,sizeType:l}),s=u.className,f=u.cx,p=u.cy,d=Ka(u,!0);return f===+f&&p===+p&&a===+a?J.createElement("path",Bl({},d,{className:xn("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(p,")"),d:(t=function(e){var t="symbol".concat(_c(e));return Vl[t]||Qc}(o),r=function(e,t){let r=null,n=Uc(o);function o(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return e="function"==typeof e?e:Tc(e||Qc),t="function"==typeof t?t:Tc(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:Tc(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:Tc(+e),o):t},o.context=function(e){return arguments.length?(r=null==e?null:e,o):r},o}().type(t).size(function(e,t,r){if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*Ul;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(a,l,o)),r())})):null};function Wl(e){return Wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wl(e)}function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ql.apply(this,arguments)}function Yl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xl(e,t,r){return t&&function(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,tu(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gl(e,t,r){return t=Jl(t),function(e,t){if(t&&("object"===Wl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Kl()?Reflect.construct(t,r||[],Jl(e).constructor):t.apply(e,r))}function Kl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kl=function(){return!!e})()}function Jl(e){return Jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jl(e)}function Ql(e,t){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ql(e,t)}function eu(e,t,r){return(t=tu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tu(e){var t=function(e,t){if("object"!=Wl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Wl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Wl(t)?t:t+""}Zl.registerSymbol=function(e,t){Vl["symbol".concat(_c(e))]=t};var ru,nu,ou,iu,au,cu,lu,uu,su,fu,pu,du,hu,yu,vu,mu,gu,bu,wu,xu,Ou,Su,ju,Pu,Mu,Au,ku,Eu,Cu,_u,Tu,Du,Iu,Nu,Ru,Lu,Bu,zu,$u,Hu,Fu,Vu,Uu,Zu,Wu,qu,Yu,Xu,Gu=32,Ku=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Gl(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&Ql(e,t)}(t,te),Xl(t,[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,r=16,n=Gu/6,o=Gu/3,i=e.inactive?t:e.color;if("plainline"===e.type)return J.createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:r,x2:Gu,y2:r,className:"recharts-legend-icon"});if("line"===e.type)return J.createElement("path",{strokeWidth:4,fill:"none",stroke:i,d:"M0,".concat(r,"h").concat(o,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*o,",").concat(r,"\n H").concat(Gu,"M").concat(2*o,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(o,",").concat(r),className:"recharts-legend-icon"});if("rect"===e.type)return J.createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(Gu,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(J.isValidElement(e.legendIcon)){var a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yl(Object(r),!0).forEach((function(t){eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return delete a.legendIcon,J.cloneElement(e.legendIcon,a)}return J.createElement(Zl,{fill:i,cx:r,cy:r,size:Gu,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,r=t.payload,n=t.iconSize,o=t.layout,i=t.formatter,a=t.inactiveColor,c={x:0,y:0,width:Gu,height:Gu},l={display:"horizontal"===o?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(t,r){var o=t.formatter||i,s=xn(eu(eu({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",t.inactive));if("none"===t.type)return null;var f=na(t.value)?null:t.value;Mc(!na(t.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 p=t.inactive?a:t.color;return J.createElement("li",ql({className:s,style:l,key:"legend-item-".concat(r)},Ra(e.props,t,r)),J.createElement(oc,{width:n,height:n,viewBox:c,style:u},e.renderIcon(t)),J.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},o?o(f,t,r):f))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,r=e.layout,n=e.align;if(!t||!t.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return J.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}();function Ju(){if(du)return pu;du=1;var e=Ri(),t=function(){if(nu)return ru;nu=1;var e=Ri();return ru=function(){this.__data__=new e,this.size=0}}(),r=iu?ou:(iu=1,ou=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}),n=cu?au:(cu=1,au=function(e){return this.__data__.get(e)}),o=uu?lu:(uu=1,lu=function(e){return this.__data__.has(e)}),i=function(){if(fu)return su;fu=1;var e=Ri(),t=Li(),r=zi();return su=function(n,o){var i=this.__data__;if(i instanceof e){var a=i.__data__;if(!t||a.length<199)return a.push([n,o]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(n,o),this.size=i.size,this}}();function a(t){var r=this.__data__=new e(t);this.size=r.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=i,pu=a}function Qu(){if(bu)return gu;bu=1;var e=zi(),t=yu?hu:(yu=1,hu=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),r=mu?vu:(mu=1,vu=function(e){return this.__data__.has(e)});function n(t){var r=-1,n=null==t?0:t.length;for(this.__data__=new e;++r<n;)this.add(t[r])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,gu=n}function es(){if(xu)return wu;return xu=1,wu=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},wu}function ts(){if(Su)return Ou;return Su=1,Ou=function(e,t){return e.has(t)}}function rs(){if(Pu)return ju;Pu=1;var e=Qu(),t=es(),r=ts();return ju=function(n,o,i,a,c,l){var u=1&i,s=n.length,f=o.length;if(s!=f&&!(u&&f>s))return!1;var p=l.get(n),d=l.get(o);if(p&&d)return p==o&&d==n;var h=-1,y=!0,v=2&i?new e:void 0;for(l.set(n,o),l.set(o,n);++h<s;){var m=n[h],g=o[h];if(a)var b=u?a(g,m,h,o,n,l):a(m,g,h,n,o,l);if(void 0!==b){if(b)continue;y=!1;break}if(v){if(!t(o,(function(e,t){if(!r(v,t)&&(m===e||c(m,e,i,a,l)))return v.push(t)}))){y=!1;break}}else if(m!==g&&!c(m,g,i,a,l)){y=!1;break}}return l.delete(n),l.delete(o),y},ju}function ns(){if(_u)return Cu;return _u=1,Cu=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Cu}function os(){if(Du)return Tu;Du=1;var e=Oi(),t=function(){if(Au)return Mu;Au=1;var e=xi().Uint8Array;return Mu=e}(),r=Ii(),n=rs(),o=(Eu||(Eu=1,ku=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}),ku),i=ns(),a=e?e.prototype:void 0,c=a?a.valueOf:void 0;return Tu=function(e,a,l,u,s,f,p){switch(l){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!f(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var d=o;case"[object Set]":var h=1&u;if(d||(d=i),e.size!=a.size&&!h)return!1;var y=p.get(e);if(y)return y==a;u|=2,p.set(e,a);var v=n(d(e),d(a),u,s,f,p);return p.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(a)}return!1},Tu}function is(){if(Nu)return Iu;return Nu=1,Iu=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},Iu}function as(){if(Vu)return Fu;Vu=1;var e=(zu||(zu=1,Bu=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}),Bu),t=Hu?$u:(Hu=1,$u=function(){return[]}),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,o=n?function(t){return null==t?[]:(t=Object(t),e(n(t),(function(e){return r.call(t,e)})))}:t;return Fu=o}function cs(){if(Xu)return Yu;Xu=1;var e=function(){if(qu)return Wu;qu=1;var e=Si(),t=ji();return Wu=function(r){return t(r)&&"[object Arguments]"==e(r)}}(),t=ji(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(e){return t(e)&&n.call(e,"callee")&&!o.call(e,"callee")};return Yu=i}eu(Ku,"displayName","Legend"),eu(Ku,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ls,us,ss,fs,ps,ds,hs,ys,vs,ms,gs,bs={exports:{}};function ws(){return ss||(ss=1,function(e,t){var r=xi(),n=us?ls:(us=1,ls=function(){return!1}),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c}(bs,bs.exports)),bs.exports}function xs(){if(ps)return fs;ps=1;var e=/^(?:0|[1-9]\d*)$/;return fs=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}}function Os(){if(hs)return ds;hs=1;return ds=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function Ss(){if(gs)return ms;return gs=1,ms=function(e){return function(t){return e(t)}}}bs.exports;var js,Ps,Ms,As,ks,Es,Cs,_s,Ts,Ds,Is,Ns,Rs,Ls,Bs,zs,$s,Hs,Fs,Vs,Us,Zs,Ws,qs,Ys,Xs,Gs,Ks,Js,Qs,ef,tf,rf,nf,of,af,cf,lf,uf,sf,ff,pf,df,hf,yf,vf,mf,gf,bf,wf,xf,Of,Sf,jf,Pf,Mf,Af,kf,Ef,Cf,_f,Tf,Df,If,Nf,Rf,Lf,Bf,zf,$f,Hf,Ff,Vf,Uf,Zf,Wf,qf,Yf,Xf,Gf,Kf,Jf,Qf,ep={exports:{}};function tp(){if(Ms)return Ps;Ms=1;var e=function(){if(vs)return ys;vs=1;var e=Si(),t=Os(),r=ji(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,ys=function(o){return r(o)&&t(o.length)&&!!n[e(o)]}}(),t=Ss(),r=function(){return js||(js=1,e=ep,t=ep.exports,r=wi(),n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,i=o&&o.exports===n&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}(),e.exports=a),ep.exports;var e,t,r,n,o,i,a}(),n=r&&r.isTypedArray,o=n?t(n):e;return Ps=o}function rp(){if(ks)return As;ks=1;var e=Zu?Uu:(Zu=1,Uu=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}),t=cs(),r=bi(),n=ws(),o=xs(),i=tp(),a=Object.prototype.hasOwnProperty;return As=function(c,l){var u=r(c),s=!u&&t(c),f=!u&&!s&&n(c),p=!u&&!s&&!f&&i(c),d=u||s||f||p,h=d?e(c.length,String):[],y=h.length;for(var v in c)!l&&!a.call(c,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,y))||h.push(v);return h}}function np(){if(Ts)return _s;return Ts=1,_s=function(e,t){return function(r){return e(t(r))}}}function op(){if(Rs)return Ns;Rs=1;var e=function(){if(Cs)return Es;Cs=1;var e=Object.prototype;return Es=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}}(),t=function(){if(Is)return Ds;Is=1;var e=np()(Object.keys,Object);return Ds=e}(),r=Object.prototype.hasOwnProperty;return Ns=function(n){if(!e(n))return t(n);var o=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&o.push(i);return o},Ns}function ip(){if(Bs)return Ls;Bs=1;var e=ki(),t=Os();return Ls=function(r){return null!=r&&t(r.length)&&!e(r)}}function ap(){if($s)return zs;$s=1;var e=rp(),t=op(),r=ip();return zs=function(n){return r(n)?e(n):t(n)},zs}function cp(){if(Fs)return Hs;Fs=1;var e=function(){if(Lu)return Ru;Lu=1;var e=is(),t=bi();return Ru=function(r,n,o){var i=n(r);return t(r)?i:e(i,o(r))},Ru}(),t=as(),r=ap();return Hs=function(n){return e(n,r,t)},Hs}function lp(){if(Gs)return Xs;Gs=1;var e=_i()(xi(),"Set");return Xs=e}function up(){if(ef)return Qs;ef=1;var e=function(){if(Ws)return Zs;Ws=1;var e=_i()(xi(),"DataView");return Zs=e}(),t=Li(),r=function(){if(Ys)return qs;Ys=1;var e=_i()(xi(),"Promise");return qs=e}(),n=lp(),o=function(){if(Js)return Ks;Js=1;var e=_i()(xi(),"WeakMap");return Ks=e}(),i=Si(),a=Ci(),c="[object Map]",l="[object Promise]",u="[object Set]",s="[object WeakMap]",f="[object DataView]",p=a(e),d=a(t),h=a(r),y=a(n),v=a(o),m=i;return(e&&m(new e(new ArrayBuffer(1)))!=f||t&&m(new t)!=c||r&&m(r.resolve())!=l||n&&m(new n)!=u||o&&m(new o)!=s)&&(m=function(e){var t=i(e),r="[object Object]"==t?e.constructor:void 0,n=r?a(r):"";if(n)switch(n){case p:return f;case d:return c;case h:return l;case y:return u;case v:return s}return t}),Qs=m}function sp(){if(rf)return tf;rf=1;var e=Ju(),t=rs(),r=os(),n=function(){if(Us)return Vs;Us=1;var e=cp(),t=Object.prototype.hasOwnProperty;return Vs=function(r,n,o,i,a,c){var l=1&o,u=e(r),s=u.length;if(s!=e(n).length&&!l)return!1;for(var f=s;f--;){var p=u[f];if(!(l?p in n:t.call(n,p)))return!1}var d=c.get(r),h=c.get(n);if(d&&h)return d==n&&h==r;var y=!0;c.set(r,n),c.set(n,r);for(var v=l;++f<s;){var m=r[p=u[f]],g=n[p];if(i)var b=l?i(g,m,p,n,r,c):i(m,g,p,r,n,c);if(!(void 0===b?m===g||a(m,g,o,i,c):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var w=r.constructor,x=n.constructor;w==x||!("constructor"in r)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(y=!1)}return c.delete(r),c.delete(n),y},Vs}(),o=up(),i=bi(),a=ws(),c=tp(),l="[object Arguments]",u="[object Array]",s="[object Object]",f=Object.prototype.hasOwnProperty;return tf=function(p,d,h,y,v,m){var g=i(p),b=i(d),w=g?u:o(p),x=b?u:o(d),O=(w=w==l?s:w)==s,S=(x=x==l?s:x)==s,j=w==x;if(j&&a(p)){if(!a(d))return!1;g=!0,O=!1}if(j&&!O)return m||(m=new e),g||c(p)?t(p,d,h,y,v,m):r(p,d,w,h,y,v,m);if(!(1&h)){var P=O&&f.call(p,"__wrapped__"),M=S&&f.call(d,"__wrapped__");if(P||M){var A=P?p.value():p,k=M?d.value():d;return m||(m=new e),v(A,k,h,y,m)}}return!!j&&(m||(m=new e),n(p,d,h,y,v,m))},tf}function fp(){if(of)return nf;of=1;var e=sp(),t=ji();return nf=function r(n,o,i,a,c){return n===o||(null==n||null==o||!t(n)&&!t(o)?n!=n&&o!=o:e(n,o,i,a,r,c))},nf}function pp(){if(uf)return lf;uf=1;var e=Ai();return lf=function(t){return t==t&&!e(t)}}function dp(){if(df)return pf;return df=1,pf=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},pf}function hp(){if(yf)return hf;yf=1;var e=function(){if(cf)return af;cf=1;var e=Ju(),t=fp();return af=function(r,n,o,i){var a=o.length,c=a,l=!i;if(null==r)return!c;for(r=Object(r);a--;){var u=o[a];if(l&&u[2]?u[1]!==r[u[0]]:!(u[0]in r))return!1}for(;++a<c;){var s=(u=o[a])[0],f=r[s],p=u[1];if(l&&u[2]){if(void 0===f&&!(s in r))return!1}else{var d=new e;if(i)var h=i(f,p,s,r,n,d);if(!(void 0===h?t(p,f,3,i,d):h))return!1}}return!0},af}(),t=function(){if(ff)return sf;ff=1;var e=pp(),t=ap();return sf=function(r){for(var n=t(r),o=n.length;o--;){var i=n[o],a=r[i];n[o]=[i,a,e(a)]}return n},sf}(),r=dp();return hf=function(n){var o=t(n);return 1==o.length&&o[0][2]?r(o[0][0],o[0][1]):function(t){return t===n||e(t,n,o)}},hf}function yp(){if(xf)return wf;xf=1;var e=(mf||(mf=1,vf=function(e,t){return null!=e&&t in Object(e)}),vf),t=function(){if(bf)return gf;bf=1;var e=Ui(),t=cs(),r=bi(),n=xs(),o=Os(),i=Zi();return gf=function(a,c,l){for(var u=-1,s=(c=e(c,a)).length,f=!1;++u<s;){var p=i(c[u]);if(!(f=null!=a&&l(a,p)))break;a=a[p]}return f||++u!=s?f:!!(s=null==a?0:a.length)&&o(s)&&n(p,s)&&(r(a)||t(a))},gf}();return wf=function(r,n){return null!=r&&t(r,n,e)},wf}function vp(){if(Pf)return jf;return Pf=1,jf=function(e){return e}}function mp(){if(_f)return Cf;_f=1;var e=(Af||(Af=1,Mf=function(e){return function(t){return null==t?void 0:t[e]}}),Mf),t=function(){if(Ef)return kf;Ef=1;var e=Wi();return kf=function(t){return function(r){return e(r,t)}},kf}(),r=Mi(),n=Zi();return Cf=function(o){return r(o)?e(n(o)):t(o)}}function gp(){if(Df)return Tf;Df=1;var e=hp(),t=function(){if(Sf)return Of;Sf=1;var e=fp(),t=qi(),r=yp(),n=Mi(),o=pp(),i=dp(),a=Zi();return Of=function(c,l){return n(c)&&o(l)?i(a(c),l):function(n){var o=t(n,c);return void 0===o&&o===l?r(n,c):e(l,o,3)}},Of}(),r=vp(),n=bi(),o=mp();return Tf=function(i){return"function"==typeof i?i:null==i?r:"object"==typeof i?n(i)?t(i[0],i[1]):e(i):o(i)}}function bp(){if(Nf)return If;return Nf=1,If=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1},If}function wp(){if(Hf)return $f;Hf=1;var e=bp(),t=Lf?Rf:(Lf=1,Rf=function(e){return e!=e}),r=(zf||(zf=1,Bf=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}),Bf);return $f=function(n,o,i){return o==o?r(n,o,i):e(n,t,i)},$f}function xp(){if(Xf)return Yf;Xf=1;var e=lp(),t=qf?Wf:(qf=1,Wf=function(){}),r=ns(),n=e&&1/r(new e([,-0]))[1]==1/0?function(t){return new e(t)}:t;return Yf=n}function Op(){if(Kf)return Gf;Kf=1;var e=Qu(),t=function(){if(Vf)return Ff;Vf=1;var e=wp();return Ff=function(t,r){return!(null==t||!t.length)&&e(t,r,0)>-1},Ff}(),r=(Zf||(Zf=1,Uf=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}),Uf),n=ts(),o=xp(),i=ns();return Gf=function(a,c,l){var u=-1,s=t,f=a.length,p=!0,d=[],h=d;if(l)p=!1,s=r;else if(f>=200){var y=c?null:o(a);if(y)return i(y);p=!1,s=n,h=new e}else h=c?[]:d;e:for(;++u<f;){var v=a[u],m=c?c(v):v;if(v=l||0!==v?v:0,p&&m==m){for(var g=h.length;g--;)if(h[g]===m)continue e;c&&h.push(m),d.push(v)}else s(h,m,l)||(h!==d&&h.push(m),d.push(v))}return d},Gf}ep.exports;var Sp=function(){if(Qf)return Jf;Qf=1;var e=gp(),t=Op();return Jf=function(r,n){return r&&r.length?t(r,e(n,2)):[]},Jf}(),jp=tr(Sp);function Pp(e,t,r){return!0===t?jp(e,r):na(t)?jp(e,t):e}function Mp(e){return Mp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mp(e)}var Ap=["ref"];function kp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ep(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kp(Object(r),!0).forEach((function(t){Np(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Cp(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,Rp(n.key),n)}}function _p(e,t,r){return t=Dp(t),function(e,t){if(t&&("object"===Mp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Tp()?Reflect.construct(t,r||[],Dp(e).constructor):t.apply(e,r))}function Tp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tp=function(){return!!e})()}function Dp(e){return Dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dp(e)}function Ip(e,t){return Ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ip(e,t)}function Np(e,t,r){return(t=Rp(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rp(e){var t=function(e,t){if("object"!=Mp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Mp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mp(t)?t:t+""}function Lp(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Bp(e){return e.value}var zp,$p,Hp,Fp,Vp,Up,Zp,Wp,qp,Yp,Xp,Gp,Kp,Jp,Qp,ed,td,rd,nd,od,id,ad,cd,ld,ud,sd,fd,pd,dd,hd,yd,vd,md,gd,bd,wd,xd,Od,Sd,jd,Pd,Md,Ad,kd,Ed=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Np(e=_p(this,t,[].concat(n)),"lastBoundingBox",{width:-1,height:-1}),e}return function(e,t){if("function"!=typeof t&&null!==t)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&&Ip(e,t)}(t,te),r=t,o=[{key:"getWithHeight",value:function(e,t){var r=Ep(Ep({},this.defaultProps),e.props).layout;return"vertical"===r&&xa(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ep({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,l=n.chartWidth,u=n.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((l||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(r="middle"===a?{top:((u||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Ep(Ep({},t),r)}},{key:"render",value:function(){var e=this,t=this.props,r=t.content,n=t.width,o=t.height,i=t.wrapperStyle,a=t.payloadUniqBy,c=t.payload,l=Ep(Ep({position:"absolute",width:n||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return J.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,t){if(J.isValidElement(e))return J.cloneElement(e,t);if("function"==typeof e)return J.createElement(e,t);t.ref;var r=Lp(t,Ap);return J.createElement(Ku,r)}(r,Ep(Ep({},this.props),{},{payload:Pp(c,a,Bp)})))}}])&&Cp(r.prototype,n),o&&Cp(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function Cd(){if(Fp)return Hp;Fp=1;var e=is(),t=function(){if($p)return zp;$p=1;var e=Oi(),t=cs(),r=bi(),n=e?e.isConcatSpreadable:void 0;return zp=function(e){return r(e)||t(e)||!!(n&&e&&e[n])}}();return Hp=function r(n,o,i,a,c){var l=-1,u=n.length;for(i||(i=t),c||(c=[]);++l<u;){var s=n[l];o>0&&i(s)?o>1?r(s,o-1,i,a,c):e(c,s):a||(c[c.length]=s)}return c},Hp}function _d(){if(Wp)return Zp;Wp=1;var e=(Up||(Up=1,Vp=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),c=a.length;c--;){var l=a[e?c:++o];if(!1===r(i[l],l,i))break}return t}}),Vp),t=e();return Zp=t}function Td(){if(Yp)return qp;Yp=1;var e=_d(),t=ap();return qp=function(r,n){return r&&e(r,n,t)},qp}function Dd(){if(Jp)return Kp;Jp=1;var e=Td(),t=function(){if(Gp)return Xp;Gp=1;var e=ip();return Xp=function(t,r){return function(n,o){if(null==n)return n;if(!e(n))return t(n,o);for(var i=n.length,a=r?i:-1,c=Object(n);(r?a--:++a<i)&&!1!==o(c[a],a,c););return n}}}()(e);return Kp=t}function Id(){if(ed)return Qp;ed=1;var e=Dd(),t=ip();return Qp=function(r,n){var o=-1,i=t(r)?Array(r.length):[];return e(r,(function(e,t,r){i[++o]=n(e,t,r)})),i}}function Nd(){if(ad)return id;ad=1;var e=function(){if(od)return nd;od=1;var e=Pi();return nd=function(t,r){if(t!==r){var n=void 0!==t,o=null===t,i=t==t,a=e(t),c=void 0!==r,l=null===r,u=r==r,s=e(r);if(!l&&!s&&!a&&t>r||a&&c&&u&&!l&&!s||o&&c&&u||!n&&u||!i)return 1;if(!o&&!a&&!s&&t<r||s&&n&&i&&!o&&!a||l&&n&&i||!c&&i||!u)return-1}return 0}}();return id=function(t,r,n){for(var o=-1,i=t.criteria,a=r.criteria,c=i.length,l=n.length;++o<c;){var u=e(i[o],a[o]);if(u)return o>=l?u:u*("desc"==n[o]?-1:1)}return t.index-r.index},id}function Rd(){if(ld)return cd;ld=1;var e=Fi(),t=Wi(),r=gp(),n=Id(),o=(rd||(rd=1,td=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}),td),i=Ss(),a=Nd(),c=vp(),l=bi();return cd=function(u,s,f){s=s.length?e(s,(function(e){return l(e)?function(r){return t(r,1===e.length?e[0]:e)}:e})):[c];var p=-1;s=e(s,i(r));var d=n(u,(function(t,r,n){return{criteria:e(s,(function(e){return e(t)})),index:++p,value:t}}));return o(d,(function(e,t){return a(e,t,f)}))},cd}function Ld(){if(pd)return fd;pd=1;var e=sd?ud:(sd=1,ud=function(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)}),t=Math.max;return fd=function(r,n,o){return n=t(void 0===n?r.length-1:n,0),function(){for(var i=arguments,a=-1,c=t(i.length-n,0),l=Array(c);++a<c;)l[a]=i[n+a];a=-1;for(var u=Array(n+1);++a<n;)u[a]=i[a];return u[n]=o(l),e(r,this,u)}},fd}function Bd(){if(vd)return yd;vd=1;var e=_i(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return yd=t}function zd(){if(gd)return md;gd=1;var e=hd?dd:(hd=1,dd=function(e){return function(){return e}}),t=Bd(),r=vp(),n=t?function(r,n){return t(r,"toString",{configurable:!0,enumerable:!1,value:e(n),writable:!0})}:r;return md=n}function $d(){if(Od)return xd;Od=1;var e=zd(),t=function(){if(wd)return bd;wd=1;var e=Date.now;return bd=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}},bd}(),r=t(e);return xd=r}function Hd(){if(Md)return Pd;Md=1;var e=Ii(),t=ip(),r=xs(),n=Ai();return Pd=function(o,i,a){if(!n(a))return!1;var c=typeof i;return!!("number"==c?t(a)&&r(i,a.length):"string"==c&&i in a)&&e(a[i],o)},Pd}Np(Ed,"displayName","Legend"),Np(Ed,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Fd=function(){if(kd)return Ad;kd=1;var e=Cd(),t=Rd(),r=function(){if(jd)return Sd;jd=1;var e=vp(),t=Ld(),r=$d();return Sd=function(n,o){return r(t(n,o,e),n+"")}}(),n=Hd(),o=r((function(r,o){if(null==r)return[];var i=o.length;return i>1&&n(r,o[0],o[1])?o=[]:i>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(r,e(o,1),[])}));return Ad=o}(),Vd=tr(Fd);function Ud(e){return Ud="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ud(e)}function Zd(){return Zd=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},Zd.apply(this,arguments)}function Wd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qd(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(r),!0).forEach((function(t){Gd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gd(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Ud(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ud(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ud(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kd(e){return Array.isArray(e)&&Oa(e[0])&&Oa(e[1])?e.join(" ~ "):e}var Jd=function(e){var t=e.separator,r=void 0===t?" : ":t,n=e.contentStyle,o=void 0===n?{}:n,i=e.itemStyle,a=void 0===i?{}:i,c=e.labelStyle,l=void 0===c?{}:c,u=e.payload,s=e.formatter,f=e.itemSorter,p=e.wrapperClassName,d=e.labelClassName,h=e.label,y=e.labelFormatter,v=e.accessibilityLayer,m=void 0!==v&&v,g=Xd({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),b=Xd({margin:0},l),w=!Qi(h),x=w?h:"",O=xn("recharts-default-tooltip",p),S=xn("recharts-tooltip-label",d);w&&y&&null!=u&&(x=y(h,u));var j=m?{role:"status","aria-live":"assertive"}:{};return J.createElement("div",Zd({className:O,style:g},j),J.createElement("p",{className:S,style:b},J.isValidElement(x)?x:"".concat(x)),function(){if(u&&u.length){var e=(f?Vd(u,f):u).map((function(e,t){if("none"===e.type)return null;var n=Xd({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},a),o=e.formatter||s||Kd,i=e.value,c=e.name,l=i,f=c;if(o&&null!=l&&null!=f){var p=o(i,c,e,t,u);if(Array.isArray(p)){var d=Wd(p,2);l=d[0],f=d[1]}else l=p}return J.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:n},Oa(f)?J.createElement("span",{className:"recharts-tooltip-item-name"},f):null,Oa(f)?J.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,J.createElement("span",{className:"recharts-tooltip-item-value"},l),J.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return J.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function Qd(e){return Qd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qd(e)}function eh(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Qd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Qd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qd(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var th="recharts-tooltip-wrapper",rh={visibility:"hidden"};function nh(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return xn(th,eh(eh(eh(eh({},"".concat(th,"-right"),xa(r)&&t&&xa(t.x)&&r>=t.x),"".concat(th,"-left"),xa(r)&&t&&xa(t.x)&&r<t.x),"".concat(th,"-bottom"),xa(n)&&t&&xa(t.y)&&n>=t.y),"".concat(th,"-top"),xa(n)&&t&&xa(t.y)&&n<t.y))}function oh(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,c=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(i&&xa(i[n]))return i[n];var s=r[n]-c-o,f=r[n]+o;return t[n]?a[n]?s:f:a[n]?s<l[n]?Math.max(f,l[n]):Math.max(s,l[n]):f+c>l[n]+u?Math.max(s,l[n]):Math.max(f,l[n])}function ih(e){return ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ih(e)}function ah(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ch(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ah(Object(r),!0).forEach((function(t){dh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ah(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function lh(e,t,r){return t&&function(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,hh(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uh(e,t,r){return t=fh(t),function(e,t){if(t&&("object"===ih(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,sh()?Reflect.construct(t,r||[],fh(e).constructor):t.apply(e,r))}function sh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sh=function(){return!!e})()}function fh(e){return fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fh(e)}function ph(e,t){return ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ph(e,t)}function dh(e,t,r){return(t=hh(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hh(e){var t=function(e,t){if("object"!=ih(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ih(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ih(t)?t:t+""}var yh=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return dh(e=uh(this,t,[].concat(n)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),dh(e,"handleKeyDown",(function(t){var r,n,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=e.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),e}return function(e,t){if("function"!=typeof t&&null!==t)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&&ph(e,t)}(t,te),lh(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.state.lastBoundingBox.width)>1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||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 e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,t=this.props,r=t.active,n=t.allowEscapeViewBox,o=t.animationDuration,i=t.animationEasing,a=t.children,c=t.coordinate,l=t.hasPayload,u=t.isAnimationActive,s=t.offset,f=t.position,p=t.reverseDirection,d=t.useTranslate3d,h=t.viewBox,y=t.wrapperStyle,v=function(e){var t,r,n=e.allowEscapeViewBox,o=e.coordinate,i=e.offsetTopLeft,a=e.position,c=e.reverseDirection,l=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox;return{cssProperties:l.height>0&&l.width>0&&o?function(e){var t=e.translateX,r=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}({translateX:t=oh({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:l.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=oh({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:l.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:u}):rh,cssClasses:nh({translateX:t,translateY:r,coordinate:o})}}({allowEscapeViewBox:n,coordinate:c,offsetTopLeft:s,position:f,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:h}),m=v.cssClasses,g=v.cssProperties,b=ch(ch({transition:u&&r?"transform ".concat(o,"ms ").concat(i):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&l?"visible":"hidden",position:"absolute",top:0,left:0},y);return J.createElement("div",{tabIndex:-1,className:m,style:b,ref:function(t){e.wrapperNode=t}},a)}}])}(),vh=!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout);function mh(e){return mh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mh(e)}function gh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gh(Object(r),!0).forEach((function(t){Ph(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wh(e,t,r){return t&&function(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,Mh(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xh(e,t,r){return t=Sh(t),function(e,t){if(t&&("object"===mh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Oh()?Reflect.construct(t,r||[],Sh(e).constructor):t.apply(e,r))}function Oh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oh=function(){return!!e})()}function Sh(e){return Sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sh(e)}function jh(e,t){return jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jh(e,t)}function Ph(e,t,r){return(t=Mh(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mh(e){var t=function(e,t){if("object"!=mh(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=mh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==mh(t)?t:t+""}function Ah(e){return e.dataKey}var kh,Eh,Ch,_h,Th,Dh,Ih,Nh,Rh,Lh,Bh,zh,$h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),xh(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&jh(e,t)}(t,te),wh(t,[{key:"render",value:function(){var e=this,t=this.props,r=t.active,n=t.allowEscapeViewBox,o=t.animationDuration,i=t.animationEasing,a=t.content,c=t.coordinate,l=t.filterNull,u=t.isAnimationActive,s=t.offset,f=t.payload,p=t.payloadUniqBy,d=t.position,h=t.reverseDirection,y=t.useTranslate3d,v=t.viewBox,m=t.wrapperStyle,g=null!=f?f:[];l&&g.length&&(g=Pp(f.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,Ah));var b=g.length>0;return J.createElement(yh,{allowEscapeViewBox:n,animationDuration:o,animationEasing:i,isAnimationActive:u,active:r,coordinate:c,hasPayload:b,offset:s,position:d,reverseDirection:h,useTranslate3d:y,viewBox:v,wrapperStyle:m},function(e,t){return J.isValidElement(e)?J.cloneElement(e,t):"function"==typeof e?J.createElement(e,t):J.createElement(Jd,t)}(a,bh(bh({},this.props),{},{payload:g})))}}])}();function Hh(){if(Dh)return Th;Dh=1;var e=function(){if(_h)return Ch;_h=1;var e=/\s/;return Ch=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r},Ch}(),t=/^\s+/;return Th=function(r){return r?r.slice(0,e(r)+1).replace(t,""):r},Th}function Fh(){if(Nh)return Ih;Nh=1;var e=Hh(),t=Ai(),r=Pi(),n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt;return Ih=function(c){if("number"==typeof c)return c;if(r(c))return NaN;if(t(c)){var l="function"==typeof c.valueOf?c.valueOf():c;c=t(l)?l+"":l}if("string"!=typeof c)return 0===c?c:+c;c=e(c);var u=o.test(c);return u||i.test(c)?a(c.slice(2),u?2:8):n.test(c)?NaN:+c}}function Vh(){if(Lh)return Rh;Lh=1;var e=Ai(),t=function(){if(Eh)return kh;Eh=1;var e=xi();return kh=function(){return e.Date.now()}}(),r=Fh(),n=Math.max,o=Math.min;return Rh=function(i,a,c){var l,u,s,f,p,d,h=0,y=!1,v=!1,m=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function g(e){var t=l,r=u;return l=u=void 0,h=e,f=i.apply(r,t)}function b(e){var t=e-d;return void 0===d||t>=a||t<0||v&&e-h>=s}function w(){var e=t();if(b(e))return x(e);p=setTimeout(w,function(e){var t=a-(e-d);return v?o(t,s-(e-h)):t}(e))}function x(e){return p=void 0,m&&l?g(e):(l=u=void 0,f)}function O(){var e=t(),r=b(e);if(l=arguments,u=this,d=e,r){if(void 0===p)return function(e){return h=e,p=setTimeout(w,a),y?g(e):f}(d);if(v)return clearTimeout(p),p=setTimeout(w,a),g(d)}return void 0===p&&(p=setTimeout(w,a)),f}return a=r(a)||0,e(c)&&(y=!!c.leading,s=(v="maxWait"in c)?n(r(c.maxWait)||0,a):s,m="trailing"in c?!!c.trailing:m),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=d=u=p=void 0},O.flush=function(){return void 0===p?f:x(t())},O},Rh}Ph($h,"displayName","Tooltip"),Ph($h,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!vh,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 Uh=function(){if(zh)return Bh;zh=1;var e=Vh(),t=Ai();return Bh=function(r,n,o){var i=!0,a=!0;if("function"!=typeof r)throw new TypeError("Expected a function");return t(o)&&(i="leading"in o?!!o.leading:i,a="trailing"in o?!!o.trailing:a),e(r,n,{leading:i,maxWait:n,trailing:a})}}(),Zh=tr(Uh);function Wh(e){return Wh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wh(e)}function qh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qh(Object(r),!0).forEach((function(t){Xh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xh(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Wh(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Wh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wh(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Jh=re((function(e,t){var r=e.aspect,n=e.initialDimension,o=void 0===n?{width:-1,height:-1}:n,i=e.width,a=void 0===i?"100%":i,c=e.height,l=void 0===c?"100%":c,u=e.minWidth,s=void 0===u?0:u,f=e.minHeight,p=e.maxHeight,d=e.children,h=e.debounce,y=void 0===h?0:h,v=e.id,m=e.className,g=e.onResize,b=e.style,w=void 0===b?{}:b,x=ne(null),O=ne();O.current=g,oe(t,(function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})}));var S=Gh(ie({containerWidth:o.width,containerHeight:o.height}),2),j=S[0],P=S[1],M=ae((function(e,t){P((function(r){var n=Math.round(e),o=Math.round(t);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}}))}),[]);ce((function(){var e=function(e){var t,r=e[0].contentRect,n=r.width,o=r.height;M(n,o),null===(t=O.current)||void 0===t||t.call(O,n,o)};y>0&&(e=Zh(e,y,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),r=x.current.getBoundingClientRect(),n=r.width,o=r.height;return M(n,o),t.observe(x.current),function(){t.disconnect()}}),[M,y]);var A=le((function(){var e=j.containerWidth,t=j.containerHeight;if(e<0||t<0)return null;Mc(wa(a)||wa(l),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,l),Mc(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=wa(a)?e:a,o=wa(l)?t:l;r&&r>0&&(n?o=n/r:o&&(n=o*r),p&&o>p&&(o=p)),Mc(n>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,o,a,l,s,f,r);var i=!Array.isArray(d)&&Fa(d.type).endsWith("Chart");return J.Children.map(d,(function(e){return J.isValidElement(e)?ue(e,Yh({width:n,height:o},i?{style:Yh({height:"100%",width:"100%",maxHeight:o,maxWidth:n},e.props.style)}:{})):e}))}),[r,d,l,p,f,s,j,a]);return J.createElement("div",{id:v?"".concat(v):void 0,className:xn("recharts-responsive-container",m),style:Yh(Yh({},w),{},{width:a,height:l,minWidth:s,minHeight:f,maxHeight:p}),ref:x},A)})),Qh=function(e){return null};function ey(e){return ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ey(e)}function ty(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ry(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ty(Object(r),!0).forEach((function(t){ny(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ty(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ny(e,t,r){return t=function(e){var t=function(e,t){if("object"!=ey(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ey(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ey(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Qh.displayName="Cell";var oy={widthCache:{},cacheCount:0},iy={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ay="recharts_measurement_span";var cy=function(e){if(null==e||vh)return{width:0,height:0};var t,r=(t=ry({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),Object.keys(t).forEach((function(e){t[e]||delete t[e]})),t),n=JSON.stringify({text:e,copyStyle:r});if(oy.widthCache[n])return oy.widthCache[n];try{var o=document.getElementById(ay);o||((o=document.createElement("span")).setAttribute("id",ay),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var i=ry(ry({},iy),r);Object.assign(o.style,i),o.textContent="".concat(e);var a=o.getBoundingClientRect(),c={width:a.width,height:a.height};return oy.widthCache[n]=c,++oy.cacheCount>2e3&&(oy.cacheCount=0,oy.widthCache={}),c}catch(e){return{width:0,height:0}}};function ly(e){return ly="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ly(e)}function uy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fy(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,py(n.key),n)}}function py(e){var t=function(e,t){if("object"!=ly(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=ly(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==ly(t)?t:t+""}var dy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,hy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yy=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,vy=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,my={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},gy=Object.keys(my),by="NaN";var wy=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),""===r||yy.test(r)||(this.num=NaN,this.unit=""),gy.includes(r)&&(this.num=function(e,t){return e*my[t]}(t,r),this.unit="px")}return t=e,n=[{key:"parse",value:function(t){var r,n=uy(null!==(r=vy.exec(t))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new e(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&fy(t.prototype,r),n&&fy(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function xy(e){if(e.includes(by))return by;for(var t=e;t.includes("*")||t.includes("/");){var r,n=uy(null!==(r=dy.exec(t))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],c=wy.parse(null!=o?o:""),l=wy.parse(null!=a?a:""),u="*"===i?c.multiply(l):c.divide(l);if(u.isNaN())return by;t=t.replace(dy,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var s,f=uy(null!==(s=hy.exec(t))&&void 0!==s?s:[],4),p=f[1],d=f[2],h=f[3],y=wy.parse(null!=p?p:""),v=wy.parse(null!=h?h:""),m="+"===d?y.add(v):y.subtract(v);if(m.isNaN())return by;t=t.replace(hy,m.toString())}return t}var Oy=/\(([^()]*)\)/;function Sy(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var r=uy(Oy.exec(t),2)[1];t=t.replace(Oy,xy(r))}return t}(t),t=xy(t)}function jy(e){var t=function(e){try{return Sy(e)}catch(e){return by}}(e.slice(5,-1));return t===by?"":t}var Py=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],My=["dx","dy","angle","className","breakAll"];function Ay(){return Ay=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},Ay.apply(this,arguments)}function ky(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Ey(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _y=/[ \f\n\r\t\v\u2028\u2029]+/,Ty=function(e){var t=e.children,r=e.breakAll,n=e.style;try{var o=[];return Qi(t)||(o=r?t.toString().split(""):t.toString().split(_y)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:cy(e,n).width}})),spaceWidth:r?0:cy(" ",n).width}}catch(e){return null}},Dy=function(e){return[{words:Qi(e)?[]:e.toString().split(_y)}]},Iy=function(e){var t=e.width,r=e.scaleToFit,n=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||r)&&!vh){var c=Ty({breakAll:i,children:n,style:o});return c?function(e,t,r,n,o){var i=e.maxLines,a=e.children,c=e.style,l=e.breakAll,u=xa(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,c=e[e.length-1];if(c&&(null==n||o||c.width+a+r<Number(n)))c.words.push(i),c.width+=a+r;else{var l={words:[i],width:a};e.push(l)}return e}),[])},p=f(t);if(!u)return p;for(var d,h=function(e){var t=s.slice(0,e),r=Ty({breakAll:l,style:c,children:t+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(n);return[a,o]},y=0,v=s.length-1,m=0;y<=v&&m<=s.length-1;){var g=Math.floor((y+v)/2),b=Ey(h(g-1),2),w=b[0],x=b[1],O=Ey(h(g),1)[0];if(w||O||(y=g+1),w&&O&&(v=g-1),!w&&O){d=x;break}m++}return d||p}({breakAll:i,children:n,maxLines:a,style:o},c.wordsWithComputedWidth,c.spaceWidth,t,r):Dy(n)}return Dy(n)},Ny="#808080",Ry=function(e){var t=e.x,r=void 0===t?0:t,n=e.y,o=void 0===n?0:n,i=e.lineHeight,a=void 0===i?"1em":i,c=e.capHeight,l=void 0===c?"0.71em":c,u=e.scaleToFit,s=void 0!==u&&u,f=e.textAnchor,p=void 0===f?"start":f,d=e.verticalAnchor,h=void 0===d?"end":d,y=e.fill,v=void 0===y?Ny:y,m=ky(e,Py),g=le((function(){return Iy({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:s,style:m.style,width:m.width})}),[m.breakAll,m.children,m.maxLines,s,m.style,m.width]),b=m.dx,w=m.dy,x=m.angle,O=m.className,S=m.breakAll,j=ky(m,My);if(!Oa(r)||!Oa(o))return null;var P,M=r+(xa(b)?b:0),A=o+(xa(w)?w:0);switch(h){case"start":P=jy("calc(".concat(l,")"));break;case"middle":P=jy("calc(".concat((g.length-1)/2," * -").concat(a," + (").concat(l," / 2))"));break;default:P=jy("calc(".concat(g.length-1," * -").concat(a,")"))}var k=[];if(s){var E=g[0].width,C=m.width;k.push("scale(".concat((xa(C)?C/E:1)/E,")"))}return x&&k.push("rotate(".concat(x,", ").concat(M,", ").concat(A,")")),k.length&&(j.transform=k.join(" ")),J.createElement("text",Ay({},Ka(j,!0),{x:M,y:A,className:xn("recharts-text",O),textAnchor:p,fill:v.includes("url")?Ny:v}),g.map((function(e,t){var r=e.words.join(S?"":" ");return J.createElement("tspan",{x:M,dy:0===t?P:a,key:"".concat(r,"-").concat(t)},r)})))};function Ly(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function By(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function zy(e){let t,r,n;function o(e,n,o=0,i=e.length){if(o<i){if(0!==t(n,n))return i;do{const t=o+i>>>1;r(e[t],n)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=Ly,r=(t,r)=>Ly(e(t),r),n=(t,r)=>e(t)-r):(t=e===Ly||e===By?e:$y,r=e,n=e),{left:o,center:function(e,t,r=0,i=e.length){const a=o(e,t,r,i-1);return a>r&&n(e[a-1],t)>-n(e[a],t)?a-1:a},right:function(e,n,o=0,i=e.length){if(o<i){if(0!==t(n,n))return i;do{const t=o+i>>>1;r(e[t],n)<=0?o=t+1:i=t}while(o<i)}return o}}}function $y(){return 0}function Hy(e){return null===e?NaN:+e}const Fy=zy(Ly).right;zy(Hy).center;class Vy extends Map{constructor(e,t=Zy){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(Uy(this,e))}has(e){return super.has(Uy(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){const n=t(r);e.has(n)&&(r=e.get(n),e.delete(n));return r}(this,e))}}function Uy({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Zy(e){return null!==e&&"object"==typeof e?e.valueOf():e}function Wy(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const qy=Math.sqrt(50),Yy=Math.sqrt(10),Xy=Math.sqrt(2);function Gy(e,t,r){const n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=qy?10:i>=Yy?5:i>=Xy?2:1;let c,l,u;return o<0?(u=Math.pow(10,-o)/a,c=Math.round(e*u),l=Math.round(t*u),c/u<e&&++c,l/u>t&&--l,u=-u):(u=Math.pow(10,o)*a,c=Math.round(e/u),l=Math.round(t/u),c*u<e&&++c,l*u>t&&--l),l<c&&.5<=r&&r<2?Gy(e,t,2*r):[c,l,u]}function Ky(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[o,i,a]=n?Gy(t,e,r):Gy(e,t,r);if(!(i>=o))return[];const c=i-o+1,l=new Array(c);if(n)if(a<0)for(let e=0;e<c;++e)l[e]=(i-e)/-a;else for(let e=0;e<c;++e)l[e]=(i-e)*a;else if(a<0)for(let e=0;e<c;++e)l[e]=(o+e)/-a;else for(let e=0;e<c;++e)l[e]=(o+e)*a;return l}function Jy(e,t,r){return Gy(e=+e,t=+t,r=+r)[2]}function Qy(e,t,r){r=+r;const n=(t=+t)<(e=+e),o=n?Jy(t,e,r):Jy(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}function ev(e,t){let r;for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);return r}function tv(e,t){let r;for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);return r}function rv(e,t,r=0,n=1/0,o){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(o=void 0===o?Wy:function(e=Ly){if(e===Ly)return Wy;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||0===n?n:(0===e(r,r))-(0===e(t,t))}}(o);n>r;){if(n-r>600){const i=n-r+1,a=t-r+1,c=Math.log(i),l=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*l*(i-l)/i)*(a-i/2<0?-1:1);rv(e,t,Math.max(r,Math.floor(t-a*l/i+u)),Math.min(n,Math.floor(t+(i-a)*l/i+u)),o)}const i=e[t];let a=r,c=n;for(nv(e,r,t),o(e[n],i)>0&&nv(e,r,n);a<c;){for(nv(e,a,c),++a,--c;o(e[a],i)<0;)++a;for(;o(e[c],i)>0;)--c}0===o(e[r],i)?nv(e,r,c):(++c,nv(e,c,n)),c<=t&&(r=c+1),t<=c&&(n=c-1)}return e}function nv(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function ov(e,t,r=Hy){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,o=(n-1)*t,i=Math.floor(o),a=+r(e[i],i,e);return a+(+r(e[i+1],i+1,e)-a)*(o-i)}}function iv(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function av(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const cv=Symbol("implicit");function lv(){var e=new Vy,t=[],r=[],n=cv;function o(o){let i=e.get(o);if(void 0===i){if(n!==cv)return n;e.set(o,i=t.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new Vy;for(const n of r)e.has(n)||e.set(n,t.push(n)-1);return o},o.range=function(e){return arguments.length?(r=Array.from(e),o):r.slice()},o.unknown=function(e){return arguments.length?(n=e,o):n},o.copy=function(){return lv(t,r).unknown(n)},iv.apply(o,arguments),o}function uv(){var e,t,r=lv().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,c=!1,l=0,u=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,d=f?i:a;e=(d-p)/Math.max(1,r-l+2*u),c&&(e=Math.floor(e)),p+=(d-p-e*(r-l))*s,t=e*(1-l),c&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((t-e)/r)),i=new Array(o);++n<o;)i[n]=e+n*r;return i}(r).map((function(t){return p+e*t}));return o(f?h.reverse():h)}return delete r.unknown,r.domain=function(e){return arguments.length?(n(e),f()):n()},r.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,c=!0,f()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(c=!!e,f()):c},r.padding=function(e){return arguments.length?(l=Math.min(1,u=+e),f()):l},r.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),f()):l},r.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},r.align=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),f()):s},r.copy=function(){return uv(n(),[i,a]).round(c).paddingInner(l).paddingOuter(u).align(s)},iv.apply(f(),arguments)}function sv(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return sv(t())},e}function fv(){return sv(uv.apply(null,arguments).paddingInner(1))}function pv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function dv(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function hv(){}var yv=.7,vv=1/yv,mv="\\s*([+-]?\\d+)\\s*",gv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wv=/^#([0-9a-f]{3,8})$/,xv=new RegExp(`^rgb\\(${mv},${mv},${mv}\\)$`),Ov=new RegExp(`^rgb\\(${bv},${bv},${bv}\\)$`),Sv=new RegExp(`^rgba\\(${mv},${mv},${mv},${gv}\\)$`),jv=new RegExp(`^rgba\\(${bv},${bv},${bv},${gv}\\)$`),Pv=new RegExp(`^hsl\\(${gv},${bv},${bv}\\)$`),Mv=new RegExp(`^hsla\\(${gv},${bv},${bv},${gv}\\)$`),Av={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function kv(){return this.rgb().formatHex()}function Ev(){return this.rgb().formatRgb()}function Cv(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=wv.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?_v(t):3===r?new Iv(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Tv(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Tv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=xv.exec(e))?new Iv(t[1],t[2],t[3],1):(t=Ov.exec(e))?new Iv(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Sv.exec(e))?Tv(t[1],t[2],t[3],t[4]):(t=jv.exec(e))?Tv(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Pv.exec(e))?$v(t[1],t[2]/100,t[3]/100,1):(t=Mv.exec(e))?$v(t[1],t[2]/100,t[3]/100,t[4]):Av.hasOwnProperty(e)?_v(Av[e]):"transparent"===e?new Iv(NaN,NaN,NaN,0):null}function _v(e){return new Iv(e>>16&255,e>>8&255,255&e,1)}function Tv(e,t,r,n){return n<=0&&(e=t=r=NaN),new Iv(e,t,r,n)}function Dv(e,t,r,n){return 1===arguments.length?((o=e)instanceof hv||(o=Cv(o)),o?new Iv((o=o.rgb()).r,o.g,o.b,o.opacity):new Iv):new Iv(e,t,r,null==n?1:n);var o}function Iv(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Nv(){return`#${zv(this.r)}${zv(this.g)}${zv(this.b)}`}function Rv(){const e=Lv(this.opacity);return`${1===e?"rgb(":"rgba("}${Bv(this.r)}, ${Bv(this.g)}, ${Bv(this.b)}${1===e?")":`, ${e})`}`}function Lv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Bv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zv(e){return((e=Bv(e))<16?"0":"")+e.toString(16)}function $v(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Fv(e,t,r,n)}function Hv(e){if(e instanceof Fv)return new Fv(e.h,e.s,e.l,e.opacity);if(e instanceof hv||(e=Cv(e)),!e)return new Fv;if(e instanceof Fv)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,c=i-o,l=(i+o)/2;return c?(a=t===i?(r-n)/c+6*(r<n):r===i?(n-t)/c+2:(t-r)/c+4,c/=l<.5?i+o:2-i-o,a*=60):c=l>0&&l<1?0:a,new Fv(a,c,l,e.opacity)}function Fv(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Vv(e){return(e=(e||0)%360)<0?e+360:e}function Uv(e){return Math.max(0,Math.min(1,e||0))}function Zv(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}pv(hv,Cv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:kv,formatHex:kv,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Hv(this).formatHsl()},formatRgb:Ev,toString:Ev}),pv(Iv,Dv,dv(hv,{brighter(e){return e=null==e?vv:Math.pow(vv,e),new Iv(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?yv:Math.pow(yv,e),new Iv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Iv(Bv(this.r),Bv(this.g),Bv(this.b),Lv(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:Nv,formatHex:Nv,formatHex8:function(){return`#${zv(this.r)}${zv(this.g)}${zv(this.b)}${zv(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Rv,toString:Rv})),pv(Fv,(function(e,t,r,n){return 1===arguments.length?Hv(e):new Fv(e,t,r,null==n?1:n)}),dv(hv,{brighter(e){return e=null==e?vv:Math.pow(vv,e),new Fv(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?yv:Math.pow(yv,e),new Fv(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Iv(Zv(e>=240?e-240:e+120,o,n),Zv(e,o,n),Zv(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Fv(Vv(this.h),Uv(this.s),Uv(this.l),Lv(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=Lv(this.opacity);return`${1===e?"hsl(":"hsla("}${Vv(this.h)}, ${100*Uv(this.s)}%, ${100*Uv(this.l)}%${1===e?")":`, ${e})`}`}}));var Wv=e=>()=>e;function qv(e){return 1==(e=+e)?Yv:function(t,r){return r-t?function(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)}}(t,r,e):Wv(isNaN(t)?r:t)}}function Yv(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Wv(isNaN(e)?t:e)}var Xv=function e(t){var r=qv(t);function n(e,t){var n=r((e=Dv(e)).r,(t=Dv(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Yv(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);function Gv(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(r=0;r<n;++r)o[r]=e[r]*(1-i)+t[r]*i;return o}}function Kv(e,t){var r,n=t?t.length:0,o=e?Math.min(n,e.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=om(e[r],t[r]);for(;r<n;++r)a[r]=t[r];return function(e){for(r=0;r<o;++r)a[r]=i[r](e);return a}}function Jv(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Qv(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function em(e,t){var r,n={},o={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?n[r]=om(e[r],t[r]):o[r]=t[r];return function(e){for(r in n)o[r]=n[r](e);return o}}var tm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rm=new RegExp(tm.source,"g");function nm(e,t){var r,n,o,i=tm.lastIndex=rm.lastIndex=0,a=-1,c=[],l=[];for(e+="",t+="";(r=tm.exec(e))&&(n=rm.exec(t));)(o=n.index)>i&&(o=t.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,l.push({i:a,x:Qv(r,n)})),i=rm.lastIndex;return i<t.length&&(o=t.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var r,n=0;n<t;++n)c[(r=l[n]).i]=r.x(e);return c.join("")})}function om(e,t){var r,n=typeof t;return null==t||"boolean"===n?Wv(t):("number"===n?Qv:"string"===n?(r=Cv(t))?(t=r,Xv):nm:t instanceof Cv?Xv:t instanceof Date?Jv:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Gv:Array.isArray(t)?Kv:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?em:Qv)(e,t)}function im(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function am(e,t){void 0===t&&(t=e,e=om);for(var r=0,n=t.length-1,o=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(o,o=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return i[t](e-t)}}function cm(e){return+e}var lm=[0,1];function um(e){return e}function sm(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function fm(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o<n?(n=sm(o,n),i=r(a,i)):(n=sm(n,o),i=r(i,a)),function(e){return i(n(e))}}function pm(e,t,r){var n=Math.min(e.length,t.length)-1,o=new Array(n),i=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)o[a]=sm(e[a],e[a+1]),i[a]=r(t[a],t[a+1]);return function(t){var r=Fy(e,t,1,n)-1;return i[r](o[r](t))}}function dm(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function hm(){var e,t,r,n,o,i,a=lm,c=lm,l=om,u=um;function s(){var e=Math.min(a.length,c.length);return u!==um&&(u=function(e,t){var r;return e>t&&(r=e,e=t,t=r),function(r){return Math.max(e,Math.min(t,r))}}(a[0],a[e-1])),n=e>2?pm:fm,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?r:(o||(o=n(a.map(e),c,l)))(e(u(t)))}return f.invert=function(r){return u(t((i||(i=n(c,a.map(e),Qv)))(r)))},f.domain=function(e){return arguments.length?(a=Array.from(e,cm),s()):a.slice()},f.range=function(e){return arguments.length?(c=Array.from(e),s()):c.slice()},f.rangeRound=function(e){return c=Array.from(e),l=im,s()},f.clamp=function(e){return arguments.length?(u=!!e||um,s()):u!==um},f.interpolate=function(e){return arguments.length?(l=e,s()):l},f.unknown=function(e){return arguments.length?(r=e,f):r},function(r,n){return e=r,t=n,s()}}function ym(){return hm()(um,um)}function vm(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 mm(e){return(e=vm(Math.abs(e)))?e[1]:NaN}var gm,bm=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wm(e){if(!(t=bm.exec(e)))throw new Error("invalid format: "+e);var t;return new xm({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]})}function xm(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Om(e,t){var r=vm(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}wm.prototype=xm.prototype,xm.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Sm={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},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)=>Om(100*e,t),r:Om,s:function(e,t){var r=vm(e,t);if(!r)return e+"";var n=r[0],o=r[1],i=o-(gm=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+vm(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function jm(e){return e}var Pm,Mm,Am,km=Array.prototype.map,Em=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Cm(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?jm:(t=km.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var o=e.length,i=[],a=0,c=t[0],l=0;o>0&&c>0&&(l+c+1>n&&(c=Math.max(1,n-l)),i.push(e.substring(o-=c,o+c)),!((l+=c+1)>n));)c=t[a=(a+1)%t.length];return i.reverse().join(r)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",c=void 0===e.numerals?jm:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(km.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",s=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=wm(e)).fill,r=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,y=e.comma,v=e.precision,m=e.trim,g=e.type;"n"===g?(y=!0,g="g"):Sm[g]||(void 0===v&&(v=12),m=!0,g="g"),(d||"0"===t&&"="===r)&&(d=!0,t="0",r="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===p?i:/[%p]/.test(g)?l:"",x=Sm[g],O=/[defgprs%]/.test(g);function S(e){var o,i,l,p=b,S=w;if("c"===g)S=x(e)+S,e="";else{var j=(e=+e)<0||1/e<0;if(e=isNaN(e)?s:x(Math.abs(e),v),m&&(e=function(e){e:for(var t,r=e.length,n=1,o=-1;n<r;++n)switch(e[n]){case".":o=t=n;break;case"0":0===o&&(o=n),t=n;break;default:if(!+e[n])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),j&&0==+e&&"+"!==f&&(j=!1),p=(j?"("===f?f:u:"-"===f||"("===f?"":f)+p,S=("s"===g?Em[8+gm/3]:"")+S+(j&&"("===f?")":""),O)for(o=-1,i=e.length;++o<i;)if(48>(l=e.charCodeAt(o))||l>57){S=(46===l?a+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}y&&!d&&(e=n(e,1/0));var P=p.length+e.length+S.length,M=P<h?new Array(h-P+1).join(t):"";switch(y&&d&&(e=n(M+e,M.length?h-S.length:1/0),M=""),r){case"<":e=p+e+S+M;break;case"=":e=p+M+e+S;break;case"^":e=M.slice(0,P=M.length>>1)+p+e+S+M.slice(P);break;default:e=M+p+e+S}return c(e)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return e+""},S}return{format:f,formatPrefix:function(e,t){var r=f(((e=wm(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(mm(t)/3))),o=Math.pow(10,-n),i=Em[8+n/3];return function(e){return r(o*e)+i}}}}function _m(e,t,r,n){var o,i=Qy(e,t,r);switch((n=wm(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(mm(t)/3)))-mm(Math.abs(e)))}(i,a))||(n.precision=o),Am(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,mm(t)-mm(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(e){return Math.max(0,-mm(Math.abs(e)))}(i))||(n.precision=o-2*("%"===n.type))}return Mm(n)}function Tm(e){var t=e.domain;return e.ticks=function(e){var r=t();return Ky(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return _m(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,o,i=t(),a=0,c=i.length-1,l=i[a],u=i[c],s=10;for(u<l&&(o=l,l=u,u=o,o=a,a=c,c=o);s-- >0;){if((o=Jy(l,u,r))===n)return i[a]=l,i[c]=u,t(i);if(o>0)l=Math.floor(l/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,u=Math.floor(u*o)/o}n=o}return e},e}function Dm(){var e=ym();return e.copy=function(){return dm(e,Dm())},iv.apply(e,arguments),Tm(e)}function Im(e,t){var r,n=0,o=(e=e.slice()).length-1,i=e[n],a=e[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),e[n]=t.floor(i),e[o]=t.ceil(a),e}function Nm(e){return Math.log(e)}function Rm(e){return Math.exp(e)}function Lm(e){return-Math.log(-e)}function Bm(e){return-Math.exp(-e)}function zm(e){return isFinite(e)?+("1e"+e):e<0?0:e}function $m(e){return(t,r)=>-e(-t,r)}function Hm(e){const t=e(Nm,Rm),r=t.domain;let n,o,i=10;function a(){return n=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?zm:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),r()[0]<0?(n=$m(n),o=$m(o),e(Lm,Bm)):e(Nm,Rm),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(r(e),a()):r()},t.ticks=e=>{const t=r();let a=t[0],c=t[t.length-1];const l=c<a;l&&([a,c]=[c,a]);let u,s,f=n(a),p=n(c);const d=null==e?10:+e;let h=[];if(!(i%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(u=1;u<i;++u)if(s=f<0?u/o(-f):u*o(f),!(s<a)){if(s>c)break;h.push(s)}}else for(;f<=p;++f)for(u=i-1;u>=1;--u)if(s=f>0?u/o(-f):u*o(f),!(s<a)){if(s>c)break;h.push(s)}2*h.length<d&&(h=Ky(a,c,d))}else h=Ky(f,p,Math.min(p-f,d)).map(o);return l?h.reverse():h},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=wm(r)).precision||(r.trim=!0),r=Mm(r)),e===1/0)return r;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(n(e)));return t*i<i-.5&&(t*=i),t<=a?r(e):""}},t.nice=()=>r(Im(r(),{floor:e=>o(Math.floor(n(e))),ceil:e=>o(Math.ceil(n(e)))})),t}function Fm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Vm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Um(e){var t=1,r=e(Fm(t),Vm(t));return r.constant=function(r){return arguments.length?e(Fm(t=+r),Vm(t)):t},Tm(r)}function Zm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Wm(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function qm(e){return e<0?-e*e:e*e}function Ym(e){var t=e(um,um),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(um,um):.5===r?e(Wm,qm):e(Zm(r),Zm(1/r)):r},Tm(t)}function Xm(){var e=Ym(hm());return e.copy=function(){return dm(e,Xm()).exponent(e.exponent())},iv.apply(e,arguments),e}function Gm(e){return Math.sign(e)*e*e}Pm=Cm({thousands:",",grouping:[3],currency:["$",""]}),Mm=Pm.format,Am=Pm.formatPrefix;const Km=new Date,Jm=new Date;function Qm(e,t,r,n){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),o.round=e=>{const t=o(e),r=o.ceil(e);return e-t<r-e?t:r},o.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let c;do{a.push(c=new Date(+r)),t(r,i),e(r)}while(c<r&&r<n);return a},o.filter=r=>Qm((t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)}),((e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););})),r&&(o.count=(t,n)=>(Km.setTime(+t),Jm.setTime(+n),e(Km),e(Jm),Math.floor(r(Km,Jm))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(n?t=>n(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const eg=Qm((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));eg.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Qm((t=>{t.setTime(Math.floor(t/e)*e)}),((t,r)=>{t.setTime(+t+r*e)}),((t,r)=>(r-t)/e)):eg:null),eg.range;const tg=1e3,rg=6e4,ng=36e5,og=864e5,ig=6048e5,ag=2592e6,cg=31536e6,lg=Qm((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*tg)}),((e,t)=>(t-e)/tg),(e=>e.getUTCSeconds()));lg.range;const ug=Qm((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*tg)}),((e,t)=>{e.setTime(+e+t*rg)}),((e,t)=>(t-e)/rg),(e=>e.getMinutes()));ug.range;const sg=Qm((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*rg)}),((e,t)=>(t-e)/rg),(e=>e.getUTCMinutes()));sg.range;const fg=Qm((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*tg-e.getMinutes()*rg)}),((e,t)=>{e.setTime(+e+t*ng)}),((e,t)=>(t-e)/ng),(e=>e.getHours()));fg.range;const pg=Qm((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*ng)}),((e,t)=>(t-e)/ng),(e=>e.getUTCHours()));pg.range;const dg=Qm((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*rg)/og),(e=>e.getDate()-1));dg.range;const hg=Qm((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/og),(e=>e.getUTCDate()-1));hg.range;const yg=Qm((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/og),(e=>Math.floor(e/og)));function vg(e){return Qm((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*rg)/ig))}yg.range;const mg=vg(0),gg=vg(1),bg=vg(2),wg=vg(3),xg=vg(4),Og=vg(5),Sg=vg(6);function jg(e){return Qm((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/ig))}mg.range,gg.range,bg.range,wg.range,xg.range,Og.range,Sg.range;const Pg=jg(0),Mg=jg(1),Ag=jg(2),kg=jg(3),Eg=jg(4),Cg=jg(5),_g=jg(6);Pg.range,Mg.range,Ag.range,kg.range,Eg.range,Cg.range,_g.range;const Tg=Qm((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));Tg.range;const Dg=Qm((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));Dg.range;const Ig=Qm((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()));Ig.every=e=>isFinite(e=Math.floor(e))&&e>0?Qm((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)})):null,Ig.range;const Ng=Qm((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()));function Rg(e,t,r,n,o,i){const a=[[lg,1,tg],[lg,5,5e3],[lg,15,15e3],[lg,30,3e4],[i,1,rg],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,ng],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,og],[n,2,1728e5],[r,1,ig],[t,1,ag],[t,3,7776e6],[e,1,cg]];function c(t,r,n){const o=Math.abs(r-t)/n,i=zy((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(Qy(t/cg,r/cg,n));if(0===i)return eg.every(Math.max(Qy(t,r,n),1));const[c,l]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return c.every(l)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const o=r&&"function"==typeof r.range?r:c(e,t,r),i=o?o.range(e,+t+1):[];return n?i.reverse():i},c]}Ng.every=e=>isFinite(e=Math.floor(e))&&e>0?Qm((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)})):null,Ng.range;const[Lg,Bg]=Rg(Ng,Dg,Pg,yg,pg,sg),[zg,$g]=Rg(Ig,Tg,mg,dg,fg,ug);function Hg(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 Fg(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 Vg(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var Ug,Zg,Wg,qg={"-":"",_:" ",0:"0"},Yg=/^\s*\d+/,Xg=/^%/,Gg=/[\\^$*+?|[\]().{}]/g;function Kg(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(t)+o:o)}function Jg(e){return e.replace(Gg,"\\$&")}function Qg(e){return new RegExp("^(?:"+e.map(Jg).join("|")+")","i")}function eb(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function tb(e,t,r){var n=Yg.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function rb(e,t,r){var n=Yg.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function nb(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function ob(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function ib(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function ab(e,t,r){var n=Yg.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function cb(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function lb(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 ub(e,t,r){var n=Yg.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function sb(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function fb(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function pb(e,t,r){var n=Yg.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function db(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function hb(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function yb(e,t,r){var n=Yg.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function vb(e,t,r){var n=Yg.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function mb(e,t,r){var n=Yg.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function gb(e,t,r){var n=Xg.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function bb(e,t,r){var n=Yg.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function wb(e,t,r){var n=Yg.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function xb(e,t){return Kg(e.getDate(),t,2)}function Ob(e,t){return Kg(e.getHours(),t,2)}function Sb(e,t){return Kg(e.getHours()%12||12,t,2)}function jb(e,t){return Kg(1+dg.count(Ig(e),e),t,3)}function Pb(e,t){return Kg(e.getMilliseconds(),t,3)}function Mb(e,t){return Pb(e,t)+"000"}function Ab(e,t){return Kg(e.getMonth()+1,t,2)}function kb(e,t){return Kg(e.getMinutes(),t,2)}function Eb(e,t){return Kg(e.getSeconds(),t,2)}function Cb(e){var t=e.getDay();return 0===t?7:t}function _b(e,t){return Kg(mg.count(Ig(e)-1,e),t,2)}function Tb(e){var t=e.getDay();return t>=4||0===t?xg(e):xg.ceil(e)}function Db(e,t){return e=Tb(e),Kg(xg.count(Ig(e),e)+(4===Ig(e).getDay()),t,2)}function Ib(e){return e.getDay()}function Nb(e,t){return Kg(gg.count(Ig(e)-1,e),t,2)}function Rb(e,t){return Kg(e.getFullYear()%100,t,2)}function Lb(e,t){return Kg((e=Tb(e)).getFullYear()%100,t,2)}function Bb(e,t){return Kg(e.getFullYear()%1e4,t,4)}function zb(e,t){var r=e.getDay();return Kg((e=r>=4||0===r?xg(e):xg.ceil(e)).getFullYear()%1e4,t,4)}function $b(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Kg(t/60|0,"0",2)+Kg(t%60,"0",2)}function Hb(e,t){return Kg(e.getUTCDate(),t,2)}function Fb(e,t){return Kg(e.getUTCHours(),t,2)}function Vb(e,t){return Kg(e.getUTCHours()%12||12,t,2)}function Ub(e,t){return Kg(1+hg.count(Ng(e),e),t,3)}function Zb(e,t){return Kg(e.getUTCMilliseconds(),t,3)}function Wb(e,t){return Zb(e,t)+"000"}function qb(e,t){return Kg(e.getUTCMonth()+1,t,2)}function Yb(e,t){return Kg(e.getUTCMinutes(),t,2)}function Xb(e,t){return Kg(e.getUTCSeconds(),t,2)}function Gb(e){var t=e.getUTCDay();return 0===t?7:t}function Kb(e,t){return Kg(Pg.count(Ng(e)-1,e),t,2)}function Jb(e){var t=e.getUTCDay();return t>=4||0===t?Eg(e):Eg.ceil(e)}function Qb(e,t){return e=Jb(e),Kg(Eg.count(Ng(e),e)+(4===Ng(e).getUTCDay()),t,2)}function ew(e){return e.getUTCDay()}function tw(e,t){return Kg(Mg.count(Ng(e)-1,e),t,2)}function rw(e,t){return Kg(e.getUTCFullYear()%100,t,2)}function nw(e,t){return Kg((e=Jb(e)).getUTCFullYear()%100,t,2)}function ow(e,t){return Kg(e.getUTCFullYear()%1e4,t,4)}function iw(e,t){var r=e.getUTCDay();return Kg((e=r>=4||0===r?Eg(e):Eg.ceil(e)).getUTCFullYear()%1e4,t,4)}function aw(){return"+0000"}function cw(){return"%"}function lw(e){return+e}function uw(e){return Math.floor(+e/1e3)}function sw(e){return new Date(e)}function fw(e){return e instanceof Date?+e:+new Date(+e)}function pw(e,t,r,n,o,i,a,c,l,u){var s=ym(),f=s.invert,p=s.domain,d=u(".%L"),h=u(":%S"),y=u("%I:%M"),v=u("%I %p"),m=u("%a %d"),g=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(l(e)<e?d:c(e)<e?h:a(e)<e?y:i(e)<e?v:n(e)<e?o(e)<e?m:g:r(e)<e?b:w)(e)}return s.invert=function(e){return new Date(f(e))},s.domain=function(e){return arguments.length?p(Array.from(e,fw)):p().map(sw)},s.ticks=function(t){var r=p();return e(r[0],r[r.length-1],null==t?10:t)},s.tickFormat=function(e,t){return null==t?x:u(t)},s.nice=function(e){var r=p();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?p(Im(r,e)):s},s.copy=function(){return dm(s,pw(e,t,r,n,o,i,a,c,l,u))},s}function dw(){var e,t,r,n,o,i=0,a=1,c=um,l=!1;function u(t){return null==t||isNaN(t=+t)?o:c(0===r?.5:(t=(n(t)-e)*r,l?Math.max(0,Math.min(1,t)):t))}function s(e){return function(t){var r,n;return arguments.length?([r,n]=t,c=e(r,n),u):[c(0),c(1)]}}return u.domain=function(o){return arguments.length?([i,a]=o,e=n(i=+i),t=n(a=+a),r=e===t?0:1/(t-e),u):[i,a]},u.clamp=function(e){return arguments.length?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(c=e,u):c},u.range=s(om),u.rangeRound=s(im),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return n=o,e=o(i),t=o(a),r=e===t?0:1/(t-e),u}}function hw(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function yw(){var e=Ym(dw());return e.copy=function(){return hw(e,yw()).exponent(e.exponent())},av.apply(e,arguments)}function vw(){var e,t,r,n,o,i,a,c=0,l=.5,u=1,s=1,f=um,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(s*e<s*t?n:o),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var r,n,o;return arguments.length?([r,n,o]=t,f=am(e,[r,n,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([c,l,u]=a,e=i(c=+c),t=i(l=+l),r=i(u=+u),n=e===t?0:.5/(t-e),o=t===r?0:.5/(r-t),s=t<e?-1:1,d):[c,l,u]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(om),d.rangeRound=h(im),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return i=a,e=a(c),t=a(l),r=a(u),n=e===t?0:.5/(t-e),o=t===r?0:.5/(r-t),s=t<e?-1:1,d}}function mw(){var e=Ym(vw());return e.copy=function(){return hw(e,mw()).exponent(e.exponent())},av.apply(e,arguments)}!function(e){Ug=function(e){var t=e.dateTime,r=e.date,n=e.time,o=e.periods,i=e.days,a=e.shortDays,c=e.months,l=e.shortMonths,u=Qg(o),s=eb(o),f=Qg(i),p=eb(i),d=Qg(a),h=eb(a),y=Qg(c),v=eb(c),m=Qg(l),g=eb(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:xb,e:xb,f:Mb,g:Lb,G:zb,H:Ob,I:Sb,j:jb,L:Pb,m:Ab,M:kb,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:lw,s:uw,S:Eb,u:Cb,U:_b,V:Db,w:Ib,W:Nb,x:null,X:null,y:Rb,Y:Bb,Z:$b,"%":cw},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:Hb,e:Hb,f:Wb,g:nw,G:iw,H:Fb,I:Vb,j:Ub,L:Zb,m:qb,M:Yb,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:lw,s:uw,S:Xb,u:Gb,U:Kb,V:Qb,w:ew,W:tw,x:null,X:null,y:rw,Y:ow,Z:aw,"%":cw},x={a:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=f.exec(t.slice(r));return n?(e.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=y.exec(t.slice(r));return n?(e.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return j(e,t,r,n)},d:fb,e:fb,f:mb,g:cb,G:ab,H:db,I:db,j:pb,L:vb,m:sb,M:hb,p:function(e,t,r){var n=u.exec(t.slice(r));return n?(e.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:ub,Q:bb,s:wb,S:yb,u:rb,U:nb,V:ob,w:tb,W:ib,x:function(e,t,n){return j(e,r,t,n)},X:function(e,t,r){return j(e,n,t,r)},y:cb,Y:ab,Z:lb,"%":gb};function O(e,t){return function(r){var n,o,i,a=[],c=-1,l=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++c<u;)37===e.charCodeAt(c)&&(a.push(e.slice(l,c)),null!=(o=qg[n=e.charAt(++c)])?n=e.charAt(++c):o="e"===n?" ":"0",(i=t[n])&&(n=i(r,o)),a.push(n),l=c+1);return a.push(e.slice(l,c)),a.join("")}}function S(e,t){return function(r){var n,o,i=Vg(1900,void 0,1);if(j(i,e,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=Fg(Vg(i.y,0,1))).getUTCDay(),n=o>4||0===o?Mg.ceil(n):Mg(n),n=hg.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=Hg(Vg(i.y,0,1))).getDay(),n=o>4||0===o?gg.ceil(n):gg(n),n=dg.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Fg(Vg(i.y,0,1)).getUTCDay():Hg(Vg(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Fg(i)):Hg(i)}}function j(e,t,r,n){for(var o,i,a=0,c=t.length,l=r.length;a<c;){if(n>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in qg?t.charAt(a++):o])||(n=i(e,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(t,b),w.x=O(r,w),w.X=O(n,w),w.c=O(t,w),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}(e),Zg=Ug.format,Ug.parse,Wg=Ug.utcFormat,Ug.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var gw,bw,ww,xw,Ow,Sw,jw=Object.freeze({__proto__:null,scaleBand:uv,scaleDiverging:function e(){var t=Tm(vw()(um));return t.copy=function(){return hw(t,e())},av.apply(t,arguments)},scaleDivergingLog:function e(){var t=Hm(vw()).domain([.1,1,10]);return t.copy=function(){return hw(t,e()).base(t.base())},av.apply(t,arguments)},scaleDivergingPow:mw,scaleDivergingSqrt:function(){return mw.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=Um(vw());return t.copy=function(){return hw(t,e()).constant(t.constant())},av.apply(t,arguments)},scaleIdentity:function e(t){var r;function n(e){return null==e||isNaN(e=+e)?r:e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,cm),n):t.slice()},n.unknown=function(e){return arguments.length?(r=e,n):r},n.copy=function(){return e(t).unknown(r)},t=arguments.length?Array.from(t,cm):[0,1],Tm(n)},scaleImplicit:cv,scaleLinear:Dm,scaleLog:function e(){const t=Hm(hm()).domain([1,10]);return t.copy=()=>dm(t,e()).base(t.base()),iv.apply(t,arguments),t},scaleOrdinal:lv,scalePoint:fv,scalePow:Xm,scaleQuantile:function e(){var t,r=[],n=[],o=[];function i(){var e=0,t=Math.max(1,n.length);for(o=new Array(t-1);++e<t;)o[e-1]=ov(r,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:n[Fy(o,e)]}return a.invertExtent=function(e){var t=n.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:r[0],t<o.length?o[t]:r[r.length-1]]},a.domain=function(e){if(!arguments.length)return r.slice();r=[];for(let t of e)null==t||isNaN(t=+t)||r.push(t);return r.sort(Ly),i()},a.range=function(e){return arguments.length?(n=Array.from(e),i()):n.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(r).range(n).unknown(t)},iv.apply(a,arguments)},scaleQuantize:function e(){var t,r=0,n=1,o=1,i=[.5],a=[0,1];function c(e){return null!=e&&e<=e?a[Fy(i,e,0,o)]:t}function l(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*n-(e-o)*r)/(o+1);return c}return c.domain=function(e){return arguments.length?([r,n]=e,r=+r,n=+n,l()):[r,n]},c.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,l()):a.slice()},c.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[r,i[0]]:t>=o?[i[o-1],n]:[i[t-1],i[t]]},c.unknown=function(e){return arguments.length?(t=e,c):c},c.thresholds=function(){return i.slice()},c.copy=function(){return e().domain([r,n]).range(a).unknown(t)},iv.apply(Tm(c),arguments)},scaleRadial:function e(){var t,r=ym(),n=[0,1],o=!1;function i(e){var n=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(r(e));return isNaN(n)?t:o?Math.round(n):n}return i.invert=function(e){return r.invert(Gm(e))},i.domain=function(e){return arguments.length?(r.domain(e),i):r.domain()},i.range=function(e){return arguments.length?(r.range((n=Array.from(e,cm)).map(Gm)),i):n.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(r.clamp(e),i):r.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(r.domain(),n).round(o).clamp(r.clamp()).unknown(t)},iv.apply(i,arguments),Tm(i)},scaleSequential:function e(){var t=Tm(dw()(um));return t.copy=function(){return hw(t,e())},av.apply(t,arguments)},scaleSequentialLog:function e(){var t=Hm(dw()).domain([1,10]);return t.copy=function(){return hw(t,e()).base(t.base())},av.apply(t,arguments)},scaleSequentialPow:yw,scaleSequentialQuantile:function e(){var t=[],r=um;function n(e){if(null!=e&&!isNaN(e=+e))return r((Fy(t,e,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(Ly),n},n.interpolator=function(e){return arguments.length?(r=e,n):r},n.range=function(){return t.map(((e,n)=>r(n/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((r,n)=>function(e,t,r){if((n=(e=Float64Array.from(function*(e,t){for(let t of e)null!=t&&(t=+t)>=t&&(yield t)}(e))).length)&&!isNaN(t=+t)){if(t<=0||n<2)return tv(e);if(t>=1)return ev(e);var n,o=(n-1)*t,i=Math.floor(o),a=ev(rv(e,i).subarray(0,i+1));return a+(tv(e.subarray(i+1))-a)*(o-i)}}(t,n/e)))},n.copy=function(){return e(r).domain(t)},av.apply(n,arguments)},scaleSequentialSqrt:function(){return yw.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=Um(dw());return t.copy=function(){return hw(t,e()).constant(t.constant())},av.apply(t,arguments)},scaleSqrt:function(){return Xm.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=Um(hm());return t.copy=function(){return dm(t,e()).constant(t.constant())},iv.apply(t,arguments)},scaleThreshold:function e(){var t,r=[.5],n=[0,1],o=1;function i(e){return null!=e&&e<=e?n[Fy(r,e,0,o)]:t}return i.domain=function(e){return arguments.length?(r=Array.from(e),o=Math.min(r.length,n.length-1),i):r.slice()},i.range=function(e){return arguments.length?(n=Array.from(e),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var t=n.indexOf(e);return[r[t-1],r[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(r).range(n).unknown(t)},iv.apply(i,arguments)},scaleTime:function(){return iv.apply(pw(zg,$g,Ig,Tg,mg,dg,fg,ug,lg,Zg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return iv.apply(pw(Lg,Bg,Ng,Dg,Pg,hg,pg,sg,lg,Wg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:_m});function Pw(){if(bw)return gw;bw=1;var e=Pi();return gw=function(t,r,n){for(var o=-1,i=t.length;++o<i;){var a=t[o],c=r(a);if(null!=c&&(void 0===l?c==c&&!e(c):n(c,l)))var l=c,u=a}return u},gw}var Mw,Aw,kw,Ew,Cw=function(){if(Sw)return Ow;Sw=1;var e=Pw(),t=xw?ww:(xw=1,ww=function(e,t){return e>t}),r=vp();return Ow=function(n){return n&&n.length?e(n,r,t):void 0},Ow}(),_w=tr(Cw);var Tw,Dw,Iw,Nw,Rw=function(){if(Ew)return kw;Ew=1;var e=Pw(),t=Aw?Mw:(Aw=1,Mw=function(e,t){return e<t}),r=vp();return kw=function(n){return n&&n.length?e(n,r,t):void 0},kw}(),Lw=tr(Rw);var Bw,zw,$w=function(){if(Nw)return Iw;Nw=1;var e=Cd(),t=function(){if(Dw)return Tw;Dw=1;var e=Fi(),t=gp(),r=Id(),n=bi();return Tw=function(o,i){return(n(o)?e:r)(o,t(i,3))}}();return Iw=function(r,n){return e(t(r,n),1)}}(),Hw=tr($w);var Fw,Vw=tr(function(){if(zw)return Bw;zw=1;var e=fp();return Bw=function(t,r){return e(t,r)}}()),Uw=1e9,Zw=!0,Ww="[DecimalError] ",qw=Ww+"Invalid argument: ",Yw=Ww+"Exponent out of range: ",Xw=Math.floor,Gw=Math.pow,Kw=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Jw=1e7,Qw=7,ex=9007199254740991,tx=Xw(ex/Qw),rx={};function nx(e,t){var r,n,o,i,a,c,l,u,s=e.constructor,f=s.precision;if(!e.s||!t.s)return t.s||(t=new s(e)),Zw?dx(t,f):t;if(l=e.d,u=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o){for(i<0?(n=l,i=-i,c=u.length):(n=u,o=a,c=l.length),i>(c=(a=Math.ceil(f/Qw))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=l.length)-(i=u.length)<0&&(i=c,n=u,u=l,l=n),r=0;i;)r=(l[--i]=l[i]+u[i]+r)/Jw|0,l[i]%=Jw;for(r&&(l.unshift(r),++o),c=l.length;0==l[--c];)l.pop();return t.d=l,t.e=o,Zw?dx(t,f):t}function ox(e,t,r){if(e!==~~e||e<t||e>r)throw Error(qw+e)}function ix(e){var t,r,n,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)n=e[t]+"",(r=Qw-n.length)&&(i+=sx(r)),i+=n;a=e[t],(r=Qw-(n=a+"").length)&&(i+=sx(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}rx.absoluteValue=rx.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},rx.comparedTo=rx.cmp=function(e){var t,r,n,o,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(t=0,r=(n=i.d.length)<(o=e.d.length)?n:o;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},rx.decimalPlaces=rx.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Qw;if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},rx.dividedBy=rx.div=function(e){return ax(this,new this.constructor(e))},rx.dividedToIntegerBy=rx.idiv=function(e){var t=this.constructor;return dx(ax(this,new t(e),0,1),t.precision)},rx.equals=rx.eq=function(e){return!this.cmp(e)},rx.exponent=function(){return lx(this)},rx.greaterThan=rx.gt=function(e){return this.cmp(e)>0},rx.greaterThanOrEqualTo=rx.gte=function(e){return this.cmp(e)>=0},rx.isInteger=rx.isint=function(){return this.e>this.d.length-2},rx.isNegative=rx.isneg=function(){return this.s<0},rx.isPositive=rx.ispos=function(){return this.s>0},rx.isZero=function(){return 0===this.s},rx.lessThan=rx.lt=function(e){return this.cmp(e)<0},rx.lessThanOrEqualTo=rx.lte=function(e){return this.cmp(e)<1},rx.logarithm=rx.log=function(e){var t,r=this,n=r.constructor,o=n.precision,i=o+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(Fw))throw Error(Ww+"NaN");if(r.s<1)throw Error(Ww+(r.s?"NaN":"-Infinity"));return r.eq(Fw)?new n(0):(Zw=!1,t=ax(fx(r,i),fx(e,i),i),Zw=!0,dx(t,o))},rx.minus=rx.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?hx(t,e):nx(t,(e.s=-e.s,e))},rx.modulo=rx.mod=function(e){var t,r=this,n=r.constructor,o=n.precision;if(!(e=new n(e)).s)throw Error(Ww+"NaN");return r.s?(Zw=!1,t=ax(r,e,0,1).times(e),Zw=!0,r.minus(t)):dx(new n(r),o)},rx.naturalExponential=rx.exp=function(){return cx(this)},rx.naturalLogarithm=rx.ln=function(){return fx(this)},rx.negated=rx.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},rx.plus=rx.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nx(t,e):hx(t,(e.s=-e.s,e))},rx.precision=rx.sd=function(e){var t,r,n,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(qw+e);if(t=lx(o)+1,r=(n=o.d.length-1)*Qw+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},rx.squareRoot=rx.sqrt=function(){var e,t,r,n,o,i,a,c=this,l=c.constructor;if(c.s<1){if(!c.s)return new l(0);throw Error(Ww+"NaN")}for(e=lx(c),Zw=!1,0==(o=Math.sqrt(+c))||o==1/0?(((t=ix(c.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Xw((e+1)/2)-(e<0||e%2),n=new l(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new l(o.toString()),o=a=(r=l.precision)+3;;)if(n=(i=n).plus(ax(c,i,a+2)).times(.5),ix(i.d).slice(0,a)===(t=ix(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(dx(i,r+1,0),i.times(i).eq(c)){n=i;break}}else if("9999"!=t)break;a+=4}return Zw=!0,dx(n,r)},rx.times=rx.mul=function(e){var t,r,n,o,i,a,c,l,u,s=this,f=s.constructor,p=s.d,d=(e=new f(e)).d;if(!s.s||!e.s)return new f(0);for(e.s*=s.s,r=s.e+e.e,(l=p.length)<(u=d.length)&&(i=p,p=d,d=i,a=l,l=u,u=a),i=[],n=a=l+u;n--;)i.push(0);for(n=u;--n>=0;){for(t=0,o=l+n;o>n;)c=i[o]+d[n]*p[o-n-1]+t,i[o--]=c%Jw|0,t=c/Jw|0;i[o]=(i[o]+t)%Jw|0}for(;!i[--a];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,Zw?dx(e,f.precision):e},rx.toDecimalPlaces=rx.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(ox(e,0,Uw),void 0===t?t=n.rounding:ox(t,0,8),dx(r,e+lx(r)+1,t))},rx.toExponential=function(e,t){var r,n=this,o=n.constructor;return void 0===e?r=yx(n,!0):(ox(e,0,Uw),void 0===t?t=o.rounding:ox(t,0,8),r=yx(n=dx(new o(n),e+1,t),!0,e+1)),r},rx.toFixed=function(e,t){var r,n,o=this,i=o.constructor;return void 0===e?yx(o):(ox(e,0,Uw),void 0===t?t=i.rounding:ox(t,0,8),r=yx((n=dx(new i(o),e+lx(o)+1,t)).abs(),!1,e+lx(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},rx.toInteger=rx.toint=function(){var e=this,t=e.constructor;return dx(new t(e),lx(e)+1,t.rounding)},rx.toNumber=function(){return+this},rx.toPower=rx.pow=function(e){var t,r,n,o,i,a,c=this,l=c.constructor,u=+(e=new l(e));if(!e.s)return new l(Fw);if(!(c=new l(c)).s){if(e.s<1)throw Error(Ww+"Infinity");return c}if(c.eq(Fw))return c;if(n=l.precision,e.eq(Fw))return dx(c,n);if(a=(t=e.e)>=(r=e.d.length-1),i=c.s,a){if((r=u<0?-u:u)<=ex){for(o=new l(Fw),t=Math.ceil(n/Qw+4),Zw=!1;r%2&&vx((o=o.times(c)).d,t),0!==(r=Xw(r/2));)vx((c=c.times(c)).d,t);return Zw=!0,e.s<0?new l(Fw).div(o):dx(o,n)}}else if(i<0)throw Error(Ww+"NaN");return i=i<0&&1&e.d[Math.max(t,r)]?-1:1,c.s=1,Zw=!1,o=e.times(fx(c,n+12)),Zw=!0,(o=cx(o)).s=i,o},rx.toPrecision=function(e,t){var r,n,o=this,i=o.constructor;return void 0===e?n=yx(o,(r=lx(o))<=i.toExpNeg||r>=i.toExpPos):(ox(e,1,Uw),void 0===t?t=i.rounding:ox(t,0,8),n=yx(o=dx(new i(o),e,t),e<=(r=lx(o))||r<=i.toExpNeg,e)),n},rx.toSignificantDigits=rx.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(ox(e,1,Uw),void 0===t?t=r.rounding:ox(t,0,8)),dx(new r(this),e,t)},rx.toString=rx.valueOf=rx.val=rx.toJSON=rx[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=lx(e),r=e.constructor;return yx(e,t<=r.toExpNeg||t>=r.toExpPos)};var ax=function(){function e(e,t){var r,n=0,o=e.length;for(e=e.slice();o--;)r=e[o]*t+n,e[o]=r%Jw|0,n=r/Jw|0;return n&&e.unshift(n),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]<t[r]?1:0,e[r]=n*Jw+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,o,i,a){var c,l,u,s,f,p,d,h,y,v,m,g,b,w,x,O,S,j,P=n.constructor,M=n.s==o.s?1:-1,A=n.d,k=o.d;if(!n.s)return new P(n);if(!o.s)throw Error(Ww+"Division by zero");for(l=n.e-o.e,S=k.length,x=A.length,h=(d=new P(M)).d=[],u=0;k[u]==(A[u]||0);)++u;if(k[u]>(A[u]||0)&&--l,(g=null==i?i=P.precision:a?i+(lx(n)-lx(o))+1:i)<0)return new P(0);if(g=g/Qw+2|0,u=0,1==S)for(s=0,k=k[0],g++;(u<x||s)&&g--;u++)b=s*Jw+(A[u]||0),h[u]=b/k|0,s=b%k|0;else{for((s=Jw/(k[0]+1)|0)>1&&(k=e(k,s),A=e(A,s),S=k.length,x=A.length),w=S,v=(y=A.slice(0,S)).length;v<S;)y[v++]=0;(j=k.slice()).unshift(0),O=k[0],k[1]>=Jw/2&&++O;do{s=0,(c=t(k,y,S,v))<0?(m=y[0],S!=v&&(m=m*Jw+(y[1]||0)),(s=m/O|0)>1?(s>=Jw&&(s=Jw-1),1==(c=t(f=e(k,s),y,p=f.length,v=y.length))&&(s--,r(f,S<p?j:k,p))):(0==s&&(c=s=1),f=k.slice()),(p=f.length)<v&&f.unshift(0),r(y,f,v),-1==c&&(c=t(k,y,S,v=y.length))<1&&(s++,r(y,S<v?j:k,v)),v=y.length):0===c&&(s++,y=[0]),h[u++]=s,c&&y[0]?y[v++]=A[w]||0:(y=[A[w]],v=1)}while((w++<x||void 0!==y[0])&&g--)}return h[0]||h.shift(),d.e=l,dx(d,a?i+lx(d)+1:i)}}();function cx(e,t){var r,n,o,i,a,c=0,l=0,u=e.constructor,s=u.precision;if(lx(e)>16)throw Error(Yw+lx(e));if(!e.s)return new u(Fw);for(null==t?(Zw=!1,a=s):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),l+=5;for(a+=Math.log(Gw(2,l))/Math.LN10*2+5|0,r=n=o=new u(Fw),u.precision=a;;){if(n=dx(n.times(e),a),r=r.times(++c),ix((i=o.plus(ax(n,r,a))).d).slice(0,a)===ix(o.d).slice(0,a)){for(;l--;)o=dx(o.times(o),a);return u.precision=s,null==t?(Zw=!0,dx(o,s)):o}o=i}}function lx(e){for(var t=e.e*Qw,r=e.d[0];r>=10;r/=10)t++;return t}function ux(e,t,r){if(t>e.LN10.sd())throw Zw=!0,r&&(e.precision=r),Error(Ww+"LN10 precision limit exceeded");return dx(new e(e.LN10),t)}function sx(e){for(var t="";e--;)t+="0";return t}function fx(e,t){var r,n,o,i,a,c,l,u,s,f=1,p=e,d=p.d,h=p.constructor,y=h.precision;if(p.s<1)throw Error(Ww+(p.s?"NaN":"-Infinity"));if(p.eq(Fw))return new h(0);if(null==t?(Zw=!1,u=y):u=t,p.eq(10))return null==t&&(Zw=!0),ux(h,u);if(u+=10,h.precision=u,n=(r=ix(d)).charAt(0),i=lx(p),!(Math.abs(i)<15e14))return l=ux(h,u+2,y).times(i+""),p=fx(new h(n+"."+r.slice(1)),u-10).plus(l),h.precision=y,null==t?(Zw=!0,dx(p,y)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=ix((p=p.times(e)).d)).charAt(0),f++;for(i=lx(p),n>1?(p=new h("0."+r),i++):p=new h(n+"."+r.slice(1)),c=a=p=ax(p.minus(Fw),p.plus(Fw),u),s=dx(p.times(p),u),o=3;;){if(a=dx(a.times(s),u),ix((l=c.plus(ax(a,new h(o),u))).d).slice(0,u)===ix(c.d).slice(0,u))return c=c.times(2),0!==i&&(c=c.plus(ux(h,u+2,y).times(i+""))),c=ax(c,new h(f),u),h.precision=y,null==t?(Zw=!0,dx(c,y)):c;c=l,o+=2}}function px(e,t){var r,n,o;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;48===t.charCodeAt(n);)++n;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(n,o)){if(o-=n,r=r-n-1,e.e=Xw(r/Qw),e.d=[],n=(r+1)%Qw,r<0&&(n+=Qw),n<o){for(n&&e.d.push(+t.slice(0,n)),o-=Qw;n<o;)e.d.push(+t.slice(n,n+=Qw));t=t.slice(n),n=Qw-t.length}else n-=o;for(;n--;)t+="0";if(e.d.push(+t),Zw&&(e.e>tx||e.e<-tx))throw Error(Yw+r)}else e.s=0,e.e=0,e.d=[0];return e}function dx(e,t,r){var n,o,i,a,c,l,u,s,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((n=t-a)<0)n+=Qw,o=t,u=f[s=0];else{if((s=Math.ceil((n+1)/Qw))>=(i=f.length))return e;for(u=i=f[s],a=1;i>=10;i/=10)a++;o=(n%=Qw)-Qw+a}if(void 0!==r&&(c=u/(i=Gw(10,a-o-1))%10|0,l=t<0||void 0!==f[s+1]||u%i,l=r<4?(c||l)&&(0==r||r==(e.s<0?3:2)):c>5||5==c&&(4==r||l||6==r&&(n>0?o>0?u/Gw(10,a-o):0:f[s-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(i=lx(e),f.length=1,t=t-i-1,f[0]=Gw(10,(Qw-t%Qw)%Qw),e.e=Xw(-t/Qw)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==n?(f.length=s,i=1,s--):(f.length=s+1,i=Gw(10,Qw-n),f[s]=o>0?(u/Gw(10,a-o)%Gw(10,o)|0)*i:0),l)for(;;){if(0==s){(f[0]+=i)==Jw&&(f[0]=1,++e.e);break}if(f[s]+=i,f[s]!=Jw)break;f[s--]=0,i=1}for(n=f.length;0===f[--n];)f.pop();if(Zw&&(e.e>tx||e.e<-tx))throw Error(Yw+lx(e));return e}function hx(e,t){var r,n,o,i,a,c,l,u,s,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),Zw?dx(t,d):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),a=u-n){for((s=a<0)?(r=l,a=-a,c=f.length):(r=f,n=u,c=l.length),a>(o=Math.max(Math.ceil(d/Qw),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((s=(o=l.length)<(c=f.length))&&(c=o),o=0;o<c;o++)if(l[o]!=f[o]){s=l[o]<f[o];break}a=0}for(s&&(r=l,l=f,f=r,t.s=-t.s),c=l.length,o=f.length-c;o>0;--o)l[c++]=0;for(o=f.length;o>a;){if(l[--o]<f[o]){for(i=o;i&&0===l[--i];)l[i]=Jw-1;--l[i],l[o]+=Jw}l[o]-=f[o]}for(;0===l[--c];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(t.d=l,t.e=n,Zw?dx(t,d):t):new p(0)}function yx(e,t,r){var n,o=lx(e),i=ix(e.d),a=i.length;return t?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+sx(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+sx(-o-1)+i,r&&(n=r-a)>0&&(i+=sx(n))):o>=a?(i+=sx(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+sx(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=sx(n))),e.s<0?"-"+i:i}function vx(e,t){if(e.length>t)return e.length=t,!0}function mx(e){if(!e||"object"!=typeof e)throw Error(Ww+"Object expected");var t,r,n,o=["precision",1,Uw,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(n=e[r=o[t]])){if(!(Xw(n)===n&&n>=o[t+1]&&n<=o[t+2]))throw Error(qw+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(qw+r+": "+n);this[r]=new this(n)}return this}var gx=function e(t){var r,n,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(qw+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):px(t,e.toString())}if("string"!=typeof e)throw Error(qw+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!Kw.test(e))throw Error(qw+e);px(t,e)}if(i.prototype=rx,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=mx,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)t.hasOwnProperty(n=o[r++])||(t[n]=this[n]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Fw=new gx(1);var bx=gx;function wx(e){return function(e){if(Array.isArray(e))return xx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return xx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xx(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ox=function(e){return e},Sx={"@@functional/placeholder":!0},jx=function(e){return e===Sx},Px=function(e){return function t(){return 0===arguments.length||1===arguments.length&&jx(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},Mx=function e(t,r){return 1===t?r:Px((function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==Sx})).length;return a>=t?r.apply(void 0,o):e(t-a,Px((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=o.map((function(e){return jx(e)?t.shift():e}));return r.apply(void 0,wx(i).concat(t))})))}))},Ax=function(e){return Mx(e.length,e)},kx=function(e,t){for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},Ex=Ax((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),Cx=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.length)return Ox;var n=t.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},_x=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},Tx=function(e){var t=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return t&&o.every((function(e,r){return e===t[r]}))?r:(t=o,r=e.apply(void 0,o))}};var Dx=Ax((function(e,t,r){var n=+e;return n+r*(+t-n)})),Ix=Ax((function(e,t,r){var n=t-+e;return(r-e)/(n=n||1/0)})),Nx=Ax((function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))})),Rx={rangeStep:function(e,t,r){for(var n=new bx(e),o=0,i=[];n.lt(t)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new bx(e).abs().log(10).toNumber())+1},interpolateNumber:Dx,uninterpolateNumber:Ix,uninterpolateTruncation:Nx};function Lx(e){return function(e){if(Array.isArray(e))return $x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||zx(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||zx(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zx(e,t){if(e){if("string"==typeof e)return $x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$x(e,t):void 0}}function $x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Hx(e){var t=Bx(e,2),r=t[0],n=t[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function Fx(e,t,r){if(e.lte(0))return new bx(0);var n=Rx.getDigitCount(e.toNumber()),o=new bx(10).pow(n),i=e.div(o),a=1!==n?.05:.1,c=new bx(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return t?c:new bx(Math.ceil(c))}function Vx(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new bx(0),tickMin:new bx(0),tickMax:new bx(0)};var i,a=Fx(new bx(t).sub(e).div(r-1),n,o);i=e<=0&&t>=0?new bx(0):(i=new bx(e).add(t).div(2)).sub(new bx(i).mod(a));var c=Math.ceil(i.sub(e).div(a).toNumber()),l=Math.ceil(new bx(t).sub(i).div(a).toNumber()),u=c+l+1;return u>r?Vx(e,t,r,n,o+1):(u<r&&(l=t>0?l+(r-u):l,c=t>0?c:c+(r-u)),{step:a,tickMin:i.sub(new bx(c).mul(a)),tickMax:i.add(new bx(l).mul(a))})}var Ux=Tx((function(e){var t=Bx(e,2),r=t[0],n=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=Bx(Hx([r,n]),2),l=c[0],u=c[1];if(l===-1/0||u===1/0){var s=u===1/0?[l].concat(Lx(kx(0,o-1).map((function(){return 1/0})))):[].concat(Lx(kx(0,o-1).map((function(){return-1/0}))),[u]);return r>n?_x(s):s}if(l===u)return function(e,t,r){var n=1,o=new bx(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new bx(10).pow(Rx.getDigitCount(e)-1),o=new bx(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new bx(Math.floor(e)))}else 0===e?o=new bx(Math.floor((t-1)/2)):r||(o=new bx(Math.floor(e)));var a=Math.floor((t-1)/2);return Cx(Ex((function(e){return o.add(new bx(e-a).mul(n)).toNumber()})),kx)(0,t)}(l,o,i);var f=Vx(l,u,a,i),p=f.step,d=f.tickMin,h=f.tickMax,y=Rx.rangeStep(d,h.add(new bx(.1).mul(p)),p);return r>n?_x(y):y})),Zx=Tx((function(e,t){var r=Bx(e,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Bx(Hx([n,o]),2),c=a[0],l=a[1];if(c===-1/0||l===1/0)return[n,o];if(c===l)return[c];var u=Math.max(t,2),s=Fx(new bx(l).sub(c).div(u-1),i,0),f=[].concat(Lx(Rx.rangeStep(new bx(c),new bx(l).sub(new bx(.99).mul(s)),s)),[l]);return n>o?_x(f):f})),Wx="production"===process.env.NODE_ENV,qx="Invariant failed";function Yx(e,t){if(Wx)throw new Error(qx);var r="function"==typeof t?t():t,n=r?"".concat(qx,": ").concat(r):qx;throw new Error(n)}var Xx=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Gx(e){return Gx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gx(e)}function Kx(){return Kx=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},Kx.apply(this,arguments)}function Jx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qx(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eO(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function tO(e,t,r){return t&&function(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,cO(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rO(e,t,r){return t=oO(t),function(e,t){if(t&&("object"===Gx(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nO()?Reflect.construct(t,r||[],oO(e).constructor):t.apply(e,r))}function nO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nO=function(){return!!e})()}function oO(e){return oO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oO(e)}function iO(e,t){return iO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iO(e,t)}function aO(e,t,r){return(t=cO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cO(e){var t=function(e,t){if("object"!=Gx(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Gx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Gx(t)?t:t+""}var lO=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),rO(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&iO(e,t)}(t,J.Component),tO(t,[{key:"render",value:function(){var e=this.props,t=e.offset,r=e.layout,n=e.width,o=e.dataKey,i=e.data,a=e.dataPointFormatter,c=e.xAxis,l=e.yAxis,u=eO(e,Xx),s=Ka(u,!1);"x"===this.props.direction&&"number"!==c.type&&("production"!==process.env.NODE_ENV?Yx(0,'ErrorBar requires Axis type property to be "number".'):Yx());var f=i.map((function(e){var i=a(e,o),u=i.x,f=i.y,p=i.value,d=i.errorVal;if(!d)return null;var h,y,v=[];if(Array.isArray(d)){var m=Jx(d,2);h=m[0],y=m[1]}else h=y=d;if("vertical"===r){var g=c.scale,b=f+t,w=b+n,x=b-n,O=g(p-h),S=g(p+y);v.push({x1:S,y1:w,x2:S,y2:x}),v.push({x1:O,y1:b,x2:S,y2:b}),v.push({x1:O,y1:w,x2:O,y2:x})}else if("horizontal"===r){var j=l.scale,P=u+t,M=P-n,A=P+n,k=j(p-h),E=j(p+y);v.push({x1:M,y1:E,x2:A,y2:E}),v.push({x1:P,y1:k,x2:P,y2:E}),v.push({x1:M,y1:k,x2:A,y2:k})}return J.createElement(jc,Kx({className:"recharts-errorBar",key:"bar-".concat(v.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},s),v.map((function(e){return J.createElement("line",Kx({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return J.createElement(jc,{className:"recharts-errorBars"},f)}}])}();function uO(e){return uO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uO(e)}function sO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sO(Object(r),!0).forEach((function(t){pO(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pO(e,t,r){return t=function(e){var t=function(e,t){if("object"!=uO(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=uO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uO(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}aO(lO,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),aO(lO,"displayName","ErrorBar");var dO=function(e){var t=e.children,r=e.formattedGraphicalItems,n=e.legendWidth,o=e.legendContent,i=qa(t,Ed);if(!i)return null;var a,c=Ed.defaultProps,l=void 0!==c?fO(fO({},c),i.props):{};return a=i.props&&i.props.payload?i.props&&i.props.payload:"children"===o?(r||[]).reduce((function(e,t){var r=t.item,n=t.props,o=n.sectors||n.data||[];return e.concat(o.map((function(e){return{type:i.props.iconType||r.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,r=t.type.defaultProps,n=void 0!==r?fO(fO({},r),t.props):{},o=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:o,type:l.iconType||a||"square",color:OO(t),value:i||o,payload:n}})),fO(fO(fO({},l),Ed.getWithHeight(i,n)),{},{payload:a,item:i})};function hO(e){return hO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hO(e)}function yO(e){return function(e){if(Array.isArray(e))return vO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return vO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vO(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vO(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mO(Object(r),!0).forEach((function(t){bO(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bO(e,t,r){return t=function(e){var t=function(e,t){if("object"!=hO(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=hO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hO(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wO(e,t,r){return Qi(e)||Qi(t)?r:Oa(t)?Gi(e,t,r):na(t)?t(e):r}function xO(e,t,r,n){var o=Hw(e,(function(e){return wO(e,t)}));if("number"===r){var i=o.filter((function(e){return xa(e)||parseFloat(e)}));return i.length?[Lw(i),_w(i)]:[1/0,-1/0]}return(n?o.filter((function(e){return!Qi(e)})):o).map((function(e){return Oa(e)||e instanceof Date?e:""}))}var OO=function(e){var t,r,n=e.type.displayName,o=null!==(t=e.type)&&void 0!==t&&t.defaultProps?gO(gO({},e.type.defaultProps),e.props):e.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},SO=function(e,t,r,n,o){var i=Wa(t.props.children,lO).filter((function(e){return function(e,t,r){return!!Qi(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===r?"xAxis"===t:"y"!==r||"yAxis"===t)}(n,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var n=wO(t,r);if(Qi(n))return e;var o=Array.isArray(n)?[Lw(n),_w(n)]:[n,n],i=a.reduce((function(e,r){var n=wO(t,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},jO=function(e,t,r,n,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===r&&i&&SO(e,t,i,n)||xO(e,i,r,o)}));if("number"===r)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var r=0,n=t.length;r<n;r++)a[t[r]]||(a[t[r]]=!0,e.push(t[r]));return e}),[])},PO=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},MO=function(e,t,r){if(!e)return null;var n=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,c="scaleBand"===e.realScaleType?n.bandwidth()/2:2,l=(t||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return l="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*ba(a[0]-a[1])*l:l,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:n(t)+l,value:e,offset:l}})).filter((function(e){return!ma(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:n(e)+l,value:e,index:t,offset:l}})):n.ticks&&!r?n.ticks(e.tickCount).map((function(e){return{coordinate:n(e)+l,value:e,offset:l}})):n.domain().map((function(e,t){return{coordinate:n(e)+l,value:o?o[e]:e,index:t,offset:l}}))},AO=new WeakMap,kO=function(e,t){if("function"!=typeof t)return e;AO.has(e)||AO.set(e,new WeakMap);var r=AO.get(e);if(r.has(t))return r.get(t);var n=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return r.set(t,n),n},EO=1e-4,CO={sign:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var o=0,i=0,a=0;a<t;++a){var c=ma(e[a][r][1])?e[a][r][0]:e[a][r][1];c>=0?(e[a][r][0]=o,e[a][r][1]=o+c,o=e[a][r][1]):(e[a][r][0]=i,e[a][r][1]=i+c,i=e[a][r][1])}},expand:function(e,t){if((n=e.length)>0){for(var r,n,o,i=0,a=e[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Tl(e,t)}},none:Tl,silhouette:function(e,t){if((r=e.length)>0){for(var r,n=0,o=e[t[0]],i=o.length;n<i;++n){for(var a=0,c=0;a<r;++a)c+=e[a][n][1]||0;o[n][1]+=o[n][0]=-c/2}Tl(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(n=(r=e[t[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var c=0,l=0,u=0;c<o;++c){for(var s=e[t[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,d=0;d<c;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}l+=f,u+=p*f}r[a-1][1]+=r[a-1][0]=i,l&&(i-=u/l)}r[a-1][1]+=r[a-1][0]=i,Tl(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var o=0,i=0;i<t;++i){var a=ma(e[i][r][1])?e[i][r][0]:e[i][r][1];a>=0?(e[i][r][0]=o,e[i][r][1]=o+a,o=e[i][r][1]):(e[i][r][0]=0,e[i][r][1]=0)}}},_O=function(e,t,r){var n=t.map((function(e){return e.props.dataKey})),o=CO[r],i=function(){var e=Tc([]),t=Dl,r=Tl,n=Il;function o(o){var i,a,c=Array.from(e.apply(this,arguments),Nl),l=c.length,u=-1;for(const e of o)for(i=0,++u;i<l;++i)(c[i][u]=[0,+n(e,c[i].key,u,o)]).data=e;for(i=0,a=Zc(t(c));i<l;++i)c[a[i]].index=i;return r(c,a),c}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:Tc(Array.from(t)),o):e},o.value=function(e){return arguments.length?(n="function"==typeof e?e:Tc(+e),o):n},o.order=function(e){return arguments.length?(t=null==e?Dl:"function"==typeof e?e:Tc(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(r=null==e?Tl:e,o):r},o}().keys(n).value((function(e,t){return+wO(e,t,0)})).order(Dl).offset(o);return i(e)};function TO(e){var t=e.axis,r=e.ticks,n=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Qi(o[t.dataKey])){var c=ka(r,"value",o[t.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var l=wO(o,Qi(a)?t.dataKey:a);return Qi(l)?null:t.scale(l)}var DO=function(e){var t=e.axis,r=e.ticks,n=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return r[a]?r[a].coordinate+n:null;var c=wO(i,t.dataKey,t.domain[a]);return Qi(c)?null:t.scale(c)-o/2+n},IO=function(e,t,r){return Object.keys(e).reduce((function(n,o){var i=e[o].stackedData.reduce((function(e,n){var o=n.slice(t,r+1).reduce((function(e,t){return[Lw(t.concat([e[0]]).filter(xa)),_w(t.concat([e[1]]).filter(xa))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},NO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,RO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,LO=function(e,t,r){if(na(e))return e(t,r);if(!Array.isArray(e))return t;var n=[];if(xa(e[0]))n[0]=r?e[0]:Math.min(e[0],t[0]);else if(NO.test(e[0])){var o=+NO.exec(e[0])[1];n[0]=t[0]-o}else na(e[0])?n[0]=e[0](t[0]):n[0]=t[0];if(xa(e[1]))n[1]=r?e[1]:Math.max(e[1],t[1]);else if(RO.test(e[1])){var i=+RO.exec(e[1])[1];n[1]=t[1]+i}else na(e[1])?n[1]=e[1](t[1]):n[1]=t[1];return n},BO=function(e,t,r){if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=Vd(t,(function(e){return e.coordinate})),i=1/0,a=1,c=o.length;a<c;a++){var l=o[a],u=o[a-1];i=Math.min((l.coordinate||0)-(u.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},zO=function(e,t,r){return e&&e.length?Vw(e,Gi(r,"type.defaultProps.domain"))?t:e:t},$O=function(e,t){var r=e.type.defaultProps?gO(gO({},e.type.defaultProps),e.props):e.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,l=r.chartType,u=r.hide;return gO(gO({},Ka(e,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:OO(e),value:wO(t,n),type:c,payload:t,chartType:l,hide:u})};function HO(e){return HO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HO(e)}function FO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function VO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?FO(Object(r),!0).forEach((function(t){UO(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function UO(e,t,r){return t=function(e){var t=function(e,t){if("object"!=HO(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=HO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==HO(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ZO=Math.PI/180,WO=function(e){return 180*e/Math.PI},qO=function(e,t,r,n){return{x:e+Math.cos(-ZO*n)*r,y:t+Math.sin(-ZO*n)*r}},YO=function(e,t){var r=e.x,n=e.y,o=t.cx,i=t.cy,a=function(e,t){var r=e.x,n=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var c=(r-o)/a,l=Math.acos(c);return n>i&&(l=2*Math.PI-l),{radius:a,angle:WO(l),angleInRadian:l}},XO=function(e,t){var r=t.startAngle,n=t.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return e+360*Math.min(o,i)},GO=function(e,t){var r=e.x,n=e.y,o=YO({x:r,y:n},t),i=o.radius,a=o.angle,c=t.innerRadius,l=t.outerRadius;if(i<c||i>l)return!1;if(0===i)return!0;var u,s=function(e){var t=e.startAngle,r=e.endAngle,n=Math.floor(t/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:t-360*i,endAngle:r-360*i}}(t),f=s.startAngle,p=s.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;u=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;u=d>=p&&d<=f}return u?VO(VO({},t),{},{radius:i,angle:XO(d,t)}):null};function KO(e){return KO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KO(e)}var JO=["offset"];function QO(e){return function(e){if(Array.isArray(e))return eS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return eS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eS(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tS(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function rS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rS(Object(r),!0).forEach((function(t){oS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rS(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oS(e,t,r){return t=function(e){var t=function(e,t){if("object"!=KO(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=KO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==KO(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iS(){return iS=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},iS.apply(this,arguments)}var aS=function(e){var t=e.value,r=e.formatter,n=Qi(e.children)?t:e.children;return na(r)?r(n):n},cS=function(e,t,r){var n,o,i=e.position,a=e.viewBox,c=e.offset,l=e.className,u=a,s=u.cx,f=u.cy,p=u.innerRadius,d=u.outerRadius,h=u.startAngle,y=u.endAngle,v=u.clockWise,m=(p+d)/2,g=function(e,t){return ba(t-e)*Math.min(Math.abs(t-e),360)}(h,y),b=g>=0?1:-1;"insideStart"===i?(n=h+b*c,o=v):"insideEnd"===i?(n=y-b*c,o=!v):"end"===i&&(n=y+b*c,o=v),o=g<=0?o:!o;var w=qO(s,f,m,n),x=qO(s,f,m,n+359*(o?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n A").concat(m,",").concat(m,",0,1,").concat(o?0:1,",\n ").concat(x.x,",").concat(x.y),S=Qi(e.id)?ja("recharts-radial-line-"):e.id;return J.createElement("text",iS({},r,{dominantBaseline:"central",className:xn("recharts-radial-bar-label",l)}),J.createElement("defs",null,J.createElement("path",{id:S,d:O})),J.createElement("textPath",{xlinkHref:"#".concat(S)},t))},lS=function(e){var t=e.viewBox,r=e.offset,n=e.position,o=t,i=o.cx,a=o.cy,c=o.innerRadius,l=o.outerRadius,u=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=qO(i,a,l+r,u),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=qO(i,a,(c+l)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},uS=function(e){var t=e.viewBox,r=e.parentViewBox,n=e.offset,o=e.position,i=t,a=i.x,c=i.y,l=i.width,u=i.height,s=u>=0?1:-1,f=s*n,p=s>0?"end":"start",d=s>0?"start":"end",h=l>=0?1:-1,y=h*n,v=h>0?"end":"start",m=h>0?"start":"end";if("top"===o)return nS(nS({},{x:a+l/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:l}:{});if("bottom"===o)return nS(nS({},{x:a+l/2,y:c+u+f,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(r.y+r.height-(c+u),0),width:l}:{});if("left"===o){var g={x:a-y,y:c+u/2,textAnchor:v,verticalAnchor:"middle"};return nS(nS({},g),r?{width:Math.max(g.x-r.x,0),height:u}:{})}if("right"===o){var b={x:a+l+y,y:c+u/2,textAnchor:m,verticalAnchor:"middle"};return nS(nS({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:u}:{})}var w=r?{width:l,height:u}:{};return"insideLeft"===o?nS({x:a+y,y:c+u/2,textAnchor:m,verticalAnchor:"middle"},w):"insideRight"===o?nS({x:a+l-y,y:c+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?nS({x:a+l/2,y:c+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?nS({x:a+l/2,y:c+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?nS({x:a+y,y:c+f,textAnchor:m,verticalAnchor:d},w):"insideTopRight"===o?nS({x:a+l-y,y:c+f,textAnchor:v,verticalAnchor:d},w):"insideBottomLeft"===o?nS({x:a+y,y:c+u-f,textAnchor:m,verticalAnchor:p},w):"insideBottomRight"===o?nS({x:a+l-y,y:c+u-f,textAnchor:v,verticalAnchor:p},w):oa(o)&&(xa(o.x)||wa(o.x))&&(xa(o.y)||wa(o.y))?nS({x:a+Pa(o.x,l),y:c+Pa(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):nS({x:a+l/2,y:c+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},sS=function(e){return"cx"in e&&xa(e.cx)};function fS(e){var t,r=e.offset,n=nS({offset:void 0===r?5:r},tS(e,JO)),o=n.viewBox,i=n.position,a=n.value,c=n.children,l=n.content,u=n.className,s=void 0===u?"":u,f=n.textBreakAll;if(!o||Qi(a)&&Qi(c)&&!Q(l)&&!na(l))return null;if(Q(l))return ue(l,n);if(na(l)){if(Q(t=se(l,n)))return t}else t=aS(n);var p=sS(o),d=Ka(n,!0);if(p&&("insideStart"===i||"insideEnd"===i||"end"===i))return cS(n,t,d);var h=p?lS(n):uS(n);return J.createElement(Ry,iS({className:xn("recharts-label",s)},d,h,{breakAll:f}),t)}fS.displayName="Label";var pS,dS,hS=function(e){var t=e.cx,r=e.cy,n=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,c=e.radius,l=e.innerRadius,u=e.outerRadius,s=e.x,f=e.y,p=e.top,d=e.left,h=e.width,y=e.height,v=e.clockWise,m=e.labelViewBox;if(m)return m;if(xa(h)&&xa(y)){if(xa(s)&&xa(f))return{x:s,y:f,width:h,height:y};if(xa(p)&&xa(d))return{x:p,y:d,width:h,height:y}}return xa(s)&&xa(f)?{x:s,y:f,width:0,height:0}:xa(t)&&xa(r)?{cx:t,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:l||0,outerRadius:u||c||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};fS.parseViewBox=hS,fS.renderCallByParent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var n=e.children,o=hS(e),i=Wa(n,fS).map((function(e,r){return ue(e,{viewBox:t||o,key:"label-".concat(r)})}));if(!r)return i;var a=function(e,t){return e?!0===e?J.createElement(fS,{key:"label-implicit",viewBox:t}):Oa(e)?J.createElement(fS,{key:"label-implicit",viewBox:t,value:e}):Q(e)?e.type===fS?ue(e,{key:"label-implicit",viewBox:t}):J.createElement(fS,{key:"label-implicit",content:e,viewBox:t}):na(e)?J.createElement(fS,{key:"label-implicit",content:e,viewBox:t}):oa(e)?J.createElement(fS,iS({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||o);return[a].concat(QO(i))};var yS=(dS||(dS=1,pS=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}),pS),vS=tr(yS);function mS(e){return mS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mS(e)}var gS=["valueAccessor"],bS=["data","dataKey","clockWise","id","textBreakAll"];function wS(e){return function(e){if(Array.isArray(e))return xS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return xS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xS(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function OS(){return OS=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},OS.apply(this,arguments)}function SS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?SS(Object(r),!0).forEach((function(t){PS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SS(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function PS(e,t,r){return t=function(e){var t=function(e,t){if("object"!=mS(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=mS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mS(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MS(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var AS=function(e){return Array.isArray(e.value)?vS(e.value):e.value};function kS(e){var t=e.valueAccessor,r=void 0===t?AS:t,n=MS(e,gS),o=n.data,i=n.dataKey,a=n.clockWise,c=n.id,l=n.textBreakAll,u=MS(n,bS);return o&&o.length?J.createElement(jc,{className:"recharts-label-list"},o.map((function(e,t){var n=Qi(i)?r(e,t):wO(e&&e.payload,i),o=Qi(c)?{}:{id:"".concat(c,"-").concat(t)};return J.createElement(fS,OS({},Ka(e,!0),u,o,{parentViewBox:e.parentViewBox,value:n,textBreakAll:l,viewBox:fS.parseViewBox(Qi(a)?e:jS(jS({},e),{},{clockWise:a})),key:"label-".concat(t),index:t}))}))):null}function ES(e){return ES="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ES(e)}function CS(){return CS=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},CS.apply(this,arguments)}function _S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function TS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_S(Object(r),!0).forEach((function(t){DS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function DS(e,t,r){return t=function(e){var t=function(e,t){if("object"!=ES(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ES(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ES(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}kS.displayName="LabelList",kS.renderCallByParent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var n=Wa(e.children,kS).map((function(e,r){return ue(e,{data:t,key:"labelList-".concat(r)})}));return r?[function(e,t){return e?!0===e?J.createElement(kS,{key:"labelList-implicit",data:t}):J.isValidElement(e)||na(e)?J.createElement(kS,{key:"labelList-implicit",data:t,content:e}):oa(e)?J.createElement(kS,OS({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t)].concat(wS(n)):n};var IS=function(e){var t=e.cx,r=e.cy,n=e.radius,o=e.angle,i=e.sign,a=e.isExternal,c=e.cornerRadius,l=e.cornerIsExternal,u=c*(a?1:-1)+n,s=Math.asin(c/u)/ZO,f=l?o:o+i*s,p=l?o-i*s:o;return{center:qO(t,r,u,f),circleTangency:qO(t,r,n,f),lineTangency:qO(t,r,u*Math.cos(s*ZO),p),theta:s}},NS=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return ba(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),c=i+a,l=qO(t,r,o,i),u=qO(t,r,o,c),s="M ".concat(l.x,",").concat(l.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n ").concat(u.x,",").concat(u.y,"\n ");if(n>0){var f=qO(t,r,n,i),p=qO(t,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(t,",").concat(r," Z");return s},RS={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},LS=function(e){var t=TS(TS({},RS),e),r=t.cx,n=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,c=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,s=t.endAngle,f=t.className;if(i<o||u===s)return null;var p,d=xn("recharts-sector",f),h=i-o,y=Pa(a,h,0,!0);return p=y>0&&Math.abs(u-s)<360?function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,c=e.cornerIsExternal,l=e.startAngle,u=e.endAngle,s=ba(u-l),f=IS({cx:t,cy:r,radius:o,angle:l,sign:s,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,d=f.lineTangency,h=f.theta,y=IS({cx:t,cy:r,radius:o,angle:u,sign:-s,cornerRadius:i,cornerIsExternal:c}),v=y.circleTangency,m=y.lineTangency,g=y.theta,b=c?Math.abs(l-u):Math.abs(l-u)-h-g;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):NS({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:u});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var x=IS({cx:t,cy:r,radius:n,angle:l,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),O=x.circleTangency,S=x.lineTangency,j=x.theta,P=IS({cx:t,cy:r,radius:n,angle:u,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),M=P.circleTangency,A=P.lineTangency,k=P.theta,E=c?Math.abs(l-u):Math.abs(l-u)-j-k;if(E<0&&0===i)return"".concat(w,"L").concat(t,",").concat(r,"Z");w+="L".concat(A.x,",").concat(A.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(M.x,",").concat(M.y,"\n A").concat(n,",").concat(n,",0,").concat(+(E>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(t,",").concat(r,"Z");return w}({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(y,h/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:u,endAngle:s}):NS({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:u,endAngle:s}),J.createElement("path",CS({},Ka(t,!0),{className:d,d:p,role:"img"}))};function BS(e){return BS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BS(e)}function zS(){return zS=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},zS.apply(this,arguments)}function $S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function HS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$S(Object(r),!0).forEach((function(t){FS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function FS(e,t,r){return t=function(e){var t=function(e,t){if("object"!=BS(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=BS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BS(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var VS,US={curveBasisClosed:function(e){return new bl(e)},curveBasisOpen:function(e){return new wl(e)},curveBasis:function(e){return new gl(e)},curveBumpX:function(e){return new Jc(e,!0)},curveBumpY:function(e){return new Jc(e,!1)},curveLinearClosed:function(e){return new xl(e)},curveLinear:qc,curveMonotoneX:function(e){return new Ml(e)},curveMonotoneY:function(e){return new Al(e)},curveNatural:function(e){return new El(e)},curveStep:function(e){return new _l(e,.5)},curveStepAfter:function(e){return new _l(e,1)},curveStepBefore:function(e){return new _l(e,0)}},ZS=function(e){return e.x===+e.x&&e.y===+e.y},WS=function(e){return e.x},qS=function(e){return e.y},YS=function(e){var t,r=e.type,n=void 0===r?"linear":r,o=e.points,i=void 0===o?[]:o,a=e.baseLine,c=e.layout,l=e.connectNulls,u=void 0!==l&&l,s=function(e,t){if(na(e))return e;var r="curve".concat(_c(e));return"curveMonotone"!==r&&"curveBump"!==r||!t?US[r]||qc:US["".concat(r).concat("vertical"===t?"Y":"X")]}(n,c),f=u?i.filter((function(e){return ZS(e)})):i;if(Array.isArray(a)){var p=u?a.filter((function(e){return ZS(e)})):a,d=f.map((function(e,t){return HS(HS({},e),{},{base:p[t]})}));return(t="vertical"===c?Kc().y(qS).x1(WS).x0((function(e){return e.base.x})):Kc().x(WS).y1(qS).y0((function(e){return e.base.y}))).defined(ZS).curve(s),t(d)}return(t="vertical"===c&&xa(a)?Kc().y(qS).x1(WS).x0(a):xa(a)?Kc().x(WS).y1(qS).y0(a):Gc().x(WS).y(qS)).defined(ZS).curve(s),t(f)},XS=function(e){var t=e.className,r=e.points,n=e.path,o=e.pathRef;if(!(r&&r.length||n))return null;var i=r&&r.length?YS(e):n;return J.createElement("path",zS({},Ka(e,!1),Na(e),{className:xn("recharts-curve",t),d:i,ref:o}))},GS={exports:{}},KS={exports:{}},JS={};var QS,ej,tj,rj,nj,oj,ij,aj,cj,lj,uj,sj,fj,pj,dj,hj={};
19
19
  /** @license React v16.13.1
20
20
  * react-is.development.js
21
21
  *
@@ -28,7 +28,7 @@ var yr={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,patte
28
28
  object-assign
29
29
  (c) Sindre Sorhus
30
30
  @license MIT
31
- */function vj(){if(rj)return tj;rj=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return tj=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(n,o){for(var i,a,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]))t.call(i,u)&&(c[u]=i[u]);if(e){a=e(i);for(var s=0;s<a.length;s++)r.call(i,a[s])&&(c[a[s]]=i[a[s]])}}return c},tj}function mj(){if(oj)return nj;oj=1;return nj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function gj(){return aj?ij:(aj=1,ij=Function.call.bind(Object.prototype.hasOwnProperty))}function bj(){if(lj)return cj;lj=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=mj(),r={},n=gj();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,c,l){if("production"!==process.env.NODE_ENV)for(var u in o)if(n(o,u)){var s;try{if("function"!=typeof o[u]){var f=Error((c||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=o[u](i,u,c,a,null,t)}catch(e){s=e}if(!s||s instanceof Error||e((c||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},cj=o}function wj(){if(sj)return uj;sj=1;var e=yj(),t=vj(),r=mj(),n=gj(),o=bj(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),uj=function(c,l){var u="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";var f="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(a),arrayOf:function(e){return y((function(t,n,o,i,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=t[n];if(!Array.isArray(c))return new h("Invalid "+i+" `"+a+"` of type `"+b(c)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<c.length;l++){var u=e(c,l,o,i,a+"["+l+"]",r);if(u instanceof Error)return u}return null}))},element:y((function(e,t,r,n,o){var i=e[t];return c(i)?null:new h("Invalid "+n+" `"+o+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:y((function(t,r,n,o,i){var a=t[r];return e.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return y((function(t,r,n,o,i){if(!(t[r]instanceof e)){var a=e.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+(((c=t[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `")+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:y((function(e,t,r,n,o){return g(e[t])?null:new h("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return y((function(t,o,i,a,c){if("function"!=typeof e)return new h("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],u=b(l);if("object"!==u)return new h("Invalid "+a+" `"+c+"` of type `"+u+"` supplied to `"+i+"`, expected an object.");for(var s in l)if(n(l,s)){var f=e(l,s,i,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return y((function(t,r,n,o,i){for(var a=t[r],c=0;c<e.length;c++)if(d(a,e[c]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===w(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),a}return y((function(t,o,i,a,c){for(var l=[],u=0;u<e.length;u++){var s=(0,e[u])(t,o,i,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&l.push(s.data.expectedType)}return new h("Invalid "+a+" `"+c+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return y((function(t,n,o,i,a){var c=t[n],l=b(c);if("object"!==l)return new h("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var u in e){var s=e[u];if("function"!=typeof s)return m(o,i,a,u,w(s));var f=s(c,u,o,i,a+"."+u,r);if(f)return f}return null}))},exact:function(e){return y((function(o,i,a,c,l){var u=o[i],s=b(u);if("object"!==s)return new h("Invalid "+c+" `"+l+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=t({},o[i],e);for(var p in f){var d=e[p];if(n(e,p)&&"function"!=typeof d)return m(a,c,l,p,w(d));if(!d)return new h("Invalid "+c+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var y=d(u,p,a,c,l+"."+p,r);if(y)return y}return null}))}};function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function y(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function o(o,a,c,u,s,p,d){if(u=u||f,p=p||c,d!==r){if(l){var y=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 y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=u+":"+c;!t[v]&&n<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,n++)}}return null==a[c]?o?null===a[c]?new h("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(a,c,u,s,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function v(e){return y((function(t,r,n,o,i,a){var c=t[r];return b(c)!==e?new h("Invalid "+o+" `"+i+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function m(e,t,r,n,o){return new h((e||"React class")+": "+t+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||c(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e[s]);if("function"==typeof t)return t}(e);if(!t)return!1;var r,n=t.call(e);if(t!==e.entries){for(;!(r=n.next()).done;)if(!g(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function w(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=w(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},uj}function xj(){if(pj)return fj;pj=1;var e=mj();function t(){}function r(){}return r.resetWarningCache=t,fj=function(){function n(t,r,n,o,i,a){if(a!==e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function o(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i}}function Oj(){if(dj)return GS.exports;if(dj=1,"production"!==process.env.NODE_ENV){var e=yj();GS.exports=wj()(e.isElement,true)}else GS.exports=xj()();return GS.exports}var Sj=tr(Oj()),jj=Object.getOwnPropertyNames,Pj=Object.getOwnPropertySymbols,Mj=Object.prototype.hasOwnProperty;function Aj(e,t){return function(r,n,o){return e(r,n,o)&&t(r,n,o)}}function kj(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);var o=n.cache,i=o.get(t),a=o.get(r);if(i&&a)return i===r&&a===t;o.set(t,r),o.set(r,t);var c=e(t,r,n);return o.delete(t),o.delete(r),c}}function Ej(e){return jj(e).concat(Pj(e))}var Cj=Object.hasOwn||function(e,t){return Mj.call(e,t)};function _j(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var Tj="_owner",Dj=Object.getOwnPropertyDescriptor,Ij=Object.keys;function Nj(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 Rj(e,t){return _j(e.getTime(),t.getTime())}function Lj(e,t,r){if(e.size!==t.size)return!1;for(var n,o,i={},a=e.entries(),c=0;(n=a.next())&&!n.done;){for(var l=t.entries(),u=!1,s=0;(o=l.next())&&!o.done;){var f=n.value,p=f[0],d=f[1],h=o.value,y=h[0],v=h[1];u||i[s]||!(u=r.equals(p,y,c,s,e,t,r)&&r.equals(d,v,p,y,e,t,r))||(i[s]=!0),s++}if(!u)return!1;c++}return!0}function Bj(e,t,r){var n,o=Ij(e),i=o.length;if(Ij(t).length!==i)return!1;for(;i-- >0;){if((n=o[i])===Tj&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!Cj(t,n)||!r.equals(e[n],t[n],n,n,e,t,r))return!1}return!0}function zj(e,t,r){var n,o,i,a=Ej(e),c=a.length;if(Ej(t).length!==c)return!1;for(;c-- >0;){if((n=a[c])===Tj&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!Cj(t,n))return!1;if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;if(o=Dj(e,n),i=Dj(t,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function $j(e,t){return _j(e.valueOf(),t.valueOf())}function Hj(e,t){return e.source===t.source&&e.flags===t.flags}function Fj(e,t,r){if(e.size!==t.size)return!1;for(var n,o,i={},a=e.values();(n=a.next())&&!n.done;){for(var c=t.values(),l=!1,u=0;(o=c.next())&&!o.done;)l||i[u]||!(l=r.equals(n.value,o.value,n.value,o.value,e,t,r))||(i[u]=!0),u++;if(!l)return!1}return!0}function Vj(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var Uj="[object Arguments]",Zj="[object Boolean]",Wj="[object Date]",qj="[object Map]",Yj="[object Number]",Xj="[object Object]",Gj="[object RegExp]",Kj="[object Set]",Jj="[object String]",Qj=Array.isArray,eP="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,tP=Object.assign,rP=Object.prototype.toString.call.bind(Object.prototype.toString);var nP=oP();function oP(e){void 0===e&&(e={});var t,r=e.circular,n=void 0!==r&&r,o=e.createInternalComparator,i=e.createState,a=e.strict,c=void 0!==a&&a,l=function(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,o={areArraysEqual:n?zj:Nj,areDatesEqual:Rj,areMapsEqual:n?Aj(Lj,zj):Lj,areObjectsEqual:n?zj:Bj,arePrimitiveWrappersEqual:$j,areRegExpsEqual:Hj,areSetsEqual:n?Aj(Fj,zj):Fj,areTypedArraysEqual:n?zj:Vj};if(r&&(o=tP({},o,r(o))),t){var i=kj(o.areArraysEqual),a=kj(o.areMapsEqual),c=kj(o.areObjectsEqual),l=kj(o.areSetsEqual);o=tP({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:l})}return o}(e),u=function(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,c=e.areSetsEqual,l=e.areTypedArraysEqual;return function(e,u,s){if(e===u)return!0;if(null==e||null==u||"object"!=typeof e||"object"!=typeof u)return e!=e&&u!=u;var f=e.constructor;if(f!==u.constructor)return!1;if(f===Object)return o(e,u,s);if(Qj(e))return t(e,u,s);if(null!=eP&&eP(e))return l(e,u,s);if(f===Date)return r(e,u,s);if(f===RegExp)return a(e,u,s);if(f===Map)return n(e,u,s);if(f===Set)return c(e,u,s);var p=rP(e);return p===Wj?r(e,u,s):p===Gj?a(e,u,s):p===qj?n(e,u,s):p===Kj?c(e,u,s):p===Xj?"function"!=typeof e.then&&"function"!=typeof u.then&&o(e,u,s):p===Uj?o(e,u,s):(p===Zj||p===Yj||p===Jj)&&i(e,u,s)}}(l),s=o?o(u):(t=u,function(e,r,n,o,i,a,c){return t(e,r,c)});return function(e){var t=e.circular,r=e.comparator,n=e.createState,o=e.equals,i=e.strict;if(n)return function(e,a){var c=n(),l=c.cache,u=void 0===l?t?new WeakMap:void 0:l,s=c.meta;return r(e,a,{cache:u,equals:o,meta:s,strict:i})};if(t)return function(e,t){return r(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return r(e,t,a)}}({circular:n,comparator:u,createState:i,equals:s,strict:c})}function iP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>t?(e(o),r=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(n)}))}function aP(e){return aP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aP(e)}function cP(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return lP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lP(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uP(){var e=function(){return null},t=!1,r=function r(n){if(!t){if(Array.isArray(n)){if(!n.length)return;var o=cP(n),i=o[0],a=o.slice(1);return"number"==typeof i?void iP(r.bind(null,a),i):(r(i),void iP(r.bind(null,a)))}"object"===aP(n)&&e(n),"function"==typeof n&&n()}};return{stop:function(){t=!0},start:function(e){t=!1,r(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function sP(e){return sP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sP(e)}function fP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fP(Object(r),!0).forEach((function(t){dP(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dP(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==sP(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==sP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sP(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}oP({strict:!0}),oP({circular:!0}),oP({circular:!0,strict:!0}),oP({createInternalComparator:function(){return _j}}),oP({strict:!0,createInternalComparator:function(){return _j}}),oP({circular:!0,createInternalComparator:function(){return _j}}),oP({circular:!0,createInternalComparator:function(){return _j},strict:!0});var hP=function(e){return e},yP=function(e,t){return Object.keys(t).reduce((function(r,n){return pP(pP({},r),{},dP({},n,e(n,t[n])))}),{})},vP=function(e,t,r){return e.map((function(e){return"".concat((n=e,n.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(r);var n})).join(",")},mP="production"!==process.env.NODE_ENV,gP=function(e,t,r,n,o,i,a,c){if(mP&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,o,i,a,c],u=0;console.warn(t.replace(/%s/g,(function(){return l[u++]})))}};function bP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||xP(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wP(e){return function(e){if(Array.isArray(e))return OP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xP(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xP(e,t){if(e){if("string"==typeof e)return OP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?OP(e,t):void 0}}function OP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var SP=1e-4,jP=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},PP=function(e,t){return e.map((function(e,r){return e*Math.pow(t,r)})).reduce((function(e,t){return e+t}))},MP=function(e,t){return function(r){var n=jP(e,t);return PP(n,r)}},AP=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var c=t[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var l=c[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),u=bP(l,4);n=u[0],o=u[1],i=u[2],a=u[3]}else gP(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",t)}gP([n,i,o,a].every((function(e){return"number"==typeof e&&e>=0&&e<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var s,f,p=MP(n,i),d=MP(o,a),h=(s=n,f=i,function(e){var t=jP(s,f),r=[].concat(wP(t.map((function(e,t){return e*t})).slice(1)),[0]);return PP(r,e)}),y=function(e){for(var t,r=e>1?1:e,n=r,o=0;o<8;++o){var i=p(n)-r,a=h(n);if(Math.abs(i-r)<SP||a<SP)return d(n);n=(t=n-i/a)>1?1:t<0?0:t}return d(n)};return y.isStepper=!1,y},kP=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return AP(n);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,r=void 0===t?100:t,n=e.damping,o=void 0===n?8:n,i=e.dt,a=void 0===i?17:i,c=function(e,t,n){var i=n+(-(e-t)*r-n*o)*a/1e3,c=n*a/1e3+e;return Math.abs(c-t)<SP&&Math.abs(i)<SP?[t,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return AP(n);gP(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",t)}return"function"==typeof n?n:(gP(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function EP(e){return EP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},EP(e)}function CP(e){return function(e){if(Array.isArray(e))return RP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||NP(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function TP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_P(Object(r),!0).forEach((function(t){DP(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function DP(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==EP(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==EP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===EP(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||NP(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NP(e,t){if(e){if("string"==typeof e)return RP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?RP(e,t):void 0}}function RP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var LP=function(e,t,r){return e+(t-e)*r},BP=function(e){return e.from!==e.to},zP=function e(t,r,n){var o=yP((function(e,r){if(BP(r)){var n=IP(t(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return TP(TP({},r),{},{from:o,velocity:i})}return r}),r);return n<1?yP((function(e,t){return BP(t)?TP(TP({},t),{},{velocity:LP(t.velocity,o[e].velocity,n),from:LP(t.from,o[e].from,n)}):t}),r):e(t,o,n-1)},$P=function(e,t,r,n,o){var i,a,c,l,u=(i=e,a=t,[Object.keys(i),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),s=u.reduce((function(r,n){return TP(TP({},r),{},DP({},n,[e[n],t[n]]))}),{}),f=u.reduce((function(r,n){return TP(TP({},r),{},DP({},n,{from:e[n],velocity:0,to:t[n]}))}),{}),p=-1,d=function(){return null};return d=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=zP(r,f,i),o(TP(TP(TP({},e),t),yP((function(e,t){return t.from}),f))),c=n,Object.values(f).filter(BP).length&&(p=requestAnimationFrame(d))}:function(i){l||(l=i);var a=(i-l)/n,c=yP((function(e,t){return LP.apply(void 0,CP(t).concat([r(a)]))}),s);if(o(TP(TP(TP({},e),t),c)),a<1)p=requestAnimationFrame(d);else{var u=yP((function(e,t){return LP.apply(void 0,CP(t).concat([r(1)]))}),s);o(TP(TP(TP({},e),t),u))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}};function HP(e){return HP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HP(e)}var FP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function VP(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function UP(e){return function(e){if(Array.isArray(e))return ZP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ZP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ZP(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function WP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?WP(Object(r),!0).forEach((function(t){YP(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function YP(e,t,r){return(t=GP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XP(e,t,r){return t&&function(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,GP(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GP(e){var t=function(e,t){if("object"!==HP(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==HP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HP(t)?t:String(t)}function KP(e,t){return KP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KP(e,t)}function JP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=tM(e);if(t){var o=tM(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return QP(this,r)}}function QP(e,t){if(t&&("object"===HP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return eM(e)}function eM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tM(e){return tM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tM(e)}var rM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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&&KP(e,t)}(r,te);var t=JP(r);function r(e,n){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var i=(o=t.call(this,e,n)).props,a=i.isActive,c=i.attributeName,l=i.from,u=i.to,s=i.steps,f=i.children,p=i.duration;if(o.handleStyleChange=o.handleStyleChange.bind(eM(o)),o.changeStyle=o.changeStyle.bind(eM(o)),!a||p<=0)return o.state={style:{}},"function"==typeof f&&(o.state={style:u}),QP(o);if(s&&s.length)o.state={style:s[0].style};else if(l){if("function"==typeof f)return o.state={style:l},QP(o);o.state={style:c?YP({},c,l):l}}else o.state={style:{}};return o}return XP(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,r=e.canBegin;this.mounted=!0,t&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isActive,n=t.canBegin,o=t.attributeName,i=t.shouldReAnimate,a=t.to,c=t.from,l=this.state.style;if(n)if(r){if(!(nP(e.to,a)&&e.canBegin&&e.isActive)){var u=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=u||i?c:e.to;if(this.state&&l){var f={style:o?YP({},o,s):s};(o&&l[o]!==s||!o&&l!==s)&&this.setState(f)}this.runAnimation(qP(qP({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?YP({},o,a):a};this.state&&l&&(o&&l[o]!==a||!o&&l!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,r=e.from,n=e.to,o=e.duration,i=e.easing,a=e.begin,c=e.onAnimationEnd,l=e.onAnimationStart,u=$P(r,n,kP(i),o,this.changeStyle);this.manager.start([l,a,function(){t.stopJSAnimation=u()},o,c])}},{key:"runStepAnimation",value:function(e){var t=this,r=e.steps,n=e.begin,o=e.onAnimationStart,i=r[0],a=i.style,c=i.duration,l=void 0===c?0:c;return this.manager.start([o].concat(UP(r.reduce((function(e,n,o){if(0===o)return e;var i=n.duration,a=n.easing,c=void 0===a?"ease":a,l=n.style,u=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=u||Object.keys(l);if("function"==typeof c||"spring"===c)return[].concat(UP(e),[t.runJSAnimation.bind(t,{from:f.style,to:l,duration:i,easing:c}),i]);var d=vP(p,i,c),h=qP(qP(qP({},f.style),l),{},{transition:d});return[].concat(UP(e),[h,i,s]).filter(hP)}),[a,Math.max(l,n)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=uP());var t=e.begin,r=e.duration,n=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,c=e.onAnimationEnd,l=e.steps,u=e.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof u&&"spring"!==i)if(l.length>1)this.runStepAnimation(e);else{var f=n?YP({},n,o):o,p=vP(Object.keys(f),r,i);s.start([a,t,qP(qP({},f),{},{transition:p}),r,c])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,t=e.children;e.begin;var r=e.duration;e.attributeName,e.easing;var n=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var o=VP(e,FP),i=ee.count(t),a=this.state.style;if("function"==typeof t)return t(a);if(!n||0===i||r<=0)return t;var c=function(e){var t=e.props,r=t.style,n=void 0===r?{}:r,i=t.className;return ue(e,qP(qP({},o),{},{style:qP(qP({},n),a),className:i}))};return 1===i?c(ee.only(t)):J.createElement("div",null,ee.map(t,(function(e){return c(e)})))}}]),r}();function nM(e){return nM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nM(e)}function oM(){return oM=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},oM.apply(this,arguments)}function iM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aM(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aM(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cM(Object(r),!0).forEach((function(t){uM(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function uM(e,t,r){return t=function(e){var t=function(e,t){if("object"!=nM(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=nM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nM(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}rM.displayName="Animate",rM.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},rM.propTypes={from:Sj.oneOfType([Sj.object,Sj.string]),to:Sj.oneOfType([Sj.object,Sj.string]),attributeName:Sj.string,duration:Sj.number,begin:Sj.number,easing:Sj.oneOfType([Sj.string,Sj.func]),steps:Sj.arrayOf(Sj.shape({duration:Sj.number.isRequired,style:Sj.object.isRequired,easing:Sj.oneOfType([Sj.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Sj.func]),properties:Sj.arrayOf("string"),onAnimationEnd:Sj.func})),children:Sj.oneOfType([Sj.node,Sj.func]),isActive:Sj.bool,canBegin:Sj.bool,onAnimationEnd:Sj.func,shouldReAnimate:Sj.bool,onAnimationStart:Sj.func,onAnimationReStart:Sj.func},Sj.object,Sj.object,Sj.object,Sj.element,Sj.object,Sj.object,Sj.object,Sj.oneOfType([Sj.array,Sj.element]),Sj.any;var sM=function(e,t,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,l=r>=0?1:-1,u=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+c*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(u,",").concat(e+l*s[0],",").concat(t)),i+="L ".concat(e+r-l*s[1],",").concat(t),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(u,",\n ").concat(e+r,",").concat(t+c*s[1])),i+="L ".concat(e+r,",").concat(t+n-c*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(u,",\n ").concat(e+r-l*s[2],",").concat(t+n)),i+="L ".concat(e+l*s[3],",").concat(t+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+n-c*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+l*p,",").concat(t,"\n L ").concat(e+r-l*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+r,",").concat(t+c*p,"\n L ").concat(e+r,",").concat(t+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+r-l*p,",").concat(t+n,"\n L ").concat(e+l*p,",").concat(t+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e,",").concat(t+n-c*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},fM=function(e,t){if(!e||!t)return!1;var r=e.x,n=e.y,o=t.x,i=t.y,a=t.width,c=t.height;if(Math.abs(a)>0&&Math.abs(c)>0){var l=Math.min(o,o+a),u=Math.max(o,o+a),s=Math.min(i,i+c),f=Math.max(i,i+c);return r>=l&&r<=u&&n>=s&&n<=f}return!1},pM={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},dM=function(e){var t=lM(lM({},pM),e),r=ne(),n=iM(ie(-1),2),o=n[0],i=n[1];ce((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&i(e)}catch(e){}}),[]);var a=t.x,c=t.y,l=t.width,u=t.height,s=t.radius,f=t.className,p=t.animationEasing,d=t.animationDuration,h=t.animationBegin,y=t.isAnimationActive,v=t.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||0===l||0===u)return null;var m=xn("recharts-rectangle",f);return v?J.createElement(rM,{canBegin:o>0,from:{width:l,height:u,x:a,y:c},to:{width:l,height:u,x:a,y:c},duration:d,animationEasing:p,isActive:v},(function(e){var n=e.width,i=e.height,a=e.x,c=e.y;return J.createElement(rM,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:y,easing:p},J.createElement("path",oM({},Ka(t,!0),{className:m,d:sM(a,c,n,i,s),ref:r})))})):J.createElement("path",oM({},Ka(t,!0),{className:m,d:sM(a,c,l,u,s)}))};function hM(){return hM=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},hM.apply(this,arguments)}var yM=function(e){var t=e.cx,r=e.cy,n=e.r,o=xn("recharts-dot",e.className);return t===+t&&r===+r&&n===+n?J.createElement("circle",hM({},Ka(e,!1),Na(e),{className:o,cx:t,cy:r,r:n})):null};function vM(e){return vM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vM(e)}var mM=["x","y","top","left","width","height","className"];function gM(){return gM=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},gM.apply(this,arguments)}function bM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wM(e,t,r){return t=function(e){var t=function(e,t){if("object"!=vM(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=vM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vM(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xM(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var OM,SM,jM,PM,MM=function(e,t,r,n,o,i){return"M".concat(e,",").concat(o,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r)},AM=function(e){var t=e.x,r=void 0===t?0:t,n=e.y,o=void 0===n?0:n,i=e.top,a=void 0===i?0:i,c=e.left,l=void 0===c?0:c,u=e.width,s=void 0===u?0:u,f=e.height,p=void 0===f?0:f,d=e.className,h=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bM(Object(r),!0).forEach((function(t){wM(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({x:r,y:o,top:a,left:l,width:s,height:p},xM(e,mM));return xa(r)&&xa(o)&&xa(s)&&xa(p)&&xa(a)&&xa(l)?J.createElement("path",gM({},Ka(h,!0),{className:xn("recharts-cross",d),d:MM(r,o,s,p,a,l)})):null};var kM,EM,CM=function(){if(PM)return jM;PM=1;var e=Si(),t=function(){if(SM)return OM;SM=1;var e=np()(Object.getPrototypeOf,Object);return OM=e}(),r=ji(),n=Function.prototype,o=Object.prototype,i=n.toString,a=o.hasOwnProperty,c=i.call(Object);return jM=function(n){if(!r(n)||"[object Object]"!=e(n))return!1;var o=t(n);if(null===o)return!0;var l=a.call(o,"constructor")&&o.constructor;return"function"==typeof l&&l instanceof l&&i.call(l)==c}}(),_M=tr(CM);var TM=tr(function(){if(EM)return kM;EM=1;var e=Si(),t=ji();return kM=function(r){return!0===r||!1===r||t(r)&&"[object Boolean]"==e(r)}}());function DM(e){return DM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DM(e)}function IM(){return IM=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},IM.apply(this,arguments)}function NM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return RM(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return RM(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function LM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function BM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?LM(Object(r),!0).forEach((function(t){zM(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zM(e,t,r){return t=function(e){var t=function(e,t){if("object"!=DM(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=DM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==DM(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $M,HM,FM,VM,UM,ZM,WM,qM,YM=function(e,t,r,n,o){var i,a=r-n;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+r,",").concat(t),i+="L ".concat(e+r-a/2,",").concat(t+o),i+="L ".concat(e+r-a/2-n,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},XM={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},GM=function(e){var t=BM(BM({},XM),e),r=ne(),n=NM(ie(-1),2),o=n[0],i=n[1];ce((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&i(e)}catch(e){}}),[]);var a=t.x,c=t.y,l=t.upperWidth,u=t.lowerWidth,s=t.height,f=t.className,p=t.animationEasing,d=t.animationDuration,h=t.animationBegin,y=t.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||s!==+s||0===l&&0===u||0===s)return null;var v=xn("recharts-trapezoid",f);return y?J.createElement(rM,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:l,lowerWidth:u,height:s,x:a,y:c},duration:d,animationEasing:p,isActive:y},(function(e){var n=e.upperWidth,i=e.lowerWidth,a=e.height,c=e.x,l=e.y;return J.createElement(rM,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,easing:p},J.createElement("path",IM({},Ka(t,!0),{className:v,d:YM(c,l,n,i,a),ref:r})))})):J.createElement("g",null,J.createElement("path",IM({},Ka(t,!0),{className:v,d:YM(a,c,l,u,s)})))},KM=["option","shapeType","propTransformer","activeClassName","isActive"];function JM(e){return JM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JM(e)}function QM(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function eA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eA(Object(r),!0).forEach((function(t){rA(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eA(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rA(e,t,r){return t=function(e){var t=function(e,t){if("object"!=JM(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=JM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==JM(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nA(e,t){return tA(tA({},t),e)}function oA(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return J.createElement(dM,r);case"trapezoid":return J.createElement(GM,r);case"sector":return J.createElement(LS,r);case"symbols":if(function(e,t){return"symbols"===e}(t))return J.createElement(Zl,r);break;default:return null}}function iA(e){var t,r=e.option,n=e.shapeType,o=e.propTransformer,i=void 0===o?nA:o,a=e.activeClassName,c=void 0===a?"recharts-active-shape":a,l=e.isActive,u=QM(e,KM);if(Q(r))t=ue(r,tA(tA({},u),function(e){return Q(e)?e.props:e}(r)));else if(na(r))t=r(u);else if(_M(r)&&!TM(r)){var s=i(r,u);t=J.createElement(oA,{shapeType:n,elementProps:s})}else{var f=u;t=J.createElement(oA,{shapeType:n,elementProps:f})}return l?J.createElement(jc,{className:c},t):t}function aA(e,t){return null!=t&&"trapezoids"in e.props}function cA(e,t){return null!=t&&"sectors"in e.props}function lA(e,t){return null!=t&&"points"in e.props}function uA(e,t){var r,n,o=e.x===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.x)||e.x===t.x,i=e.y===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.y)||e.y===t.y;return o&&i}function sA(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function fA(e,t){var r=e.x===t.x,n=e.y===t.y,o=e.z===t.z;return r&&n&&o}function pA(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,o=function(e,t){var r;return aA(e,t)?r="trapezoids":cA(e,t)?r="sectors":lA(e,t)&&(r="points"),r}(r,t),i=function(e,t){var r,n;return aA(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:cA(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:lA(e,t)?t.payload:{}}(r,t),a=n.filter((function(e,n){var a=Vw(i,e),c=r.props[o].filter((function(e){var n=function(e,t){var r;return aA(e,t)?r=uA:cA(e,t)?r=sA:lA(e,t)&&(r=fA),r}(r,t);return n(e,t)})),l=r.props[o].indexOf(c[c.length-1]);return a&&n===l}));return n.indexOf(a[a.length-1])}function dA(){if(VM)return FM;VM=1;var e=Fh(),t=1/0;return FM=function(r){return r?(r=e(r))===t||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:0===r?r:0}}function hA(){if(ZM)return UM;ZM=1;var e=function(){if(HM)return $M;HM=1;var e=Math.ceil,t=Math.max;return $M=function(r,n,o,i){for(var a=-1,c=t(e((n-r)/(o||1)),0),l=Array(c);c--;)l[i?c:++a]=r,r+=o;return l}}(),t=Hd(),r=dA();return UM=function(n){return function(o,i,a){return a&&"number"!=typeof a&&t(o,i,a)&&(i=a=void 0),o=r(o),void 0===i?(i=o,o=0):i=r(i),a=void 0===a?o<i?1:-1:r(a),e(o,i,a,n)}}}var yA=function(){if(qM)return WM;qM=1;var e=hA()();return WM=e}(),vA=tr(yA);function mA(e){return mA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mA(e)}function gA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gA(Object(r),!0).forEach((function(t){wA(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gA(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wA(e,t,r){return t=function(e){var t=function(e,t){if("object"!=mA(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=mA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mA(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xA=["Webkit","Moz","O","ms"];function OA(e){return OA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OA(e)}function SA(){return SA=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},SA.apply(this,arguments)}function jA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function PA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jA(Object(r),!0).forEach((function(t){_A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jA(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function MA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TA(n.key),n)}}function AA(e,t,r){return t=EA(t),function(e,t){if(t&&("object"===OA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,kA()?Reflect.construct(t,r||[],EA(e).constructor):t.apply(e,r))}function kA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kA=function(){return!!e})()}function EA(e){return EA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},EA(e)}function CA(e,t){return CA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CA(e,t)}function _A(e,t,r){return(t=TA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TA(e){var t=function(e,t){if("object"!=OA(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=OA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==OA(t)?t:t+""}var DA,IA,NA,RA,LA=function(e){return e.changedTouches&&!!e.changedTouches.length},BA=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_A(r=AA(this,t,[e]),"handleDrag",(function(e){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(e):r.state.isSlideMoving&&r.handleSlideDrag(e)})),_A(r,"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.handleDrag(e.changedTouches[0])})),_A(r,"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=r.props,t=e.endIndex,n=e.onDragEnd,o=e.startIndex;null==n||n({endIndex:t,startIndex:o})})),r.detachDragEndListener()})),_A(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),_A(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),_A(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),_A(r,"handleSlideDragStart",(function(e){var t=LA(e)?e.changedTouches[0]:e;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return function(e,t){if("function"!=typeof t&&null!==t)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&&CA(e,t)}(t,te),r=t,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var r=e.startX,n=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,l=Math.min(r,n),u=Math.max(r,n),s=t.getIndexInRange(o,l),f=t.getIndexInRange(o,u);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,r=t.data,n=t.tickFormatter,o=t.dataKey,i=wO(r[e],o,e);return na(n)?n(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,r=t.slideMoveStartX,n=t.startX,o=t.endX,i=this.props,a=i.x,c=i.width,l=i.travellerWidth,u=i.startIndex,s=i.endIndex,f=i.onChange,p=e.pageX-r;p>0?p=Math.min(p,a+c-l-o,a+c-l-n):p<0&&(p=Math.max(p,a-n,a-o));var d=this.getIndex({startX:n+p,endX:o+p});d.startIndex===u&&d.endIndex===s||!f||f(d),this.setState({startX:n+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var r=LA(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,r=t.brushMoveStartX,n=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[n],c=this.props,l=c.x,u=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,d=c.data,h={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,l+u-s-a):y<0&&(y=Math.max(y,l-a)),h[n]=a+y;var v=this.getIndex(h),m=v.startIndex,g=v.endIndex;this.setState(_A(_A({},n,a+y),"brushMoveStartX",e.pageX),(function(){var e;f&&(e=d.length-1,("startX"===n&&(o>i?m%p==0:g%p==0)||o<i&&g===e||"endX"===n&&(o>i?g%p==0:m%p==0)||o>i&&g===e)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,c=this.state[t],l=o.indexOf(c);if(-1!==l){var u=l+e;if(!(-1===u||u>=o.length)){var s=o[u];"startX"===t&&s>=a||"endX"===t&&s<=i||this.setState(_A({},t,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,i=e.fill,a=e.stroke;return J.createElement("rect",{stroke:a,fill:i,x:t,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,i=e.data,a=e.children,c=e.padding,l=ee.only(a);return l?J.cloneElement(l,{x:t,y:r,width:n,height:o,margin:c,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(e,r){var n,o,i=this,a=this.props,c=a.y,l=a.travellerWidth,u=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,d=a.startIndex,h=a.endIndex,y=Math.max(e,this.props.x),v=PA(PA({},Ka(this.props,!1)),{},{x:y,y:c,width:l,height:u}),m=f||"Min value: ".concat(null===(n=p[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(o=p[h])||void 0===o?void 0:o.name);return J.createElement(jc,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),i.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,r))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(s,v))}},{key:"renderSlide",value:function(e,t){var r=this.props,n=r.y,o=r.height,i=r.stroke,a=r.travellerWidth,c=Math.min(e,t)+a,l=Math.max(Math.abs(t-e)-a,0);return J.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:c,y:n,width:l,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,r=e.endIndex,n=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,c=this.state,l=c.startX,u=c.endX,s={pointerEvents:"none",fill:a};return J.createElement(jc,{className:"recharts-brush-texts"},J.createElement(Ry,SA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:n+o/2},s),this.getTextOfTick(t)),J.createElement(Ry,SA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+i+5,y:n+o/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,t=e.data,r=e.className,n=e.children,o=e.x,i=e.y,a=e.width,c=e.height,l=e.alwaysShowText,u=this.state,s=u.startX,f=u.endX,p=u.isTextActive,d=u.isSlideMoving,h=u.isTravellerMoving,y=u.isTravellerFocused;if(!t||!t.length||!xa(o)||!xa(i)||!xa(a)||!xa(c)||a<=0||c<=0)return null;var v,m,g,b,w=xn("recharts-brush",r),x=1===J.Children.count(n),O=(m="none",g=(v="userSelect").replace(/(\w)/,(function(e){return e.toUpperCase()})),(b=xA.reduce((function(e,t){return bA(bA({},e),{},wA({},t+g,m))}),{}))[v]=m,b);return J.createElement(jc,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||d||h||y||l)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,r=e.y,n=e.width,o=e.height,i=e.stroke,a=Math.floor(r+o/2)-1;return J.createElement(J.Fragment,null,J.createElement("rect",{x:t,y:r,width:n,height:o,fill:i,stroke:"none"}),J.createElement("line",{x1:t+1,y1:a,x2:t+n-1,y2:a,fill:"none",stroke:"#fff"}),J.createElement("line",{x1:t+1,y1:a+2,x2:t+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,r){return J.isValidElement(e)?J.cloneElement(e,r):na(e)?e(r):t.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(e,t){var r=e.data,n=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,c=e.startIndex,l=e.endIndex;if(r!==t.prevData||a!==t.prevUpdateId)return PA({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(e){var t=e.data,r=e.startIndex,n=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var c=t.length,l=fv().domain(vA(0,c)).range([o,o+i-a]),u=l.domain().map((function(e){return l(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(r),endX:l(n),scale:l,scaleValues:u}}({data:r,width:n,x:o,travellerWidth:i,startIndex:c,endIndex:l}):{scale:null,scaleValues:null});if(t.scale&&(n!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+n-i]);var u=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(e,t){for(var r=0,n=e.length-1;n-r>1;){var o=Math.floor((r+n)/2);e[o]>t?n=o:r=o}return t>=e[n]?n:r}}],n&&MA(r.prototype,n),o&&MA(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();_A(BA,"displayName","Brush"),_A(BA,"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 zA,$A,HA,FA,VA=function(){if(RA)return NA;RA=1;var e=es(),t=gp(),r=function(){if(IA)return DA;IA=1;var e=Dd();return DA=function(t,r){var n;return e(t,(function(e,t,o){return!(n=r(e,t,o))})),!!n}}(),n=bi(),o=Hd();return NA=function(i,a,c){var l=n(i)?e:r;return c&&o(i,a,c)&&(a=void 0),l(i,t(a,3))}}(),UA=tr(VA),ZA=function(e,t){var r=e.alwaysShow,n=e.ifOverflow;return r&&(n="extendDomain"),n===t};var WA,qA,YA,XA,GA,KA,JA=function(){if(FA)return HA;FA=1;var e=function(){if($A)return zA;$A=1;var e=Bd();return zA=function(t,r,n){"__proto__"==r&&e?e(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n},zA}(),t=Td(),r=gp();return HA=function(n,o){var i={};return o=r(o,3),t(n,(function(t,r,n){e(i,r,o(t,r,n))})),i},HA}(),QA=tr(JA);var ek=function(){if(KA)return GA;KA=1;var e=(qA||(qA=1,WA=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}),WA),t=function(){if(XA)return YA;XA=1;var e=Dd();return YA=function(t,r){var n=!0;return e(t,(function(e,t,o){return n=!!r(e,t,o)})),n}}(),r=gp(),n=bi(),o=Hd();return GA=function(i,a,c){var l=n(i)?e:t;return c&&o(i,a,c)&&(a=void 0),l(i,r(a,3))}}(),tk=tr(ek),rk=["x","y"];function nk(e){return nk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nk(e)}function ok(){return ok=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},ok.apply(this,arguments)}function ik(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ak(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ik(Object(r),!0).forEach((function(t){ck(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ik(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ck(e,t,r){return t=function(e){var t=function(e,t){if("object"!=nk(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=nk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nk(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lk(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function uk(e,t){var r=e.x,n=e.y,o=lk(e,rk),i="".concat(r),a=parseInt(i,10),c="".concat(n),l=parseInt(c,10),u="".concat(t.height||o.height),s=parseInt(u,10),f="".concat(t.width||o.width),p=parseInt(f,10);return ak(ak(ak(ak(ak({},t),o),a?{x:a}:{}),l?{y:l}:{}),{},{height:s,width:p,name:t.name,radius:t.radius})}function sk(e){return J.createElement(iA,ok({shapeType:"rectangle",propTransformer:uk,activeClassName:"recharts-active-bar"},e))}var fk,pk=["value","background"];function dk(e){return dk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dk(e)}function hk(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function yk(){return yk=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},yk.apply(this,arguments)}function vk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vk(Object(r),!0).forEach((function(t){Sk(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gk(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,jk(n.key),n)}}function bk(e,t,r){return t=xk(t),function(e,t){if(t&&("object"===dk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wk()?Reflect.construct(t,r||[],xk(e).constructor):t.apply(e,r))}function wk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wk=function(){return!!e})()}function xk(e){return xk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xk(e)}function Ok(e,t){return Ok=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ok(e,t)}function Sk(e,t,r){return(t=jk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jk(e){var t=function(e,t){if("object"!=dk(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=dk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dk(t)?t:t+""}var Pk=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Sk(e=bk(this,t,[].concat(n)),"state",{isAnimationFinished:!1}),Sk(e,"id",ja("recharts-bar-")),Sk(e,"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),Sk(e,"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return function(e,t){if("function"!=typeof t&&null!==t)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&&Ok(e,t)}(t,te),r=t,n=[{key:"renderRectanglesStatically",value:function(e){var t=this,r=this.props,n=r.shape,o=r.dataKey,i=r.activeIndex,a=r.activeBar,c=Ka(this.props,!1);return e&&e.map((function(e,r){var l=r===i,u=l?a:n,s=mk(mk(mk({},c),e),{},{isActive:l,option:u,index:r,dataKey:o,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return J.createElement(jc,yk({className:"recharts-bar-rectangle"},Ra(t.props,e,r),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value)}),J.createElement(sk,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,r=t.data,n=t.layout,o=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,c=t.animationEasing,l=t.animationId,u=this.state.prevData;return J.createElement(rM,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t,i=r.map((function(e,t){var r=u&&u[t];if(r){var i=Aa(r.x,e.x),a=Aa(r.y,e.y),c=Aa(r.width,e.width),l=Aa(r.height,e.height);return mk(mk({},e),{},{x:i(o),y:a(o),width:c(o),height:l(o)})}if("horizontal"===n){var s=Aa(0,e.height)(o);return mk(mk({},e),{},{y:e.y+e.height-s,height:s})}var f=Aa(0,e.width)(o);return mk(mk({},e),{},{width:f})}));return J.createElement(jc,null,e.renderRectanglesStatically(i))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,r=e.isAnimationActive,n=this.state.prevData;return!(r&&t&&t.length)||n&&Vw(n,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props,r=t.data,n=t.dataKey,o=t.activeIndex,i=Ka(this.props.background,!1);return r.map((function(t,r){t.value;var a=t.background,c=hk(t,pk);if(!a)return null;var l=mk(mk(mk(mk(mk({},c),{},{fill:"#eee"},a),i),Ra(e.props,t,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return J.createElement(sk,yk({key:"background-bar-".concat(r),option:e.props.background,isActive:r===o},l))}))}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,a=r.layout,c=Wa(r.children,lO);if(!c)return null;var l="vertical"===a?n[0].height/2:n[0].width/2,u=function(e,t){var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:wO(e,t)}},s={clipPath:e?"url(#clipPath-".concat(t,")"):null};return J.createElement(jc,s,c.map((function(e){return J.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.data,n=e.className,o=e.xAxis,i=e.yAxis,a=e.left,c=e.top,l=e.width,u=e.height,s=e.isAnimationActive,f=e.background,p=e.id;if(t||!r||!r.length)return null;var d=this.state.isAnimationFinished,h=xn("recharts-bar",n),y=o&&o.allowDataOverflow,v=i&&i.allowDataOverflow,m=y||v,g=Qi(p)?this.id:p;return J.createElement(jc,{className:h},y||v?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(g)},J.createElement("rect",{x:y?a:a-l/2,y:v?c:c-u/2,width:y?l:2*l,height:v?u:2*u}))):null,J.createElement(jc,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(g,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,g),(!s||d)&&kS.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],n&&gk(r.prototype,n),o&&gk(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function Mk(e){return Mk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mk(e)}function Ak(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,_k(n.key),n)}}function kk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ek(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kk(Object(r),!0).forEach((function(t){Ck(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ck(e,t,r){return(t=_k(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _k(e){var t=function(e,t){if("object"!=Mk(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Mk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mk(t)?t:t+""}fk=Pk,Sk(Pk,"displayName","Bar"),Sk(Pk,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!vh,animationBegin:0,animationDuration:400,animationEasing:"ease"}),Sk(Pk,"getComposedData",(function(e){var t=e.props,r=e.item,n=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,c=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,s=e.dataStartIndex,f=e.displayedData,p=e.offset,d=function(e,t){if(!e)return null;for(var r=0,n=e.length;r<n;r++)if(e[r].item===t)return e[r].position;return null}(n,r);if(!d)return null;var h=t.layout,y=r.type.defaultProps,v=void 0!==y?mk(mk({},y),r.props):r.props,m=v.dataKey,g=v.children,b=v.minPointSize,w="horizontal"===h?a:i,x=u?w.scale.domain():null,O=function(e){var t=e.numericAxis,r=t.scale.domain();if("number"===t.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:w}),S=Wa(g,Qh),j=f.map((function(e,t){var n,f,p,y,v,g;u?n=function(e,t){if(!t||2!==t.length||!xa(t[0])||!xa(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!xa(e[0])||e[0]<r)&&(o[0]=r),(!xa(e[1])||e[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(u[s+t],x):(n=wO(e,m),Array.isArray(n)||(n=[O,n]));var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof e)return e;var o="number"==typeof r;return o?e(r,n):(o||("production"!==process.env.NODE_ENV?Yx(0,"minPointSize callback function received a value with type of ".concat(nk(r),". Currently only numbers are supported.")):Yx()),t)}}(b,fk.defaultProps.minPointSize)(n[1],t);if("horizontal"===h){var j,P=[a.scale(n[0]),a.scale(n[1])],M=P[0],A=P[1];f=DO({axis:i,ticks:c,bandSize:o,offset:d.offset,entry:e,index:t}),p=null!==(j=null!=A?A:M)&&void 0!==j?j:void 0,y=d.size;var k=M-A;if(v=Number.isNaN(k)?0:k,g={x:f,y:a.y,width:y,height:a.height},Math.abs(w)>0&&Math.abs(v)<Math.abs(w)){var E=ba(v||w)*(Math.abs(w)-Math.abs(v));p-=E,v+=E}}else{var C=[i.scale(n[0]),i.scale(n[1])],_=C[0],T=C[1];if(f=_,p=DO({axis:a,ticks:l,bandSize:o,offset:d.offset,entry:e,index:t}),y=T-_,v=d.size,g={x:i.x,y:p,width:i.width,height:v},Math.abs(w)>0&&Math.abs(y)<Math.abs(w))y+=ba(y||w)*(Math.abs(w)-Math.abs(y))}return mk(mk(mk({},e),{},{x:f,y:p,width:y,height:v,value:u?n:n[1],payload:e,background:g},S&&S[t]&&S[t].props),{},{tooltipPayload:[$O(r,e)],tooltipPosition:{x:f+y/2,y:p+v/2}})}));return mk({data:j,layout:h},p)}));var Tk=function(e,t,r,n,o){var i=e.width,a=e.height,c=e.layout,l=e.children,u=Object.keys(t),s={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!qa(l,Pk);return u.reduce((function(i,a){var l,u,p,d,h,y=t[a],v=y.orientation,m=y.domain,g=y.padding,b=void 0===g?{}:g,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=m[1]-m[0],j=1/0,P=y.categoricalDomain.sort();if(P.forEach((function(e,t){t>0&&(j=Math.min((e||0)-(P[t-1]||0),j))})),Number.isFinite(j)){var M=j/S,A="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(l=M*A/2),"no-gap"===y.padding){var k=Pa(e.barCategoryGap,M*A),E=M*A/2;l=E-k-(E-k)/A*k}}}u="xAxis"===n?[r.left+(b.left||0)+(l||0),r.left+r.width-(b.right||0)-(l||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(l||0),r.top+r.height-(b.bottom||0)-(l||0)]:y.range,x&&(u=[u[1],u[0]]);var C=function(e,t,r){var n=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:uv(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:Dm(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!r)?{scale:fv(),realScaleType:"point"}:"category"===o?{scale:uv(),realScaleType:"band"}:{scale:Dm(),realScaleType:"linear"};if(ra(n)){var c="scale".concat(_c(n));return{scale:(jw[c]||fv)(),realScaleType:jw[c]?c:"point"}}return na(n)?{scale:n}:{scale:fv(),realScaleType:"point"}}(y,o,f),_=C.scale,T=C.realScaleType;_.domain(m).range(u),function(e){var t=e.domain();if(t&&!(t.length<=2)){var r=t.length,n=e.range(),o=Math.min(n[0],n[1])-EO,i=Math.max(n[0],n[1])+EO,a=e(t[0]),c=e(t[r-1]);(a<o||a>i||c<o||c>i)&&e.domain([t[0],t[r-1]])}}(_);var D=function(e,t){var r=t.realScaleType,n=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,c=r||t.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var l=e.domain();if(!l.length)return null;var u=Ux(l,o,a);return e.domain([Lw(u),_w(u)]),{niceTicks:u}}if(o&&"number"===n){var s=e.domain();return{niceTicks:Zx(s,o,a)}}return null}(_,Ek(Ek({},y),{},{realScaleType:T}));"xAxis"===n?(h="top"===v&&!w||"bottom"===v&&w,p=r.left,d=s[O]-h*y.height):"yAxis"===n&&(h="left"===v&&!w||"right"===v&&w,p=s[O]-h*y.width,d=r.top);var I=Ek(Ek(Ek({},y),D),{},{realScaleType:T,x:p,y:d,scale:_,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return I.bandSize=BO(I,D),y.hide||"xAxis"!==n?y.hide||(s[O]+=(h?-1:1)*I.width):s[O]+=(h?-1:1)*I.height,Ek(Ek({},i),{},Ck({},a,I))}),{})},Dk=function(e,t){var r=e.x,n=e.y,o=t.x,i=t.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},Ik=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}return t=e,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.bandAware,n=t.position;if(void 0!==e){if(n)switch(n){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),r=t[0],n=t[t.length-1];return r<=n?e>=r&&e<=n:e>=n&&e<=r}}],n=[{key:"create",value:function(t){return new e(t)}}],r&&Ak(t.prototype,r),n&&Ak(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();Ck(Ik,"EPS",1e-4);var Nk=function(e){var t=Object.keys(e).reduce((function(t,r){return Ek(Ek({},t),{},Ck({},r,Ik.create(e[r])))}),{});return Ek(Ek({},t),{},{apply:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return QA(e,(function(e,r){return t[r].apply(e,{bandAware:n,position:o})}))},isInRange:function(e){return tk(e,(function(e,r){return t[r].isInRange(e)}))}})};var Rk,Lk,Bk,zk,$k,Hk,Fk,Vk,Uk=function(e){var t=e.width,r=e.height,n=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/t),a=o>i&&o<Math.PI-i?r/Math.sin(o):t/Math.cos(o);return Math.abs(a)};function Zk(){if(Hk)return $k;Hk=1;var e=bp(),t=gp(),r=function(){if(zk)return Bk;zk=1;var e=dA();return Bk=function(t){var r=e(t),n=r%1;return r==r?n?r-n:r:0}}(),n=Math.max;return $k=function(o,i,a){var c=null==o?0:o.length;if(!c)return-1;var l=null==a?0:r(a);return l<0&&(l=n(c+l,0)),e(o,t(i,3),l)},$k}!function(){if(Vk)return Fk;Vk=1;var e=function(){if(Lk)return Rk;Lk=1;var e=gp(),t=ip(),r=ap();return Rk=function(n){return function(o,i,a){var c=Object(o);if(!t(o)){var l=e(i,3);o=r(o),i=function(e){return l(c[e],e,c)}}var u=n(o,i,a);return u>-1?c[l?o[u]:u]:void 0}}}(),t=e(Zk());Fk=t}();var Wk=tr($i())((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("")}));function qk(e){return qk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qk(e)}var Yk=pe(void 0),Xk=pe(void 0),Gk=pe(void 0),Kk=pe({}),Jk=pe(void 0),Qk=pe(0),eE=pe(0),tE=function(e){var t=e.state,r=t.xAxisMap,n=t.yAxisMap,o=t.offset,i=e.clipPathId,a=e.children,c=e.width,l=e.height,u=Wk(o);return J.createElement(Yk.Provider,{value:r},J.createElement(Xk.Provider,{value:n},J.createElement(Kk.Provider,{value:o},J.createElement(Gk.Provider,{value:u},J.createElement(Jk.Provider,{value:i},J.createElement(Qk.Provider,{value:l},J.createElement(eE.Provider,{value:c},a)))))))};function rE(e){var t=Object.keys(e);return 0===t.length?"There are no available ids.":"Available ids are: ".concat(t,".")}var nE=function(e){var t=fe(Yk);null==t&&("production"!==process.env.NODE_ENV?Yx(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Yx());var r=t[e];return null==r&&("production"!==process.env.NODE_ENV?Yx(0,'Could not find xAxis by id "'.concat(e,'" [').concat(qk(e),"]. ").concat(rE(t))):Yx()),r},oE=function(e){var t=fe(Xk);null==t&&("production"!==process.env.NODE_ENV?Yx(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Yx());var r=t[e];return null==r&&("production"!==process.env.NODE_ENV?Yx(0,'Could not find yAxis by id "'.concat(e,'" [').concat(qk(e),"]. ").concat(rE(t))):Yx()),r},iE=function(){return fe(eE)},aE=function(){return fe(Qk)};function cE(e){return cE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cE(e)}function lE(e,t,r){return t&&function(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,vE(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uE(e,t,r){return t=fE(t),function(e,t){if(t&&("object"===cE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,sE()?Reflect.construct(t,r||[],fE(e).constructor):t.apply(e,r))}function sE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sE=function(){return!!e})()}function fE(e){return fE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fE(e)}function pE(e,t){return pE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pE(e,t)}function dE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dE(Object(r),!0).forEach((function(t){yE(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yE(e,t,r){return(t=vE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vE(e){var t=function(e,t){if("object"!=cE(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=cE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==cE(t)?t:t+""}function mE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bE(){return bE=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},bE.apply(this,arguments)}function wE(e){var t=e.x,r=e.y,n=e.segment,o=e.xAxisId,i=e.yAxisId,a=e.shape,c=e.className,l=e.alwaysShow,u=fe(Jk),s=nE(o),f=oE(i),p=fe(Gk);if(!u||!p)return null;Mc(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=function(e,t,r,n,o,i,a,c,l){var u=o.x,s=o.y,f=o.width,p=o.height;if(r){var d=l.y,h=e.y.apply(d,{position:i});if(ZA(l,"discard")&&!e.y.isInRange(h))return null;var y=[{x:u+f,y:h},{x:u,y:h}];return"left"===c?y.reverse():y}if(t){var v=l.x,m=e.x.apply(v,{position:i});if(ZA(l,"discard")&&!e.x.isInRange(m))return null;var g=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?g.reverse():g}if(n){var b=l.segment.map((function(t){return e.apply(t,{position:i})}));return ZA(l,"discard")&&UA(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(Nk({x:s.scale,y:f.scale}),Oa(t),Oa(r),n&&2===n.length,p,e.position,s.orientation,f.orientation,e);if(!d)return null;var h=mE(d,2),y=h[0],v=y.x,m=y.y,g=h[1],b=g.x,w=g.y,x=hE(hE({clipPath:ZA(e,"hidden")?"url(#".concat(u,")"):void 0},Ka(e,!0)),{},{x1:v,y1:m,x2:b,y2:w});return J.createElement(jc,{className:xn("recharts-reference-line",c)},function(e,t){return J.isValidElement(e)?J.cloneElement(e,t):na(e)?e(t):J.createElement("line",bE({},t,{className:"recharts-reference-line-line"}))}(a,x),fS.renderCallByParent(e,function(e){var t=e.x1,r=e.y1,n=e.x2,o=e.y2;return Dk({x:t,y:r},{x:n,y:o})}({x1:v,y1:m,x2:b,y2:w})))}var xE=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),uE(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&pE(e,t)}(t,J.Component),lE(t,[{key:"render",value:function(){return J.createElement(wE,this.props)}}])}();function OE(){return OE=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},OE.apply(this,arguments)}function SE(e){return SE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},SE(e)}function jE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function PE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jE(Object(r),!0).forEach((function(t){_E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ME(e,t,r){return t&&function(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,TE(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AE(e,t,r){return t=EE(t),function(e,t){if(t&&("object"===SE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,kE()?Reflect.construct(t,r||[],EE(e).constructor):t.apply(e,r))}function kE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kE=function(){return!!e})()}function EE(e){return EE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},EE(e)}function CE(e,t){return CE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CE(e,t)}function _E(e,t,r){return(t=TE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TE(e){var t=function(e,t){if("object"!=SE(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=SE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==SE(t)?t:t+""}yE(xE,"displayName","ReferenceLine"),yE(xE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var DE=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),AE(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&CE(e,t)}(t,J.Component),ME(t,[{key:"render",value:function(){var e=this.props,r=e.x,n=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,c=Oa(r),l=Oa(n);if(Mc(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!l)return null;var u=function(e){var t=e.x,r=e.y,n=e.xAxis,o=e.yAxis,i=Nk({x:n.scale,y:o.scale}),a=i.apply({x:t,y:r},{bandAware:!0});return ZA(e,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!u)return null;var s=u.x,f=u.y,p=this.props,d=p.shape,h=p.className,y=PE(PE({clipPath:ZA(this.props,"hidden")?"url(#".concat(a,")"):void 0},Ka(this.props,!0)),{},{cx:s,cy:f});return J.createElement(jc,{className:xn("recharts-reference-dot",h)},t.renderDot(d,y),fS.renderCallByParent(this.props,{x:s-o,y:f-o,width:2*o,height:2*o}))}}])}();function IE(){return IE=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},IE.apply(this,arguments)}function NE(e){return NE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NE(e)}function RE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function LE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?RE(Object(r),!0).forEach((function(t){VE(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function BE(e,t,r){return t&&function(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,UE(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zE(e,t,r){return t=HE(t),function(e,t){if(t&&("object"===NE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$E()?Reflect.construct(t,r||[],HE(e).constructor):t.apply(e,r))}function $E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($E=function(){return!!e})()}function HE(e){return HE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HE(e)}function FE(e,t){return FE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},FE(e,t)}function VE(e,t,r){return(t=UE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UE(e){var t=function(e,t){if("object"!=NE(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=NE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==NE(t)?t:t+""}_E(DE,"displayName","ReferenceDot"),_E(DE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),_E(DE,"renderDot",(function(e,t){return J.isValidElement(e)?J.cloneElement(e,t):na(e)?e(t):J.createElement(yM,OE({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))}));var ZE=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),zE(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&FE(e,t)}(t,J.Component),BE(t,[{key:"render",value:function(){var e=this.props,r=e.x1,n=e.x2,o=e.y1,i=e.y2,a=e.className,c=e.alwaysShow,l=e.clipPathId;Mc(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Oa(r),s=Oa(n),f=Oa(o),p=Oa(i),d=this.props.shape;if(!(u||s||f||p||d))return null;var h=function(e,t,r,n,o){var i=o.x1,a=o.x2,c=o.y1,l=o.y2,u=o.xAxis,s=o.yAxis;if(!u||!s)return null;var f=Nk({x:u.scale,y:s.scale}),p={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(l,{position:"end"}):f.y.rangeMax};return!ZA(o,"discard")||f.isInRange(p)&&f.isInRange(d)?Dk(p,d):null}(u,s,f,p,this.props);if(!h&&!d)return null;var y=ZA(this.props,"hidden")?"url(#".concat(l,")"):void 0;return J.createElement(jc,{className:xn("recharts-reference-area",a)},t.renderRect(d,LE(LE({clipPath:y},Ka(this.props,!0)),h)),fS.renderCallByParent(this.props,h))}}])}();function WE(e,t,r){if(t<1)return[];if(1===t&&void 0===r)return e;for(var n=[],o=0;o<e.length;o+=t)n.push(e[o]);return n}function qE(e,t,r,n,o){if(e*t<e*n||e*t>e*o)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-o)<=0}function YE(e){return YE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YE(e)}function XE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function GE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?XE(Object(r),!0).forEach((function(t){KE(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function KE(e,t,r){return t=function(e){var t=function(e,t){if("object"!=YE(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=YE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==YE(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JE(e,t,r){var n=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,c=e.orientation,l=e.interval,u=e.tickFormatter,s=e.unit,f=e.angle;if(!o||!o.length||!n)return[];if(xa(l)||vh)return function(e,t){return WE(e,t+1)}(o,"number"==typeof l&&xa(l)?l:0);var p=[],d="top"===c||"bottom"===c?"width":"height",h=s&&"width"===d?cy(s,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=function(e,n){var o=na(u)?u(e.value,n):e.value;return"width"===d?function(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Uk(n,r)}(cy(o,{fontSize:t,letterSpacing:r}),h,f):cy(o,{fontSize:t,letterSpacing:r})[d]},v=o.length>=2?ba(o[1].coordinate-o[0].coordinate):1,m=function(e,t,r){var n="width"===r,o=e.x,i=e.y,a=e.width,c=e.height;return 1===t?{start:n?o:i,end:n?o+a:i+c}:{start:n?o+a:i+c,end:n?o:i}}(i,v,d);return"equidistantPreserveStart"===l?function(e,t,r,n,o){for(var i,a=(n||[]).slice(),c=t.start,l=t.end,u=0,s=1,f=c,p=function(){var t=null==n?void 0:n[u];if(void 0===t)return{v:WE(n,s)};var i,a=u,p=function(){return void 0===i&&(i=r(t,a)),i},d=t.coordinate,h=0===u||qE(e,d,p,f,l);h||(u=0,f=c,s+=1),h&&(f=d+e*(p()/2+o),u+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,m,y,o,a):(p="preserveStart"===l||"preserveStartEnd"===l?function(e,t,r,n,o,i){var a=(n||[]).slice(),c=a.length,l=t.start,u=t.end;if(i){var s=n[c-1],f=r(s,c-1),p=e*(s.coordinate+e*f/2-u);a[c-1]=s=GE(GE({},s),{},{tickCoord:p>0?s.coordinate-p*e:s.coordinate}),qE(e,s.tickCoord,(function(){return f}),l,u)&&(u=s.tickCoord-e*(f/2+o),a[c-1]=GE(GE({},s),{},{isShow:!0}))}for(var d=i?c-1:c,h=function(t){var n,i=a[t],c=function(){return void 0===n&&(n=r(i,t)),n};if(0===t){var s=e*(i.coordinate-e*c()/2-l);a[t]=i=GE(GE({},i),{},{tickCoord:s<0?i.coordinate-s*e:i.coordinate})}else a[t]=i=GE(GE({},i),{},{tickCoord:i.coordinate});qE(e,i.tickCoord,c,l,u)&&(l=i.tickCoord+e*(c()/2+o),a[t]=GE(GE({},i),{},{isShow:!0}))},y=0;y<d;y++)h(y);return a}(v,m,y,o,a,"preserveStartEnd"===l):function(e,t,r,n,o){for(var i=(n||[]).slice(),a=i.length,c=t.start,l=t.end,u=function(t){var n,u=i[t],s=function(){return void 0===n&&(n=r(u,t)),n};if(t===a-1){var f=e*(u.coordinate+e*s()/2-l);i[t]=u=GE(GE({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate})}else i[t]=u=GE(GE({},u),{},{tickCoord:u.coordinate});qE(e,u.tickCoord,s,c,l)&&(l=u.tickCoord-e*(s()/2+o),i[t]=GE(GE({},u),{},{isShow:!0}))},s=a-1;s>=0;s--)u(s);return i}(v,m,y,o,a),p.filter((function(e){return e.isShow})))}VE(ZE,"displayName","ReferenceArea"),VE(ZE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),VE(ZE,"renderRect",(function(e,t){return J.isValidElement(e)?J.cloneElement(e,t):na(e)?e(t):J.createElement(dM,IE({},t,{className:"recharts-reference-area-rect"}))}));var QE=["viewBox"],eC=["viewBox"],tC=["ticks"];function rC(e){return rC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rC(e)}function nC(){return nC=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},nC.apply(this,arguments)}function oC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function iC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oC(Object(r),!0).forEach((function(t){pC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function aC(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function cC(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,dC(n.key),n)}}function lC(e,t,r){return t=sC(t),function(e,t){if(t&&("object"===rC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,uC()?Reflect.construct(t,r||[],sC(e).constructor):t.apply(e,r))}function uC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uC=function(){return!!e})()}function sC(e){return sC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sC(e)}function fC(e,t){return fC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fC(e,t)}function pC(e,t,r){return(t=dC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dC(e){var t=function(e,t){if("object"!=rC(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=rC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==rC(t)?t:t+""}var hC=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=lC(this,t,[e])).state={fontSize:"",letterSpacing:""},r}return function(e,t){if("function"!=typeof t&&null!==t)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&&fC(e,t)}(t,de),r=t,n=[{key:"shouldComponentUpdate",value:function(e,t){var r=e.viewBox,n=aC(e,QE),o=this.props,i=o.viewBox,a=aC(o,eC);return!Ea(r,i)||!Ea(n,a)||!Ea(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,r,n,o,i,a,c=this.props,l=c.x,u=c.y,s=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,y=c.tickMargin,v=h?-1:1,m=e.tickSize||d,g=xa(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=r=e.coordinate,a=(n=(o=u+ +!h*f)-v*m)-v*y,i=g;break;case"left":n=o=e.coordinate,i=(t=(r=l+ +!h*s)-v*m)-v*y,a=g;break;case"right":n=o=e.coordinate,i=(t=(r=l+ +h*s)+v*m)+v*y,a=g;break;default:t=r=e.coordinate,a=(n=(o=u+ +h*f)+v*m)+v*y,i=g}return{line:{x1:t,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,r=t.orientation,n=t.mirror;switch(r){case"left":e=n?"start":"end";break;case"right":e=n?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,r=e.mirror,n="end";switch(t){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,i=e.orientation,a=e.mirror,c=e.axisLine,l=iC(iC(iC({},Ka(this.props,!1)),Ka(c,!1)),{},{fill:"none"});if("top"===i||"bottom"===i){var u=+("top"===i&&!a||"bottom"===i&&a);l=iC(iC({},l),{},{x1:t,y1:r+u*o,x2:t+n,y2:r+u*o})}else{var s=+("left"===i&&!a||"right"===i&&a);l=iC(iC({},l),{},{x1:t+s*n,y1:r,x2:t+s*n,y2:r+o})}return J.createElement("line",nC({},l,{className:xn("recharts-cartesian-axis-line",Gi(c,"className"))}))}},{key:"renderTicks",value:function(e,r,n){var o=this,i=this.props,a=i.tickLine,c=i.stroke,l=i.tick,u=i.tickFormatter,s=i.unit,f=JE(iC(iC({},this.props),{},{ticks:e}),r,n),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=Ka(this.props,!1),y=Ka(l,!1),v=iC(iC({},h),{},{fill:"none"},Ka(a,!1)),m=f.map((function(e,r){var n=o.getTickLineCoord(e),i=n.line,m=n.tick,g=iC(iC(iC(iC({textAnchor:p,verticalAnchor:d},h),{},{stroke:"none",fill:c},y),m),{},{index:r,payload:e,visibleTicksCount:f.length,tickFormatter:u});return J.createElement(jc,nC({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},Ra(o.props,e,r)),a&&J.createElement("line",nC({},v,i,{className:xn("recharts-cartesian-axis-tick-line",Gi(a,"className"))})),l&&t.renderTickItem(l,g,"".concat(na(u)?u(e.value,r):e.value).concat(s||"")))}));return J.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,t=this.props,r=t.axisLine,n=t.width,o=t.height,i=t.ticksGenerator,a=t.className;if(t.hide)return null;var c=this.props,l=c.ticks,u=aC(c,tC),s=l;return na(i)&&(s=l&&l.length>0?i(this.props):i(u)),n<=0||o<=0||!s||!s.length?null:J.createElement(jc,{className:xn("recharts-cartesian-axis",a),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),fS.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(e,t,r){return J.isValidElement(e)?J.cloneElement(e,t):na(e)?e(t):J.createElement(Ry,nC({},t,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&cC(r.prototype,n),o&&cC(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();pC(hC,"displayName","CartesianAxis"),pC(hC,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var yC=["type","layout","connectNulls","ref"],vC=["key"];function mC(e){return mC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mC(e)}function gC(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function bC(){return bC=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},bC.apply(this,arguments)}function wC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wC(Object(r),!0).forEach((function(t){EC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function OC(e){return function(e){if(Array.isArray(e))return SC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return SC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SC(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jC(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,CC(n.key),n)}}function PC(e,t,r){return t=AC(t),function(e,t){if(t&&("object"===mC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,MC()?Reflect.construct(t,r||[],AC(e).constructor):t.apply(e,r))}function MC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(MC=function(){return!!e})()}function AC(e){return AC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},AC(e)}function kC(e,t){return kC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kC(e,t)}function EC(e,t,r){return(t=CC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CC(e){var t=function(e,t){if("object"!=mC(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=mC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mC(t)?t:t+""}var _C=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return EC(e=PC(this,t,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),EC(e,"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),EC(e,"getStrokeDasharray",(function(r,n,o){var i=o.reduce((function(e,t){return e+t}));if(!i)return e.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/i),c=r%i,l=n-r,u=[],s=0,f=0;s<o.length;f+=o[s],++s)if(f+o[s]>c){u=[].concat(OC(o.slice(0,s)),[c-f]);break}var p=u.length%2==0?[0,l]:[l];return[].concat(OC(t.repeat(o,a)),OC(u),p).map((function(e){return"".concat(e,"px")})).join(", ")})),EC(e,"id",ja("recharts-line-")),EC(e,"pathRef",(function(t){e.mainCurve=t})),EC(e,"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),EC(e,"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return function(e,t){if("function"!=typeof t&&null!==t)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&&kC(e,t)}(t,te),r=t,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,o=r.xAxis,i=r.yAxis,a=r.layout,c=Wa(r.children,lO);if(!c)return null;var l=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:wO(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(t,")"):null};return J.createElement(jc,u,c.map((function(e){return J.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,dataPointFormatter:l})})))}},{key:"renderDots",value:function(e,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.dot,a=o.points,c=o.dataKey,l=Ka(this.props,!1),u=Ka(i,!0),s=a.map((function(e,r){var n=xC(xC(xC({key:"dot-".concat(r),r:3},l),u),{},{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:r,payload:e.payload});return t.renderDotItem(i,n)})),f={clipPath:e?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return J.createElement(jc,bC({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(e,t,r,n){var o=this.props,i=o.type,a=o.layout,c=o.connectNulls;o.ref;var l=gC(o,yC),u=xC(xC(xC({},Ka(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(r,")"):null,points:e},n),{},{type:i,layout:a,connectNulls:c});return J.createElement(XS,bC({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var r=this,n=this.props,o=n.points,i=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,d=n.height,h=this.state,y=h.prevPoints,v=h.totalLength;return J.createElement(rM,{begin:c,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(y){var c=y.length/o.length,l=o.map((function(e,t){var r=Math.floor(t*c);if(y[r]){var n=y[r],o=Aa(n.x,e.x),i=Aa(n.y,e.y);return xC(xC({},e),{},{x:o(a),y:i(a)})}if(f){var l=Aa(2*p,e.x),u=Aa(d/2,e.y);return xC(xC({},e),{},{x:l(a),y:u(a)})}return xC(xC({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(l,e,t)}var u,s=Aa(0,v)(a);if(i){var h="".concat(i).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=r.getStrokeDasharray(s,v,h)}else u=r.generateSimpleStrokeDasharray(v,s);return r.renderCurveStatically(o,e,t,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(e,t){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,c=i.totalLength;return o&&n&&n.length&&(!a&&c>0||!Vw(a,n))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(n,e,t)}},{key:"render",value:function(){var e,t=this.props,r=t.hide,n=t.dot,o=t.points,i=t.className,a=t.xAxis,c=t.yAxis,l=t.top,u=t.left,s=t.width,f=t.height,p=t.isAnimationActive,d=t.id;if(r||!o||!o.length)return null;var h=this.state.isAnimationFinished,y=1===o.length,v=xn("recharts-line",i),m=a&&a.allowDataOverflow,g=c&&c.allowDataOverflow,b=m||g,w=Qi(d)?this.id:d,x=null!==(e=Ka(n,!1))&&void 0!==e?e:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,P=void 0===j?2:j,M=(Ga(n)?n:{}).clipDot,A=void 0===M||M,k=2*S+P;return J.createElement(jc,{className:v},m||g?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(w)},J.createElement("rect",{x:m?u:u-s/2,y:g?l:l-f/2,width:m?s:2*s,height:g?f:2*f})),!A&&J.createElement("clipPath",{id:"clipPath-dots-".concat(w)},J.createElement("rect",{x:u-k/2,y:l-k/2,width:s+k,height:f+k}))):null,!y&&this.renderCurve(b,w),this.renderErrorBar(b,w),(y||n)&&this.renderDots(b,A,w),(!p||h)&&kS.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var r=e.length%2!=0?[].concat(OC(e),[0]):e,n=[],o=0;o<t;++o)n=[].concat(OC(n),OC(r));return n}},{key:"renderDotItem",value:function(e,t){var r;if(J.isValidElement(e))r=J.cloneElement(e,t);else if(na(e))r=e(t);else{var n=t.key,o=gC(t,vC),i=xn("recharts-line-dot","boolean"!=typeof e?e.className:"");r=J.createElement(yM,bC({key:n},o,{className:i}))}return r}}],n&&jC(r.prototype,n),o&&jC(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();EC(_C,"displayName","Line"),EC(_C,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!vh,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),EC(_C,"getComposedData",(function(e){var t=e.props,r=e.xAxis,n=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,c=e.bandSize,l=e.displayedData,u=e.offset,s=t.layout;return xC({points:l.map((function(e,t){var l=wO(e,a);return"horizontal"===s?{x:TO({axis:r,ticks:o,bandSize:c,entry:e,index:t}),y:Qi(l)?null:n.scale(l),value:l,payload:e}:{x:Qi(l)?null:r.scale(l),y:TO({axis:n,ticks:i,bandSize:c,entry:e,index:t}),value:l,payload:e}})),layout:s},u)}));var TC,DC=["layout","type","stroke","connectNulls","isRange","ref"],IC=["key"];function NC(e){return NC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NC(e)}function RC(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function LC(){return LC=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},LC.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(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?BC(Object(r),!0).forEach((function(t){ZC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $C(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,WC(n.key),n)}}function HC(e,t,r){return t=VC(t),function(e,t){if(t&&("object"===NC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,FC()?Reflect.construct(t,r||[],VC(e).constructor):t.apply(e,r))}function FC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(FC=function(){return!!e})()}function VC(e){return VC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VC(e)}function UC(e,t){return UC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UC(e,t)}function ZC(e,t,r){return(t=WC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WC(e){var t=function(e,t){if("object"!=NC(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=NC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==NC(t)?t:t+""}var qC=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return ZC(e=HC(this,t,[].concat(n)),"state",{isAnimationFinished:!0}),ZC(e,"id",ja("recharts-area-")),ZC(e,"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),na(t)&&t()})),ZC(e,"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),na(t)&&t()})),e}return function(e,t){if("function"!=typeof t&&null!==t)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&&UC(e,t)}(t,te),r=t,n=[{key:"renderDots",value:function(e,r,n){var o=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(o&&!i)return null;var a=this.props,c=a.dot,l=a.points,u=a.dataKey,s=Ka(this.props,!1),f=Ka(c,!0),p=l.map((function(e,r){var n=zC(zC(zC({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:e.x,cy:e.y,dataKey:u,value:e.value,payload:e.payload,points:l});return t.renderDotItem(c,n)})),d={clipPath:e?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return J.createElement(jc,LC({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,r=t.baseLine,n=t.points,o=t.strokeWidth,i=n[0].x,a=n[n.length-1].x,c=e*Math.abs(i-a),l=_w(n.map((function(e){return e.y||0})));return xa(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(_w(r.map((function(e){return e.y||0}))),l)),xa(l)?J.createElement("rect",{x:i<a?i:i-c,y:0,width:c,height:Math.floor(l+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,r=t.baseLine,n=t.points,o=t.strokeWidth,i=n[0].y,a=n[n.length-1].y,c=e*Math.abs(i-a),l=_w(n.map((function(e){return e.x||0})));return xa(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(_w(r.map((function(e){return e.x||0}))),l)),xa(l)?J.createElement("rect",{x:0,y:i<a?i:i-c,width:l+(o?parseInt("".concat(o),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,t,r,n){var o=this.props,i=o.layout,a=o.type,c=o.stroke,l=o.connectNulls,u=o.isRange;o.ref;var s=RC(o,DC);return J.createElement(jc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},J.createElement(XS,LC({},Ka(s,!0),{points:e,connectNulls:l,type:a,baseLine:t,layout:i,stroke:"none",className:"recharts-area-area"})),"none"!==c&&J.createElement(XS,LC({},Ka(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:l,fill:"none",points:e})),"none"!==c&&u&&J.createElement(XS,LC({},Ka(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:l,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var r=this,n=this.props,o=n.points,i=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,d=f.prevBaseLine;return J.createElement(rM,{begin:c,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var c,l=p.length/o.length,u=o.map((function(e,t){var r=Math.floor(t*l);if(p[r]){var n=p[r],o=Aa(n.x,e.x),i=Aa(n.y,e.y);return zC(zC({},e),{},{x:o(a),y:i(a)})}return e}));return c=xa(i)&&"number"==typeof i?Aa(d,i)(a):Qi(i)||ma(i)?Aa(d,0)(a):i.map((function(e,t){var r=Math.floor(t*l);if(d[r]){var n=d[r],o=Aa(n.x,e.x),i=Aa(n.y,e.y);return zC(zC({},e),{},{x:o(a),y:i(a)})}return e})),r.renderAreaStatically(u,c,e,t)}return J.createElement(jc,null,J.createElement("defs",null,J.createElement("clipPath",{id:"animationClipPath-".concat(t)},r.renderClipRect(a))),J.createElement(jc,{clipPath:"url(#animationClipPath-".concat(t,")")},r.renderAreaStatically(o,i,e,t)))}))}},{key:"renderArea",value:function(e,t){var r=this.props,n=r.points,o=r.baseLine,i=r.isAnimationActive,a=this.state,c=a.prevPoints,l=a.prevBaseLine,u=a.totalLength;return i&&n&&n.length&&(!c&&u>0||!Vw(c,n)||!Vw(l,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(n,o,e,t)}},{key:"render",value:function(){var e,t=this.props,r=t.hide,n=t.dot,o=t.points,i=t.className,a=t.top,c=t.left,l=t.xAxis,u=t.yAxis,s=t.width,f=t.height,p=t.isAnimationActive,d=t.id;if(r||!o||!o.length)return null;var h=this.state.isAnimationFinished,y=1===o.length,v=xn("recharts-area",i),m=l&&l.allowDataOverflow,g=u&&u.allowDataOverflow,b=m||g,w=Qi(d)?this.id:d,x=null!==(e=Ka(n,!1))&&void 0!==e?e:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,P=void 0===j?2:j,M=(Ga(n)?n:{}).clipDot,A=void 0===M||M,k=2*S+P;return J.createElement(jc,{className:v},m||g?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(w)},J.createElement("rect",{x:m?c:c-s/2,y:g?a:a-f/2,width:m?s:2*s,height:g?f:2*f})),!A&&J.createElement("clipPath",{id:"clipPath-dots-".concat(w)},J.createElement("rect",{x:c-k/2,y:a-k/2,width:s+k,height:f+k}))):null,y?null:this.renderArea(b,w),(n||y)&&this.renderDots(b,A,w),(!p||h)&&kS.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],n&&$C(r.prototype,n),o&&$C(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function YC(e){return YC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YC(e)}function XC(e,t,r){return t&&function(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,t_(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GC(e,t,r){return t=JC(t),function(e,t){if(t&&("object"===YC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,KC()?Reflect.construct(t,r||[],JC(e).constructor):t.apply(e,r))}function KC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(KC=function(){return!!e})()}function JC(e){return JC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JC(e)}function QC(e,t){return QC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QC(e,t)}function e_(e,t,r){return(t=t_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t_(e){var t=function(e,t){if("object"!=YC(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=YC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==YC(t)?t:t+""}function r_(){return r_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r_.apply(this,arguments)}function n_(e){var t=e.xAxisId,r=iE(),n=aE(),o=nE(t);return null==o?null:J.createElement(hC,r_({},o,{className:xn("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(e){return MO(e,!0)}}))}TC=qC,ZC(qC,"displayName","Area"),ZC(qC,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!vh,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),ZC(qC,"getBaseValue",(function(e,t,r,n){var o=e.layout,i=e.baseValue,a=t.props.baseValue,c=null!=a?a:i;if(xa(c)&&"number"==typeof c)return c;var l="horizontal"===o?n:r,u=l.scale.domain();if("number"===l.type){var s=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===c?u[0]:"dataMax"===c?u[1]:u[0]})),ZC(qC,"getComposedData",(function(e){var t,r=e.props,n=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,c=e.yAxisTicks,l=e.bandSize,u=e.dataKey,s=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=r.layout,y=s&&s.length,v=TC.getBaseValue(r,n,o,i),m="horizontal"===h,g=!1,b=p.map((function(e,t){var r;y?r=s[f+t]:(r=wO(e,u),Array.isArray(r)?g=!0:r=[v,r]);var n=null==r[1]||y&&null==wO(e,u);return m?{x:TO({axis:o,ticks:a,bandSize:l,entry:e,index:t}),y:n?null:i.scale(r[1]),value:r,payload:e}:{x:n?null:o.scale(r[1]),y:TO({axis:i,ticks:c,bandSize:l,entry:e,index:t}),value:r,payload:e}}));return t=y||g?b.map((function(e){var t=Array.isArray(e.value)?e.value[0]:null;return m?{x:e.x,y:null!=t&&null!=e.y?i.scale(t):null}:{x:null!=t?o.scale(t):null,y:e.y}})):m?i.scale(v):o.scale(v),zC({points:b,baseLine:t,layout:h,isRange:g},d)})),ZC(qC,"renderDotItem",(function(e,t){var r;if(J.isValidElement(e))r=J.cloneElement(e,t);else if(na(e))r=e(t);else{var n=xn("recharts-area-dot","boolean"!=typeof e?e.className:""),o=t.key,i=RC(t,IC);r=J.createElement(yM,LC({},i,{key:o,className:n}))}return r}));var o_=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),GC(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&QC(e,t)}(t,J.Component),XC(t,[{key:"render",value:function(){return J.createElement(n_,this.props)}}])}();function i_(e){return i_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i_(e)}function a_(e,t,r){return t&&function(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)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function c_(e,t,r){return t=u_(t),function(e,t){if(t&&("object"===i_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l_()?Reflect.construct(t,r||[],u_(e).constructor):t.apply(e,r))}function l_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l_=function(){return!!e})()}function u_(e){return u_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u_(e)}function s_(e,t){return s_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s_(e,t)}function f_(e,t,r){return(t=p_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p_(e){var t=function(e,t){if("object"!=i_(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=i_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i_(t)?t:t+""}function d_(){return d_=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},d_.apply(this,arguments)}e_(o_,"displayName","XAxis"),e_(o_,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var h_=function(e){var t=e.yAxisId,r=iE(),n=aE(),o=oE(t);return null==o?null:J.createElement(hC,d_({},o,{className:xn("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(e){return MO(e,!0)}}))},y_=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c_(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&s_(e,t)}(t,J.Component),a_(t,[{key:"render",value:function(){return J.createElement(h_,this.props)}}])}();function v_(e){return function(e){if(Array.isArray(e))return m_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m_(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}f_(y_,"displayName","YAxis"),f_(y_,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var g_,b_=function(e,t,r,n,o){var i=Wa(e,xE),a=Wa(e,DE),c=[].concat(v_(i),v_(a)),l=Wa(e,ZE),u="".concat(n,"Id"),s=n[0],f=t;if(c.length&&(f=c.reduce((function(e,t){if(t.props[u]===r&&ZA(t.props,"extendDomain")&&xa(t.props[s])){var n=t.props[s];return[Math.min(e[0],n),Math.max(e[1],n)]}return e}),f)),l.length){var p="".concat(s,"1"),d="".concat(s,"2");f=l.reduce((function(e,t){if(t.props[u]===r&&ZA(t.props,"extendDomain")&&xa(t.props[p])&&xa(t.props[d])){var n=t.props[p],o=t.props[d];return[Math.min(e[0],n,o),Math.max(e[1],n,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return xa(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},w_={exports:{}};var x_=(g_||(g_=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||e,a),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],c]:e._events[l].push(c):(e._events[l]=c,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,o,i,a){var c=r?r+e:e;if(!this._events[c])return!1;var l,u,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(e,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,t),!0;case 3:return s.fn.call(s.context,t,n),!0;case 4:return s.fn.call(s.context,t,n,o),!0;case 5:return s.fn.call(s.context,t,n,o,i),!0;case 6:return s.fn.call(s.context,t,n,o,i,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];s.fn.apply(s.context,l)}else{var p,d=s.length;for(u=0;u<d;u++)switch(s[u].once&&this.removeListener(e,s[u].fn,void 0,!0),f){case 1:s[u].fn.call(s[u].context);break;case 2:s[u].fn.call(s[u].context,t);break;case 3:s[u].fn.call(s[u].context,t,n);break;case 4:s[u].fn.call(s[u].context,t,n,o);break;default:if(!l)for(p=1,l=new Array(f-1);p<f;p++)l[p-1]=arguments[p];s[u].fn.apply(s[u].context,l)}}return!0},c.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},c.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},c.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==t||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var l=0,u=[],s=c.length;l<s;l++)(c[l].fn!==t||o&&!c[l].once||n&&c[l].context!==n)&&u.push(c[l]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,e.exports=c}(w_)),w_.exports),O_=new(tr(x_)),S_="recharts.syncMouseEvents";function j_(e){return j_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j_(e)}function P_(e,t,r){return t&&function(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,A_(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function M_(e,t,r){return(t=A_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A_(e){var t=function(e,t){if("object"!=j_(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=j_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==j_(t)?t:t+""}var k_=function(){return P_((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),M_(this,"activeIndex",0),M_(this,"coordinateList",[]),M_(this,"layout","horizontal")}),[{key:"setDetails",value:function(e){var t,r=e.coordinateList,n=void 0===r?null:r,o=e.container,i=void 0===o?null:o,a=e.layout,c=void 0===a?null:a,l=e.offset,u=void 0===l?null:l,s=e.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(t=null!=n?n:this.coordinateList)&&void 0!==t?t:[],this.container=null!=i?i:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=u?u:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,l=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,u=n+a+c,s=o+this.offset.top+i/2+l;this.mouseHandlerCallback({pageX:u,pageY:s})}}}])}();function E_(e){var t=e.cx,r=e.cy,n=e.radius,o=e.startAngle,i=e.endAngle;return{points:[qO(t,r,n,o),qO(t,r,n,i)],cx:t,cy:r,radius:n,startAngle:o,endAngle:i}}function C_(e,t,r){var n,o,i,a;if("horizontal"===e)i=n=t.x,o=r.top,a=r.top+r.height;else if("vertical"===e)a=o=t.y,n=r.left,i=r.left+r.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return E_(t);var c=t.cx,l=t.cy,u=t.innerRadius,s=t.outerRadius,f=t.angle,p=qO(c,l,u,f),d=qO(c,l,s,f);n=p.x,o=p.y,i=d.x,a=d.y}return[{x:n,y:o},{x:i,y:a}]}function __(e){return __="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},__(e)}function T_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T_(Object(r),!0).forEach((function(t){I_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I_(e,t,r){return t=function(e){var t=function(e,t){if("object"!=__(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=__(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==__(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N_(e){var t,r,n,o=e.element,i=e.tooltipEventType,a=e.isActive,c=e.activeCoordinate,l=e.activePayload,u=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,p=e.layout,d=e.chartName,h=null!==(t=o.props.cursor)&&void 0!==t?t:null===(r=o.type.defaultProps)||void 0===r?void 0:r.cursor;if(!o||!h||!a||!c||"ScatterChart"!==d&&"axis"!==i)return null;var y=XS;if("ScatterChart"===d)n=c,y=AM;else if("BarChart"===d)n=function(e,t,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:t.y-o,width:"horizontal"===e?n:r.width-1,height:"horizontal"===e?r.height-1:n}}(p,c,u,f),y=dM;else if("radial"===p){var v=E_(c),m=v.cx,g=v.cy,b=v.radius;n={cx:m,cy:g,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:b,outerRadius:b},y=LS}else n={points:C_(p,c,u)},y=XS;var w=D_(D_(D_(D_({stroke:"#ccc",pointerEvents:"none"},u),n),Ka(h,!1)),{},{payload:l,payloadIndex:s,className:xn("recharts-tooltip-cursor",h.className)});return Q(h)?ue(h,w):se(y,w)}var R_=["item"],L_=["children","className","width","height","style","compact","title","desc"];function B_(e){return B_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B_(e)}function z_(){return z_=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},z_.apply(this,arguments)}function $_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||Y_(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H_(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function F_(e,t,r){return t&&function(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,Q_(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function V_(e,t,r){return t=Z_(t),function(e,t){if(t&&("object"===B_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,U_()?Reflect.construct(t,r||[],Z_(e).constructor):t.apply(e,r))}function U_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(U_=function(){return!!e})()}function Z_(e){return Z_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z_(e)}function W_(e,t){return W_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},W_(e,t)}function q_(e){return function(e){if(Array.isArray(e))return X_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Y_(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y_(e,t){if(e){if("string"==typeof e)return X_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?X_(e,t):void 0}}function X_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function G_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G_(Object(r),!0).forEach((function(t){J_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J_(e,t,r){return(t=Q_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q_(e){var t=function(e,t){if("object"!=B_(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=B_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==B_(t)?t:t+""}var eT={xAxis:["bottom","top"],yAxis:["left","right"]},tT={width:"100%",height:"100%"},rT={x:0,y:0};function nT(e){return e}var oT=function(e,t){var r=t.graphicalItems,n=t.dataStartIndex,o=t.dataEndIndex,i=(null!=r?r:[]).reduce((function(e,t){var r=t.props.data;return r&&r.length?[].concat(q_(e),q_(r)):e}),[]);return i.length>0?i:e&&e.length&&xa(n)&&xa(o)?e.slice(n,o+1):[]};function iT(e){return"number"===e?[0,"auto"]:void 0}var aT=function(e,t,r,n){var o=e.graphicalItems,i=e.tooltipAxis,a=oT(t,e);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,c){var l,u,s=null!==(l=c.props.data)&&void 0!==l?l:t;(s&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=r&&(s=s.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?u=ka(void 0===s?a:s,i.dataKey,n):u=s&&s[r]||a[r];return u?[].concat(q_(o),[$O(c,u)]):o}),[])},cT=function(e,t,r,n){var o=n||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,r),a=e.orderedTooltipTicks,c=e.tooltipAxis,l=e.tooltipTicks,u=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,l=0;l<a;l++){var u=l>0?n[l-1].coordinate:n[a-1].coordinate,s=n[l].coordinate,f=l>=a-1?n[0].coordinate:n[l+1].coordinate,p=void 0;if(ba(s-u)!==ba(f-s)){var d=[];if(ba(f-s)===ba(c[1]-c[0])){p=f;var h=s+c[1]-c[0];d[0]=Math.min(h,(h+u)/2),d[1]=Math.max(h,(h+u)/2)}else{p=u;var y=f+c[1]-c[0];d[0]=Math.min(s,(y+s)/2),d[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){i=n[l].index;break}}else{var m=Math.min(u,f),g=Math.max(u,f);if(e>(m+s)/2&&e<=(g+s)/2){i=n[l].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&e>(r[b].coordinate+r[b-1].coordinate)/2&&e<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&e>(r[b].coordinate+r[b-1].coordinate)/2){i=r[b].index;break}return i}(i,a,l,c);if(u>=0&&l){var s=l[u]&&l[u].value,f=aT(e,t,u,s),p=function(e,t,r,n){var o=t.find((function(e){return e&&e.index===r}));if(o){if("horizontal"===e)return{x:o.coordinate,y:n.y};if("vertical"===e)return{x:n.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=n.radius;return K_(K_(K_({},n),qO(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,l=n.angle;return K_(K_(K_({},n),qO(n.cx,n.cy,c,l)),{},{angle:l,radius:c})}return rT}(r,a,u,o);return{activeTooltipIndex:u,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},lT=function(e,t){var r=t.axes,n=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,l=t.dataEndIndex,u=e.layout,s=e.children,f=e.stackOffset,p=PO(u,o);return r.reduce((function(t,r){var d,h=void 0!==r.type.defaultProps?K_(K_({},r.type.defaultProps),r.props):r.props,y=h.type,v=h.dataKey,m=h.allowDataOverflow,g=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,O=h[i];if(t[O])return t;var S,j,P,M=oT(e.data,{graphicalItems:n.filter((function(e){var t;return(i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i])===O})),dataStartIndex:c,dataEndIndex:l}),A=M.length;(function(e,t,r){if("number"===r&&!0===t&&Array.isArray(e)){var n=null==e?void 0:e[0],o=null==e?void 0:e[1];if(n&&o&&xa(n)&&xa(o))return!0}return!1})(h.domain,m,y)&&(S=LO(h.domain,null,m),!p||"number"!==y&&"auto"===b||(P=xO(M,v,"category")));var k=iT(y);if(!S||0===S.length){var E,C=null!==(E=h.domain)&&void 0!==E?E:k;if(v){if(S=xO(M,v,y),"category"===y&&p){var _=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++){if(r[e[n]])return!0;r[e[n]]=!0}return!1}(S);g&&_?(j=S,S=vA(0,A)):g||(S=zO(C,S,r).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(q_(e),[t])}),[]))}else if("category"===y)S=g?S.filter((function(e){return""!==e&&!Qi(e)})):zO(C,S,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Qi(t)?e:[].concat(q_(e),[t])}),[]);else if("number"===y){var T=function(e,t,r,n,o){var i=t.map((function(t){return SO(e,t,r,o,n)})).filter((function(e){return!Qi(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(M,n.filter((function(e){var t,r,n=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],o="hide"in e.props?e.props.hide:null===(r=e.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!o)})),v,o,u);T&&(S=T)}!p||"number"!==y&&"auto"===b||(P=xO(M,v,"category"))}else S=p?vA(0,A):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:IO(a[O].stackGroups,c,l):jO(M,n.filter((function(e){var t=i in e.props?e.props[i]:e.type.defaultProps[i],r="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===O&&(x||!r)})),y,u,!0);if("number"===y)S=b_(s,S,O,o,w),C&&(S=LO(C,S,m));else if("category"===y&&C){var D=C;S.every((function(e){return D.indexOf(e)>=0}))&&(S=D)}}return K_(K_({},t),{},J_({},O,K_(K_({},h),{},{axisType:o,domain:S,categoricalDomain:P,duplicateDomain:j,originalDomain:null!==(d=h.domain)&&void 0!==d?d:k,isCategorical:p,layout:u})))}),{})},uT=function(e,t){var r=t.axisType,n=void 0===r?"xAxis":r,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,c=t.dataStartIndex,l=t.dataEndIndex,u=e.children,s="".concat(n,"Id"),f=Wa(u,o),p={};return f&&f.length?p=lT(e,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l}):i&&i.length&&(p=function(e,t){var r=t.graphicalItems,n=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,l=t.dataEndIndex,u=e.layout,s=e.children,f=oT(e.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:l}),p=f.length,d=PO(u,o),h=-1;return r.reduce((function(e,t){var y,v=(void 0!==t.type.defaultProps?K_(K_({},t.type.defaultProps),t.props):t.props)[i],m=iT("number");return e[v]?e:(h++,d?y=vA(0,p):a&&a[v]&&a[v].hasStack?(y=IO(a[v].stackGroups,c,l),y=b_(s,y,v,o)):(y=LO(m,jO(f,r.filter((function(e){var t,r,n=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],o="hide"in e.props?e.props.hide:null===(r=e.type.defaultProps)||void 0===r?void 0:r.hide;return n===v&&!o})),"number",u),n.defaultProps.allowDataOverflow),y=b_(s,y,v,o)),K_(K_({},e),{},J_({},v,K_(K_({axisType:o},n.defaultProps),{},{hide:!0,orientation:Gi(eT,"".concat(o,".").concat(h%2),null),domain:y,originalDomain:m,isCategorical:d,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l})),p},sT=function(e){var t=e.children,r=e.defaultShowTooltip,n=qa(t,BA),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},fT=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},pT=function(e,t){var r=e.props,n=(e.graphicalItems,e.xAxisMap),o=void 0===n?{}:n,i=e.yAxisMap,a=void 0===i?{}:i,c=r.width,l=r.height,u=r.children,s=r.margin||{},f=qa(u,BA),p=qa(u,Ed),d=Object.keys(a).reduce((function(e,t){var r=a[t],n=r.orientation;return r.mirror||r.hide?e:K_(K_({},e),{},J_({},n,e[n]+r.width))}),{left:s.left||0,right:s.right||0}),h=Object.keys(o).reduce((function(e,t){var r=o[t],n=r.orientation;return r.mirror||r.hide?e:K_(K_({},e),{},J_({},n,Gi(e,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=K_(K_({},h),d),v=y.bottom;f&&(y.bottom+=f.props.height||BA.defaultProps.height),p&&t&&(y=function(e,t,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),l=dO({children:o,legendWidth:c});if(l){var u=n||{},s=u.width,f=u.height,p=l.align,d=l.verticalAlign,h=l.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&xa(e[p]))return gO(gO({},e),{},bO({},p,e[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&xa(e[d]))return gO(gO({},e),{},bO({},d,e[d]+(f||0)))}return e}(y,0,r,t));var m=c-y.left-y.right,g=l-y.top-y.bottom;return K_(K_({brushBottom:v},y),{},{width:Math.max(m,0),height:Math.max(g,0)})},dT=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},hT=function(e){var t=e.chartName,r=e.GraphicalChild,n=e.defaultTooltipEventType,o=void 0===n?"axis":n,i=e.validateTooltipEventTypes,a=void 0===i?["axis"]:i,c=e.axisComponents,l=e.legendContent,u=e.formatAxisMap,s=e.defaultProps,f=function(e,t){var r=t.graphicalItems,n=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,l=t.dataEndIndex,u=e.barSize,s=e.layout,f=e.barGap,p=e.barCategoryGap,d=e.maxBarSize,h=fT(s),y=h.numericAxisName,v=h.cateAxisName,m=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Fa(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(r),g=[];return r.forEach((function(r,h){var b=oT(e.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:l}),w=void 0!==r.type.defaultProps?K_(K_({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(y,"Id")],j=w["".concat(v,"Id")],P=c.reduce((function(e,n){var o,i,a=t["".concat(n.axisType,"Map")],c=w["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?Yx(0,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==r||null===(i=r.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):Yx());var l=a[c];return K_(K_({},e),{},J_(J_({},n.axisType,l),"".concat(n.axisType,"Ticks"),MO(l)))}),{}),M=P[v],A=P["".concat(v,"Ticks")],k=n&&n[S]&&n[S].hasStack&&function(e,t){var r,n=(null!==(r=e.type)&&void 0!==r&&r.defaultProps?gO(gO({},e.type.defaultProps),e.props):e.props).stackId;if(Oa(n)){var o=t[n];if(o){var i=o.items.indexOf(e);return i>=0?o.stackedData[i]:null}}return null}(r,n[S].stackGroups),E=Fa(r.type).indexOf("Bar")>=0,C=BO(M,A),_=[],T=m&&function(e){var t=e.barSize,r=e.totalSize,n=e.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),c=0,l=a.length;c<l;c++)for(var u=o[a[c]].stackGroups,s=Object.keys(u),f=0,p=s.length;f<p;f++){var d=u[s[f]],h=d.items,y=d.cateAxisId,v=h.filter((function(e){return Fa(e.type).indexOf("Bar")>=0}));if(v&&v.length){var m=v[0].type.defaultProps,g=void 0!==m?gO(gO({},m),v[0].props):v[0].props,b=g.barSize,w=g[y];i[w]||(i[w]=[]);var x=Qi(b)?t:b;i[w].push({item:v[0],stackList:v.slice(1),barSize:Qi(x)?void 0:Pa(x,r,0)})}}return i}({barSize:u,stackGroups:n,totalSize:dT(P,v)});if(E){var D,I,N=Qi(O)?d:O,R=null!==(D=null!==(I=BO(M,A,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;_=function(e){var t=e.barGap,r=e.barCategoryGap,n=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,c=i.length;if(c<1)return null;var l,u=Pa(t,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,d=i.reduce((function(e,t){return e+t.barSize||0}),0);(d+=(c-1)*u)>=n&&(d-=(c-1)*u,u=0),d>=n&&p>0&&(f=!0,d=c*(p*=.9));var h={offset:((n-d)/2|0)-u,size:0};l=i.reduce((function(e,t){var r={item:t.item,position:{offset:h.offset+h.size+u,size:f?p:t.barSize}},n=[].concat(yO(e),[r]);return h=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:h})})),n}),s)}else{var y=Pa(r,n,0,!0);n-2*y-(c-1)*u<=0&&(u=0);var v=(n-2*y-(c-1)*u)/c;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;l=i.reduce((function(e,t,r){var n=[].concat(yO(e),[{item:t.item,position:{offset:y+(v+u)*r+(v-m)/2,size:m}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:n[n.length-1].position})})),n}),s)}return l}({barGap:f,barCategoryGap:p,bandSize:R!==C?R:C,sizeList:T[j],maxBarSize:N}),R!==C&&(_=_.map((function(e){return K_(K_({},e),{},{position:K_(K_({},e.position),{},{offset:e.position.offset-R/2})})})))}var L,B,z=r&&r.type&&r.type.getComposedData;z&&g.push({props:K_(K_({},z(K_(K_({},P),{},{displayedData:b,props:e,dataKey:x,item:r,bandSize:C,barPosition:_,offset:o,stackedData:k,layout:s,dataStartIndex:a,dataEndIndex:l}))),{},J_(J_(J_({key:r.key||"item-".concat(h)},y,P[y]),v,P[v]),"animationId",i)),childIndex:(L=r,B=e.children,Za(B).indexOf(L)),item:r})})),g},p=function(e,n){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!Ya({props:o}))return null;var s=o.children,p=o.layout,d=o.stackOffset,h=o.data,y=o.reverseStackOrder,v=fT(p),m=v.numericAxisName,g=v.cateAxisName,b=Wa(s,r),w=function(e,t,r,n,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o,i=null!==(o=t.type)&&void 0!==o&&o.defaultProps?gO(gO({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(i.hide)return e;var c=i[r],l=e[c]||{hasStack:!1,stackGroups:{}};if(Oa(a)){var u=l.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(t),l.hasStack=!0,l.stackGroups[a]=u}else l.stackGroups[ja("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[t]};return gO(gO({},e),{},bO({},c,l))}),{});return Object.keys(a).reduce((function(t,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(t,i){var a=c.stackGroups[i];return gO(gO({},t),{},bO({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:_O(e,a.items,o)}))}),{})),gO(gO({},t),{},bO({},i,c))}),{})}(h,b,"".concat(m,"Id"),"".concat(g,"Id"),d,y),x=c.reduce((function(e,t){var r="".concat(t.axisType,"Map");return K_(K_({},e),{},J_({},r,uT(o,K_(K_({},t),{},{graphicalItems:b,stackGroups:t.axisType===m&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),O=pT(K_(K_({},x),{},{props:o,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(e){x[e]=u(o,x[e],O,e.replace("Map",""),t)}));var S,j,P=x["".concat(g,"Map")],M=(S=Ma(P),{tooltipTicks:j=MO(S,!1,!0),orderedTooltipTicks:Vd(j,(function(e){return e.coordinate})),tooltipAxis:S,tooltipAxisBandSize:BO(S,j)}),A=f(o,K_(K_({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:w,offset:O}));return K_(K_({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:w},M),x)},d=function(e){function r(e){var n,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),J_(i=V_(this,r,[e]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),J_(i,"accessibilityManager",new k_),J_(i,"handleLegendBBoxUpdate",(function(e){if(e){var t=i.state,r=t.dataStartIndex,n=t.dataEndIndex,o=t.updateId;i.setState(K_({legendBBox:e},p({props:i.props,dataStartIndex:r,dataEndIndex:n,updateId:o},K_(K_({},i.state),{},{legendBBox:e}))))}})),J_(i,"handleReceiveSyncEvent",(function(e,t,r){if(i.props.syncId===e){if(r===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(t)}})),J_(i,"handleBrushChange",(function(e){var t=e.startIndex,r=e.endIndex;if(t!==i.state.dataStartIndex||r!==i.state.dataEndIndex){var n=i.state.updateId;i.setState((function(){return K_({dataStartIndex:t,dataEndIndex:r},p({props:i.props,dataStartIndex:t,dataEndIndex:r,updateId:n},i.state))})),i.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}})),J_(i,"handleMouseEnter",(function(e){var t=i.getMouseInfo(e);if(t){var r=K_(K_({},t),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseEnter;na(n)&&n(r,e)}})),J_(i,"triggeredAfterMouseMove",(function(e){var t=i.getMouseInfo(e),r=t?K_(K_({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseMove;na(n)&&n(r,e)})),J_(i,"handleItemMouseEnter",(function(e){i.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),J_(i,"handleItemMouseLeave",(function(){i.setState((function(){return{isTooltipActive:!1}}))})),J_(i,"handleMouseMove",(function(e){e.persist(),i.throttleTriggeredAfterMouseMove(e)})),J_(i,"handleMouseLeave",(function(e){i.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};i.setState(t),i.triggerSyncEvent(t);var r=i.props.onMouseLeave;na(r)&&r(t,e)})),J_(i,"handleOuterEvent",(function(e){var t,r=function(e){var t=e&&e.type;return t&&Ha[t]?Ha[t]:null}(e),n=Gi(i.props,"".concat(r));r&&na(n)&&n(null!==(t=/.*touch.*/i.test(r)?i.getMouseInfo(e.changedTouches[0]):i.getMouseInfo(e))&&void 0!==t?t:{},e)})),J_(i,"handleClick",(function(e){var t=i.getMouseInfo(e);if(t){var r=K_(K_({},t),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onClick;na(n)&&n(r,e)}})),J_(i,"handleMouseDown",(function(e){var t=i.props.onMouseDown;na(t)&&t(i.getMouseInfo(e),e)})),J_(i,"handleMouseUp",(function(e){var t=i.props.onMouseUp;na(t)&&t(i.getMouseInfo(e),e)})),J_(i,"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),J_(i,"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.handleMouseDown(e.changedTouches[0])})),J_(i,"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.handleMouseUp(e.changedTouches[0])})),J_(i,"triggerSyncEvent",(function(e){void 0!==i.props.syncId&&O_.emit(S_,i.props.syncId,e,i.eventEmitterSymbol)})),J_(i,"applySyncEvent",(function(e){var t=i.props,r=t.layout,n=t.syncMethod,o=i.state.updateId,a=e.dataStartIndex,c=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)i.setState(K_({dataStartIndex:a,dataEndIndex:c},p({props:i.props,dataStartIndex:a,dataEndIndex:c,updateId:o},i.state)));else if(void 0!==e.activeTooltipIndex){var l=e.chartX,u=e.chartY,s=e.activeTooltipIndex,f=i.state,d=f.offset,h=f.tooltipTicks;if(!d)return;if("function"==typeof n)s=n(h,e);else if("value"===n){s=-1;for(var y=0;y<h.length;y++)if(h[y].value===e.activeLabel){s=y;break}}var v=K_(K_({},d),{},{x:d.left,y:d.top}),m=Math.min(l,v.x+v.width),g=Math.min(u,v.y+v.height),b=h[s]&&h[s].value,w=aT(i.state,i.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:m,y:"horizontal"===r?g:h[s].coordinate}:rT;i.setState(K_(K_({},e),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else i.setState(e)})),J_(i,"renderCursor",(function(e){var r,n=i.state,o=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,l=n.offset,u=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=i.getTooltipEventType(),p=null!==(r=e.props.active)&&void 0!==r?r:o,d=i.props.layout,h=e.key||"_recharts-cursor";return J.createElement(N_,{key:h,activeCoordinate:a,activePayload:c,activeTooltipIndex:u,chartName:t,element:e,isActive:p,layout:d,offset:l,tooltipAxisBandSize:s,tooltipEventType:f})})),J_(i,"renderPolarAxis",(function(e,t,r){var n=Gi(e,"type.axisType"),o=Gi(i.state,"".concat(n,"Map")),a=e.type.defaultProps,c=void 0!==a?K_(K_({},a),e.props):e.props,l=o&&o[c["".concat(n,"Id")]];return ue(e,K_(K_({},l),{},{className:xn(n,l.className),key:e.key||"".concat(t,"-").concat(r),ticks:MO(l,!0)}))})),J_(i,"renderPolarGrid",(function(e){var t=e.props,r=t.radialLines,n=t.polarAngles,o=t.polarRadius,a=i.state,c=a.radiusAxisMap,l=a.angleAxisMap,u=Ma(c),s=Ma(l),f=s.cx,p=s.cy,d=s.innerRadius,h=s.outerRadius;return ue(e,{polarAngles:Array.isArray(n)?n:MO(s,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(o)?o:MO(u,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:h,key:e.key||"polar-grid",radialLines:r})})),J_(i,"renderLegend",(function(){var e=i.state.formattedGraphicalItems,t=i.props,r=t.children,n=t.width,o=t.height,a=i.props.margin||{},c=n-(a.left||0)-(a.right||0),u=dO({children:r,formattedGraphicalItems:e,legendWidth:c,legendContent:l});if(!u)return null;var s=u.item,f=H_(u,R_);return ue(s,K_(K_({},f),{},{chartWidth:n,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))})),J_(i,"renderTooltip",(function(){var e,t=i.props,r=t.children,n=t.accessibilityLayer,o=qa(r,$h);if(!o)return null;var a=i.state,c=a.isTooltipActive,l=a.activeCoordinate,u=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(e=o.props.active)&&void 0!==e?e:c;return ue(o,{viewBox:K_(K_({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?u:[],coordinate:l,accessibilityLayer:n})})),J_(i,"renderBrush",(function(e){var t=i.props,r=t.margin,n=t.data,o=i.state,a=o.offset,c=o.dataStartIndex,l=o.dataEndIndex,u=o.updateId;return ue(e,{key:e.key||"_recharts-brush",onChange:kO(i.handleBrushChange,e.props.onChange),data:n,x:xa(e.props.x)?e.props.x:a.left,y:xa(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:xa(e.props.width)?e.props.width:a.width,startIndex:c,endIndex:l,updateId:"brush-".concat(u)})})),J_(i,"renderReferenceElement",(function(e,t,r){if(!e)return null;var n=i.clipPathId,o=i.state,a=o.xAxisMap,c=o.yAxisMap,l=o.offset,u=e.type.defaultProps||{},s=e.props,f=s.xAxisId,p=void 0===f?u.xAxisId:f,d=s.yAxisId,h=void 0===d?u.yAxisId:d;return ue(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:a[p],yAxis:c[h],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})})),J_(i,"renderActivePoints",(function(e){var t=e.item,n=e.activePoint,o=e.basePoint,i=e.childIndex,a=e.isRange,c=[],l=t.props.key,u=void 0!==t.item.type.defaultProps?K_(K_({},t.item.type.defaultProps),t.item.props):t.item.props,s=u.activeDot,f=K_(K_({index:i,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:OO(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},Ka(s,!1)),Na(s));return c.push(r.renderActiveDot(s,f,"".concat(l,"-activePoint-").concat(i))),o?c.push(r.renderActiveDot(s,K_(K_({},f),{},{cx:o.x,cy:o.y}),"".concat(l,"-basePoint-").concat(i))):a&&c.push(null),c})),J_(i,"renderGraphicChild",(function(e,t,r){var n=i.filterFormatItem(e,t,r);if(!n)return null;var o=i.getTooltipEventType(),a=i.state,c=a.isTooltipActive,l=a.tooltipAxis,u=a.activeTooltipIndex,s=a.activeLabel,f=qa(i.props.children,$h),p=n.props,d=p.points,h=p.isRange,y=p.baseLine,v=void 0!==n.item.type.defaultProps?K_(K_({},n.item.type.defaultProps),n.item.props):n.item.props,m=v.activeDot,g=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!g&&c&&f&&(m||b||w)),O={};"axis"!==o&&f&&"click"===f.props.trigger?O={onClick:kO(i.handleItemMouseEnter,e.props.onClick)}:"axis"!==o&&(O={onMouseLeave:kO(i.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:kO(i.handleItemMouseEnter,e.props.onMouseEnter)});var S=ue(e,K_(K_({},n.props),O));if(x){if(!(u>=0)){var j,P=(null!==(j=i.getItemByXY(i.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:S}).graphicalItem,M=P.item,A=void 0===M?e:M,k=P.childIndex,E=K_(K_(K_({},n.props),O),{},{activeIndex:k});return[ue(A,E),null,null]}var C,_;if(l.dataKey&&!l.allowDuplicatedCategory){var T="function"==typeof l.dataKey?function(e){return"function"==typeof l.dataKey?l.dataKey(e.payload):null}:"payload.".concat(l.dataKey.toString());C=ka(d,T,s),_=h&&y&&ka(y,T,s)}else C=null==d?void 0:d[u],_=h&&y&&y[u];if(w||b){var D=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[ue(e,K_(K_(K_({},n.props),O),{},{activeIndex:D})),null,null]}if(!Qi(C))return[S].concat(q_(i.renderActivePoints({item:n,activePoint:C,basePoint:_,childIndex:u,isRange:h})))}return h?[S,null,null]:[S,null]})),J_(i,"renderCustomized",(function(e,t,r){return ue(e,K_(K_({key:"recharts-customized-".concat(r)},i.props),i.state))})),J_(i,"renderMap",{CartesianGrid:{handler:nT,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:nT},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:nT},YAxis:{handler:nT},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(n=e.id)&&void 0!==n?n:ja("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=Zh(i.triggeredAfterMouseMove,null!==(o=e.throttleDelay)&&void 0!==o?o:1e3/60),i.state={},i}return function(e,t){if("function"!=typeof t&&null!==t)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&&W_(e,t)}(r,de),F_(r,[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,r=e.data,n=e.height,o=e.layout,i=qa(t,$h);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,l=aT(this.state,r,a,c),u=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:u,y:s}:{y:u,x:s},p=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));p&&(f=K_(K_({},f),p.props.points[a].tooltipPosition),l=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:l,activeCoordinate:f};this.setState(d),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;var r,n;(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin)&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}});return null}},{key:"componentDidUpdate",value:function(e){Ja([qa(e.children,$h)],[qa(this.props.children,$h)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=qa(this.props.children,$h);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return a.indexOf(t)>=0?t:o}return o}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,r=this.container,n=r.getBoundingClientRect(),o={top:(t=n).top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(e.pageX-o.left),chartY:Math.round(e.pageY-o.top)},a=n.width/r.offsetWidth||1,c=this.inRange(i.chartX,i.chartY,a);if(!c)return null;var l=this.state,u=l.xAxisMap,s=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&s){var f=Ma(u).scale,p=Ma(s).scale,d=f&&f.invert?f.invert(i.chartX):null,h=p&&p.invert?p.invert(i.chartY):null;return K_(K_({},i),{},{xValue:d,yValue:h})}var y=cT(this.state,this.props.data,this.props.layout,c);return y?K_(K_({},i),y):null}},{key:"inRange",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=e/r,i=t/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var c=this.state,l=c.angleAxisMap,u=c.radiusAxisMap;if(l&&u){var s=Ma(l);return GO({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),r=qa(e,$h),n={};return r&&"axis"===t&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),K_(K_({},Na(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){O_.on(S_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){O_.removeListener(S_,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===e||a.props.key===e.key||t===Fa(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,r=t.left,n=t.top,o=t.height,i=t.width;return J.createElement("defs",null,J.createElement("clipPath",{id:e},J.createElement("rect",{x:r,y:n,height:o,width:i})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=$_(t,2),n=r[0],o=r[1];return K_(K_({},e),{},J_({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=$_(t,2),n=r[0],o=r[1];return K_(K_({},e),{},J_({},n,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,r=t.formattedGraphicalItems,n=t.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],c=a.props,l=a.item,u=void 0!==l.type.defaultProps?K_(K_({},l.type.defaultProps),l.props):l.props,s=Fa(l.type);if("Bar"===s){var f=(c.data||[]).find((function(t){return fM(e,t)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(t){return GO(e,t)}));if(p)return{graphicalItem:a,payload:p}}else if(aA(a,n)||cA(a,n)||lA(a,n)){var d=pA({graphicalItem:a,activeTooltipItem:n,itemData:u.data}),h=void 0===u.activeIndex?d:u.activeIndex;return{graphicalItem:K_(K_({},a),{},{childIndex:h}),payload:lA(a,n)?u.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var e=this;if(!Ya(this))return null;var t,r,n=this.props,o=n.children,i=n.className,a=n.width,c=n.height,l=n.style,u=n.compact,s=n.title,f=n.desc,p=H_(n,L_),d=Ka(p,!1);if(u)return J.createElement(tE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},J.createElement(oc,z_({},d,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),ec(o,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,d.role=null!==(r=this.props.role)&&void 0!==r?r:"application",d.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){e.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return J.createElement(tE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},J.createElement("div",z_({className:xn("recharts-wrapper",i),style:K_({position:"relative",cursor:"default",width:a,height:c},l)},h,{ref:function(t){e.container=t}}),J.createElement(oc,z_({},d,{width:a,height:c,title:s,desc:f,style:tT}),this.renderClipPath(),ec(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();J_(d,"displayName",t),J_(d,"defaultProps",K_({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),J_(d,"getDerivedStateFromProps",(function(e,t){var r=e.dataKey,n=e.data,o=e.children,i=e.width,a=e.height,c=e.layout,l=e.stackOffset,u=e.margin,s=t.dataStartIndex,f=t.dataEndIndex;if(void 0===t.updateId){var d=sT(e);return K_(K_(K_({},d),{},{updateId:0},p(K_(K_({props:e},d),{},{updateId:0}),t)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:o})}if(r!==t.prevDataKey||n!==t.prevData||i!==t.prevWidth||a!==t.prevHeight||c!==t.prevLayout||l!==t.prevStackOffset||!Ea(u,t.prevMargin)){var h=sT(e),y={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},v=K_(K_({},cT(t,n,c)),{},{updateId:t.updateId+1}),m=K_(K_(K_({},h),y),v);return K_(K_(K_({},m),p(K_({props:e},m),t)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:o})}if(!Ja(o,t.prevChildren)){var g,b,w,x,O=qa(o,BA),S=O&&null!==(g=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==g?g:s,j=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,P=S!==s||j!==f,M=!Qi(n)&&!P?t.updateId:t.updateId+1;return K_(K_({updateId:M},p(K_(K_({props:e},t),{},{updateId:M,dataStartIndex:S,dataEndIndex:j}),t)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:j})}return null})),J_(d,"renderActiveDot",(function(e,t,r){var n;return n=Q(e)?ue(e,t):na(e)?e(t):J.createElement(yM,t),J.createElement(jc,{className:"recharts-active-dot",key:r},n)}));var h=re((function(e,t){return J.createElement(d,z_({},e,{ref:t}))}));return h.displayName=d.displayName,h},yT=hT({chartName:"LineChart",GraphicalChild:_C,axisComponents:[{axisType:"xAxis",AxisComp:o_},{axisType:"yAxis",AxisComp:y_}],formatAxisMap:Tk}),vT=hT({chartName:"AreaChart",GraphicalChild:qC,axisComponents:[{axisType:"xAxis",AxisComp:o_},{axisType:"yAxis",AxisComp:y_}],formatAxisMap:Tk});const mT=({formatter:n,labelFormatter:o,payload:i,cx:a,cy:c})=>{const l=100;return Number.isFinite(i.value)?e("svg",{x:a-50,y:c-60,width:l,height:68,viewBox:"0 0 100 68",xmlns:"http://www.w3.org/2000/svg",children:[o&&e(r,{children:[t("rect",{fill:"white",width:"98",height:"45",stroke:Er.coolElegance(),strokeWidth:"1",rx:"7",ry:"7",className:"shadow"}),t("text",{y:"14",x:"50%",fontSize:10,dominantBaseline:"middle",textAnchor:"middle",children:o(0,[{payload:i}])}),t("text",{y:"30",x:"50%",fontSize:11,dominantBaseline:"middle",textAnchor:"middle",fontWeight:"bold",children:n?n(i.value||0):i.value}),t("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"30",opacity:"0.7",children:t("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:Er.coolElegance(),transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})}),t("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"28",children:t("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:"white",transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})})]}),t("rect",{x:43,y:"52",width:14,height:14,rx:7,fill:"white",stroke:Er.coolElegance(),strokeWidth:"2"})]}):t(r,{})},gT=({data:r,dataKey:n,width:o="100%",height:i="100%",areaType:a="linear",isAnimated:c=!1,formatter:l,labelFormatter:u,sampleRate:s,style:f})=>{const p=r?r.filter((e=>null!==e[n])):[],{isNetGain:d}=Sr({data:p,dataKey:n}),h=bn(),y=bn(),v=s?Ar({arr:r||[],n:s}):r;let m,g;v?.length?(g=d?Er.mint():Er.coolElegance(),m=v?.map((e=>{const t=parseFloat(e[n]);return{...e,[n]:Number.isFinite(t)?t:null}}))):(g=Er.coolElegance(),m=[{[n]:1},{[n]:1}]);const b={cursor:v?.length?"crosshair":"default",...f};return t(Jh,{width:o,minHeight:i,id:h,children:e(vT,{data:m,margin:{top:20,right:0,left:0,bottom:20},style:b,children:[t("defs",{children:e("linearGradient",{id:y,x1:"0",y1:"0",x2:"0",y2:"1",children:[t("stop",{offset:"5%",stopColor:g,stopOpacity:.8}),t("stop",{offset:"95%",stopColor:g,stopOpacity:0})]})}),t(y_,{domain:v?.length?["dataMin","dataMax"]:[0,2],hide:!0}),t(qC,{type:a,dataKey:n,stroke:g,fill:`url(#${y})`,isAnimationActive:c,activeDot:e=>mT({labelFormatter:u,formatter:l,...e}),dot:!1}),v?.length&&t($h,{cursor:!1,content:()=>null})]})})},bT=({isCloseable:e,onClick:r})=>{const n=u({ssr:!1});return t(s,{children:t(f,{label:e?"Click to dismiss":null,hasArrow:!0,fontFamily:"mono",fontSize:"12px",children:t(p,{onClick:r,cursor:e?"pointer":"default",bgColor:{base:"rgba(143, 163, 255, 0.9)",sm:"rgba(117, 143, 255, 0.9)",md:"rgba(77, 109, 255, 0.9)",lg:"rgba(24, 74, 201, 0.9)",xl:"rgba(19, 60, 164, 0.9)","2xl":"rgba(15, 47, 128, 0.9)"},color:{base:Er.black(),md:"white"},position:"fixed",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",boxShadow:"dark-lg",fontFamily:"mono",children:n})})})},wT=({children:e,...r})=>t(d,{border:"solid 1px",borderColor:Er.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:e}),xT=({isSelected:e,children:r,...n})=>t(h,{variant:"none",paddingX:"1",fontSize:"sm",color:e?"brand.500":Er.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:e?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),OT=({children:e,...r})=>t(y,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:Er.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:e}),ST=r=>{const{carouselContents:n,isNavVertical:o,...i}=r,[a,c]=ie(0);return n.length>=1&&t(OT,{children:e(v,{gap:10,direction:o?"column":{base:"column",md:"row"},...i,children:[n[a],e(v,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[t(m,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:t(je,{}),onClick:()=>{a>0&&a<=n.length-1&&c((e=>e-1))}}),t(m,{variant:"ghost",isDisabled:a===n.length-1,"aria-label":"Next content",icon:t(Pe,{}),onClick:()=>{a<n.length-1&&c((e=>e+1))}})]})]})})},jT=r=>{const{size:n,isDisabled:o,isReadOnly:i,isRequired:a,isIndeterminate:c,name:l,register:u,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:d,onClick:h,...y}=r;let m;c||(m=t(ke,{}));const O=u?u(l):void 0;return e(g,{as:v,flexDir:"column",isInvalid:Boolean(s),isDisabled:o,isReadOnly:i,isRequired:a,children:[e(v,{onClick:h,w:"full",justifyContent:d?"space-between":"auto",children:["left"===p&&t(b,{fontSize:n,m:"0",mr:"3",children:f}),t(w,{icon:m,isDisabled:o,isReadOnly:i,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...O,...y}),"right"===p&&t(b,{fontSize:n,m:"0",ml:"3",children:f})]}),t(v,{w:"full",children:s&&t(x,{size:n,children:s})})]})},PT=({children:e,onSubmit:r,...n})=>t(v,{as:"form",onSubmit:e=>{e.preventDefault(),r&&r(e)},noValidate:!0,gap:"6",flexDir:"column",...n,children:e});var MT=function(){return MT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},MT.apply(this,arguments)};function AT(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var kT=function(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},ET={k:1e3,m:1e6,b:1e9},CT=function(e){var t=e.value,r=e.groupSeparator,n=void 0===r?",":r,o=e.decimalSeparator,i=void 0===o?".":o,a=e.allowDecimals,c=void 0===a||a,l=e.decimalsLimit,u=void 0===l?2:l,s=e.allowNegativeValue,f=void 0===s||s,p=e.disableAbbreviations,d=void 0!==p&&p,h=e.prefix,y=void 0===h?"":h,v=e.transformRawValue,m=(void 0===v?function(e){return e}:v)(t);if("-"===m)return m;var g=d?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(kT(y),")")).test(m),w=RegExp("(\\d+)-?".concat(kT(y))).exec(t)||[],x=w[0],O=w[1],S=function(e,t){void 0===t&&(t=",");var r=new RegExp(kT(t),"g");return e.replace(r,"")}(y?x?m.replace(x,"").concat(O):m.replace(y,""):m,n),j=function(e,t){var r=kT(t.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return e.replace(n,"")}(S,AT([n,i],g,!0)),P=j;if(!d){if(g.some((function(e){return e===j.toLowerCase().replace(i,"")})))return"";var M=function(e,t){void 0===t&&(t=".");var r=new RegExp("(\\d+(".concat(kT(t),"\\d*)?)([kmb])$"),"i"),n=e.match(r);if(n){var o=n[1],i=n[3],a=ET[i.toLowerCase()];return Number(o.replace(t,"."))*a}}(j,i);M&&(P=String(M))}var A=b&&f?"-":"";if(i&&P.includes(i)){var k=j.split(i),E=k[0],C=k[1],_=u&&C?C.slice(0,u):C,T=c?"".concat(i).concat(_):"";return"".concat(A).concat(E).concat(T)}return"".concat(A).concat(P)},_T=function(e,t){var r=t.groupSeparator,n=void 0===r?",":r,o=t.decimalSeparator,i=void 0===o?".":o,a=new RegExp("\\d([^".concat(kT(n)).concat(kT(i),"0-9]+)")),c=e.match(a);return c?c[1]:void 0},TT=function(e){var t=e.value,r=e.decimalSeparator,n=e.intlConfig,o=e.decimalScale,i=e.prefix,a=void 0===i?"":i,c=e.suffix,l=void 0===c?"":c;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=new RegExp("^\\d?-".concat(a?"".concat(kT(a),"?"):"","\\d")).test(t),s="."!==r?DT(t,r,u):t;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f={minimumFractionDigits:o||0,maximumFractionDigits:20},p=(n?new Intl.NumberFormat(n.locale,n.currency?MT(MT({},f),{style:"currency",currency:n.currency}):f):new Intl.NumberFormat(void 0,f)).formatToParts(Number(s)),d=IT(p,e),h=_T(d,MT({},e)),y=t.slice(-1)===r?r:"",v=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===o&&v&&r&&(d=d.includes(r)?d.replace(RegExp("(\\d+)(".concat(kT(r),")(\\d+)"),"g"),"$1$2".concat(v)):h&&!l?d.replace(h,"".concat(r).concat(v).concat(h)):"".concat(d).concat(r).concat(v)),l&&y?"".concat(d).concat(y).concat(l):h&&y?d.replace(h,"".concat(y).concat(h)):h&&l?d.replace(h,"".concat(y).concat(l)):[d,y,l].join("")},DT=function(e,t,r){var n=e;return t&&"."!==t&&(n=n.replace(RegExp(kT(t),"g"),"."),r&&"-"===t&&(n="-".concat(n.slice(1)))),n},IT=function(e,t){var r=t.prefix,n=t.groupSeparator,o=t.decimalSeparator,i=t.decimalScale,a=t.disableGroupSeparators,c=void 0!==a&&a;return e.reduce((function(e,t,a){var l=t.type,u=t.value;return 0===a&&r?"minusSign"===l?[u,r]:"currency"===l?AT(AT([],e,!0),[r],!1):[r,u]:"currency"===l?r?e:AT(AT([],e,!0),[u],!1):"group"===l?c?e:AT(AT([],e,!0),[void 0!==n?n:u],!1):"decimal"===l?void 0!==i&&0===i?e:AT(AT([],e,!0),[void 0!==o?o:u],!1):AT(AT([],e,!0),"fraction"===l?[void 0!==i?u.slice(0,i):u]:[u],!1)}),[""]).join("")},NT={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},RT=function(e){return RegExp(/\d/,"gi").test(e)},LT=re((function(e,t){var r=e.allowDecimals,n=void 0===r||r,o=e.allowNegativeValue,i=void 0===o||o,a=e.id,c=e.name,l=e.className,u=e.customInput,s=e.decimalsLimit,f=e.defaultValue,p=e.disabled,d=void 0!==p&&p,h=e.maxLength,y=e.value,v=e.onValueChange,m=e.fixedDecimalLength,g=e.placeholder,b=e.decimalScale,w=e.prefix,x=e.suffix,O=e.intlConfig,S=e.step,j=e.min,P=e.max,M=e.disableGroupSeparators,A=void 0!==M&&M,k=e.disableAbbreviations,E=void 0!==k&&k,C=e.decimalSeparator,_=e.groupSeparator,T=e.onChange,D=e.onFocus,I=e.onBlur,N=e.onKeyDown,R=e.onKeyUp,L=e.transformRawValue,B=e.formatValueOnBlur,z=void 0===B||B,$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(C&&RT(C))throw new Error("decimalSeparator cannot be a number");if(_&&RT(_))throw new Error("groupSeparator cannot be a number");var H=le((function(){return function(e){var t=e||{},r=t.locale,n=t.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(e,t,r){return"currency"===t.type?MT(MT({},e),0===r?{currencySymbol:t.value,prefix:t.value}:{currencySymbol:t.value,suffix:t.value}):"group"===t.type?MT(MT({},e),{groupSeparator:t.value}):"decimal"===t.type?MT(MT({},e),{decimalSeparator:t.value}):e}),NT)}(O)}),[O]),F=C||H.decimalSeparator||"",V=_||H.groupSeparator||"";if(F&&V&&F===V&&!1===A)throw new Error("decimalSeparator cannot be the same as groupSeparator");var U={decimalSeparator:F,groupSeparator:V,disableGroupSeparators:A,intlConfig:O,prefix:w||H.prefix,suffix:x},Z={decimalSeparator:F,groupSeparator:V,allowDecimals:n,decimalsLimit:s||m||2,allowNegativeValue:i,disableAbbreviations:E,prefix:w||H.prefix,transformRawValue:L},W=ie((function(){return null!=f?TT(MT(MT({},U),{decimalScale:b,value:String(f)})):null!=y?TT(MT(MT({},U),{decimalScale:b,value:String(y)})):""})),q=W[0],Y=W[1],X=ie(!1),G=X[0],K=X[1],Q=ie(0),ee=Q[0],te=Q[1],re=ie(0),ae=re[0],ue=re[1],se=ie(null),fe=se[0],pe=se[1],de=ne(null);oe(t,(function(){return de.current}));var he=function(e,t){K(!0);var r=function(e){var t=e.selectionStart,r=e.value,n=e.lastKeyStroke,o=e.stateValue,i=e.groupSeparator,a=t,c=r;if(o&&a){var l=r.split("");return"Backspace"===n&&o[a]===i&&(l.splice(a-1,1),a-=1),"Delete"===n&&o[a]===i&&(l.splice(a,1),a+=1),{modifiedValue:c=l.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:t}}({selectionStart:t,value:e,lastKeyStroke:fe,stateValue:q,groupSeparator:V}),n=r.modifiedValue,o=r.cursorPosition,i=CT(MT({value:n},Z));if(!(h&&i.replace(/-/g,"").length>h)){if(""===i||"-"===i||i===F)return v&&v(void 0,c,{float:null,formatted:"",value:""}),Y(i),void te(1);var a=F?i.replace(F,"."):i,l=parseFloat(a),u=TT(MT({value:i},U));if(null!=o){var s=o+(u.length-e.length);s=s<=0?w?w.length:0:s,te(s),ue(ae+1)}if(Y(u),v)v(i,c,{float:l,formatted:u,value:i})}};ce((function(){null==y&&null==f&&Y("")}),[f,y]),ce((function(){G&&"-"!==q&&de.current&&document.activeElement===de.current&&de.current.setSelectionRange(ee,ee)}),[q,ee,de,G,ae]);var ye=MT({type:"text",inputMode:"decimal",id:a,name:c,className:l,onChange:function(e){var t=e.target,r=t.value,n=t.selectionStart;he(r,n),T&&T(e)},onBlur:function(e){var t=e.target.value,r=CT(MT({value:t},Z));if("-"===r||r===F||!r)return Y(""),void(I&&I(e));var n=function(e,t,r){if(void 0!==r&&e.length>1){if(0===r)return e.replace(t,"");if(e.includes(t)){var n=e.split(t),o=n[0];if((c=n[1]).length===r)return e;if(c.length>r)return"".concat(o).concat(t).concat(c.slice(0,r))}var i=e.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=e.match(i);if(a){o=a[1];var c=a[2];return"".concat(o).concat(t).concat(c)}}return e}(r,F,m),o=function(e,t,r){if(void 0===t&&(t="."),void 0===r||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var n=e.split(t),o=n[0],i=n[1];if(0===r)return o;var a=i||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(o).concat(t).concat(a)}(n,F,void 0!==b?b:m),i=parseFloat(o.replace(F,".")),a=TT(MT(MT({},U),{value:o}));v&&z&&v(o,c,{float:i,formatted:a,value:o}),Y(a),I&&I(e)},onFocus:function(e){return D&&D(e),q?q.length:0},onKeyDown:function(e){var t=e.key;if(pe(t),S&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),te(q.length);var r=parseFloat(null!=y?String(y).replace(F,"."):CT(MT({value:q},Z)))||0,n="ArrowUp"===t?r+S:r-S;if(void 0!==j&&n<Number(j))return;if(void 0!==P&&n>Number(P))return;var o=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;he(String(o?n.toFixed(o):n).replace(".",F))}N&&N(e)},onKeyUp:function(e){var t=e.key,r=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==q){var n=_T(q,{groupSeparator:V,decimalSeparator:F});if(n&&r&&r>q.length-n.length&&de.current){var o=q.length-n.length;de.current.setSelectionRange(o,o)}}R&&R(e)},placeholder:g,disabled:d,value:null==y||"-"===q||F&&q===F?q:TT(MT(MT({},U),{decimalScale:G?void 0:b,value:String(y)})),ref:de},$);if(u){var ve=u;return J.createElement(ve,MT({},ye))}return J.createElement("input",MT({},ye))}));LT.displayName="CurrencyInput";const BT=O(((r,n)=>{const{size:o,isDisabled:i,isReadOnly:a,isRequired:c,spellCheck:l=!1,name:u,label:s,register:f,errorMessage:p,helperText:d,leftAddon:h,leftElement:y,rightAddon:v,rightElement:m,type:w="text",containerCss:O,...C}=r,_=jr(o),T=f?f(u):void 0,D="currency"===w?{as:LT,placeholder:"$0.00",prefix:"$",allowNegative:!1,disableAbbreviations:!0}:{};return e(g,{isInvalid:Boolean(p),isDisabled:i,isReadOnly:a,isRequired:c,sx:O,children:[s&&t(b,{className:"cf-form-label",size:o,children:s}),e(S,{size:o,children:[h&&t(j,{children:h}),y&&t(P,{w:"auto",ml:"1em",children:y}),t(M,{size:o,spellCheck:l,paddingLeft:y&&"2.5em",paddingRight:m&&"2.5em",type:"currency"===w?"text":w,...T,...D,...C,ref:n||T?.ref}),m&&t(A,{w:"auto",mr:"1em",children:m}),v&&t(k,{children:v})]}),p&&t(x,{className:"cf-form-error",size:o,children:p}),d&&t(E,{className:"cf-form-helper-text",fontSize:_,children:d})]})}));var zT=e=>null==e;var $T=e=>!zT(e)&&!Array.isArray(e)&&(e=>"object"==typeof e)(e)&&!(e=>e instanceof Date)(e),HT=e=>{const t=e.constructor&&e.constructor.prototype;return $T(t)&&t.hasOwnProperty("isPrototypeOf")},FT="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function VT(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(FT&&(e instanceof Blob||e instanceof FileList)||!r&&!$T(e))return e;if(t=r?[]:{},r||HT(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=VT(e[r]));else t=e}return t}var UT=e=>Array.isArray(e)?e.filter(Boolean):[],ZT=e=>void 0===e,WT=(e,t,r)=>{if(!t||!$T(e))return r;const n=UT(t.split(/[,[\].]+?/)).reduce(((e,t)=>zT(e)?e:e[t]),e);return ZT(n)||n===e?ZT(e[t])?r:e[t]:n},qT=e=>"boolean"==typeof e,YT=e=>/^\w*$/.test(e),XT=e=>UT(e.replace(/["|']|\]/g,"").split(/\.|\[/)),GT=(e,t,r)=>{let n=-1;const o=YT(t)?[t]:XT(t),i=o.length,a=i-1;for(;++n<i;){const t=o[n];let i=r;if(n!==a){const r=e[t];i=$T(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}if("__proto__"===t)return;e[t]=i,e=e[t]}return e};const KT="onBlur",JT="onChange",QT="onSubmit",eD="onTouched",tD="all",rD="max",nD="min",oD="maxLength",iD="minLength",aD="pattern",cD="required",lD="validate",uD=J.createContext(null);var sD=e=>$T(e)&&!Object.keys(e).length,fD=e=>Array.isArray(e)?e:[e];var pD=e=>"string"==typeof e,dD=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},hD=()=>{const e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)}))},yD=(e,t,r={})=>r.shouldFocus||ZT(r.shouldFocus)?r.focusName||`${e}.${ZT(r.focusIndex)?t:r.focusIndex}.`:"",vD=e=>({isOnSubmit:!e||e===QT,isOnBlur:e===KT,isOnChange:e===JT,isOnAll:e===tD,isOnTouch:e===eD});const mD=(e,t,r,n)=>{for(const r of Object.keys(e)){const o=WT(e,r);if(o){const{_f:e,...i}=o;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],r)&&!n)return!0;if(e.ref&&t(e.ref,e.name)&&!n)return!0;if(mD(i,t))break}else if($T(i)&&mD(i,t))break}}};var gD=(e,t,r)=>{const n=fD(WT(e,r));return GT(n,"root",t[r]),GT(e,r,n),e},bD=e=>pD(e),wD=e=>e instanceof RegExp;function xD(e,t,r="validate"){if(bD(e)||Array.isArray(e)&&e.every(bD)||qT(e)&&!e)return{type:r,message:bD(e)?e:"",ref:t}}var OD=e=>$T(e)&&!wD(e)?e:{value:e,message:""},SD=async(e,t,r,n,o)=>{const{ref:i,refs:a,required:c,maxLength:l,minLength:u,min:s,max:f,pattern:p,validate:d,name:h,valueAsNumber:y,mount:v,disabled:m}=e._f,g=WT(t,h);if(!v||m)return{};const b=a?a[0]:i,w=e=>{n&&b.reportValidity&&(b.setCustomValidity(qT(e)?"":e||""),b.reportValidity())},x={};i.type,(e=>{e.type})(i);const O=(y||(e=>"file"===e.type)(i))&&ZT(i.value)&&ZT(g)||(e=>{if(!FT)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)})(i)&&""===i.value||""===g||Array.isArray(g)&&!g.length,S=dD.bind(null,h,r,x),j=(e,t,r,n=oD,o=iD)=>{const a=e?t:r;x[h]={type:e?n:o,message:a,ref:i,...S(e?n:o,a)}};if(!Array.isArray(g)||!g.length){const{value:e,message:t}=bD(c)?{value:!!c,message:c}:OD(c);if(e&&(x[h]={type:cD,message:t,ref:b,...S(cD,t)},!r))return w(t),x}if(!(O||zT(s)&&zT(f))){let e,t;const n=OD(f),o=OD(s);if(zT(g)||isNaN(g)){const r=i.valueAsDate||new Date(g),a=e=>new Date((new Date).toDateString()+" "+e),c="time"==i.type,l="week"==i.type;pD(n.value)&&g&&(e=c?a(g)>a(n.value):l?g>n.value:r>new Date(n.value)),pD(o.value)&&g&&(t=c?a(g)<a(o.value):l?g<o.value:r<new Date(o.value))}else{const r=i.valueAsNumber||(g?+g:g);zT(n.value)||(e=r>n.value),zT(o.value)||(t=r<o.value)}if((e||t)&&(j(!!e,n.message,o.message,rD,nD),!r))return w(x[h].message),x}if((l||u)&&!O&&(pD(g)||Array.isArray(g))){const e=OD(l),t=OD(u),n=!zT(e.value)&&g.length>+e.value,o=!zT(t.value)&&g.length<+t.value;if((n||o)&&(j(n,e.message,t.message),!r))return w(x[h].message),x}if(p&&!O&&pD(g)){const{value:e,message:t}=OD(p);if(wD(e)&&!g.match(e)&&(x[h]={type:aD,message:t,ref:i,...S(aD,t)},!r))return w(t),x}if(d)if("function"==typeof d){const e=xD(await d(g,t),b);if(e&&(x[h]={...e,...S(lD,e.message)},!r))return w(e.message),x}else if($T(d)){let e={};for(const n in d){if(!sD(e)&&!r)break;const o=xD(await d[n](g,t),b,n);o&&(e={...o,...S(n,o.message)},w(o.message),r&&(x[h]=e))}if(!sD(e)&&(x[h]={ref:b,...e},!r))return x}return w(!0),x},jD=(e,t)=>[...e,...fD(t)],PD=e=>Array.isArray(e)?e.map((()=>{})):void 0;function MD(e,t,r){return[...e.slice(0,t),...fD(r),...e.slice(t)]}var AD=(e,t,r)=>Array.isArray(e)?(ZT(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],kD=(e,t)=>[...fD(t),...fD(e)];var ED=(e,t)=>ZT(t)?[]:function(e,t){let r=0;const n=[...e];for(const e of t)n.splice(e-r,1),r++;return UT(n).length?n:[]}(e,fD(t).sort(((e,t)=>e-t))),CD=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function _D(e,t){const r=Array.isArray(t)?t:YT(t)?[t]:XT(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=ZT(e)?n++:e[t[n++]];return e}(e,r),o=r.length-1,i=r[o];return n&&delete n[i],0!==o&&($T(n)&&sD(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!ZT(e[t]))return!1;return!0}(n))&&_D(e,r.slice(0,-1)),e}var TD=(e,t,r)=>(e[t]=r,e);function DD(e){const t=J.useContext(uD),{control:r=t.control,name:n,keyName:o="id",shouldUnregister:i}=e,[a,c]=J.useState(r._getFieldArray(n)),l=J.useRef(r._getFieldArray(n).map(hD)),u=J.useRef(a),s=J.useRef(n),f=J.useRef(!1);s.current=n,u.current=a,r._names.array.add(n),e.rules&&r.register(n,e.rules),function(e){const t=J.useRef(e);t.current=e,J.useEffect((()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}}),[e.disabled])}({next:({values:e,name:t})=>{if(t===s.current||!t){const t=WT(e,s.current);Array.isArray(t)&&(c(t),l.current=t.map(hD))}},subject:r._subjects.array});const p=J.useCallback((e=>{f.current=!0,r._updateFieldArray(n,e)}),[r,n]);return J.useEffect((()=>{if(r._state.action=!1,((e,t,r)=>t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))))(n,r._names)&&r._subjects.state.next({...r._formState}),f.current&&(!vD(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((e=>{const t=WT(e.errors,n),o=WT(r._formState.errors,n);(o?!t&&o.type||t&&(o.type!==t.type||o.message!==t.message):t&&t.type)&&(t?GT(r._formState.errors,n,t):_D(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const e=WT(r._fields,n);!e||!e._f||vD(r._options.reValidateMode).isOnSubmit&&vD(r._options.mode).isOnSubmit||SD(e,r._formValues,r._options.criteriaMode===tD,r._options.shouldUseNativeValidation).then((e=>!sD(e)&&r._subjects.state.next({errors:gD(r._formState.errors,e,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&mD(r._fields,((e,t)=>{if(r._names.focus&&t.startsWith(r._names.focus)&&e.focus)return e.focus(),1})),r._names.focus="",r._updateValid(),f.current=!1}),[a,n,r]),J.useEffect((()=>(!WT(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||i)&&r.unregister(n)})),[n,r,o,i]),{swap:J.useCallback(((e,t)=>{const o=r._getFieldArray(n);CD(o,e,t),CD(l.current,e,t),p(o),c(o),r._updateFieldArray(n,o,CD,{argA:e,argB:t},!1)}),[p,n,r]),move:J.useCallback(((e,t)=>{const o=r._getFieldArray(n);AD(o,e,t),AD(l.current,e,t),p(o),c(o),r._updateFieldArray(n,o,AD,{argA:e,argB:t},!1)}),[p,n,r]),prepend:J.useCallback(((e,t)=>{const o=fD(VT(e)),i=kD(r._getFieldArray(n),o);r._names.focus=yD(n,0,t),l.current=kD(l.current,o.map(hD)),p(i),c(i),r._updateFieldArray(n,i,kD,{argA:PD(e)})}),[p,n,r]),append:J.useCallback(((e,t)=>{const o=fD(VT(e)),i=jD(r._getFieldArray(n),o);r._names.focus=yD(n,i.length-1,t),l.current=jD(l.current,o.map(hD)),p(i),c(i),r._updateFieldArray(n,i,jD,{argA:PD(e)})}),[p,n,r]),remove:J.useCallback((e=>{const t=ED(r._getFieldArray(n),e);l.current=ED(l.current,e),p(t),c(t),r._updateFieldArray(n,t,ED,{argA:e})}),[p,n,r]),insert:J.useCallback(((e,t,o)=>{const i=fD(VT(t)),a=MD(r._getFieldArray(n),e,i);r._names.focus=yD(n,e,o),l.current=MD(l.current,e,i.map(hD)),p(a),c(a),r._updateFieldArray(n,a,MD,{argA:e,argB:PD(t)})}),[p,n,r]),update:J.useCallback(((e,t)=>{const o=VT(t),i=TD(r._getFieldArray(n),e,o);l.current=[...i].map(((t,r)=>t&&r!==e?l.current[r]:hD())),p(i),c([...i]),r._updateFieldArray(n,i,TD,{argA:e,argB:o},!0,!1)}),[p,n,r]),replace:J.useCallback((e=>{const t=fD(VT(e));l.current=t.map(hD),p([...t]),c([...t]),r._updateFieldArray(n,[...t],(e=>e),{},!0,!1)}),[p,n,r]),fields:J.useMemo((()=>a.map(((e,t)=>({...e,[o]:l.current[t]||hD()})))),[a,o])}}const ID=({name:r,control:n,register:o,defaultValues:i,onArrayAppend:a,onArrayRemove:c})=>{const{fields:l,append:u,remove:s}=DD({control:n,name:r}),p=Object.keys(i).reduce(((e,t)=>({...e,[t]:i[t]})),{});return e(C,{children:[l.map(((n,i)=>t(C,{children:e(C,{pb:6,position:"relative",children:[Object.keys(n).filter((e=>"id"!==e)).map((e=>t(BT,{label:e,name:`${r}.${i}.${e}`,register:o},`${e}-${n.id}`))),t(f,{label:"Delete",children:t(v,{position:"absolute",top:"0",right:"0",children:t(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(i),c&&c(i)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),t(v,{children:t(h,{size:"sm",onClick:()=>{u(p),a&&a(p)},ml:"auto",children:"+"})})]})},ND=({data:r,dataKey:n,width:o="100%",height:i="100%",lineType:a="linear",isAnimated:c=!1,formatter:l,labelFormatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=Sr({data:r,dataKey:n}),d=bn(),h=s?Ar({arr:r||[],n:s}):r;let y,v;h?.length?(v=p?Er.mint():Er.heroicRed(),y=h?.map((e=>({...e,[n]:Number(e[n])||0})))):(v=Er.coolElegance(),y=[{[n]:0},{[n]:0}]);const m={cursor:h?.length?"crosshair":"default",...f};return t(Jh,{width:o,minHeight:i,id:d,children:e(yT,{data:y,style:m,children:[t(y_,{domain:["dataMin","dataMax"],hide:!0}),t(_C,{isAnimationActive:c,type:a,dataKey:n,stroke:v,strokeWidth:"2",activeDot:e=>mT({labelFormatter:u,formatter:l,...e}),dot:!1,scale:"threshold"}),h?.length&&t($h,{cursor:!1,content:()=>null})]})})},RD=({isOpen:r,onClose:n,headerContent:o=null,footerContent:i=null,children:a,isCentered:c=!0,size:l={base:"md",md:"xl"},isDisabledCloseButton:u,bodyProps:s={},contentProps:f={},...p})=>{const d={maxHeight:"60vh",bg:"transparent",overflow:"scroll",...s},h={...{minWidth:Tr},...f};return e(_,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:l,trapFocus:!Pr(),...p,children:[t(T,{}),e(D,{...h,children:[t(I,{children:o}),t(N,{isDisabled:u}),t(R,{...d,children:a}),i&&t(L,{borderTop:"solid 1px",borderColor:Er.coolElegance(),justifyContent:"flex-start",children:i})]})]})},LD=e=>{const{isActive:r,children:n,href:o,...i}=e;return t(B,{display:"flex",as:B,borderRadius:"md",border:"solid 1px",bg:r?"brand.50":"transparent",borderColor:r?"brand.200":"transparent",boxShadow:r?`0 8px 16px 0 ${Er.black(.08)}`:"none",href:o,alignItems:"center",lineHeight:"1",position:"relative",padding:"2",zIndex:"3",transition:"border-color 0.25s",_hover:{borderColor:!r&&Er.coolElegance(),textDecoration:"none"},...i,children:n},o)};var BD,zD={exports:{}};var $D,HD=(BD||(BD=1,$D=zD,function(e,t){$D.exports=t(J)}(0,(e=>(()=>{var t={703:(e,t,r)=>{var n=r(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=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:i,resetWarningCache:o};return r.PropTypes=r,r}},697:(e,t,r)=>{e.exports=r(703)()},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:t=>{t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{n.r(o),n.d(o,{default:()=>w});var e=n(98),t=n.n(e),r=n(697),i=n.n(r);function a(){return a=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},a.apply(this,arguments)}var c=function(e){var r=e.pageClassName,n=e.pageLinkClassName,o=e.page,i=e.selected,c=e.activeClassName,l=e.activeLinkClassName,u=e.getEventListener,s=e.pageSelectedHandler,f=e.href,p=e.extraAriaContext,d=e.pageLabelBuilder,h=e.rel,y=e.ariaLabel||"Page "+o+(p?" "+p:""),v=null;return i&&(v="page",y=e.ariaLabel||"Page "+o+" is your current page",r=void 0!==r?r+" "+c:c,void 0!==n?void 0!==l&&(n=n+" "+l):n=l),t().createElement("li",{className:r},t().createElement("a",a({rel:h,role:f?void 0:"button",className:n,href:f,tabIndex:i?"-1":"0","aria-label":y,"aria-current":v,onKeyPress:s},u(s)),d(o)))};c.propTypes={pageSelectedHandler:i().func.isRequired,selected:i().bool.isRequired,pageClassName:i().string,pageLinkClassName:i().string,activeClassName:i().string,activeLinkClassName:i().string,extraAriaContext:i().string,href:i().string,ariaLabel:i().string,page:i().number.isRequired,getEventListener:i().func.isRequired,pageLabelBuilder:i().func.isRequired,rel:i().string};const l=c;function u(){return u=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},u.apply(this,arguments)}var s=function(e){var r=e.breakLabel,n=e.breakAriaLabel,o=e.breakClassName,i=e.breakLinkClassName,a=e.breakHandler,c=e.getEventListener,l=o||"break";return t().createElement("li",{className:l},t().createElement("a",u({className:i,role:"button",tabIndex:"0","aria-label":n,onKeyPress:a},c(a)),r))};s.propTypes={breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabel:i().string,breakClassName:i().string,breakLinkClassName:i().string,breakHandler:i().func.isRequired,getEventListener:i().func.isRequired};const f=s;function p(e){return null!=e?e:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(){return h=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},h.apply(this,arguments)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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&&y(e,t)}(c,e);var r,n,o,i,a=(o=c,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(o);if(i){var r=m(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}(this,e)});function c(e){var r,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),g(v(r=a.call(this,e)),"handlePreviousPage",(function(e){var t=r.state.selected;r.handleClick(e,null,t>0?t-1:void 0,{isPrevious:!0})})),g(v(r),"handleNextPage",(function(e){var t=r.state.selected,n=r.props.pageCount;r.handleClick(e,null,t<n-1?t+1:void 0,{isNext:!0})})),g(v(r),"handlePageSelected",(function(e,t){if(r.state.selected===e)return r.callActiveCallback(e),void r.handleClick(t,null,void 0,{isActive:!0});r.handleClick(t,null,e)})),g(v(r),"handlePageChange",(function(e){r.state.selected!==e&&(r.setState({selected:e}),r.callCallback(e))})),g(v(r),"getEventListener",(function(e){return g({},r.props.eventListener,e)})),g(v(r),"handleClick",(function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=o.isPrevious,a=void 0!==i&&i,c=o.isNext,l=void 0!==c&&c,u=o.isBreak,s=void 0!==u&&u,f=o.isActive,p=void 0!==f&&f;e.preventDefault?e.preventDefault():e.returnValue=!1;var d=r.state.selected,h=r.props.onClick,y=n;if(h){var v=h({index:t,selected:d,nextSelectedPage:n,event:e,isPrevious:a,isNext:l,isBreak:s,isActive:p});if(!1===v)return;Number.isInteger(v)&&(y=v)}void 0!==y&&r.handlePageChange(y)})),g(v(r),"handleBreakClick",(function(e,t){var n=r.state.selected;r.handleClick(t,e,n<e?r.getForwardJump():r.getBackwardJump(),{isBreak:!0})})),g(v(r),"callCallback",(function(e){void 0!==r.props.onPageChange&&"function"==typeof r.props.onPageChange&&r.props.onPageChange({selected:e})})),g(v(r),"callActiveCallback",(function(e){void 0!==r.props.onPageActive&&"function"==typeof r.props.onPageActive&&r.props.onPageActive({selected:e})})),g(v(r),"getElementPageRel",(function(e){var t=r.state.selected,n=r.props,o=n.nextPageRel,i=n.prevPageRel,a=n.selectedPageRel;return t-1===e?i:t===e?a:t+1===e?o:void 0})),g(v(r),"pagination",(function(){var e=[],n=r.props,o=n.pageRangeDisplayed,i=n.pageCount,a=n.marginPagesDisplayed,c=n.breakLabel,l=n.breakClassName,u=n.breakLinkClassName,s=n.breakAriaLabels,p=r.state.selected;if(i<=o)for(var d=0;d<i;d++)e.push(r.getPageElement(d));else{var h=o/2,y=o-h;p>i-o/2?h=o-(y=i-p):p<o/2&&(y=o-(h=p));var v,m,g=function(e){return r.getPageElement(e)},b=[];for(v=0;v<i;v++){var w=v+1;if(w<=a)b.push({type:"page",index:v,display:g(v)});else if(w>i-a)b.push({type:"page",index:v,display:g(v)});else if(v>=p-h&&v<=p+(0===p&&o>1?y-1:y))b.push({type:"page",index:v,display:g(v)});else if(c&&b.length>0&&b[b.length-1].display!==m&&(o>0||a>0)){var x=v<p?s.backward:s.forward;m=t().createElement(f,{key:v,breakAriaLabel:x,breakLabel:c,breakClassName:l,breakLinkClassName:u,breakHandler:r.handleBreakClick.bind(null,v),getEventListener:r.getEventListener}),b.push({type:"break",index:v,display:m})}}b.forEach((function(t,r){var n=t;"break"===t.type&&b[r-1]&&"page"===b[r-1].type&&b[r+1]&&"page"===b[r+1].type&&b[r+1].index-b[r-1].index<=2&&(n={type:"page",index:t.index,display:g(t.index)}),e.push(n.display)}))}return e})),void 0!==e.initialPage&&void 0!==e.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(e.initialPage,") and forcePage (").concat(e.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),n=e.initialPage?e.initialPage:e.forcePage?e.forcePage:0,r.state={selected:n},r}return r=c,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.initialPage,r=e.disableInitialCallback,n=e.extraAriaContext,o=e.pageCount,i=e.forcePage;void 0===t||r||this.callCallback(t),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(o)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(o,"). Did you forget a Math.ceil()?")),void 0!==t&&t>o-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(t," > ").concat(o-1,").")),void 0!==i&&i>o-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(i," > ").concat(o-1,")."))}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.forcePage&&this.props.forcePage!==e.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(e.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var e=this.state.selected,t=this.props,r=t.pageCount,n=e+t.pageRangeDisplayed;return n>=r?r-1:n}},{key:"getBackwardJump",value:function(){var e=this.state.selected-this.props.pageRangeDisplayed;return e<0?0:e}},{key:"getElementHref",value:function(e){var t=this.props,r=t.hrefBuilder,n=t.pageCount,o=t.hrefAllControls;if(r)return o||e>=0&&e<n?r(e+1,n,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(e){var t=e===this.state.selected;if(this.props.ariaLabelBuilder&&e>=0&&e<this.props.pageCount){var r=this.props.ariaLabelBuilder(e+1,t);return this.props.extraAriaContext&&!t&&(r=r+" "+this.props.extraAriaContext),r}}},{key:"getPageElement",value:function(e){var r=this.state.selected,n=this.props,o=n.pageClassName,i=n.pageLinkClassName,a=n.activeClassName,c=n.activeLinkClassName,u=n.extraAriaContext,s=n.pageLabelBuilder;return t().createElement(l,{key:e,pageSelectedHandler:this.handlePageSelected.bind(null,e),selected:r===e,rel:this.getElementPageRel(e),pageClassName:o,pageLinkClassName:i,activeClassName:a,activeLinkClassName:c,extraAriaContext:u,href:this.getElementHref(e),ariaLabel:this.ariaLabelBuilder(e),page:e+1,pageLabelBuilder:s,getEventListener:this.getEventListener})}},{key:"render",value:function(){var e=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==e)return e?e(this.props):e;var r=this.props,n=r.disabledClassName,o=r.disabledLinkClassName,i=r.pageCount,a=r.className,c=r.containerClassName,l=r.previousLabel,u=r.previousClassName,s=r.previousLinkClassName,f=r.previousAriaLabel,d=r.prevRel,y=r.nextLabel,v=r.nextClassName,m=r.nextLinkClassName,g=r.nextAriaLabel,b=r.nextRel,w=this.state.selected,x=0===w,O=w===i-1,S="".concat(p(u)).concat(x?" ".concat(p(n)):""),j="".concat(p(v)).concat(O?" ".concat(p(n)):""),P="".concat(p(s)).concat(x?" ".concat(p(o)):""),M="".concat(p(m)).concat(O?" ".concat(p(o)):""),A=x?"true":"false",k=O?"true":"false";return t().createElement("ul",{className:a||c,role:"navigation","aria-label":"Pagination"},t().createElement("li",{className:S},t().createElement("a",h({className:P,href:this.getElementHref(w-1),tabIndex:x?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":A,"aria-label":f,rel:d},this.getEventListener(this.handlePreviousPage)),l)),this.pagination(),t().createElement("li",{className:j},t().createElement("a",h({className:M,href:this.getElementHref(w+1),tabIndex:O?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":k,"aria-label":g,rel:b},this.getEventListener(this.handleNextPage)),y)))}}])&&function(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,n.key,n)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(e.Component);g(b,"propTypes",{pageCount:i().number.isRequired,pageRangeDisplayed:i().number,marginPagesDisplayed:i().number,previousLabel:i().node,previousAriaLabel:i().string,prevPageRel:i().string,prevRel:i().string,nextLabel:i().node,nextAriaLabel:i().string,nextPageRel:i().string,nextRel:i().string,breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabels:i().shape({forward:i().string,backward:i().string}),hrefBuilder:i().func,hrefAllControls:i().bool,onPageChange:i().func,onPageActive:i().func,onClick:i().func,initialPage:i().number,forcePage:i().number,disableInitialCallback:i().bool,containerClassName:i().string,className:i().string,pageClassName:i().string,pageLinkClassName:i().string,pageLabelBuilder:i().func,activeClassName:i().string,activeLinkClassName:i().string,previousClassName:i().string,nextClassName:i().string,previousLinkClassName:i().string,nextLinkClassName:i().string,disabledClassName:i().string,disabledLinkClassName:i().string,breakClassName:i().string,breakLinkClassName:i().string,extraAriaContext:i().string,ariaLabelBuilder:i().func,eventListener:i().string,renderOnZeroPageCount:i().func,selectedPageRel:i().string}),g(b,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(e){return e},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});const w=b})(),o})()))),zD.exports);const FD=n(tr(HD)),VD=({totalRecords:e=0,recordsPerPage:r=10,pageRangeDisplayed:n=3,handlePageClick:o,forcePage:i,...a})=>{const c=Math.ceil(e/r);return t(v,{justifyContent:{base:"center",md:"flex-end"},fontSize:{base:14,md:18},gap:2,w:"full",...a,children:t(FD,{breakLabel:"...",previousLabel:"<",nextLabel:">",onPageChange:o,pageRangeDisplayed:n,pageCount:c,renderOnZeroPageCount:null,forcePage:i,display:{base:"flex"},alignItems:"center",gap:"inherit",disabledLinkClassName:"disabled-pagination",pageLinkClassName:"pagination-link",activeClassName:"active-page",previousClassName:"previous-page-button",nextClassName:"next-page-button",sx:{listStyleType:"none",".pagination-link:hover":{backgroundColor:"brand.700"},".previous-page-button a, .next-page-button a, .pagination-link":{backgroundColor:"brand.300",borderRadius:4,color:Er.white()},".previous-page-button a, .next-page-button a":{minWidth:"2rem",display:"inline-block",textAlign:"center",paddingX:{base:2,lg:2.5}},".pagination-link":{minWidth:"2.5rem",display:"inline-block",textAlign:"center",paddingX:{base:2.5,lg:3}},".active-page a":{backgroundColor:"brand.500"},".disabled-pagination":{backgroundColor:"gray.300 !important",cursor:"not-allowed !important"}}})})},UD=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:o,lastEvaluatedKey:i,...a})=>{const[c,l]=ie([]),[u,s]=ie(1);return e(v,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[t(h,{onClick:()=>{if(2===u)return o(void 0),l([]),void s((e=>e-1));const e=c.length-1,t=c[e-1];o(t),l((e=>e.slice(0,-1))),s((e=>e-1))},isDisabled:r||1===u,children:"Previous"}),t(h,{onClick:()=>{if(i){const e={lastEvaluatedPKey:i.pKey,lastEvaluatedSKey:i.sKey};o(e),l((t=>[...t,e])),s((e=>e+1))}},isDisabled:r||!n,children:"Next"})]})},ZD=({children:e,isEnabled:r=!0,...n})=>{const o=r?he`
31
+ */function vj(){if(rj)return tj;rj=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return tj=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(n,o){for(var i,a,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]))t.call(i,u)&&(c[u]=i[u]);if(e){a=e(i);for(var s=0;s<a.length;s++)r.call(i,a[s])&&(c[a[s]]=i[a[s]])}}return c},tj}function mj(){if(oj)return nj;oj=1;return nj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function gj(){return aj?ij:(aj=1,ij=Function.call.bind(Object.prototype.hasOwnProperty))}function bj(){if(lj)return cj;lj=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=mj(),r={},n=gj();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,c,l){if("production"!==process.env.NODE_ENV)for(var u in o)if(n(o,u)){var s;try{if("function"!=typeof o[u]){var f=Error((c||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=o[u](i,u,c,a,null,t)}catch(e){s=e}if(!s||s instanceof Error||e((c||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},cj=o}function wj(){if(sj)return uj;sj=1;var e=yj(),t=vj(),r=mj(),n=gj(),o=bj(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),uj=function(c,l){var u="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";var f="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(a),arrayOf:function(e){return y((function(t,n,o,i,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=t[n];if(!Array.isArray(c))return new h("Invalid "+i+" `"+a+"` of type `"+b(c)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<c.length;l++){var u=e(c,l,o,i,a+"["+l+"]",r);if(u instanceof Error)return u}return null}))},element:y((function(e,t,r,n,o){var i=e[t];return c(i)?null:new h("Invalid "+n+" `"+o+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:y((function(t,r,n,o,i){var a=t[r];return e.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return y((function(t,r,n,o,i){if(!(t[r]instanceof e)){var a=e.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+(((c=t[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `")+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:y((function(e,t,r,n,o){return g(e[t])?null:new h("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return y((function(t,o,i,a,c){if("function"!=typeof e)return new h("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],u=b(l);if("object"!==u)return new h("Invalid "+a+" `"+c+"` of type `"+u+"` supplied to `"+i+"`, expected an object.");for(var s in l)if(n(l,s)){var f=e(l,s,i,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return y((function(t,r,n,o,i){for(var a=t[r],c=0;c<e.length;c++)if(d(a,e[c]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===w(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),a}return y((function(t,o,i,a,c){for(var l=[],u=0;u<e.length;u++){var s=(0,e[u])(t,o,i,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&l.push(s.data.expectedType)}return new h("Invalid "+a+" `"+c+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return y((function(t,n,o,i,a){var c=t[n],l=b(c);if("object"!==l)return new h("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var u in e){var s=e[u];if("function"!=typeof s)return m(o,i,a,u,w(s));var f=s(c,u,o,i,a+"."+u,r);if(f)return f}return null}))},exact:function(e){return y((function(o,i,a,c,l){var u=o[i],s=b(u);if("object"!==s)return new h("Invalid "+c+" `"+l+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=t({},o[i],e);for(var p in f){var d=e[p];if(n(e,p)&&"function"!=typeof d)return m(a,c,l,p,w(d));if(!d)return new h("Invalid "+c+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var y=d(u,p,a,c,l+"."+p,r);if(y)return y}return null}))}};function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function y(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function o(o,a,c,u,s,p,d){if(u=u||f,p=p||c,d!==r){if(l){var y=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 y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=u+":"+c;!t[v]&&n<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,n++)}}return null==a[c]?o?null===a[c]?new h("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(a,c,u,s,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function v(e){return y((function(t,r,n,o,i,a){var c=t[r];return b(c)!==e?new h("Invalid "+o+" `"+i+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function m(e,t,r,n,o){return new h((e||"React class")+": "+t+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||c(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e[s]);if("function"==typeof t)return t}(e);if(!t)return!1;var r,n=t.call(e);if(t!==e.entries){for(;!(r=n.next()).done;)if(!g(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function w(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=w(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},uj}function xj(){if(pj)return fj;pj=1;var e=mj();function t(){}function r(){}return r.resetWarningCache=t,fj=function(){function n(t,r,n,o,i,a){if(a!==e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function o(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i}}function Oj(){if(dj)return GS.exports;if(dj=1,"production"!==process.env.NODE_ENV){var e=yj();GS.exports=wj()(e.isElement,true)}else GS.exports=xj()();return GS.exports}var Sj=tr(Oj()),jj=Object.getOwnPropertyNames,Pj=Object.getOwnPropertySymbols,Mj=Object.prototype.hasOwnProperty;function Aj(e,t){return function(r,n,o){return e(r,n,o)&&t(r,n,o)}}function kj(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);var o=n.cache,i=o.get(t),a=o.get(r);if(i&&a)return i===r&&a===t;o.set(t,r),o.set(r,t);var c=e(t,r,n);return o.delete(t),o.delete(r),c}}function Ej(e){return jj(e).concat(Pj(e))}var Cj=Object.hasOwn||function(e,t){return Mj.call(e,t)};function _j(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var Tj="_owner",Dj=Object.getOwnPropertyDescriptor,Ij=Object.keys;function Nj(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 Rj(e,t){return _j(e.getTime(),t.getTime())}function Lj(e,t,r){if(e.size!==t.size)return!1;for(var n,o,i={},a=e.entries(),c=0;(n=a.next())&&!n.done;){for(var l=t.entries(),u=!1,s=0;(o=l.next())&&!o.done;){var f=n.value,p=f[0],d=f[1],h=o.value,y=h[0],v=h[1];u||i[s]||!(u=r.equals(p,y,c,s,e,t,r)&&r.equals(d,v,p,y,e,t,r))||(i[s]=!0),s++}if(!u)return!1;c++}return!0}function Bj(e,t,r){var n,o=Ij(e),i=o.length;if(Ij(t).length!==i)return!1;for(;i-- >0;){if((n=o[i])===Tj&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!Cj(t,n)||!r.equals(e[n],t[n],n,n,e,t,r))return!1}return!0}function zj(e,t,r){var n,o,i,a=Ej(e),c=a.length;if(Ej(t).length!==c)return!1;for(;c-- >0;){if((n=a[c])===Tj&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!Cj(t,n))return!1;if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;if(o=Dj(e,n),i=Dj(t,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function $j(e,t){return _j(e.valueOf(),t.valueOf())}function Hj(e,t){return e.source===t.source&&e.flags===t.flags}function Fj(e,t,r){if(e.size!==t.size)return!1;for(var n,o,i={},a=e.values();(n=a.next())&&!n.done;){for(var c=t.values(),l=!1,u=0;(o=c.next())&&!o.done;)l||i[u]||!(l=r.equals(n.value,o.value,n.value,o.value,e,t,r))||(i[u]=!0),u++;if(!l)return!1}return!0}function Vj(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var Uj="[object Arguments]",Zj="[object Boolean]",Wj="[object Date]",qj="[object Map]",Yj="[object Number]",Xj="[object Object]",Gj="[object RegExp]",Kj="[object Set]",Jj="[object String]",Qj=Array.isArray,eP="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,tP=Object.assign,rP=Object.prototype.toString.call.bind(Object.prototype.toString);var nP=oP();function oP(e){void 0===e&&(e={});var t,r=e.circular,n=void 0!==r&&r,o=e.createInternalComparator,i=e.createState,a=e.strict,c=void 0!==a&&a,l=function(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,o={areArraysEqual:n?zj:Nj,areDatesEqual:Rj,areMapsEqual:n?Aj(Lj,zj):Lj,areObjectsEqual:n?zj:Bj,arePrimitiveWrappersEqual:$j,areRegExpsEqual:Hj,areSetsEqual:n?Aj(Fj,zj):Fj,areTypedArraysEqual:n?zj:Vj};if(r&&(o=tP({},o,r(o))),t){var i=kj(o.areArraysEqual),a=kj(o.areMapsEqual),c=kj(o.areObjectsEqual),l=kj(o.areSetsEqual);o=tP({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:l})}return o}(e),u=function(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,c=e.areSetsEqual,l=e.areTypedArraysEqual;return function(e,u,s){if(e===u)return!0;if(null==e||null==u||"object"!=typeof e||"object"!=typeof u)return e!=e&&u!=u;var f=e.constructor;if(f!==u.constructor)return!1;if(f===Object)return o(e,u,s);if(Qj(e))return t(e,u,s);if(null!=eP&&eP(e))return l(e,u,s);if(f===Date)return r(e,u,s);if(f===RegExp)return a(e,u,s);if(f===Map)return n(e,u,s);if(f===Set)return c(e,u,s);var p=rP(e);return p===Wj?r(e,u,s):p===Gj?a(e,u,s):p===qj?n(e,u,s):p===Kj?c(e,u,s):p===Xj?"function"!=typeof e.then&&"function"!=typeof u.then&&o(e,u,s):p===Uj?o(e,u,s):(p===Zj||p===Yj||p===Jj)&&i(e,u,s)}}(l),s=o?o(u):(t=u,function(e,r,n,o,i,a,c){return t(e,r,c)});return function(e){var t=e.circular,r=e.comparator,n=e.createState,o=e.equals,i=e.strict;if(n)return function(e,a){var c=n(),l=c.cache,u=void 0===l?t?new WeakMap:void 0:l,s=c.meta;return r(e,a,{cache:u,equals:o,meta:s,strict:i})};if(t)return function(e,t){return r(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return r(e,t,a)}}({circular:n,comparator:u,createState:i,equals:s,strict:c})}function iP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>t?(e(o),r=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(n)}))}function aP(e){return aP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aP(e)}function cP(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return lP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lP(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uP(){var e=function(){return null},t=!1,r=function r(n){if(!t){if(Array.isArray(n)){if(!n.length)return;var o=cP(n),i=o[0],a=o.slice(1);return"number"==typeof i?void iP(r.bind(null,a),i):(r(i),void iP(r.bind(null,a)))}"object"===aP(n)&&e(n),"function"==typeof n&&n()}};return{stop:function(){t=!0},start:function(e){t=!1,r(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function sP(e){return sP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sP(e)}function fP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fP(Object(r),!0).forEach((function(t){dP(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dP(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==sP(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==sP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sP(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}oP({strict:!0}),oP({circular:!0}),oP({circular:!0,strict:!0}),oP({createInternalComparator:function(){return _j}}),oP({strict:!0,createInternalComparator:function(){return _j}}),oP({circular:!0,createInternalComparator:function(){return _j}}),oP({circular:!0,createInternalComparator:function(){return _j},strict:!0});var hP=function(e){return e},yP=function(e,t){return Object.keys(t).reduce((function(r,n){return pP(pP({},r),{},dP({},n,e(n,t[n])))}),{})},vP=function(e,t,r){return e.map((function(e){return"".concat((n=e,n.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(r);var n})).join(",")},mP="production"!==process.env.NODE_ENV,gP=function(e,t,r,n,o,i,a,c){if(mP&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,o,i,a,c],u=0;console.warn(t.replace(/%s/g,(function(){return l[u++]})))}};function bP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||xP(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wP(e){return function(e){if(Array.isArray(e))return OP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xP(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xP(e,t){if(e){if("string"==typeof e)return OP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?OP(e,t):void 0}}function OP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var SP=1e-4,jP=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},PP=function(e,t){return e.map((function(e,r){return e*Math.pow(t,r)})).reduce((function(e,t){return e+t}))},MP=function(e,t){return function(r){var n=jP(e,t);return PP(n,r)}},AP=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var c=t[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var l=c[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),u=bP(l,4);n=u[0],o=u[1],i=u[2],a=u[3]}else gP(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",t)}gP([n,i,o,a].every((function(e){return"number"==typeof e&&e>=0&&e<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var s,f,p=MP(n,i),d=MP(o,a),h=(s=n,f=i,function(e){var t=jP(s,f),r=[].concat(wP(t.map((function(e,t){return e*t})).slice(1)),[0]);return PP(r,e)}),y=function(e){for(var t,r=e>1?1:e,n=r,o=0;o<8;++o){var i=p(n)-r,a=h(n);if(Math.abs(i-r)<SP||a<SP)return d(n);n=(t=n-i/a)>1?1:t<0?0:t}return d(n)};return y.isStepper=!1,y},kP=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return AP(n);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,r=void 0===t?100:t,n=e.damping,o=void 0===n?8:n,i=e.dt,a=void 0===i?17:i,c=function(e,t,n){var i=n+(-(e-t)*r-n*o)*a/1e3,c=n*a/1e3+e;return Math.abs(c-t)<SP&&Math.abs(i)<SP?[t,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return AP(n);gP(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",t)}return"function"==typeof n?n:(gP(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function EP(e){return EP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},EP(e)}function CP(e){return function(e){if(Array.isArray(e))return RP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||NP(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function TP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_P(Object(r),!0).forEach((function(t){DP(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function DP(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==EP(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==EP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===EP(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||NP(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NP(e,t){if(e){if("string"==typeof e)return RP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?RP(e,t):void 0}}function RP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var LP=function(e,t,r){return e+(t-e)*r},BP=function(e){return e.from!==e.to},zP=function e(t,r,n){var o=yP((function(e,r){if(BP(r)){var n=IP(t(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return TP(TP({},r),{},{from:o,velocity:i})}return r}),r);return n<1?yP((function(e,t){return BP(t)?TP(TP({},t),{},{velocity:LP(t.velocity,o[e].velocity,n),from:LP(t.from,o[e].from,n)}):t}),r):e(t,o,n-1)},$P=function(e,t,r,n,o){var i,a,c,l,u=(i=e,a=t,[Object.keys(i),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),s=u.reduce((function(r,n){return TP(TP({},r),{},DP({},n,[e[n],t[n]]))}),{}),f=u.reduce((function(r,n){return TP(TP({},r),{},DP({},n,{from:e[n],velocity:0,to:t[n]}))}),{}),p=-1,d=function(){return null};return d=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=zP(r,f,i),o(TP(TP(TP({},e),t),yP((function(e,t){return t.from}),f))),c=n,Object.values(f).filter(BP).length&&(p=requestAnimationFrame(d))}:function(i){l||(l=i);var a=(i-l)/n,c=yP((function(e,t){return LP.apply(void 0,CP(t).concat([r(a)]))}),s);if(o(TP(TP(TP({},e),t),c)),a<1)p=requestAnimationFrame(d);else{var u=yP((function(e,t){return LP.apply(void 0,CP(t).concat([r(1)]))}),s);o(TP(TP(TP({},e),t),u))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}};function HP(e){return HP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HP(e)}var FP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function VP(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function UP(e){return function(e){if(Array.isArray(e))return ZP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ZP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ZP(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function WP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?WP(Object(r),!0).forEach((function(t){YP(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function YP(e,t,r){return(t=GP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XP(e,t,r){return t&&function(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,GP(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GP(e){var t=function(e,t){if("object"!==HP(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==HP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HP(t)?t:String(t)}function KP(e,t){return KP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KP(e,t)}function JP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=tM(e);if(t){var o=tM(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return QP(this,r)}}function QP(e,t){if(t&&("object"===HP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return eM(e)}function eM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tM(e){return tM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tM(e)}var rM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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&&KP(e,t)}(r,te);var t=JP(r);function r(e,n){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var i=(o=t.call(this,e,n)).props,a=i.isActive,c=i.attributeName,l=i.from,u=i.to,s=i.steps,f=i.children,p=i.duration;if(o.handleStyleChange=o.handleStyleChange.bind(eM(o)),o.changeStyle=o.changeStyle.bind(eM(o)),!a||p<=0)return o.state={style:{}},"function"==typeof f&&(o.state={style:u}),QP(o);if(s&&s.length)o.state={style:s[0].style};else if(l){if("function"==typeof f)return o.state={style:l},QP(o);o.state={style:c?YP({},c,l):l}}else o.state={style:{}};return o}return XP(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,r=e.canBegin;this.mounted=!0,t&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isActive,n=t.canBegin,o=t.attributeName,i=t.shouldReAnimate,a=t.to,c=t.from,l=this.state.style;if(n)if(r){if(!(nP(e.to,a)&&e.canBegin&&e.isActive)){var u=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=u||i?c:e.to;if(this.state&&l){var f={style:o?YP({},o,s):s};(o&&l[o]!==s||!o&&l!==s)&&this.setState(f)}this.runAnimation(qP(qP({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?YP({},o,a):a};this.state&&l&&(o&&l[o]!==a||!o&&l!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,r=e.from,n=e.to,o=e.duration,i=e.easing,a=e.begin,c=e.onAnimationEnd,l=e.onAnimationStart,u=$P(r,n,kP(i),o,this.changeStyle);this.manager.start([l,a,function(){t.stopJSAnimation=u()},o,c])}},{key:"runStepAnimation",value:function(e){var t=this,r=e.steps,n=e.begin,o=e.onAnimationStart,i=r[0],a=i.style,c=i.duration,l=void 0===c?0:c;return this.manager.start([o].concat(UP(r.reduce((function(e,n,o){if(0===o)return e;var i=n.duration,a=n.easing,c=void 0===a?"ease":a,l=n.style,u=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=u||Object.keys(l);if("function"==typeof c||"spring"===c)return[].concat(UP(e),[t.runJSAnimation.bind(t,{from:f.style,to:l,duration:i,easing:c}),i]);var d=vP(p,i,c),h=qP(qP(qP({},f.style),l),{},{transition:d});return[].concat(UP(e),[h,i,s]).filter(hP)}),[a,Math.max(l,n)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=uP());var t=e.begin,r=e.duration,n=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,c=e.onAnimationEnd,l=e.steps,u=e.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof u&&"spring"!==i)if(l.length>1)this.runStepAnimation(e);else{var f=n?YP({},n,o):o,p=vP(Object.keys(f),r,i);s.start([a,t,qP(qP({},f),{},{transition:p}),r,c])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,t=e.children;e.begin;var r=e.duration;e.attributeName,e.easing;var n=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var o=VP(e,FP),i=ee.count(t),a=this.state.style;if("function"==typeof t)return t(a);if(!n||0===i||r<=0)return t;var c=function(e){var t=e.props,r=t.style,n=void 0===r?{}:r,i=t.className;return ue(e,qP(qP({},o),{},{style:qP(qP({},n),a),className:i}))};return 1===i?c(ee.only(t)):J.createElement("div",null,ee.map(t,(function(e){return c(e)})))}}]),r}();function nM(e){return nM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nM(e)}function oM(){return oM=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},oM.apply(this,arguments)}function iM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aM(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aM(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cM(Object(r),!0).forEach((function(t){uM(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function uM(e,t,r){return t=function(e){var t=function(e,t){if("object"!=nM(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=nM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nM(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}rM.displayName="Animate",rM.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},rM.propTypes={from:Sj.oneOfType([Sj.object,Sj.string]),to:Sj.oneOfType([Sj.object,Sj.string]),attributeName:Sj.string,duration:Sj.number,begin:Sj.number,easing:Sj.oneOfType([Sj.string,Sj.func]),steps:Sj.arrayOf(Sj.shape({duration:Sj.number.isRequired,style:Sj.object.isRequired,easing:Sj.oneOfType([Sj.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Sj.func]),properties:Sj.arrayOf("string"),onAnimationEnd:Sj.func})),children:Sj.oneOfType([Sj.node,Sj.func]),isActive:Sj.bool,canBegin:Sj.bool,onAnimationEnd:Sj.func,shouldReAnimate:Sj.bool,onAnimationStart:Sj.func,onAnimationReStart:Sj.func},Sj.object,Sj.object,Sj.object,Sj.element,Sj.object,Sj.object,Sj.object,Sj.oneOfType([Sj.array,Sj.element]),Sj.any;var sM=function(e,t,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,l=r>=0?1:-1,u=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+c*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(u,",").concat(e+l*s[0],",").concat(t)),i+="L ".concat(e+r-l*s[1],",").concat(t),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(u,",\n ").concat(e+r,",").concat(t+c*s[1])),i+="L ".concat(e+r,",").concat(t+n-c*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(u,",\n ").concat(e+r-l*s[2],",").concat(t+n)),i+="L ".concat(e+l*s[3],",").concat(t+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+n-c*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+l*p,",").concat(t,"\n L ").concat(e+r-l*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+r,",").concat(t+c*p,"\n L ").concat(e+r,",").concat(t+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+r-l*p,",").concat(t+n,"\n L ").concat(e+l*p,",").concat(t+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e,",").concat(t+n-c*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},fM=function(e,t){if(!e||!t)return!1;var r=e.x,n=e.y,o=t.x,i=t.y,a=t.width,c=t.height;if(Math.abs(a)>0&&Math.abs(c)>0){var l=Math.min(o,o+a),u=Math.max(o,o+a),s=Math.min(i,i+c),f=Math.max(i,i+c);return r>=l&&r<=u&&n>=s&&n<=f}return!1},pM={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},dM=function(e){var t=lM(lM({},pM),e),r=ne(),n=iM(ie(-1),2),o=n[0],i=n[1];ce((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&i(e)}catch(e){}}),[]);var a=t.x,c=t.y,l=t.width,u=t.height,s=t.radius,f=t.className,p=t.animationEasing,d=t.animationDuration,h=t.animationBegin,y=t.isAnimationActive,v=t.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||0===l||0===u)return null;var m=xn("recharts-rectangle",f);return v?J.createElement(rM,{canBegin:o>0,from:{width:l,height:u,x:a,y:c},to:{width:l,height:u,x:a,y:c},duration:d,animationEasing:p,isActive:v},(function(e){var n=e.width,i=e.height,a=e.x,c=e.y;return J.createElement(rM,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:y,easing:p},J.createElement("path",oM({},Ka(t,!0),{className:m,d:sM(a,c,n,i,s),ref:r})))})):J.createElement("path",oM({},Ka(t,!0),{className:m,d:sM(a,c,l,u,s)}))};function hM(){return hM=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},hM.apply(this,arguments)}var yM=function(e){var t=e.cx,r=e.cy,n=e.r,o=xn("recharts-dot",e.className);return t===+t&&r===+r&&n===+n?J.createElement("circle",hM({},Ka(e,!1),Na(e),{className:o,cx:t,cy:r,r:n})):null};function vM(e){return vM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vM(e)}var mM=["x","y","top","left","width","height","className"];function gM(){return gM=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},gM.apply(this,arguments)}function bM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wM(e,t,r){return t=function(e){var t=function(e,t){if("object"!=vM(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=vM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vM(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xM(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var OM,SM,jM,PM,MM=function(e,t,r,n,o,i){return"M".concat(e,",").concat(o,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r)},AM=function(e){var t=e.x,r=void 0===t?0:t,n=e.y,o=void 0===n?0:n,i=e.top,a=void 0===i?0:i,c=e.left,l=void 0===c?0:c,u=e.width,s=void 0===u?0:u,f=e.height,p=void 0===f?0:f,d=e.className,h=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bM(Object(r),!0).forEach((function(t){wM(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({x:r,y:o,top:a,left:l,width:s,height:p},xM(e,mM));return xa(r)&&xa(o)&&xa(s)&&xa(p)&&xa(a)&&xa(l)?J.createElement("path",gM({},Ka(h,!0),{className:xn("recharts-cross",d),d:MM(r,o,s,p,a,l)})):null};var kM,EM,CM=function(){if(PM)return jM;PM=1;var e=Si(),t=function(){if(SM)return OM;SM=1;var e=np()(Object.getPrototypeOf,Object);return OM=e}(),r=ji(),n=Function.prototype,o=Object.prototype,i=n.toString,a=o.hasOwnProperty,c=i.call(Object);return jM=function(n){if(!r(n)||"[object Object]"!=e(n))return!1;var o=t(n);if(null===o)return!0;var l=a.call(o,"constructor")&&o.constructor;return"function"==typeof l&&l instanceof l&&i.call(l)==c}}(),_M=tr(CM);var TM=tr(function(){if(EM)return kM;EM=1;var e=Si(),t=ji();return kM=function(r){return!0===r||!1===r||t(r)&&"[object Boolean]"==e(r)}}());function DM(e){return DM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DM(e)}function IM(){return IM=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},IM.apply(this,arguments)}function NM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return RM(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return RM(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function LM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function BM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?LM(Object(r),!0).forEach((function(t){zM(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zM(e,t,r){return t=function(e){var t=function(e,t){if("object"!=DM(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=DM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==DM(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $M,HM,FM,VM,UM,ZM,WM,qM,YM=function(e,t,r,n,o){var i,a=r-n;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+r,",").concat(t),i+="L ".concat(e+r-a/2,",").concat(t+o),i+="L ".concat(e+r-a/2-n,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},XM={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},GM=function(e){var t=BM(BM({},XM),e),r=ne(),n=NM(ie(-1),2),o=n[0],i=n[1];ce((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&i(e)}catch(e){}}),[]);var a=t.x,c=t.y,l=t.upperWidth,u=t.lowerWidth,s=t.height,f=t.className,p=t.animationEasing,d=t.animationDuration,h=t.animationBegin,y=t.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||s!==+s||0===l&&0===u||0===s)return null;var v=xn("recharts-trapezoid",f);return y?J.createElement(rM,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:l,lowerWidth:u,height:s,x:a,y:c},duration:d,animationEasing:p,isActive:y},(function(e){var n=e.upperWidth,i=e.lowerWidth,a=e.height,c=e.x,l=e.y;return J.createElement(rM,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,easing:p},J.createElement("path",IM({},Ka(t,!0),{className:v,d:YM(c,l,n,i,a),ref:r})))})):J.createElement("g",null,J.createElement("path",IM({},Ka(t,!0),{className:v,d:YM(a,c,l,u,s)})))},KM=["option","shapeType","propTransformer","activeClassName","isActive"];function JM(e){return JM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JM(e)}function QM(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function eA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eA(Object(r),!0).forEach((function(t){rA(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eA(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rA(e,t,r){return t=function(e){var t=function(e,t){if("object"!=JM(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=JM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==JM(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nA(e,t){return tA(tA({},t),e)}function oA(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return J.createElement(dM,r);case"trapezoid":return J.createElement(GM,r);case"sector":return J.createElement(LS,r);case"symbols":if(function(e,t){return"symbols"===e}(t))return J.createElement(Zl,r);break;default:return null}}function iA(e){var t,r=e.option,n=e.shapeType,o=e.propTransformer,i=void 0===o?nA:o,a=e.activeClassName,c=void 0===a?"recharts-active-shape":a,l=e.isActive,u=QM(e,KM);if(Q(r))t=ue(r,tA(tA({},u),function(e){return Q(e)?e.props:e}(r)));else if(na(r))t=r(u);else if(_M(r)&&!TM(r)){var s=i(r,u);t=J.createElement(oA,{shapeType:n,elementProps:s})}else{var f=u;t=J.createElement(oA,{shapeType:n,elementProps:f})}return l?J.createElement(jc,{className:c},t):t}function aA(e,t){return null!=t&&"trapezoids"in e.props}function cA(e,t){return null!=t&&"sectors"in e.props}function lA(e,t){return null!=t&&"points"in e.props}function uA(e,t){var r,n,o=e.x===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.x)||e.x===t.x,i=e.y===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.y)||e.y===t.y;return o&&i}function sA(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function fA(e,t){var r=e.x===t.x,n=e.y===t.y,o=e.z===t.z;return r&&n&&o}function pA(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,o=function(e,t){var r;return aA(e,t)?r="trapezoids":cA(e,t)?r="sectors":lA(e,t)&&(r="points"),r}(r,t),i=function(e,t){var r,n;return aA(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:cA(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:lA(e,t)?t.payload:{}}(r,t),a=n.filter((function(e,n){var a=Vw(i,e),c=r.props[o].filter((function(e){var n=function(e,t){var r;return aA(e,t)?r=uA:cA(e,t)?r=sA:lA(e,t)&&(r=fA),r}(r,t);return n(e,t)})),l=r.props[o].indexOf(c[c.length-1]);return a&&n===l}));return n.indexOf(a[a.length-1])}function dA(){if(VM)return FM;VM=1;var e=Fh(),t=1/0;return FM=function(r){return r?(r=e(r))===t||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:0===r?r:0}}function hA(){if(ZM)return UM;ZM=1;var e=function(){if(HM)return $M;HM=1;var e=Math.ceil,t=Math.max;return $M=function(r,n,o,i){for(var a=-1,c=t(e((n-r)/(o||1)),0),l=Array(c);c--;)l[i?c:++a]=r,r+=o;return l}}(),t=Hd(),r=dA();return UM=function(n){return function(o,i,a){return a&&"number"!=typeof a&&t(o,i,a)&&(i=a=void 0),o=r(o),void 0===i?(i=o,o=0):i=r(i),a=void 0===a?o<i?1:-1:r(a),e(o,i,a,n)}}}var yA=function(){if(qM)return WM;qM=1;var e=hA()();return WM=e}(),vA=tr(yA);function mA(e){return mA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mA(e)}function gA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gA(Object(r),!0).forEach((function(t){wA(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gA(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wA(e,t,r){return t=function(e){var t=function(e,t){if("object"!=mA(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=mA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mA(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xA=["Webkit","Moz","O","ms"];function OA(e){return OA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OA(e)}function SA(){return SA=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},SA.apply(this,arguments)}function jA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function PA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jA(Object(r),!0).forEach((function(t){_A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jA(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function MA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TA(n.key),n)}}function AA(e,t,r){return t=EA(t),function(e,t){if(t&&("object"===OA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,kA()?Reflect.construct(t,r||[],EA(e).constructor):t.apply(e,r))}function kA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kA=function(){return!!e})()}function EA(e){return EA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},EA(e)}function CA(e,t){return CA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CA(e,t)}function _A(e,t,r){return(t=TA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TA(e){var t=function(e,t){if("object"!=OA(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=OA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==OA(t)?t:t+""}var DA,IA,NA,RA,LA=function(e){return e.changedTouches&&!!e.changedTouches.length},BA=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_A(r=AA(this,t,[e]),"handleDrag",(function(e){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(e):r.state.isSlideMoving&&r.handleSlideDrag(e)})),_A(r,"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.handleDrag(e.changedTouches[0])})),_A(r,"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=r.props,t=e.endIndex,n=e.onDragEnd,o=e.startIndex;null==n||n({endIndex:t,startIndex:o})})),r.detachDragEndListener()})),_A(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),_A(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),_A(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),_A(r,"handleSlideDragStart",(function(e){var t=LA(e)?e.changedTouches[0]:e;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return function(e,t){if("function"!=typeof t&&null!==t)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&&CA(e,t)}(t,te),r=t,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var r=e.startX,n=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,l=Math.min(r,n),u=Math.max(r,n),s=t.getIndexInRange(o,l),f=t.getIndexInRange(o,u);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,r=t.data,n=t.tickFormatter,o=t.dataKey,i=wO(r[e],o,e);return na(n)?n(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,r=t.slideMoveStartX,n=t.startX,o=t.endX,i=this.props,a=i.x,c=i.width,l=i.travellerWidth,u=i.startIndex,s=i.endIndex,f=i.onChange,p=e.pageX-r;p>0?p=Math.min(p,a+c-l-o,a+c-l-n):p<0&&(p=Math.max(p,a-n,a-o));var d=this.getIndex({startX:n+p,endX:o+p});d.startIndex===u&&d.endIndex===s||!f||f(d),this.setState({startX:n+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var r=LA(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,r=t.brushMoveStartX,n=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[n],c=this.props,l=c.x,u=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,d=c.data,h={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,l+u-s-a):y<0&&(y=Math.max(y,l-a)),h[n]=a+y;var v=this.getIndex(h),m=v.startIndex,g=v.endIndex;this.setState(_A(_A({},n,a+y),"brushMoveStartX",e.pageX),(function(){var e;f&&(e=d.length-1,("startX"===n&&(o>i?m%p==0:g%p==0)||o<i&&g===e||"endX"===n&&(o>i?g%p==0:m%p==0)||o>i&&g===e)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,c=this.state[t],l=o.indexOf(c);if(-1!==l){var u=l+e;if(!(-1===u||u>=o.length)){var s=o[u];"startX"===t&&s>=a||"endX"===t&&s<=i||this.setState(_A({},t,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,i=e.fill,a=e.stroke;return J.createElement("rect",{stroke:a,fill:i,x:t,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,i=e.data,a=e.children,c=e.padding,l=ee.only(a);return l?J.cloneElement(l,{x:t,y:r,width:n,height:o,margin:c,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(e,r){var n,o,i=this,a=this.props,c=a.y,l=a.travellerWidth,u=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,d=a.startIndex,h=a.endIndex,y=Math.max(e,this.props.x),v=PA(PA({},Ka(this.props,!1)),{},{x:y,y:c,width:l,height:u}),m=f||"Min value: ".concat(null===(n=p[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(o=p[h])||void 0===o?void 0:o.name);return J.createElement(jc,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),i.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,r))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(s,v))}},{key:"renderSlide",value:function(e,t){var r=this.props,n=r.y,o=r.height,i=r.stroke,a=r.travellerWidth,c=Math.min(e,t)+a,l=Math.max(Math.abs(t-e)-a,0);return J.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:c,y:n,width:l,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,r=e.endIndex,n=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,c=this.state,l=c.startX,u=c.endX,s={pointerEvents:"none",fill:a};return J.createElement(jc,{className:"recharts-brush-texts"},J.createElement(Ry,SA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:n+o/2},s),this.getTextOfTick(t)),J.createElement(Ry,SA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+i+5,y:n+o/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,t=e.data,r=e.className,n=e.children,o=e.x,i=e.y,a=e.width,c=e.height,l=e.alwaysShowText,u=this.state,s=u.startX,f=u.endX,p=u.isTextActive,d=u.isSlideMoving,h=u.isTravellerMoving,y=u.isTravellerFocused;if(!t||!t.length||!xa(o)||!xa(i)||!xa(a)||!xa(c)||a<=0||c<=0)return null;var v,m,g,b,w=xn("recharts-brush",r),x=1===J.Children.count(n),O=(m="none",g=(v="userSelect").replace(/(\w)/,(function(e){return e.toUpperCase()})),(b=xA.reduce((function(e,t){return bA(bA({},e),{},wA({},t+g,m))}),{}))[v]=m,b);return J.createElement(jc,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||d||h||y||l)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,r=e.y,n=e.width,o=e.height,i=e.stroke,a=Math.floor(r+o/2)-1;return J.createElement(J.Fragment,null,J.createElement("rect",{x:t,y:r,width:n,height:o,fill:i,stroke:"none"}),J.createElement("line",{x1:t+1,y1:a,x2:t+n-1,y2:a,fill:"none",stroke:"#fff"}),J.createElement("line",{x1:t+1,y1:a+2,x2:t+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,r){return J.isValidElement(e)?J.cloneElement(e,r):na(e)?e(r):t.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(e,t){var r=e.data,n=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,c=e.startIndex,l=e.endIndex;if(r!==t.prevData||a!==t.prevUpdateId)return PA({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(e){var t=e.data,r=e.startIndex,n=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var c=t.length,l=fv().domain(vA(0,c)).range([o,o+i-a]),u=l.domain().map((function(e){return l(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(r),endX:l(n),scale:l,scaleValues:u}}({data:r,width:n,x:o,travellerWidth:i,startIndex:c,endIndex:l}):{scale:null,scaleValues:null});if(t.scale&&(n!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+n-i]);var u=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(e,t){for(var r=0,n=e.length-1;n-r>1;){var o=Math.floor((r+n)/2);e[o]>t?n=o:r=o}return t>=e[n]?n:r}}],n&&MA(r.prototype,n),o&&MA(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();_A(BA,"displayName","Brush"),_A(BA,"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 zA,$A,HA,FA,VA=function(){if(RA)return NA;RA=1;var e=es(),t=gp(),r=function(){if(IA)return DA;IA=1;var e=Dd();return DA=function(t,r){var n;return e(t,(function(e,t,o){return!(n=r(e,t,o))})),!!n}}(),n=bi(),o=Hd();return NA=function(i,a,c){var l=n(i)?e:r;return c&&o(i,a,c)&&(a=void 0),l(i,t(a,3))}}(),UA=tr(VA),ZA=function(e,t){var r=e.alwaysShow,n=e.ifOverflow;return r&&(n="extendDomain"),n===t};var WA,qA,YA,XA,GA,KA,JA=function(){if(FA)return HA;FA=1;var e=function(){if($A)return zA;$A=1;var e=Bd();return zA=function(t,r,n){"__proto__"==r&&e?e(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n},zA}(),t=Td(),r=gp();return HA=function(n,o){var i={};return o=r(o,3),t(n,(function(t,r,n){e(i,r,o(t,r,n))})),i},HA}(),QA=tr(JA);var ek=function(){if(KA)return GA;KA=1;var e=(qA||(qA=1,WA=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}),WA),t=function(){if(XA)return YA;XA=1;var e=Dd();return YA=function(t,r){var n=!0;return e(t,(function(e,t,o){return n=!!r(e,t,o)})),n}}(),r=gp(),n=bi(),o=Hd();return GA=function(i,a,c){var l=n(i)?e:t;return c&&o(i,a,c)&&(a=void 0),l(i,r(a,3))}}(),tk=tr(ek),rk=["x","y"];function nk(e){return nk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nk(e)}function ok(){return ok=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},ok.apply(this,arguments)}function ik(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ak(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ik(Object(r),!0).forEach((function(t){ck(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ik(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ck(e,t,r){return t=function(e){var t=function(e,t){if("object"!=nk(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=nk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nk(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lk(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function uk(e,t){var r=e.x,n=e.y,o=lk(e,rk),i="".concat(r),a=parseInt(i,10),c="".concat(n),l=parseInt(c,10),u="".concat(t.height||o.height),s=parseInt(u,10),f="".concat(t.width||o.width),p=parseInt(f,10);return ak(ak(ak(ak(ak({},t),o),a?{x:a}:{}),l?{y:l}:{}),{},{height:s,width:p,name:t.name,radius:t.radius})}function sk(e){return J.createElement(iA,ok({shapeType:"rectangle",propTransformer:uk,activeClassName:"recharts-active-bar"},e))}var fk,pk=["value","background"];function dk(e){return dk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dk(e)}function hk(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function yk(){return yk=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},yk.apply(this,arguments)}function vk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vk(Object(r),!0).forEach((function(t){Sk(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gk(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,jk(n.key),n)}}function bk(e,t,r){return t=xk(t),function(e,t){if(t&&("object"===dk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wk()?Reflect.construct(t,r||[],xk(e).constructor):t.apply(e,r))}function wk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wk=function(){return!!e})()}function xk(e){return xk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xk(e)}function Ok(e,t){return Ok=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ok(e,t)}function Sk(e,t,r){return(t=jk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jk(e){var t=function(e,t){if("object"!=dk(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=dk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dk(t)?t:t+""}var Pk=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Sk(e=bk(this,t,[].concat(n)),"state",{isAnimationFinished:!1}),Sk(e,"id",ja("recharts-bar-")),Sk(e,"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),Sk(e,"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return function(e,t){if("function"!=typeof t&&null!==t)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&&Ok(e,t)}(t,te),r=t,n=[{key:"renderRectanglesStatically",value:function(e){var t=this,r=this.props,n=r.shape,o=r.dataKey,i=r.activeIndex,a=r.activeBar,c=Ka(this.props,!1);return e&&e.map((function(e,r){var l=r===i,u=l?a:n,s=mk(mk(mk({},c),e),{},{isActive:l,option:u,index:r,dataKey:o,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return J.createElement(jc,yk({className:"recharts-bar-rectangle"},Ra(t.props,e,r),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value)}),J.createElement(sk,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,r=t.data,n=t.layout,o=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,c=t.animationEasing,l=t.animationId,u=this.state.prevData;return J.createElement(rM,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t,i=r.map((function(e,t){var r=u&&u[t];if(r){var i=Aa(r.x,e.x),a=Aa(r.y,e.y),c=Aa(r.width,e.width),l=Aa(r.height,e.height);return mk(mk({},e),{},{x:i(o),y:a(o),width:c(o),height:l(o)})}if("horizontal"===n){var s=Aa(0,e.height)(o);return mk(mk({},e),{},{y:e.y+e.height-s,height:s})}var f=Aa(0,e.width)(o);return mk(mk({},e),{},{width:f})}));return J.createElement(jc,null,e.renderRectanglesStatically(i))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,r=e.isAnimationActive,n=this.state.prevData;return!(r&&t&&t.length)||n&&Vw(n,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props,r=t.data,n=t.dataKey,o=t.activeIndex,i=Ka(this.props.background,!1);return r.map((function(t,r){t.value;var a=t.background,c=hk(t,pk);if(!a)return null;var l=mk(mk(mk(mk(mk({},c),{},{fill:"#eee"},a),i),Ra(e.props,t,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return J.createElement(sk,yk({key:"background-bar-".concat(r),option:e.props.background,isActive:r===o},l))}))}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,a=r.layout,c=Wa(r.children,lO);if(!c)return null;var l="vertical"===a?n[0].height/2:n[0].width/2,u=function(e,t){var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:wO(e,t)}},s={clipPath:e?"url(#clipPath-".concat(t,")"):null};return J.createElement(jc,s,c.map((function(e){return J.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.data,n=e.className,o=e.xAxis,i=e.yAxis,a=e.left,c=e.top,l=e.width,u=e.height,s=e.isAnimationActive,f=e.background,p=e.id;if(t||!r||!r.length)return null;var d=this.state.isAnimationFinished,h=xn("recharts-bar",n),y=o&&o.allowDataOverflow,v=i&&i.allowDataOverflow,m=y||v,g=Qi(p)?this.id:p;return J.createElement(jc,{className:h},y||v?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(g)},J.createElement("rect",{x:y?a:a-l/2,y:v?c:c-u/2,width:y?l:2*l,height:v?u:2*u}))):null,J.createElement(jc,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(g,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,g),(!s||d)&&kS.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],n&&gk(r.prototype,n),o&&gk(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function Mk(e){return Mk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mk(e)}function Ak(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,_k(n.key),n)}}function kk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ek(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kk(Object(r),!0).forEach((function(t){Ck(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ck(e,t,r){return(t=_k(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _k(e){var t=function(e,t){if("object"!=Mk(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Mk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mk(t)?t:t+""}fk=Pk,Sk(Pk,"displayName","Bar"),Sk(Pk,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!vh,animationBegin:0,animationDuration:400,animationEasing:"ease"}),Sk(Pk,"getComposedData",(function(e){var t=e.props,r=e.item,n=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,c=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,s=e.dataStartIndex,f=e.displayedData,p=e.offset,d=function(e,t){if(!e)return null;for(var r=0,n=e.length;r<n;r++)if(e[r].item===t)return e[r].position;return null}(n,r);if(!d)return null;var h=t.layout,y=r.type.defaultProps,v=void 0!==y?mk(mk({},y),r.props):r.props,m=v.dataKey,g=v.children,b=v.minPointSize,w="horizontal"===h?a:i,x=u?w.scale.domain():null,O=function(e){var t=e.numericAxis,r=t.scale.domain();if("number"===t.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:w}),S=Wa(g,Qh),j=f.map((function(e,t){var n,f,p,y,v,g;u?n=function(e,t){if(!t||2!==t.length||!xa(t[0])||!xa(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!xa(e[0])||e[0]<r)&&(o[0]=r),(!xa(e[1])||e[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(u[s+t],x):(n=wO(e,m),Array.isArray(n)||(n=[O,n]));var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof e)return e;var o="number"==typeof r;return o?e(r,n):(o||("production"!==process.env.NODE_ENV?Yx(0,"minPointSize callback function received a value with type of ".concat(nk(r),". Currently only numbers are supported.")):Yx()),t)}}(b,fk.defaultProps.minPointSize)(n[1],t);if("horizontal"===h){var j,P=[a.scale(n[0]),a.scale(n[1])],M=P[0],A=P[1];f=DO({axis:i,ticks:c,bandSize:o,offset:d.offset,entry:e,index:t}),p=null!==(j=null!=A?A:M)&&void 0!==j?j:void 0,y=d.size;var k=M-A;if(v=Number.isNaN(k)?0:k,g={x:f,y:a.y,width:y,height:a.height},Math.abs(w)>0&&Math.abs(v)<Math.abs(w)){var E=ba(v||w)*(Math.abs(w)-Math.abs(v));p-=E,v+=E}}else{var C=[i.scale(n[0]),i.scale(n[1])],_=C[0],T=C[1];if(f=_,p=DO({axis:a,ticks:l,bandSize:o,offset:d.offset,entry:e,index:t}),y=T-_,v=d.size,g={x:i.x,y:p,width:i.width,height:v},Math.abs(w)>0&&Math.abs(y)<Math.abs(w))y+=ba(y||w)*(Math.abs(w)-Math.abs(y))}return mk(mk(mk({},e),{},{x:f,y:p,width:y,height:v,value:u?n:n[1],payload:e,background:g},S&&S[t]&&S[t].props),{},{tooltipPayload:[$O(r,e)],tooltipPosition:{x:f+y/2,y:p+v/2}})}));return mk({data:j,layout:h},p)}));var Tk=function(e,t,r,n,o){var i=e.width,a=e.height,c=e.layout,l=e.children,u=Object.keys(t),s={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!qa(l,Pk);return u.reduce((function(i,a){var l,u,p,d,h,y=t[a],v=y.orientation,m=y.domain,g=y.padding,b=void 0===g?{}:g,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=m[1]-m[0],j=1/0,P=y.categoricalDomain.sort();if(P.forEach((function(e,t){t>0&&(j=Math.min((e||0)-(P[t-1]||0),j))})),Number.isFinite(j)){var M=j/S,A="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(l=M*A/2),"no-gap"===y.padding){var k=Pa(e.barCategoryGap,M*A),E=M*A/2;l=E-k-(E-k)/A*k}}}u="xAxis"===n?[r.left+(b.left||0)+(l||0),r.left+r.width-(b.right||0)-(l||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(l||0),r.top+r.height-(b.bottom||0)-(l||0)]:y.range,x&&(u=[u[1],u[0]]);var C=function(e,t,r){var n=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:uv(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:Dm(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!r)?{scale:fv(),realScaleType:"point"}:"category"===o?{scale:uv(),realScaleType:"band"}:{scale:Dm(),realScaleType:"linear"};if(ra(n)){var c="scale".concat(_c(n));return{scale:(jw[c]||fv)(),realScaleType:jw[c]?c:"point"}}return na(n)?{scale:n}:{scale:fv(),realScaleType:"point"}}(y,o,f),_=C.scale,T=C.realScaleType;_.domain(m).range(u),function(e){var t=e.domain();if(t&&!(t.length<=2)){var r=t.length,n=e.range(),o=Math.min(n[0],n[1])-EO,i=Math.max(n[0],n[1])+EO,a=e(t[0]),c=e(t[r-1]);(a<o||a>i||c<o||c>i)&&e.domain([t[0],t[r-1]])}}(_);var D=function(e,t){var r=t.realScaleType,n=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,c=r||t.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var l=e.domain();if(!l.length)return null;var u=Ux(l,o,a);return e.domain([Lw(u),_w(u)]),{niceTicks:u}}if(o&&"number"===n){var s=e.domain();return{niceTicks:Zx(s,o,a)}}return null}(_,Ek(Ek({},y),{},{realScaleType:T}));"xAxis"===n?(h="top"===v&&!w||"bottom"===v&&w,p=r.left,d=s[O]-h*y.height):"yAxis"===n&&(h="left"===v&&!w||"right"===v&&w,p=s[O]-h*y.width,d=r.top);var I=Ek(Ek(Ek({},y),D),{},{realScaleType:T,x:p,y:d,scale:_,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return I.bandSize=BO(I,D),y.hide||"xAxis"!==n?y.hide||(s[O]+=(h?-1:1)*I.width):s[O]+=(h?-1:1)*I.height,Ek(Ek({},i),{},Ck({},a,I))}),{})},Dk=function(e,t){var r=e.x,n=e.y,o=t.x,i=t.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},Ik=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}return t=e,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.bandAware,n=t.position;if(void 0!==e){if(n)switch(n){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),r=t[0],n=t[t.length-1];return r<=n?e>=r&&e<=n:e>=n&&e<=r}}],n=[{key:"create",value:function(t){return new e(t)}}],r&&Ak(t.prototype,r),n&&Ak(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();Ck(Ik,"EPS",1e-4);var Nk=function(e){var t=Object.keys(e).reduce((function(t,r){return Ek(Ek({},t),{},Ck({},r,Ik.create(e[r])))}),{});return Ek(Ek({},t),{},{apply:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return QA(e,(function(e,r){return t[r].apply(e,{bandAware:n,position:o})}))},isInRange:function(e){return tk(e,(function(e,r){return t[r].isInRange(e)}))}})};var Rk,Lk,Bk,zk,$k,Hk,Fk,Vk,Uk=function(e){var t=e.width,r=e.height,n=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/t),a=o>i&&o<Math.PI-i?r/Math.sin(o):t/Math.cos(o);return Math.abs(a)};function Zk(){if(Hk)return $k;Hk=1;var e=bp(),t=gp(),r=function(){if(zk)return Bk;zk=1;var e=dA();return Bk=function(t){var r=e(t),n=r%1;return r==r?n?r-n:r:0}}(),n=Math.max;return $k=function(o,i,a){var c=null==o?0:o.length;if(!c)return-1;var l=null==a?0:r(a);return l<0&&(l=n(c+l,0)),e(o,t(i,3),l)},$k}!function(){if(Vk)return Fk;Vk=1;var e=function(){if(Lk)return Rk;Lk=1;var e=gp(),t=ip(),r=ap();return Rk=function(n){return function(o,i,a){var c=Object(o);if(!t(o)){var l=e(i,3);o=r(o),i=function(e){return l(c[e],e,c)}}var u=n(o,i,a);return u>-1?c[l?o[u]:u]:void 0}}}(),t=e(Zk());Fk=t}();var Wk=tr($i())((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("")}));function qk(e){return qk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qk(e)}var Yk=pe(void 0),Xk=pe(void 0),Gk=pe(void 0),Kk=pe({}),Jk=pe(void 0),Qk=pe(0),eE=pe(0),tE=function(e){var t=e.state,r=t.xAxisMap,n=t.yAxisMap,o=t.offset,i=e.clipPathId,a=e.children,c=e.width,l=e.height,u=Wk(o);return J.createElement(Yk.Provider,{value:r},J.createElement(Xk.Provider,{value:n},J.createElement(Kk.Provider,{value:o},J.createElement(Gk.Provider,{value:u},J.createElement(Jk.Provider,{value:i},J.createElement(Qk.Provider,{value:l},J.createElement(eE.Provider,{value:c},a)))))))};function rE(e){var t=Object.keys(e);return 0===t.length?"There are no available ids.":"Available ids are: ".concat(t,".")}var nE=function(e){var t=fe(Yk);null==t&&("production"!==process.env.NODE_ENV?Yx(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Yx());var r=t[e];return null==r&&("production"!==process.env.NODE_ENV?Yx(0,'Could not find xAxis by id "'.concat(e,'" [').concat(qk(e),"]. ").concat(rE(t))):Yx()),r},oE=function(e){var t=fe(Xk);null==t&&("production"!==process.env.NODE_ENV?Yx(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Yx());var r=t[e];return null==r&&("production"!==process.env.NODE_ENV?Yx(0,'Could not find yAxis by id "'.concat(e,'" [').concat(qk(e),"]. ").concat(rE(t))):Yx()),r},iE=function(){return fe(eE)},aE=function(){return fe(Qk)};function cE(e){return cE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cE(e)}function lE(e,t,r){return t&&function(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,vE(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uE(e,t,r){return t=fE(t),function(e,t){if(t&&("object"===cE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,sE()?Reflect.construct(t,r||[],fE(e).constructor):t.apply(e,r))}function sE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sE=function(){return!!e})()}function fE(e){return fE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fE(e)}function pE(e,t){return pE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pE(e,t)}function dE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dE(Object(r),!0).forEach((function(t){yE(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yE(e,t,r){return(t=vE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vE(e){var t=function(e,t){if("object"!=cE(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=cE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==cE(t)?t:t+""}function mE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bE(){return bE=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},bE.apply(this,arguments)}function wE(e){var t=e.x,r=e.y,n=e.segment,o=e.xAxisId,i=e.yAxisId,a=e.shape,c=e.className,l=e.alwaysShow,u=fe(Jk),s=nE(o),f=oE(i),p=fe(Gk);if(!u||!p)return null;Mc(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=function(e,t,r,n,o,i,a,c,l){var u=o.x,s=o.y,f=o.width,p=o.height;if(r){var d=l.y,h=e.y.apply(d,{position:i});if(ZA(l,"discard")&&!e.y.isInRange(h))return null;var y=[{x:u+f,y:h},{x:u,y:h}];return"left"===c?y.reverse():y}if(t){var v=l.x,m=e.x.apply(v,{position:i});if(ZA(l,"discard")&&!e.x.isInRange(m))return null;var g=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?g.reverse():g}if(n){var b=l.segment.map((function(t){return e.apply(t,{position:i})}));return ZA(l,"discard")&&UA(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(Nk({x:s.scale,y:f.scale}),Oa(t),Oa(r),n&&2===n.length,p,e.position,s.orientation,f.orientation,e);if(!d)return null;var h=mE(d,2),y=h[0],v=y.x,m=y.y,g=h[1],b=g.x,w=g.y,x=hE(hE({clipPath:ZA(e,"hidden")?"url(#".concat(u,")"):void 0},Ka(e,!0)),{},{x1:v,y1:m,x2:b,y2:w});return J.createElement(jc,{className:xn("recharts-reference-line",c)},function(e,t){return J.isValidElement(e)?J.cloneElement(e,t):na(e)?e(t):J.createElement("line",bE({},t,{className:"recharts-reference-line-line"}))}(a,x),fS.renderCallByParent(e,function(e){var t=e.x1,r=e.y1,n=e.x2,o=e.y2;return Dk({x:t,y:r},{x:n,y:o})}({x1:v,y1:m,x2:b,y2:w})))}var xE=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),uE(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&pE(e,t)}(t,J.Component),lE(t,[{key:"render",value:function(){return J.createElement(wE,this.props)}}])}();function OE(){return OE=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},OE.apply(this,arguments)}function SE(e){return SE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},SE(e)}function jE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function PE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jE(Object(r),!0).forEach((function(t){_E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ME(e,t,r){return t&&function(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,TE(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AE(e,t,r){return t=EE(t),function(e,t){if(t&&("object"===SE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,kE()?Reflect.construct(t,r||[],EE(e).constructor):t.apply(e,r))}function kE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kE=function(){return!!e})()}function EE(e){return EE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},EE(e)}function CE(e,t){return CE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CE(e,t)}function _E(e,t,r){return(t=TE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TE(e){var t=function(e,t){if("object"!=SE(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=SE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==SE(t)?t:t+""}yE(xE,"displayName","ReferenceLine"),yE(xE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var DE=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),AE(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&CE(e,t)}(t,J.Component),ME(t,[{key:"render",value:function(){var e=this.props,r=e.x,n=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,c=Oa(r),l=Oa(n);if(Mc(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!l)return null;var u=function(e){var t=e.x,r=e.y,n=e.xAxis,o=e.yAxis,i=Nk({x:n.scale,y:o.scale}),a=i.apply({x:t,y:r},{bandAware:!0});return ZA(e,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!u)return null;var s=u.x,f=u.y,p=this.props,d=p.shape,h=p.className,y=PE(PE({clipPath:ZA(this.props,"hidden")?"url(#".concat(a,")"):void 0},Ka(this.props,!0)),{},{cx:s,cy:f});return J.createElement(jc,{className:xn("recharts-reference-dot",h)},t.renderDot(d,y),fS.renderCallByParent(this.props,{x:s-o,y:f-o,width:2*o,height:2*o}))}}])}();function IE(){return IE=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},IE.apply(this,arguments)}function NE(e){return NE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NE(e)}function RE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function LE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?RE(Object(r),!0).forEach((function(t){VE(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function BE(e,t,r){return t&&function(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,UE(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zE(e,t,r){return t=HE(t),function(e,t){if(t&&("object"===NE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$E()?Reflect.construct(t,r||[],HE(e).constructor):t.apply(e,r))}function $E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($E=function(){return!!e})()}function HE(e){return HE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HE(e)}function FE(e,t){return FE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},FE(e,t)}function VE(e,t,r){return(t=UE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UE(e){var t=function(e,t){if("object"!=NE(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=NE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==NE(t)?t:t+""}_E(DE,"displayName","ReferenceDot"),_E(DE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),_E(DE,"renderDot",(function(e,t){return J.isValidElement(e)?J.cloneElement(e,t):na(e)?e(t):J.createElement(yM,OE({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))}));var ZE=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),zE(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&FE(e,t)}(t,J.Component),BE(t,[{key:"render",value:function(){var e=this.props,r=e.x1,n=e.x2,o=e.y1,i=e.y2,a=e.className,c=e.alwaysShow,l=e.clipPathId;Mc(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Oa(r),s=Oa(n),f=Oa(o),p=Oa(i),d=this.props.shape;if(!(u||s||f||p||d))return null;var h=function(e,t,r,n,o){var i=o.x1,a=o.x2,c=o.y1,l=o.y2,u=o.xAxis,s=o.yAxis;if(!u||!s)return null;var f=Nk({x:u.scale,y:s.scale}),p={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(l,{position:"end"}):f.y.rangeMax};return!ZA(o,"discard")||f.isInRange(p)&&f.isInRange(d)?Dk(p,d):null}(u,s,f,p,this.props);if(!h&&!d)return null;var y=ZA(this.props,"hidden")?"url(#".concat(l,")"):void 0;return J.createElement(jc,{className:xn("recharts-reference-area",a)},t.renderRect(d,LE(LE({clipPath:y},Ka(this.props,!0)),h)),fS.renderCallByParent(this.props,h))}}])}();function WE(e,t,r){if(t<1)return[];if(1===t&&void 0===r)return e;for(var n=[],o=0;o<e.length;o+=t)n.push(e[o]);return n}function qE(e,t,r,n,o){if(e*t<e*n||e*t>e*o)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-o)<=0}function YE(e){return YE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YE(e)}function XE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function GE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?XE(Object(r),!0).forEach((function(t){KE(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function KE(e,t,r){return t=function(e){var t=function(e,t){if("object"!=YE(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=YE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==YE(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JE(e,t,r){var n=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,c=e.orientation,l=e.interval,u=e.tickFormatter,s=e.unit,f=e.angle;if(!o||!o.length||!n)return[];if(xa(l)||vh)return function(e,t){return WE(e,t+1)}(o,"number"==typeof l&&xa(l)?l:0);var p=[],d="top"===c||"bottom"===c?"width":"height",h=s&&"width"===d?cy(s,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=function(e,n){var o=na(u)?u(e.value,n):e.value;return"width"===d?function(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Uk(n,r)}(cy(o,{fontSize:t,letterSpacing:r}),h,f):cy(o,{fontSize:t,letterSpacing:r})[d]},v=o.length>=2?ba(o[1].coordinate-o[0].coordinate):1,m=function(e,t,r){var n="width"===r,o=e.x,i=e.y,a=e.width,c=e.height;return 1===t?{start:n?o:i,end:n?o+a:i+c}:{start:n?o+a:i+c,end:n?o:i}}(i,v,d);return"equidistantPreserveStart"===l?function(e,t,r,n,o){for(var i,a=(n||[]).slice(),c=t.start,l=t.end,u=0,s=1,f=c,p=function(){var t=null==n?void 0:n[u];if(void 0===t)return{v:WE(n,s)};var i,a=u,p=function(){return void 0===i&&(i=r(t,a)),i},d=t.coordinate,h=0===u||qE(e,d,p,f,l);h||(u=0,f=c,s+=1),h&&(f=d+e*(p()/2+o),u+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,m,y,o,a):(p="preserveStart"===l||"preserveStartEnd"===l?function(e,t,r,n,o,i){var a=(n||[]).slice(),c=a.length,l=t.start,u=t.end;if(i){var s=n[c-1],f=r(s,c-1),p=e*(s.coordinate+e*f/2-u);a[c-1]=s=GE(GE({},s),{},{tickCoord:p>0?s.coordinate-p*e:s.coordinate}),qE(e,s.tickCoord,(function(){return f}),l,u)&&(u=s.tickCoord-e*(f/2+o),a[c-1]=GE(GE({},s),{},{isShow:!0}))}for(var d=i?c-1:c,h=function(t){var n,i=a[t],c=function(){return void 0===n&&(n=r(i,t)),n};if(0===t){var s=e*(i.coordinate-e*c()/2-l);a[t]=i=GE(GE({},i),{},{tickCoord:s<0?i.coordinate-s*e:i.coordinate})}else a[t]=i=GE(GE({},i),{},{tickCoord:i.coordinate});qE(e,i.tickCoord,c,l,u)&&(l=i.tickCoord+e*(c()/2+o),a[t]=GE(GE({},i),{},{isShow:!0}))},y=0;y<d;y++)h(y);return a}(v,m,y,o,a,"preserveStartEnd"===l):function(e,t,r,n,o){for(var i=(n||[]).slice(),a=i.length,c=t.start,l=t.end,u=function(t){var n,u=i[t],s=function(){return void 0===n&&(n=r(u,t)),n};if(t===a-1){var f=e*(u.coordinate+e*s()/2-l);i[t]=u=GE(GE({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate})}else i[t]=u=GE(GE({},u),{},{tickCoord:u.coordinate});qE(e,u.tickCoord,s,c,l)&&(l=u.tickCoord-e*(s()/2+o),i[t]=GE(GE({},u),{},{isShow:!0}))},s=a-1;s>=0;s--)u(s);return i}(v,m,y,o,a),p.filter((function(e){return e.isShow})))}VE(ZE,"displayName","ReferenceArea"),VE(ZE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),VE(ZE,"renderRect",(function(e,t){return J.isValidElement(e)?J.cloneElement(e,t):na(e)?e(t):J.createElement(dM,IE({},t,{className:"recharts-reference-area-rect"}))}));var QE=["viewBox"],eC=["viewBox"],tC=["ticks"];function rC(e){return rC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rC(e)}function nC(){return nC=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},nC.apply(this,arguments)}function oC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function iC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oC(Object(r),!0).forEach((function(t){pC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function aC(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function cC(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,dC(n.key),n)}}function lC(e,t,r){return t=sC(t),function(e,t){if(t&&("object"===rC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,uC()?Reflect.construct(t,r||[],sC(e).constructor):t.apply(e,r))}function uC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uC=function(){return!!e})()}function sC(e){return sC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sC(e)}function fC(e,t){return fC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fC(e,t)}function pC(e,t,r){return(t=dC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dC(e){var t=function(e,t){if("object"!=rC(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=rC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==rC(t)?t:t+""}var hC=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=lC(this,t,[e])).state={fontSize:"",letterSpacing:""},r}return function(e,t){if("function"!=typeof t&&null!==t)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&&fC(e,t)}(t,de),r=t,n=[{key:"shouldComponentUpdate",value:function(e,t){var r=e.viewBox,n=aC(e,QE),o=this.props,i=o.viewBox,a=aC(o,eC);return!Ea(r,i)||!Ea(n,a)||!Ea(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,r,n,o,i,a,c=this.props,l=c.x,u=c.y,s=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,y=c.tickMargin,v=h?-1:1,m=e.tickSize||d,g=xa(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=r=e.coordinate,a=(n=(o=u+ +!h*f)-v*m)-v*y,i=g;break;case"left":n=o=e.coordinate,i=(t=(r=l+ +!h*s)-v*m)-v*y,a=g;break;case"right":n=o=e.coordinate,i=(t=(r=l+ +h*s)+v*m)+v*y,a=g;break;default:t=r=e.coordinate,a=(n=(o=u+ +h*f)+v*m)+v*y,i=g}return{line:{x1:t,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,r=t.orientation,n=t.mirror;switch(r){case"left":e=n?"start":"end";break;case"right":e=n?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,r=e.mirror,n="end";switch(t){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,i=e.orientation,a=e.mirror,c=e.axisLine,l=iC(iC(iC({},Ka(this.props,!1)),Ka(c,!1)),{},{fill:"none"});if("top"===i||"bottom"===i){var u=+("top"===i&&!a||"bottom"===i&&a);l=iC(iC({},l),{},{x1:t,y1:r+u*o,x2:t+n,y2:r+u*o})}else{var s=+("left"===i&&!a||"right"===i&&a);l=iC(iC({},l),{},{x1:t+s*n,y1:r,x2:t+s*n,y2:r+o})}return J.createElement("line",nC({},l,{className:xn("recharts-cartesian-axis-line",Gi(c,"className"))}))}},{key:"renderTicks",value:function(e,r,n){var o=this,i=this.props,a=i.tickLine,c=i.stroke,l=i.tick,u=i.tickFormatter,s=i.unit,f=JE(iC(iC({},this.props),{},{ticks:e}),r,n),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=Ka(this.props,!1),y=Ka(l,!1),v=iC(iC({},h),{},{fill:"none"},Ka(a,!1)),m=f.map((function(e,r){var n=o.getTickLineCoord(e),i=n.line,m=n.tick,g=iC(iC(iC(iC({textAnchor:p,verticalAnchor:d},h),{},{stroke:"none",fill:c},y),m),{},{index:r,payload:e,visibleTicksCount:f.length,tickFormatter:u});return J.createElement(jc,nC({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},Ra(o.props,e,r)),a&&J.createElement("line",nC({},v,i,{className:xn("recharts-cartesian-axis-tick-line",Gi(a,"className"))})),l&&t.renderTickItem(l,g,"".concat(na(u)?u(e.value,r):e.value).concat(s||"")))}));return J.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,t=this.props,r=t.axisLine,n=t.width,o=t.height,i=t.ticksGenerator,a=t.className;if(t.hide)return null;var c=this.props,l=c.ticks,u=aC(c,tC),s=l;return na(i)&&(s=l&&l.length>0?i(this.props):i(u)),n<=0||o<=0||!s||!s.length?null:J.createElement(jc,{className:xn("recharts-cartesian-axis",a),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),fS.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(e,t,r){return J.isValidElement(e)?J.cloneElement(e,t):na(e)?e(t):J.createElement(Ry,nC({},t,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&cC(r.prototype,n),o&&cC(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();pC(hC,"displayName","CartesianAxis"),pC(hC,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var yC=["type","layout","connectNulls","ref"],vC=["key"];function mC(e){return mC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mC(e)}function gC(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function bC(){return bC=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},bC.apply(this,arguments)}function wC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wC(Object(r),!0).forEach((function(t){EC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function OC(e){return function(e){if(Array.isArray(e))return SC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return SC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SC(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jC(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,CC(n.key),n)}}function PC(e,t,r){return t=AC(t),function(e,t){if(t&&("object"===mC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,MC()?Reflect.construct(t,r||[],AC(e).constructor):t.apply(e,r))}function MC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(MC=function(){return!!e})()}function AC(e){return AC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},AC(e)}function kC(e,t){return kC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kC(e,t)}function EC(e,t,r){return(t=CC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CC(e){var t=function(e,t){if("object"!=mC(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=mC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mC(t)?t:t+""}var _C=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return EC(e=PC(this,t,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),EC(e,"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),EC(e,"getStrokeDasharray",(function(r,n,o){var i=o.reduce((function(e,t){return e+t}));if(!i)return e.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/i),c=r%i,l=n-r,u=[],s=0,f=0;s<o.length;f+=o[s],++s)if(f+o[s]>c){u=[].concat(OC(o.slice(0,s)),[c-f]);break}var p=u.length%2==0?[0,l]:[l];return[].concat(OC(t.repeat(o,a)),OC(u),p).map((function(e){return"".concat(e,"px")})).join(", ")})),EC(e,"id",ja("recharts-line-")),EC(e,"pathRef",(function(t){e.mainCurve=t})),EC(e,"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),EC(e,"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return function(e,t){if("function"!=typeof t&&null!==t)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&&kC(e,t)}(t,te),r=t,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,o=r.xAxis,i=r.yAxis,a=r.layout,c=Wa(r.children,lO);if(!c)return null;var l=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:wO(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(t,")"):null};return J.createElement(jc,u,c.map((function(e){return J.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,dataPointFormatter:l})})))}},{key:"renderDots",value:function(e,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.dot,a=o.points,c=o.dataKey,l=Ka(this.props,!1),u=Ka(i,!0),s=a.map((function(e,r){var n=xC(xC(xC({key:"dot-".concat(r),r:3},l),u),{},{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:r,payload:e.payload});return t.renderDotItem(i,n)})),f={clipPath:e?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return J.createElement(jc,bC({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(e,t,r,n){var o=this.props,i=o.type,a=o.layout,c=o.connectNulls;o.ref;var l=gC(o,yC),u=xC(xC(xC({},Ka(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(r,")"):null,points:e},n),{},{type:i,layout:a,connectNulls:c});return J.createElement(XS,bC({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var r=this,n=this.props,o=n.points,i=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,d=n.height,h=this.state,y=h.prevPoints,v=h.totalLength;return J.createElement(rM,{begin:c,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(y){var c=y.length/o.length,l=o.map((function(e,t){var r=Math.floor(t*c);if(y[r]){var n=y[r],o=Aa(n.x,e.x),i=Aa(n.y,e.y);return xC(xC({},e),{},{x:o(a),y:i(a)})}if(f){var l=Aa(2*p,e.x),u=Aa(d/2,e.y);return xC(xC({},e),{},{x:l(a),y:u(a)})}return xC(xC({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(l,e,t)}var u,s=Aa(0,v)(a);if(i){var h="".concat(i).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=r.getStrokeDasharray(s,v,h)}else u=r.generateSimpleStrokeDasharray(v,s);return r.renderCurveStatically(o,e,t,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(e,t){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,c=i.totalLength;return o&&n&&n.length&&(!a&&c>0||!Vw(a,n))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(n,e,t)}},{key:"render",value:function(){var e,t=this.props,r=t.hide,n=t.dot,o=t.points,i=t.className,a=t.xAxis,c=t.yAxis,l=t.top,u=t.left,s=t.width,f=t.height,p=t.isAnimationActive,d=t.id;if(r||!o||!o.length)return null;var h=this.state.isAnimationFinished,y=1===o.length,v=xn("recharts-line",i),m=a&&a.allowDataOverflow,g=c&&c.allowDataOverflow,b=m||g,w=Qi(d)?this.id:d,x=null!==(e=Ka(n,!1))&&void 0!==e?e:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,P=void 0===j?2:j,M=(Ga(n)?n:{}).clipDot,A=void 0===M||M,k=2*S+P;return J.createElement(jc,{className:v},m||g?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(w)},J.createElement("rect",{x:m?u:u-s/2,y:g?l:l-f/2,width:m?s:2*s,height:g?f:2*f})),!A&&J.createElement("clipPath",{id:"clipPath-dots-".concat(w)},J.createElement("rect",{x:u-k/2,y:l-k/2,width:s+k,height:f+k}))):null,!y&&this.renderCurve(b,w),this.renderErrorBar(b,w),(y||n)&&this.renderDots(b,A,w),(!p||h)&&kS.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var r=e.length%2!=0?[].concat(OC(e),[0]):e,n=[],o=0;o<t;++o)n=[].concat(OC(n),OC(r));return n}},{key:"renderDotItem",value:function(e,t){var r;if(J.isValidElement(e))r=J.cloneElement(e,t);else if(na(e))r=e(t);else{var n=t.key,o=gC(t,vC),i=xn("recharts-line-dot","boolean"!=typeof e?e.className:"");r=J.createElement(yM,bC({key:n},o,{className:i}))}return r}}],n&&jC(r.prototype,n),o&&jC(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();EC(_C,"displayName","Line"),EC(_C,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!vh,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),EC(_C,"getComposedData",(function(e){var t=e.props,r=e.xAxis,n=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,c=e.bandSize,l=e.displayedData,u=e.offset,s=t.layout;return xC({points:l.map((function(e,t){var l=wO(e,a);return"horizontal"===s?{x:TO({axis:r,ticks:o,bandSize:c,entry:e,index:t}),y:Qi(l)?null:n.scale(l),value:l,payload:e}:{x:Qi(l)?null:r.scale(l),y:TO({axis:n,ticks:i,bandSize:c,entry:e,index:t}),value:l,payload:e}})),layout:s},u)}));var TC,DC=["layout","type","stroke","connectNulls","isRange","ref"],IC=["key"];function NC(e){return NC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NC(e)}function RC(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function LC(){return LC=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},LC.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(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?BC(Object(r),!0).forEach((function(t){ZC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $C(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,WC(n.key),n)}}function HC(e,t,r){return t=VC(t),function(e,t){if(t&&("object"===NC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,FC()?Reflect.construct(t,r||[],VC(e).constructor):t.apply(e,r))}function FC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(FC=function(){return!!e})()}function VC(e){return VC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VC(e)}function UC(e,t){return UC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UC(e,t)}function ZC(e,t,r){return(t=WC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WC(e){var t=function(e,t){if("object"!=NC(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=NC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==NC(t)?t:t+""}var qC=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return ZC(e=HC(this,t,[].concat(n)),"state",{isAnimationFinished:!0}),ZC(e,"id",ja("recharts-area-")),ZC(e,"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),na(t)&&t()})),ZC(e,"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),na(t)&&t()})),e}return function(e,t){if("function"!=typeof t&&null!==t)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&&UC(e,t)}(t,te),r=t,n=[{key:"renderDots",value:function(e,r,n){var o=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(o&&!i)return null;var a=this.props,c=a.dot,l=a.points,u=a.dataKey,s=Ka(this.props,!1),f=Ka(c,!0),p=l.map((function(e,r){var n=zC(zC(zC({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:e.x,cy:e.y,dataKey:u,value:e.value,payload:e.payload,points:l});return t.renderDotItem(c,n)})),d={clipPath:e?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return J.createElement(jc,LC({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,r=t.baseLine,n=t.points,o=t.strokeWidth,i=n[0].x,a=n[n.length-1].x,c=e*Math.abs(i-a),l=_w(n.map((function(e){return e.y||0})));return xa(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(_w(r.map((function(e){return e.y||0}))),l)),xa(l)?J.createElement("rect",{x:i<a?i:i-c,y:0,width:c,height:Math.floor(l+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,r=t.baseLine,n=t.points,o=t.strokeWidth,i=n[0].y,a=n[n.length-1].y,c=e*Math.abs(i-a),l=_w(n.map((function(e){return e.x||0})));return xa(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(_w(r.map((function(e){return e.x||0}))),l)),xa(l)?J.createElement("rect",{x:0,y:i<a?i:i-c,width:l+(o?parseInt("".concat(o),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,t,r,n){var o=this.props,i=o.layout,a=o.type,c=o.stroke,l=o.connectNulls,u=o.isRange;o.ref;var s=RC(o,DC);return J.createElement(jc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},J.createElement(XS,LC({},Ka(s,!0),{points:e,connectNulls:l,type:a,baseLine:t,layout:i,stroke:"none",className:"recharts-area-area"})),"none"!==c&&J.createElement(XS,LC({},Ka(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:l,fill:"none",points:e})),"none"!==c&&u&&J.createElement(XS,LC({},Ka(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:l,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var r=this,n=this.props,o=n.points,i=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,d=f.prevBaseLine;return J.createElement(rM,{begin:c,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var c,l=p.length/o.length,u=o.map((function(e,t){var r=Math.floor(t*l);if(p[r]){var n=p[r],o=Aa(n.x,e.x),i=Aa(n.y,e.y);return zC(zC({},e),{},{x:o(a),y:i(a)})}return e}));return c=xa(i)&&"number"==typeof i?Aa(d,i)(a):Qi(i)||ma(i)?Aa(d,0)(a):i.map((function(e,t){var r=Math.floor(t*l);if(d[r]){var n=d[r],o=Aa(n.x,e.x),i=Aa(n.y,e.y);return zC(zC({},e),{},{x:o(a),y:i(a)})}return e})),r.renderAreaStatically(u,c,e,t)}return J.createElement(jc,null,J.createElement("defs",null,J.createElement("clipPath",{id:"animationClipPath-".concat(t)},r.renderClipRect(a))),J.createElement(jc,{clipPath:"url(#animationClipPath-".concat(t,")")},r.renderAreaStatically(o,i,e,t)))}))}},{key:"renderArea",value:function(e,t){var r=this.props,n=r.points,o=r.baseLine,i=r.isAnimationActive,a=this.state,c=a.prevPoints,l=a.prevBaseLine,u=a.totalLength;return i&&n&&n.length&&(!c&&u>0||!Vw(c,n)||!Vw(l,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(n,o,e,t)}},{key:"render",value:function(){var e,t=this.props,r=t.hide,n=t.dot,o=t.points,i=t.className,a=t.top,c=t.left,l=t.xAxis,u=t.yAxis,s=t.width,f=t.height,p=t.isAnimationActive,d=t.id;if(r||!o||!o.length)return null;var h=this.state.isAnimationFinished,y=1===o.length,v=xn("recharts-area",i),m=l&&l.allowDataOverflow,g=u&&u.allowDataOverflow,b=m||g,w=Qi(d)?this.id:d,x=null!==(e=Ka(n,!1))&&void 0!==e?e:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,P=void 0===j?2:j,M=(Ga(n)?n:{}).clipDot,A=void 0===M||M,k=2*S+P;return J.createElement(jc,{className:v},m||g?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(w)},J.createElement("rect",{x:m?c:c-s/2,y:g?a:a-f/2,width:m?s:2*s,height:g?f:2*f})),!A&&J.createElement("clipPath",{id:"clipPath-dots-".concat(w)},J.createElement("rect",{x:c-k/2,y:a-k/2,width:s+k,height:f+k}))):null,y?null:this.renderArea(b,w),(n||y)&&this.renderDots(b,A,w),(!p||h)&&kS.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],n&&$C(r.prototype,n),o&&$C(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function YC(e){return YC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YC(e)}function XC(e,t,r){return t&&function(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,t_(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GC(e,t,r){return t=JC(t),function(e,t){if(t&&("object"===YC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,KC()?Reflect.construct(t,r||[],JC(e).constructor):t.apply(e,r))}function KC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(KC=function(){return!!e})()}function JC(e){return JC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JC(e)}function QC(e,t){return QC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QC(e,t)}function e_(e,t,r){return(t=t_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t_(e){var t=function(e,t){if("object"!=YC(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=YC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==YC(t)?t:t+""}function r_(){return r_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r_.apply(this,arguments)}function n_(e){var t=e.xAxisId,r=iE(),n=aE(),o=nE(t);return null==o?null:J.createElement(hC,r_({},o,{className:xn("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(e){return MO(e,!0)}}))}TC=qC,ZC(qC,"displayName","Area"),ZC(qC,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!vh,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),ZC(qC,"getBaseValue",(function(e,t,r,n){var o=e.layout,i=e.baseValue,a=t.props.baseValue,c=null!=a?a:i;if(xa(c)&&"number"==typeof c)return c;var l="horizontal"===o?n:r,u=l.scale.domain();if("number"===l.type){var s=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===c?u[0]:"dataMax"===c?u[1]:u[0]})),ZC(qC,"getComposedData",(function(e){var t,r=e.props,n=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,c=e.yAxisTicks,l=e.bandSize,u=e.dataKey,s=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=r.layout,y=s&&s.length,v=TC.getBaseValue(r,n,o,i),m="horizontal"===h,g=!1,b=p.map((function(e,t){var r;y?r=s[f+t]:(r=wO(e,u),Array.isArray(r)?g=!0:r=[v,r]);var n=null==r[1]||y&&null==wO(e,u);return m?{x:TO({axis:o,ticks:a,bandSize:l,entry:e,index:t}),y:n?null:i.scale(r[1]),value:r,payload:e}:{x:n?null:o.scale(r[1]),y:TO({axis:i,ticks:c,bandSize:l,entry:e,index:t}),value:r,payload:e}}));return t=y||g?b.map((function(e){var t=Array.isArray(e.value)?e.value[0]:null;return m?{x:e.x,y:null!=t&&null!=e.y?i.scale(t):null}:{x:null!=t?o.scale(t):null,y:e.y}})):m?i.scale(v):o.scale(v),zC({points:b,baseLine:t,layout:h,isRange:g},d)})),ZC(qC,"renderDotItem",(function(e,t){var r;if(J.isValidElement(e))r=J.cloneElement(e,t);else if(na(e))r=e(t);else{var n=xn("recharts-area-dot","boolean"!=typeof e?e.className:""),o=t.key,i=RC(t,IC);r=J.createElement(yM,LC({},i,{key:o,className:n}))}return r}));var o_=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),GC(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&QC(e,t)}(t,J.Component),XC(t,[{key:"render",value:function(){return J.createElement(n_,this.props)}}])}();function i_(e){return i_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i_(e)}function a_(e,t,r){return t&&function(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)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function c_(e,t,r){return t=u_(t),function(e,t){if(t&&("object"===i_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l_()?Reflect.construct(t,r||[],u_(e).constructor):t.apply(e,r))}function l_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l_=function(){return!!e})()}function u_(e){return u_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u_(e)}function s_(e,t){return s_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s_(e,t)}function f_(e,t,r){return(t=p_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p_(e){var t=function(e,t){if("object"!=i_(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=i_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i_(t)?t:t+""}function d_(){return d_=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},d_.apply(this,arguments)}e_(o_,"displayName","XAxis"),e_(o_,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var h_=function(e){var t=e.yAxisId,r=iE(),n=aE(),o=oE(t);return null==o?null:J.createElement(hC,d_({},o,{className:xn("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(e){return MO(e,!0)}}))},y_=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c_(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&s_(e,t)}(t,J.Component),a_(t,[{key:"render",value:function(){return J.createElement(h_,this.props)}}])}();function v_(e){return function(e){if(Array.isArray(e))return m_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m_(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}f_(y_,"displayName","YAxis"),f_(y_,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var g_,b_=function(e,t,r,n,o){var i=Wa(e,xE),a=Wa(e,DE),c=[].concat(v_(i),v_(a)),l=Wa(e,ZE),u="".concat(n,"Id"),s=n[0],f=t;if(c.length&&(f=c.reduce((function(e,t){if(t.props[u]===r&&ZA(t.props,"extendDomain")&&xa(t.props[s])){var n=t.props[s];return[Math.min(e[0],n),Math.max(e[1],n)]}return e}),f)),l.length){var p="".concat(s,"1"),d="".concat(s,"2");f=l.reduce((function(e,t){if(t.props[u]===r&&ZA(t.props,"extendDomain")&&xa(t.props[p])&&xa(t.props[d])){var n=t.props[p],o=t.props[d];return[Math.min(e[0],n,o),Math.max(e[1],n,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return xa(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},w_={exports:{}};var x_=(g_||(g_=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||e,a),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],c]:e._events[l].push(c):(e._events[l]=c,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,o,i,a){var c=r?r+e:e;if(!this._events[c])return!1;var l,u,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(e,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,t),!0;case 3:return s.fn.call(s.context,t,n),!0;case 4:return s.fn.call(s.context,t,n,o),!0;case 5:return s.fn.call(s.context,t,n,o,i),!0;case 6:return s.fn.call(s.context,t,n,o,i,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];s.fn.apply(s.context,l)}else{var p,d=s.length;for(u=0;u<d;u++)switch(s[u].once&&this.removeListener(e,s[u].fn,void 0,!0),f){case 1:s[u].fn.call(s[u].context);break;case 2:s[u].fn.call(s[u].context,t);break;case 3:s[u].fn.call(s[u].context,t,n);break;case 4:s[u].fn.call(s[u].context,t,n,o);break;default:if(!l)for(p=1,l=new Array(f-1);p<f;p++)l[p-1]=arguments[p];s[u].fn.apply(s[u].context,l)}}return!0},c.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},c.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},c.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==t||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var l=0,u=[],s=c.length;l<s;l++)(c[l].fn!==t||o&&!c[l].once||n&&c[l].context!==n)&&u.push(c[l]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,e.exports=c}(w_)),w_.exports),O_=new(tr(x_)),S_="recharts.syncMouseEvents";function j_(e){return j_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j_(e)}function P_(e,t,r){return t&&function(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,A_(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function M_(e,t,r){return(t=A_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A_(e){var t=function(e,t){if("object"!=j_(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=j_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==j_(t)?t:t+""}var k_=function(){return P_((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),M_(this,"activeIndex",0),M_(this,"coordinateList",[]),M_(this,"layout","horizontal")}),[{key:"setDetails",value:function(e){var t,r=e.coordinateList,n=void 0===r?null:r,o=e.container,i=void 0===o?null:o,a=e.layout,c=void 0===a?null:a,l=e.offset,u=void 0===l?null:l,s=e.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(t=null!=n?n:this.coordinateList)&&void 0!==t?t:[],this.container=null!=i?i:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=u?u:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,l=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,u=n+a+c,s=o+this.offset.top+i/2+l;this.mouseHandlerCallback({pageX:u,pageY:s})}}}])}();function E_(e){var t=e.cx,r=e.cy,n=e.radius,o=e.startAngle,i=e.endAngle;return{points:[qO(t,r,n,o),qO(t,r,n,i)],cx:t,cy:r,radius:n,startAngle:o,endAngle:i}}function C_(e,t,r){var n,o,i,a;if("horizontal"===e)i=n=t.x,o=r.top,a=r.top+r.height;else if("vertical"===e)a=o=t.y,n=r.left,i=r.left+r.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return E_(t);var c=t.cx,l=t.cy,u=t.innerRadius,s=t.outerRadius,f=t.angle,p=qO(c,l,u,f),d=qO(c,l,s,f);n=p.x,o=p.y,i=d.x,a=d.y}return[{x:n,y:o},{x:i,y:a}]}function __(e){return __="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},__(e)}function T_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T_(Object(r),!0).forEach((function(t){I_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I_(e,t,r){return t=function(e){var t=function(e,t){if("object"!=__(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=__(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==__(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N_(e){var t,r,n,o=e.element,i=e.tooltipEventType,a=e.isActive,c=e.activeCoordinate,l=e.activePayload,u=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,p=e.layout,d=e.chartName,h=null!==(t=o.props.cursor)&&void 0!==t?t:null===(r=o.type.defaultProps)||void 0===r?void 0:r.cursor;if(!o||!h||!a||!c||"ScatterChart"!==d&&"axis"!==i)return null;var y=XS;if("ScatterChart"===d)n=c,y=AM;else if("BarChart"===d)n=function(e,t,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:t.y-o,width:"horizontal"===e?n:r.width-1,height:"horizontal"===e?r.height-1:n}}(p,c,u,f),y=dM;else if("radial"===p){var v=E_(c),m=v.cx,g=v.cy,b=v.radius;n={cx:m,cy:g,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:b,outerRadius:b},y=LS}else n={points:C_(p,c,u)},y=XS;var w=D_(D_(D_(D_({stroke:"#ccc",pointerEvents:"none"},u),n),Ka(h,!1)),{},{payload:l,payloadIndex:s,className:xn("recharts-tooltip-cursor",h.className)});return Q(h)?ue(h,w):se(y,w)}var R_=["item"],L_=["children","className","width","height","style","compact","title","desc"];function B_(e){return B_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B_(e)}function z_(){return z_=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},z_.apply(this,arguments)}function $_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||Y_(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H_(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function F_(e,t,r){return t&&function(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,Q_(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function V_(e,t,r){return t=Z_(t),function(e,t){if(t&&("object"===B_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,U_()?Reflect.construct(t,r||[],Z_(e).constructor):t.apply(e,r))}function U_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(U_=function(){return!!e})()}function Z_(e){return Z_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z_(e)}function W_(e,t){return W_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},W_(e,t)}function q_(e){return function(e){if(Array.isArray(e))return X_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Y_(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y_(e,t){if(e){if("string"==typeof e)return X_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?X_(e,t):void 0}}function X_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function G_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G_(Object(r),!0).forEach((function(t){J_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J_(e,t,r){return(t=Q_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q_(e){var t=function(e,t){if("object"!=B_(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=B_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==B_(t)?t:t+""}var eT={xAxis:["bottom","top"],yAxis:["left","right"]},tT={width:"100%",height:"100%"},rT={x:0,y:0};function nT(e){return e}var oT=function(e,t){var r=t.graphicalItems,n=t.dataStartIndex,o=t.dataEndIndex,i=(null!=r?r:[]).reduce((function(e,t){var r=t.props.data;return r&&r.length?[].concat(q_(e),q_(r)):e}),[]);return i.length>0?i:e&&e.length&&xa(n)&&xa(o)?e.slice(n,o+1):[]};function iT(e){return"number"===e?[0,"auto"]:void 0}var aT=function(e,t,r,n){var o=e.graphicalItems,i=e.tooltipAxis,a=oT(t,e);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,c){var l,u,s=null!==(l=c.props.data)&&void 0!==l?l:t;(s&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=r&&(s=s.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?u=ka(void 0===s?a:s,i.dataKey,n):u=s&&s[r]||a[r];return u?[].concat(q_(o),[$O(c,u)]):o}),[])},cT=function(e,t,r,n){var o=n||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,r),a=e.orderedTooltipTicks,c=e.tooltipAxis,l=e.tooltipTicks,u=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,l=0;l<a;l++){var u=l>0?n[l-1].coordinate:n[a-1].coordinate,s=n[l].coordinate,f=l>=a-1?n[0].coordinate:n[l+1].coordinate,p=void 0;if(ba(s-u)!==ba(f-s)){var d=[];if(ba(f-s)===ba(c[1]-c[0])){p=f;var h=s+c[1]-c[0];d[0]=Math.min(h,(h+u)/2),d[1]=Math.max(h,(h+u)/2)}else{p=u;var y=f+c[1]-c[0];d[0]=Math.min(s,(y+s)/2),d[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){i=n[l].index;break}}else{var m=Math.min(u,f),g=Math.max(u,f);if(e>(m+s)/2&&e<=(g+s)/2){i=n[l].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&e>(r[b].coordinate+r[b-1].coordinate)/2&&e<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&e>(r[b].coordinate+r[b-1].coordinate)/2){i=r[b].index;break}return i}(i,a,l,c);if(u>=0&&l){var s=l[u]&&l[u].value,f=aT(e,t,u,s),p=function(e,t,r,n){var o=t.find((function(e){return e&&e.index===r}));if(o){if("horizontal"===e)return{x:o.coordinate,y:n.y};if("vertical"===e)return{x:n.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=n.radius;return K_(K_(K_({},n),qO(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,l=n.angle;return K_(K_(K_({},n),qO(n.cx,n.cy,c,l)),{},{angle:l,radius:c})}return rT}(r,a,u,o);return{activeTooltipIndex:u,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},lT=function(e,t){var r=t.axes,n=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,l=t.dataEndIndex,u=e.layout,s=e.children,f=e.stackOffset,p=PO(u,o);return r.reduce((function(t,r){var d,h=void 0!==r.type.defaultProps?K_(K_({},r.type.defaultProps),r.props):r.props,y=h.type,v=h.dataKey,m=h.allowDataOverflow,g=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,O=h[i];if(t[O])return t;var S,j,P,M=oT(e.data,{graphicalItems:n.filter((function(e){var t;return(i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i])===O})),dataStartIndex:c,dataEndIndex:l}),A=M.length;(function(e,t,r){if("number"===r&&!0===t&&Array.isArray(e)){var n=null==e?void 0:e[0],o=null==e?void 0:e[1];if(n&&o&&xa(n)&&xa(o))return!0}return!1})(h.domain,m,y)&&(S=LO(h.domain,null,m),!p||"number"!==y&&"auto"===b||(P=xO(M,v,"category")));var k=iT(y);if(!S||0===S.length){var E,C=null!==(E=h.domain)&&void 0!==E?E:k;if(v){if(S=xO(M,v,y),"category"===y&&p){var _=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++){if(r[e[n]])return!0;r[e[n]]=!0}return!1}(S);g&&_?(j=S,S=vA(0,A)):g||(S=zO(C,S,r).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(q_(e),[t])}),[]))}else if("category"===y)S=g?S.filter((function(e){return""!==e&&!Qi(e)})):zO(C,S,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Qi(t)?e:[].concat(q_(e),[t])}),[]);else if("number"===y){var T=function(e,t,r,n,o){var i=t.map((function(t){return SO(e,t,r,o,n)})).filter((function(e){return!Qi(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(M,n.filter((function(e){var t,r,n=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],o="hide"in e.props?e.props.hide:null===(r=e.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!o)})),v,o,u);T&&(S=T)}!p||"number"!==y&&"auto"===b||(P=xO(M,v,"category"))}else S=p?vA(0,A):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:IO(a[O].stackGroups,c,l):jO(M,n.filter((function(e){var t=i in e.props?e.props[i]:e.type.defaultProps[i],r="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===O&&(x||!r)})),y,u,!0);if("number"===y)S=b_(s,S,O,o,w),C&&(S=LO(C,S,m));else if("category"===y&&C){var D=C;S.every((function(e){return D.indexOf(e)>=0}))&&(S=D)}}return K_(K_({},t),{},J_({},O,K_(K_({},h),{},{axisType:o,domain:S,categoricalDomain:P,duplicateDomain:j,originalDomain:null!==(d=h.domain)&&void 0!==d?d:k,isCategorical:p,layout:u})))}),{})},uT=function(e,t){var r=t.axisType,n=void 0===r?"xAxis":r,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,c=t.dataStartIndex,l=t.dataEndIndex,u=e.children,s="".concat(n,"Id"),f=Wa(u,o),p={};return f&&f.length?p=lT(e,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l}):i&&i.length&&(p=function(e,t){var r=t.graphicalItems,n=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,l=t.dataEndIndex,u=e.layout,s=e.children,f=oT(e.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:l}),p=f.length,d=PO(u,o),h=-1;return r.reduce((function(e,t){var y,v=(void 0!==t.type.defaultProps?K_(K_({},t.type.defaultProps),t.props):t.props)[i],m=iT("number");return e[v]?e:(h++,d?y=vA(0,p):a&&a[v]&&a[v].hasStack?(y=IO(a[v].stackGroups,c,l),y=b_(s,y,v,o)):(y=LO(m,jO(f,r.filter((function(e){var t,r,n=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],o="hide"in e.props?e.props.hide:null===(r=e.type.defaultProps)||void 0===r?void 0:r.hide;return n===v&&!o})),"number",u),n.defaultProps.allowDataOverflow),y=b_(s,y,v,o)),K_(K_({},e),{},J_({},v,K_(K_({axisType:o},n.defaultProps),{},{hide:!0,orientation:Gi(eT,"".concat(o,".").concat(h%2),null),domain:y,originalDomain:m,isCategorical:d,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l})),p},sT=function(e){var t=e.children,r=e.defaultShowTooltip,n=qa(t,BA),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},fT=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},pT=function(e,t){var r=e.props,n=(e.graphicalItems,e.xAxisMap),o=void 0===n?{}:n,i=e.yAxisMap,a=void 0===i?{}:i,c=r.width,l=r.height,u=r.children,s=r.margin||{},f=qa(u,BA),p=qa(u,Ed),d=Object.keys(a).reduce((function(e,t){var r=a[t],n=r.orientation;return r.mirror||r.hide?e:K_(K_({},e),{},J_({},n,e[n]+r.width))}),{left:s.left||0,right:s.right||0}),h=Object.keys(o).reduce((function(e,t){var r=o[t],n=r.orientation;return r.mirror||r.hide?e:K_(K_({},e),{},J_({},n,Gi(e,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=K_(K_({},h),d),v=y.bottom;f&&(y.bottom+=f.props.height||BA.defaultProps.height),p&&t&&(y=function(e,t,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),l=dO({children:o,legendWidth:c});if(l){var u=n||{},s=u.width,f=u.height,p=l.align,d=l.verticalAlign,h=l.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&xa(e[p]))return gO(gO({},e),{},bO({},p,e[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&xa(e[d]))return gO(gO({},e),{},bO({},d,e[d]+(f||0)))}return e}(y,0,r,t));var m=c-y.left-y.right,g=l-y.top-y.bottom;return K_(K_({brushBottom:v},y),{},{width:Math.max(m,0),height:Math.max(g,0)})},dT=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},hT=function(e){var t=e.chartName,r=e.GraphicalChild,n=e.defaultTooltipEventType,o=void 0===n?"axis":n,i=e.validateTooltipEventTypes,a=void 0===i?["axis"]:i,c=e.axisComponents,l=e.legendContent,u=e.formatAxisMap,s=e.defaultProps,f=function(e,t){var r=t.graphicalItems,n=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,l=t.dataEndIndex,u=e.barSize,s=e.layout,f=e.barGap,p=e.barCategoryGap,d=e.maxBarSize,h=fT(s),y=h.numericAxisName,v=h.cateAxisName,m=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Fa(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(r),g=[];return r.forEach((function(r,h){var b=oT(e.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:l}),w=void 0!==r.type.defaultProps?K_(K_({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(y,"Id")],j=w["".concat(v,"Id")],P=c.reduce((function(e,n){var o,i,a=t["".concat(n.axisType,"Map")],c=w["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?Yx(0,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==r||null===(i=r.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):Yx());var l=a[c];return K_(K_({},e),{},J_(J_({},n.axisType,l),"".concat(n.axisType,"Ticks"),MO(l)))}),{}),M=P[v],A=P["".concat(v,"Ticks")],k=n&&n[S]&&n[S].hasStack&&function(e,t){var r,n=(null!==(r=e.type)&&void 0!==r&&r.defaultProps?gO(gO({},e.type.defaultProps),e.props):e.props).stackId;if(Oa(n)){var o=t[n];if(o){var i=o.items.indexOf(e);return i>=0?o.stackedData[i]:null}}return null}(r,n[S].stackGroups),E=Fa(r.type).indexOf("Bar")>=0,C=BO(M,A),_=[],T=m&&function(e){var t=e.barSize,r=e.totalSize,n=e.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),c=0,l=a.length;c<l;c++)for(var u=o[a[c]].stackGroups,s=Object.keys(u),f=0,p=s.length;f<p;f++){var d=u[s[f]],h=d.items,y=d.cateAxisId,v=h.filter((function(e){return Fa(e.type).indexOf("Bar")>=0}));if(v&&v.length){var m=v[0].type.defaultProps,g=void 0!==m?gO(gO({},m),v[0].props):v[0].props,b=g.barSize,w=g[y];i[w]||(i[w]=[]);var x=Qi(b)?t:b;i[w].push({item:v[0],stackList:v.slice(1),barSize:Qi(x)?void 0:Pa(x,r,0)})}}return i}({barSize:u,stackGroups:n,totalSize:dT(P,v)});if(E){var D,I,N=Qi(O)?d:O,R=null!==(D=null!==(I=BO(M,A,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;_=function(e){var t=e.barGap,r=e.barCategoryGap,n=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,c=i.length;if(c<1)return null;var l,u=Pa(t,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,d=i.reduce((function(e,t){return e+t.barSize||0}),0);(d+=(c-1)*u)>=n&&(d-=(c-1)*u,u=0),d>=n&&p>0&&(f=!0,d=c*(p*=.9));var h={offset:((n-d)/2|0)-u,size:0};l=i.reduce((function(e,t){var r={item:t.item,position:{offset:h.offset+h.size+u,size:f?p:t.barSize}},n=[].concat(yO(e),[r]);return h=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:h})})),n}),s)}else{var y=Pa(r,n,0,!0);n-2*y-(c-1)*u<=0&&(u=0);var v=(n-2*y-(c-1)*u)/c;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;l=i.reduce((function(e,t,r){var n=[].concat(yO(e),[{item:t.item,position:{offset:y+(v+u)*r+(v-m)/2,size:m}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:n[n.length-1].position})})),n}),s)}return l}({barGap:f,barCategoryGap:p,bandSize:R!==C?R:C,sizeList:T[j],maxBarSize:N}),R!==C&&(_=_.map((function(e){return K_(K_({},e),{},{position:K_(K_({},e.position),{},{offset:e.position.offset-R/2})})})))}var L,B,z=r&&r.type&&r.type.getComposedData;z&&g.push({props:K_(K_({},z(K_(K_({},P),{},{displayedData:b,props:e,dataKey:x,item:r,bandSize:C,barPosition:_,offset:o,stackedData:k,layout:s,dataStartIndex:a,dataEndIndex:l}))),{},J_(J_(J_({key:r.key||"item-".concat(h)},y,P[y]),v,P[v]),"animationId",i)),childIndex:(L=r,B=e.children,Za(B).indexOf(L)),item:r})})),g},p=function(e,n){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!Ya({props:o}))return null;var s=o.children,p=o.layout,d=o.stackOffset,h=o.data,y=o.reverseStackOrder,v=fT(p),m=v.numericAxisName,g=v.cateAxisName,b=Wa(s,r),w=function(e,t,r,n,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o,i=null!==(o=t.type)&&void 0!==o&&o.defaultProps?gO(gO({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(i.hide)return e;var c=i[r],l=e[c]||{hasStack:!1,stackGroups:{}};if(Oa(a)){var u=l.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(t),l.hasStack=!0,l.stackGroups[a]=u}else l.stackGroups[ja("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[t]};return gO(gO({},e),{},bO({},c,l))}),{});return Object.keys(a).reduce((function(t,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(t,i){var a=c.stackGroups[i];return gO(gO({},t),{},bO({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:_O(e,a.items,o)}))}),{})),gO(gO({},t),{},bO({},i,c))}),{})}(h,b,"".concat(m,"Id"),"".concat(g,"Id"),d,y),x=c.reduce((function(e,t){var r="".concat(t.axisType,"Map");return K_(K_({},e),{},J_({},r,uT(o,K_(K_({},t),{},{graphicalItems:b,stackGroups:t.axisType===m&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),O=pT(K_(K_({},x),{},{props:o,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(e){x[e]=u(o,x[e],O,e.replace("Map",""),t)}));var S,j,P=x["".concat(g,"Map")],M=(S=Ma(P),{tooltipTicks:j=MO(S,!1,!0),orderedTooltipTicks:Vd(j,(function(e){return e.coordinate})),tooltipAxis:S,tooltipAxisBandSize:BO(S,j)}),A=f(o,K_(K_({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:w,offset:O}));return K_(K_({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:w},M),x)},d=function(e){function r(e){var n,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),J_(i=V_(this,r,[e]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),J_(i,"accessibilityManager",new k_),J_(i,"handleLegendBBoxUpdate",(function(e){if(e){var t=i.state,r=t.dataStartIndex,n=t.dataEndIndex,o=t.updateId;i.setState(K_({legendBBox:e},p({props:i.props,dataStartIndex:r,dataEndIndex:n,updateId:o},K_(K_({},i.state),{},{legendBBox:e}))))}})),J_(i,"handleReceiveSyncEvent",(function(e,t,r){if(i.props.syncId===e){if(r===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(t)}})),J_(i,"handleBrushChange",(function(e){var t=e.startIndex,r=e.endIndex;if(t!==i.state.dataStartIndex||r!==i.state.dataEndIndex){var n=i.state.updateId;i.setState((function(){return K_({dataStartIndex:t,dataEndIndex:r},p({props:i.props,dataStartIndex:t,dataEndIndex:r,updateId:n},i.state))})),i.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}})),J_(i,"handleMouseEnter",(function(e){var t=i.getMouseInfo(e);if(t){var r=K_(K_({},t),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseEnter;na(n)&&n(r,e)}})),J_(i,"triggeredAfterMouseMove",(function(e){var t=i.getMouseInfo(e),r=t?K_(K_({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseMove;na(n)&&n(r,e)})),J_(i,"handleItemMouseEnter",(function(e){i.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),J_(i,"handleItemMouseLeave",(function(){i.setState((function(){return{isTooltipActive:!1}}))})),J_(i,"handleMouseMove",(function(e){e.persist(),i.throttleTriggeredAfterMouseMove(e)})),J_(i,"handleMouseLeave",(function(e){i.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};i.setState(t),i.triggerSyncEvent(t);var r=i.props.onMouseLeave;na(r)&&r(t,e)})),J_(i,"handleOuterEvent",(function(e){var t,r=function(e){var t=e&&e.type;return t&&Ha[t]?Ha[t]:null}(e),n=Gi(i.props,"".concat(r));r&&na(n)&&n(null!==(t=/.*touch.*/i.test(r)?i.getMouseInfo(e.changedTouches[0]):i.getMouseInfo(e))&&void 0!==t?t:{},e)})),J_(i,"handleClick",(function(e){var t=i.getMouseInfo(e);if(t){var r=K_(K_({},t),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onClick;na(n)&&n(r,e)}})),J_(i,"handleMouseDown",(function(e){var t=i.props.onMouseDown;na(t)&&t(i.getMouseInfo(e),e)})),J_(i,"handleMouseUp",(function(e){var t=i.props.onMouseUp;na(t)&&t(i.getMouseInfo(e),e)})),J_(i,"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),J_(i,"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.handleMouseDown(e.changedTouches[0])})),J_(i,"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.handleMouseUp(e.changedTouches[0])})),J_(i,"handleDoubleClick",(function(e){var t=i.props.onDoubleClick;na(t)&&t(i.getMouseInfo(e),e)})),J_(i,"handleContextMenu",(function(e){var t=i.props.onContextMenu;na(t)&&t(i.getMouseInfo(e),e)})),J_(i,"triggerSyncEvent",(function(e){void 0!==i.props.syncId&&O_.emit(S_,i.props.syncId,e,i.eventEmitterSymbol)})),J_(i,"applySyncEvent",(function(e){var t=i.props,r=t.layout,n=t.syncMethod,o=i.state.updateId,a=e.dataStartIndex,c=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)i.setState(K_({dataStartIndex:a,dataEndIndex:c},p({props:i.props,dataStartIndex:a,dataEndIndex:c,updateId:o},i.state)));else if(void 0!==e.activeTooltipIndex){var l=e.chartX,u=e.chartY,s=e.activeTooltipIndex,f=i.state,d=f.offset,h=f.tooltipTicks;if(!d)return;if("function"==typeof n)s=n(h,e);else if("value"===n){s=-1;for(var y=0;y<h.length;y++)if(h[y].value===e.activeLabel){s=y;break}}var v=K_(K_({},d),{},{x:d.left,y:d.top}),m=Math.min(l,v.x+v.width),g=Math.min(u,v.y+v.height),b=h[s]&&h[s].value,w=aT(i.state,i.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:m,y:"horizontal"===r?g:h[s].coordinate}:rT;i.setState(K_(K_({},e),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else i.setState(e)})),J_(i,"renderCursor",(function(e){var r,n=i.state,o=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,l=n.offset,u=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=i.getTooltipEventType(),p=null!==(r=e.props.active)&&void 0!==r?r:o,d=i.props.layout,h=e.key||"_recharts-cursor";return J.createElement(N_,{key:h,activeCoordinate:a,activePayload:c,activeTooltipIndex:u,chartName:t,element:e,isActive:p,layout:d,offset:l,tooltipAxisBandSize:s,tooltipEventType:f})})),J_(i,"renderPolarAxis",(function(e,t,r){var n=Gi(e,"type.axisType"),o=Gi(i.state,"".concat(n,"Map")),a=e.type.defaultProps,c=void 0!==a?K_(K_({},a),e.props):e.props,l=o&&o[c["".concat(n,"Id")]];return ue(e,K_(K_({},l),{},{className:xn(n,l.className),key:e.key||"".concat(t,"-").concat(r),ticks:MO(l,!0)}))})),J_(i,"renderPolarGrid",(function(e){var t=e.props,r=t.radialLines,n=t.polarAngles,o=t.polarRadius,a=i.state,c=a.radiusAxisMap,l=a.angleAxisMap,u=Ma(c),s=Ma(l),f=s.cx,p=s.cy,d=s.innerRadius,h=s.outerRadius;return ue(e,{polarAngles:Array.isArray(n)?n:MO(s,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(o)?o:MO(u,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:h,key:e.key||"polar-grid",radialLines:r})})),J_(i,"renderLegend",(function(){var e=i.state.formattedGraphicalItems,t=i.props,r=t.children,n=t.width,o=t.height,a=i.props.margin||{},c=n-(a.left||0)-(a.right||0),u=dO({children:r,formattedGraphicalItems:e,legendWidth:c,legendContent:l});if(!u)return null;var s=u.item,f=H_(u,R_);return ue(s,K_(K_({},f),{},{chartWidth:n,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))})),J_(i,"renderTooltip",(function(){var e,t=i.props,r=t.children,n=t.accessibilityLayer,o=qa(r,$h);if(!o)return null;var a=i.state,c=a.isTooltipActive,l=a.activeCoordinate,u=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(e=o.props.active)&&void 0!==e?e:c;return ue(o,{viewBox:K_(K_({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?u:[],coordinate:l,accessibilityLayer:n})})),J_(i,"renderBrush",(function(e){var t=i.props,r=t.margin,n=t.data,o=i.state,a=o.offset,c=o.dataStartIndex,l=o.dataEndIndex,u=o.updateId;return ue(e,{key:e.key||"_recharts-brush",onChange:kO(i.handleBrushChange,e.props.onChange),data:n,x:xa(e.props.x)?e.props.x:a.left,y:xa(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:xa(e.props.width)?e.props.width:a.width,startIndex:c,endIndex:l,updateId:"brush-".concat(u)})})),J_(i,"renderReferenceElement",(function(e,t,r){if(!e)return null;var n=i.clipPathId,o=i.state,a=o.xAxisMap,c=o.yAxisMap,l=o.offset,u=e.type.defaultProps||{},s=e.props,f=s.xAxisId,p=void 0===f?u.xAxisId:f,d=s.yAxisId,h=void 0===d?u.yAxisId:d;return ue(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:a[p],yAxis:c[h],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})})),J_(i,"renderActivePoints",(function(e){var t=e.item,n=e.activePoint,o=e.basePoint,i=e.childIndex,a=e.isRange,c=[],l=t.props.key,u=void 0!==t.item.type.defaultProps?K_(K_({},t.item.type.defaultProps),t.item.props):t.item.props,s=u.activeDot,f=K_(K_({index:i,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:OO(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},Ka(s,!1)),Na(s));return c.push(r.renderActiveDot(s,f,"".concat(l,"-activePoint-").concat(i))),o?c.push(r.renderActiveDot(s,K_(K_({},f),{},{cx:o.x,cy:o.y}),"".concat(l,"-basePoint-").concat(i))):a&&c.push(null),c})),J_(i,"renderGraphicChild",(function(e,t,r){var n=i.filterFormatItem(e,t,r);if(!n)return null;var o=i.getTooltipEventType(),a=i.state,c=a.isTooltipActive,l=a.tooltipAxis,u=a.activeTooltipIndex,s=a.activeLabel,f=qa(i.props.children,$h),p=n.props,d=p.points,h=p.isRange,y=p.baseLine,v=void 0!==n.item.type.defaultProps?K_(K_({},n.item.type.defaultProps),n.item.props):n.item.props,m=v.activeDot,g=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!g&&c&&f&&(m||b||w)),O={};"axis"!==o&&f&&"click"===f.props.trigger?O={onClick:kO(i.handleItemMouseEnter,e.props.onClick)}:"axis"!==o&&(O={onMouseLeave:kO(i.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:kO(i.handleItemMouseEnter,e.props.onMouseEnter)});var S=ue(e,K_(K_({},n.props),O));if(x){if(!(u>=0)){var j,P=(null!==(j=i.getItemByXY(i.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:S}).graphicalItem,M=P.item,A=void 0===M?e:M,k=P.childIndex,E=K_(K_(K_({},n.props),O),{},{activeIndex:k});return[ue(A,E),null,null]}var C,_;if(l.dataKey&&!l.allowDuplicatedCategory){var T="function"==typeof l.dataKey?function(e){return"function"==typeof l.dataKey?l.dataKey(e.payload):null}:"payload.".concat(l.dataKey.toString());C=ka(d,T,s),_=h&&y&&ka(y,T,s)}else C=null==d?void 0:d[u],_=h&&y&&y[u];if(w||b){var D=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[ue(e,K_(K_(K_({},n.props),O),{},{activeIndex:D})),null,null]}if(!Qi(C))return[S].concat(q_(i.renderActivePoints({item:n,activePoint:C,basePoint:_,childIndex:u,isRange:h})))}return h?[S,null,null]:[S,null]})),J_(i,"renderCustomized",(function(e,t,r){return ue(e,K_(K_({key:"recharts-customized-".concat(r)},i.props),i.state))})),J_(i,"renderMap",{CartesianGrid:{handler:nT,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:nT},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:nT},YAxis:{handler:nT},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(n=e.id)&&void 0!==n?n:ja("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=Zh(i.triggeredAfterMouseMove,null!==(o=e.throttleDelay)&&void 0!==o?o:1e3/60),i.state={},i}return function(e,t){if("function"!=typeof t&&null!==t)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&&W_(e,t)}(r,de),F_(r,[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,r=e.data,n=e.height,o=e.layout,i=qa(t,$h);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,l=aT(this.state,r,a,c),u=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:u,y:s}:{y:u,x:s},p=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));p&&(f=K_(K_({},f),p.props.points[a].tooltipPosition),l=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:l,activeCoordinate:f};this.setState(d),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;var r,n;(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin)&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}});return null}},{key:"componentDidUpdate",value:function(e){Ja([qa(e.children,$h)],[qa(this.props.children,$h)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=qa(this.props.children,$h);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return a.indexOf(t)>=0?t:o}return o}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,r=this.container,n=r.getBoundingClientRect(),o={top:(t=n).top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(e.pageX-o.left),chartY:Math.round(e.pageY-o.top)},a=n.width/r.offsetWidth||1,c=this.inRange(i.chartX,i.chartY,a);if(!c)return null;var l=this.state,u=l.xAxisMap,s=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&s){var f=Ma(u).scale,p=Ma(s).scale,d=f&&f.invert?f.invert(i.chartX):null,h=p&&p.invert?p.invert(i.chartY):null;return K_(K_({},i),{},{xValue:d,yValue:h})}var y=cT(this.state,this.props.data,this.props.layout,c);return y?K_(K_({},i),y):null}},{key:"inRange",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=e/r,i=t/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var c=this.state,l=c.angleAxisMap,u=c.radiusAxisMap;if(l&&u){var s=Ma(l);return GO({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),r=qa(e,$h),n={};return r&&"axis"===t&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),K_(K_({},Na(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){O_.on(S_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){O_.removeListener(S_,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===e||a.props.key===e.key||t===Fa(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,r=t.left,n=t.top,o=t.height,i=t.width;return J.createElement("defs",null,J.createElement("clipPath",{id:e},J.createElement("rect",{x:r,y:n,height:o,width:i})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=$_(t,2),n=r[0],o=r[1];return K_(K_({},e),{},J_({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=$_(t,2),n=r[0],o=r[1];return K_(K_({},e),{},J_({},n,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,r=t.formattedGraphicalItems,n=t.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],c=a.props,l=a.item,u=void 0!==l.type.defaultProps?K_(K_({},l.type.defaultProps),l.props):l.props,s=Fa(l.type);if("Bar"===s){var f=(c.data||[]).find((function(t){return fM(e,t)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(t){return GO(e,t)}));if(p)return{graphicalItem:a,payload:p}}else if(aA(a,n)||cA(a,n)||lA(a,n)){var d=pA({graphicalItem:a,activeTooltipItem:n,itemData:u.data}),h=void 0===u.activeIndex?d:u.activeIndex;return{graphicalItem:K_(K_({},a),{},{childIndex:h}),payload:lA(a,n)?u.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var e=this;if(!Ya(this))return null;var t,r,n=this.props,o=n.children,i=n.className,a=n.width,c=n.height,l=n.style,u=n.compact,s=n.title,f=n.desc,p=H_(n,L_),d=Ka(p,!1);if(u)return J.createElement(tE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},J.createElement(oc,z_({},d,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),ec(o,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,d.role=null!==(r=this.props.role)&&void 0!==r?r:"application",d.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){e.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return J.createElement(tE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},J.createElement("div",z_({className:xn("recharts-wrapper",i),style:K_({position:"relative",cursor:"default",width:a,height:c},l)},h,{ref:function(t){e.container=t}}),J.createElement(oc,z_({},d,{width:a,height:c,title:s,desc:f,style:tT}),this.renderClipPath(),ec(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();J_(d,"displayName",t),J_(d,"defaultProps",K_({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),J_(d,"getDerivedStateFromProps",(function(e,t){var r=e.dataKey,n=e.data,o=e.children,i=e.width,a=e.height,c=e.layout,l=e.stackOffset,u=e.margin,s=t.dataStartIndex,f=t.dataEndIndex;if(void 0===t.updateId){var d=sT(e);return K_(K_(K_({},d),{},{updateId:0},p(K_(K_({props:e},d),{},{updateId:0}),t)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:o})}if(r!==t.prevDataKey||n!==t.prevData||i!==t.prevWidth||a!==t.prevHeight||c!==t.prevLayout||l!==t.prevStackOffset||!Ea(u,t.prevMargin)){var h=sT(e),y={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},v=K_(K_({},cT(t,n,c)),{},{updateId:t.updateId+1}),m=K_(K_(K_({},h),y),v);return K_(K_(K_({},m),p(K_({props:e},m),t)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:o})}if(!Ja(o,t.prevChildren)){var g,b,w,x,O=qa(o,BA),S=O&&null!==(g=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==g?g:s,j=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,P=S!==s||j!==f,M=!Qi(n)&&!P?t.updateId:t.updateId+1;return K_(K_({updateId:M},p(K_(K_({props:e},t),{},{updateId:M,dataStartIndex:S,dataEndIndex:j}),t)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:j})}return null})),J_(d,"renderActiveDot",(function(e,t,r){var n;return n=Q(e)?ue(e,t):na(e)?e(t):J.createElement(yM,t),J.createElement(jc,{className:"recharts-active-dot",key:r},n)}));var h=re((function(e,t){return J.createElement(d,z_({},e,{ref:t}))}));return h.displayName=d.displayName,h},yT=hT({chartName:"LineChart",GraphicalChild:_C,axisComponents:[{axisType:"xAxis",AxisComp:o_},{axisType:"yAxis",AxisComp:y_}],formatAxisMap:Tk}),vT=hT({chartName:"AreaChart",GraphicalChild:qC,axisComponents:[{axisType:"xAxis",AxisComp:o_},{axisType:"yAxis",AxisComp:y_}],formatAxisMap:Tk});const mT=({formatter:n,labelFormatter:o,payload:i,cx:a,cy:c})=>{const l=100;return Number.isFinite(i.value)?e("svg",{x:a-50,y:c-60,width:l,height:68,viewBox:"0 0 100 68",xmlns:"http://www.w3.org/2000/svg",children:[o&&e(r,{children:[t("rect",{fill:"white",width:"98",height:"45",stroke:Er.coolElegance(),strokeWidth:"1",rx:"7",ry:"7",className:"shadow"}),t("text",{y:"14",x:"50%",fontSize:10,dominantBaseline:"middle",textAnchor:"middle",children:o(0,[{payload:i}])}),t("text",{y:"30",x:"50%",fontSize:11,dominantBaseline:"middle",textAnchor:"middle",fontWeight:"bold",children:n?n(i.value||0):i.value}),t("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"30",opacity:"0.7",children:t("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:Er.coolElegance(),transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})}),t("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"28",children:t("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:"white",transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})})]}),t("rect",{x:43,y:"52",width:14,height:14,rx:7,fill:"white",stroke:Er.coolElegance(),strokeWidth:"2"})]}):t(r,{})},gT=({data:r,dataKey:n,width:o="100%",height:i="100%",areaType:a="linear",isAnimated:c=!1,formatter:l,labelFormatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=Sr({data:r,dataKey:n}),d=bn(),h=bn(),y=s?Ar({arr:r||[],n:s}):r;let v,m;y?.length?(m=p?Er.mint():Er.coolElegance(),v=y?.map((e=>{const t=parseFloat(e[n]);return{...e,[n]:Number.isFinite(t)?t:null}}))):(m=Er.coolElegance(),v=[{[n]:1},{[n]:1}]);const g={cursor:y?.length?"crosshair":"default",...f};return t(Jh,{width:o,minHeight:i,id:d,children:e(vT,{data:v,margin:{top:20,right:0,left:0,bottom:20},style:g,children:[t("defs",{children:e("linearGradient",{id:h,x1:"0",y1:"0",x2:"0",y2:"1",children:[t("stop",{offset:"5%",stopColor:m,stopOpacity:.8}),t("stop",{offset:"95%",stopColor:m,stopOpacity:0})]})}),t(y_,{domain:y?.length?["dataMin","dataMax"]:[0,2],hide:!0}),t(qC,{type:a,dataKey:n,stroke:m,fill:`url(#${h})`,isAnimationActive:c,activeDot:e=>mT({labelFormatter:u,formatter:l,...e}),dot:!1}),y?.length&&t($h,{cursor:!1,content:()=>null})]})})},bT=({isCloseable:e,onClick:r})=>{const n=u({ssr:!1});return t(s,{children:t(f,{label:e?"Click to dismiss":null,hasArrow:!0,fontFamily:"mono",fontSize:"12px",children:t(p,{onClick:r,cursor:e?"pointer":"default",bgColor:{base:"rgba(143, 163, 255, 0.9)",sm:"rgba(117, 143, 255, 0.9)",md:"rgba(77, 109, 255, 0.9)",lg:"rgba(24, 74, 201, 0.9)",xl:"rgba(19, 60, 164, 0.9)","2xl":"rgba(15, 47, 128, 0.9)"},color:{base:Er.black(),md:"white"},position:"fixed",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",boxShadow:"dark-lg",fontFamily:"mono",children:n})})})},wT=({children:e,...r})=>t(d,{border:"solid 1px",borderColor:Er.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:e}),xT=({isSelected:e,children:r,...n})=>t(h,{variant:"none",paddingX:"1",fontSize:"sm",color:e?"brand.500":Er.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:e?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),OT=({children:e,...r})=>t(y,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:Er.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:e}),ST=r=>{const{carouselContents:n,isNavVertical:o,...i}=r,[a,c]=ie(0);return n.length>=1&&t(OT,{children:e(v,{gap:10,direction:o?"column":{base:"column",md:"row"},...i,children:[n[a],e(v,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[t(m,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:t(je,{}),onClick:()=>{a>0&&a<=n.length-1&&c((e=>e-1))}}),t(m,{variant:"ghost",isDisabled:a===n.length-1,"aria-label":"Next content",icon:t(Pe,{}),onClick:()=>{a<n.length-1&&c((e=>e+1))}})]})]})})},jT=r=>{const{size:n,isDisabled:o,isReadOnly:i,isRequired:a,isIndeterminate:c,name:l,register:u,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:d,onClick:h,...y}=r;let m;c||(m=t(ke,{}));const O=u?u(l):void 0;return e(g,{as:v,flexDir:"column",isInvalid:Boolean(s),isDisabled:o,isReadOnly:i,isRequired:a,children:[e(v,{onClick:h,w:"full",justifyContent:d?"space-between":"auto",children:["left"===p&&t(b,{fontSize:n,m:"0",mr:"3",children:f}),t(w,{icon:m,isDisabled:o,isReadOnly:i,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...O,...y}),"right"===p&&t(b,{fontSize:n,m:"0",ml:"3",children:f})]}),t(v,{w:"full",children:s&&t(x,{size:n,children:s})})]})},PT=({children:e,onSubmit:r,...n})=>t(v,{as:"form",onSubmit:e=>{e.preventDefault(),r&&r(e)},noValidate:!0,gap:"6",flexDir:"column",...n,children:e});var MT=function(){return MT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},MT.apply(this,arguments)};function AT(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var kT=function(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},ET={k:1e3,m:1e6,b:1e9},CT=function(e){var t=e.value,r=e.groupSeparator,n=void 0===r?",":r,o=e.decimalSeparator,i=void 0===o?".":o,a=e.allowDecimals,c=void 0===a||a,l=e.decimalsLimit,u=void 0===l?2:l,s=e.allowNegativeValue,f=void 0===s||s,p=e.disableAbbreviations,d=void 0!==p&&p,h=e.prefix,y=void 0===h?"":h,v=e.transformRawValue,m=(void 0===v?function(e){return e}:v)(t);if("-"===m)return m;var g=d?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(kT(y),")")).test(m),w=RegExp("(\\d+)-?".concat(kT(y))).exec(t)||[],x=w[0],O=w[1],S=function(e,t){void 0===t&&(t=",");var r=new RegExp(kT(t),"g");return e.replace(r,"")}(y?x?m.replace(x,"").concat(O):m.replace(y,""):m,n),j=function(e,t){var r=kT(t.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return e.replace(n,"")}(S,AT([n,i],g,!0)),P=j;if(!d){if(g.some((function(e){return e===j.toLowerCase().replace(i,"")})))return"";var M=function(e,t){void 0===t&&(t=".");var r=new RegExp("(\\d+(".concat(kT(t),"\\d*)?)([kmb])$"),"i"),n=e.match(r);if(n){var o=n[1],i=n[3],a=ET[i.toLowerCase()];return Number(o.replace(t,"."))*a}}(j,i);M&&(P=String(M))}var A=b&&f?"-":"";if(i&&P.includes(i)){var k=j.split(i),E=k[0],C=k[1],_=u&&C?C.slice(0,u):C,T=c?"".concat(i).concat(_):"";return"".concat(A).concat(E).concat(T)}return"".concat(A).concat(P)},_T=function(e,t){var r=t.groupSeparator,n=void 0===r?",":r,o=t.decimalSeparator,i=void 0===o?".":o,a=new RegExp("\\d([^".concat(kT(n)).concat(kT(i),"0-9]+)")),c=e.match(a);return c?c[1]:void 0},TT=function(e){var t=e.value,r=e.decimalSeparator,n=e.intlConfig,o=e.decimalScale,i=e.prefix,a=void 0===i?"":i,c=e.suffix,l=void 0===c?"":c;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=new RegExp("^\\d?-".concat(a?"".concat(kT(a),"?"):"","\\d")).test(t),s="."!==r?DT(t,r,u):t;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f={minimumFractionDigits:o||0,maximumFractionDigits:20},p=(n?new Intl.NumberFormat(n.locale,n.currency?MT(MT({},f),{style:"currency",currency:n.currency}):f):new Intl.NumberFormat(void 0,f)).formatToParts(Number(s)),d=IT(p,e),h=_T(d,MT({},e)),y=t.slice(-1)===r?r:"",v=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===o&&v&&r&&(d=d.includes(r)?d.replace(RegExp("(\\d+)(".concat(kT(r),")(\\d+)"),"g"),"$1$2".concat(v)):h&&!l?d.replace(h,"".concat(r).concat(v).concat(h)):"".concat(d).concat(r).concat(v)),l&&y?"".concat(d).concat(y).concat(l):h&&y?d.replace(h,"".concat(y).concat(h)):h&&l?d.replace(h,"".concat(y).concat(l)):[d,y,l].join("")},DT=function(e,t,r){var n=e;return t&&"."!==t&&(n=n.replace(RegExp(kT(t),"g"),"."),r&&"-"===t&&(n="-".concat(n.slice(1)))),n},IT=function(e,t){var r=t.prefix,n=t.groupSeparator,o=t.decimalSeparator,i=t.decimalScale,a=t.disableGroupSeparators,c=void 0!==a&&a;return e.reduce((function(e,t,a){var l=t.type,u=t.value;return 0===a&&r?"minusSign"===l?[u,r]:"currency"===l?AT(AT([],e,!0),[r],!1):[r,u]:"currency"===l?r?e:AT(AT([],e,!0),[u],!1):"group"===l?c?e:AT(AT([],e,!0),[void 0!==n?n:u],!1):"decimal"===l?void 0!==i&&0===i?e:AT(AT([],e,!0),[void 0!==o?o:u],!1):AT(AT([],e,!0),"fraction"===l?[void 0!==i?u.slice(0,i):u]:[u],!1)}),[""]).join("")},NT={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},RT=function(e){return RegExp(/\d/,"gi").test(e)},LT=re((function(e,t){var r=e.allowDecimals,n=void 0===r||r,o=e.allowNegativeValue,i=void 0===o||o,a=e.id,c=e.name,l=e.className,u=e.customInput,s=e.decimalsLimit,f=e.defaultValue,p=e.disabled,d=void 0!==p&&p,h=e.maxLength,y=e.value,v=e.onValueChange,m=e.fixedDecimalLength,g=e.placeholder,b=e.decimalScale,w=e.prefix,x=e.suffix,O=e.intlConfig,S=e.step,j=e.min,P=e.max,M=e.disableGroupSeparators,A=void 0!==M&&M,k=e.disableAbbreviations,E=void 0!==k&&k,C=e.decimalSeparator,_=e.groupSeparator,T=e.onChange,D=e.onFocus,I=e.onBlur,N=e.onKeyDown,R=e.onKeyUp,L=e.transformRawValue,B=e.formatValueOnBlur,z=void 0===B||B,$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(C&&RT(C))throw new Error("decimalSeparator cannot be a number");if(_&&RT(_))throw new Error("groupSeparator cannot be a number");var H=le((function(){return function(e){var t=e||{},r=t.locale,n=t.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(e,t,r){return"currency"===t.type?MT(MT({},e),0===r?{currencySymbol:t.value,prefix:t.value}:{currencySymbol:t.value,suffix:t.value}):"group"===t.type?MT(MT({},e),{groupSeparator:t.value}):"decimal"===t.type?MT(MT({},e),{decimalSeparator:t.value}):e}),NT)}(O)}),[O]),F=C||H.decimalSeparator||"",V=_||H.groupSeparator||"";if(F&&V&&F===V&&!1===A)throw new Error("decimalSeparator cannot be the same as groupSeparator");var U={decimalSeparator:F,groupSeparator:V,disableGroupSeparators:A,intlConfig:O,prefix:w||H.prefix,suffix:x},Z={decimalSeparator:F,groupSeparator:V,allowDecimals:n,decimalsLimit:s||m||2,allowNegativeValue:i,disableAbbreviations:E,prefix:w||H.prefix,transformRawValue:L},W=ie((function(){return null!=f?TT(MT(MT({},U),{decimalScale:b,value:String(f)})):null!=y?TT(MT(MT({},U),{decimalScale:b,value:String(y)})):""})),q=W[0],Y=W[1],X=ie(!1),G=X[0],K=X[1],Q=ie(0),ee=Q[0],te=Q[1],re=ie(0),ae=re[0],ue=re[1],se=ie(null),fe=se[0],pe=se[1],de=ne(null);oe(t,(function(){return de.current}));var he=function(e,t){K(!0);var r=function(e){var t=e.selectionStart,r=e.value,n=e.lastKeyStroke,o=e.stateValue,i=e.groupSeparator,a=t,c=r;if(o&&a){var l=r.split("");return"Backspace"===n&&o[a]===i&&(l.splice(a-1,1),a-=1),"Delete"===n&&o[a]===i&&(l.splice(a,1),a+=1),{modifiedValue:c=l.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:t}}({selectionStart:t,value:e,lastKeyStroke:fe,stateValue:q,groupSeparator:V}),n=r.modifiedValue,o=r.cursorPosition,i=CT(MT({value:n},Z));if(!(h&&i.replace(/-/g,"").length>h)){if(""===i||"-"===i||i===F)return v&&v(void 0,c,{float:null,formatted:"",value:""}),Y(i),void te(1);var a=F?i.replace(F,"."):i,l=parseFloat(a),u=TT(MT({value:i},U));if(null!=o){var s=o+(u.length-e.length);s=s<=0?w?w.length:0:s,te(s),ue(ae+1)}if(Y(u),v)v(i,c,{float:l,formatted:u,value:i})}};ce((function(){null==y&&null==f&&Y("")}),[f,y]),ce((function(){G&&"-"!==q&&de.current&&document.activeElement===de.current&&de.current.setSelectionRange(ee,ee)}),[q,ee,de,G,ae]);var ye=MT({type:"text",inputMode:"decimal",id:a,name:c,className:l,onChange:function(e){var t=e.target,r=t.value,n=t.selectionStart;he(r,n),T&&T(e)},onBlur:function(e){var t=e.target.value,r=CT(MT({value:t},Z));if("-"===r||r===F||!r)return Y(""),void(I&&I(e));var n=function(e,t,r){if(void 0!==r&&e.length>1){if(0===r)return e.replace(t,"");if(e.includes(t)){var n=e.split(t),o=n[0];if((c=n[1]).length===r)return e;if(c.length>r)return"".concat(o).concat(t).concat(c.slice(0,r))}var i=e.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=e.match(i);if(a){o=a[1];var c=a[2];return"".concat(o).concat(t).concat(c)}}return e}(r,F,m),o=function(e,t,r){if(void 0===t&&(t="."),void 0===r||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var n=e.split(t),o=n[0],i=n[1];if(0===r)return o;var a=i||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(o).concat(t).concat(a)}(n,F,void 0!==b?b:m),i=parseFloat(o.replace(F,".")),a=TT(MT(MT({},U),{value:o}));v&&z&&v(o,c,{float:i,formatted:a,value:o}),Y(a),I&&I(e)},onFocus:function(e){return D&&D(e),q?q.length:0},onKeyDown:function(e){var t=e.key;if(pe(t),S&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),te(q.length);var r=parseFloat(null!=y?String(y).replace(F,"."):CT(MT({value:q},Z)))||0,n="ArrowUp"===t?r+S:r-S;if(void 0!==j&&n<Number(j))return;if(void 0!==P&&n>Number(P))return;var o=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;he(String(o?n.toFixed(o):n).replace(".",F))}N&&N(e)},onKeyUp:function(e){var t=e.key,r=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==q){var n=_T(q,{groupSeparator:V,decimalSeparator:F});if(n&&r&&r>q.length-n.length&&de.current){var o=q.length-n.length;de.current.setSelectionRange(o,o)}}R&&R(e)},placeholder:g,disabled:d,value:null==y||"-"===q||F&&q===F?q:TT(MT(MT({},U),{decimalScale:G?void 0:b,value:String(y)})),ref:de},$);if(u){var ve=u;return J.createElement(ve,MT({},ye))}return J.createElement("input",MT({},ye))}));LT.displayName="CurrencyInput";const BT=O(((r,n)=>{const{size:o,isDisabled:i,isReadOnly:a,isRequired:c,spellCheck:l=!1,name:u,label:s,register:f,errorMessage:p,helperText:d,leftAddon:h,leftElement:y,rightAddon:v,rightElement:m,type:w="text",containerCss:O,...C}=r,_=jr(o),T=f?f(u):void 0,D="currency"===w?{as:LT,placeholder:"$0.00",prefix:"$",allowNegative:!1,disableAbbreviations:!0}:{};return e(g,{isInvalid:Boolean(p),isDisabled:i,isReadOnly:a,isRequired:c,sx:O,children:[s&&t(b,{className:"cf-form-label",size:o,children:s}),e(S,{size:o,children:[h&&t(j,{children:h}),y&&t(P,{w:"auto",ml:"1em",children:y}),t(M,{size:o,spellCheck:l,paddingLeft:y&&"2.5em",paddingRight:m&&"2.5em",type:"currency"===w?"text":w,...T,...D,...C,ref:n||T?.ref}),m&&t(A,{w:"auto",mr:"1em",children:m}),v&&t(k,{children:v})]}),p&&t(x,{className:"cf-form-error",size:o,children:p}),d&&t(E,{className:"cf-form-helper-text",fontSize:_,children:d})]})}));var zT=e=>null==e;var $T=e=>!zT(e)&&!Array.isArray(e)&&(e=>"object"==typeof e)(e)&&!(e=>e instanceof Date)(e),HT=e=>{const t=e.constructor&&e.constructor.prototype;return $T(t)&&t.hasOwnProperty("isPrototypeOf")},FT="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function VT(e){let t;const r=Array.isArray(e),n="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(FT&&(e instanceof Blob||n)||!r&&!$T(e))return e;if(t=r?[]:{},r||HT(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=VT(e[r]));else t=e}return t}var UT=e=>Array.isArray(e)?e.filter(Boolean):[],ZT=e=>void 0===e,WT=(e,t,r)=>{if(!t||!$T(e))return r;const n=UT(t.split(/[,[\].]+?/)).reduce(((e,t)=>zT(e)?e:e[t]),e);return ZT(n)||n===e?ZT(e[t])?r:e[t]:n},qT=e=>"boolean"==typeof e,YT=e=>/^\w*$/.test(e),XT=e=>UT(e.replace(/["|']|\]/g,"").split(/\.|\[/)),GT=(e,t,r)=>{let n=-1;const o=YT(t)?[t]:XT(t),i=o.length,a=i-1;for(;++n<i;){const t=o[n];let i=r;if(n!==a){const r=e[t];i=$T(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=i,e=e[t]}return e};const KT="onBlur",JT="onChange",QT="onSubmit",eD="onTouched",tD="all",rD="max",nD="min",oD="maxLength",iD="minLength",aD="pattern",cD="required",lD="validate",uD=J.createContext(null);var sD=e=>$T(e)&&!Object.keys(e).length,fD=e=>Array.isArray(e)?e:[e];var pD=e=>"string"==typeof e,dD=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},hD=()=>{const e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)}))},yD=(e,t,r={})=>r.shouldFocus||ZT(r.shouldFocus)?r.focusName||`${e}.${ZT(r.focusIndex)?t:r.focusIndex}.`:"",vD=e=>({isOnSubmit:!e||e===QT,isOnBlur:e===KT,isOnChange:e===JT,isOnAll:e===tD,isOnTouch:e===eD});const mD=(e,t,r,n)=>{for(const r of Object.keys(e)){const o=WT(e,r);if(o){const{_f:e,...i}=o;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],r)&&!n)return!0;if(e.ref&&t(e.ref,e.name)&&!n)return!0;if(mD(i,t))break}else if($T(i)&&mD(i,t))break}}};var gD=(e,t,r)=>{const n=fD(WT(e,r));return GT(n,"root",t[r]),GT(e,r,n),e},bD=e=>pD(e),wD=e=>e instanceof RegExp;function xD(e,t,r="validate"){if(bD(e)||Array.isArray(e)&&e.every(bD)||qT(e)&&!e)return{type:r,message:bD(e)?e:"",ref:t}}var OD=e=>$T(e)&&!wD(e)?e:{value:e,message:""},SD=async(e,t,r,n,o)=>{const{ref:i,refs:a,required:c,maxLength:l,minLength:u,min:s,max:f,pattern:p,validate:d,name:h,valueAsNumber:y,mount:v,disabled:m}=e._f,g=WT(t,h);if(!v||m)return{};const b=a?a[0]:i,w=e=>{n&&b.reportValidity&&(b.setCustomValidity(qT(e)?"":e||""),b.reportValidity())},x={};i.type,(e=>{e.type})(i);const O=(y||(e=>"file"===e.type)(i))&&ZT(i.value)&&ZT(g)||(e=>{if(!FT)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)})(i)&&""===i.value||""===g||Array.isArray(g)&&!g.length,S=dD.bind(null,h,r,x),j=(e,t,r,n=oD,o=iD)=>{const a=e?t:r;x[h]={type:e?n:o,message:a,ref:i,...S(e?n:o,a)}};if(!Array.isArray(g)||!g.length){const{value:e,message:t}=bD(c)?{value:!!c,message:c}:OD(c);if(e&&(x[h]={type:cD,message:t,ref:b,...S(cD,t)},!r))return w(t),x}if(!(O||zT(s)&&zT(f))){let e,t;const n=OD(f),o=OD(s);if(zT(g)||isNaN(g)){const r=i.valueAsDate||new Date(g),a=e=>new Date((new Date).toDateString()+" "+e),c="time"==i.type,l="week"==i.type;pD(n.value)&&g&&(e=c?a(g)>a(n.value):l?g>n.value:r>new Date(n.value)),pD(o.value)&&g&&(t=c?a(g)<a(o.value):l?g<o.value:r<new Date(o.value))}else{const r=i.valueAsNumber||(g?+g:g);zT(n.value)||(e=r>n.value),zT(o.value)||(t=r<o.value)}if((e||t)&&(j(!!e,n.message,o.message,rD,nD),!r))return w(x[h].message),x}if((l||u)&&!O&&(pD(g)||Array.isArray(g))){const e=OD(l),t=OD(u),n=!zT(e.value)&&g.length>+e.value,o=!zT(t.value)&&g.length<+t.value;if((n||o)&&(j(n,e.message,t.message),!r))return w(x[h].message),x}if(p&&!O&&pD(g)){const{value:e,message:t}=OD(p);if(wD(e)&&!g.match(e)&&(x[h]={type:aD,message:t,ref:i,...S(aD,t)},!r))return w(t),x}if(d)if("function"==typeof d){const e=xD(await d(g,t),b);if(e&&(x[h]={...e,...S(lD,e.message)},!r))return w(e.message),x}else if($T(d)){let e={};for(const n in d){if(!sD(e)&&!r)break;const o=xD(await d[n](g,t),b,n);o&&(e={...o,...S(n,o.message)},w(o.message),r&&(x[h]=e))}if(!sD(e)&&(x[h]={ref:b,...e},!r))return x}return w(!0),x},jD=(e,t)=>[...e,...fD(t)],PD=e=>Array.isArray(e)?e.map((()=>{})):void 0;function MD(e,t,r){return[...e.slice(0,t),...fD(r),...e.slice(t)]}var AD=(e,t,r)=>Array.isArray(e)?(ZT(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],kD=(e,t)=>[...fD(t),...fD(e)];var ED=(e,t)=>ZT(t)?[]:function(e,t){let r=0;const n=[...e];for(const e of t)n.splice(e-r,1),r++;return UT(n).length?n:[]}(e,fD(t).sort(((e,t)=>e-t))),CD=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function _D(e,t){const r=Array.isArray(t)?t:YT(t)?[t]:XT(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=ZT(e)?n++:e[t[n++]];return e}(e,r),o=r.length-1,i=r[o];return n&&delete n[i],0!==o&&($T(n)&&sD(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!ZT(e[t]))return!1;return!0}(n))&&_D(e,r.slice(0,-1)),e}var TD=(e,t,r)=>(e[t]=r,e);function DD(e){const t=J.useContext(uD),{control:r=t.control,name:n,keyName:o="id",shouldUnregister:i,rules:a}=e,[c,l]=J.useState(r._getFieldArray(n)),u=J.useRef(r._getFieldArray(n).map(hD)),s=J.useRef(c),f=J.useRef(n),p=J.useRef(!1);f.current=n,s.current=c,r._names.array.add(n),a&&r.register(n,a),function(e){const t=J.useRef(e);t.current=e,J.useEffect((()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}}),[e.disabled])}({next:({values:e,name:t})=>{if(t===f.current||!t){const t=WT(e,f.current);Array.isArray(t)&&(l(t),u.current=t.map(hD))}},subject:r._subjects.array});const d=J.useCallback((e=>{p.current=!0,r._updateFieldArray(n,e)}),[r,n]);return J.useEffect((()=>{if(r._state.action=!1,((e,t,r)=>t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))))(n,r._names)&&r._subjects.state.next({...r._formState}),p.current&&(!vD(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((e=>{const t=WT(e.errors,n),o=WT(r._formState.errors,n);(o?!t&&o.type||t&&(o.type!==t.type||o.message!==t.message):t&&t.type)&&(t?GT(r._formState.errors,n,t):_D(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const e=WT(r._fields,n);!e||!e._f||vD(r._options.reValidateMode).isOnSubmit&&vD(r._options.mode).isOnSubmit||SD(e,r._formValues,r._options.criteriaMode===tD,r._options.shouldUseNativeValidation).then((e=>!sD(e)&&r._subjects.state.next({errors:gD(r._formState.errors,e,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&mD(r._fields,((e,t)=>{if(r._names.focus&&t.startsWith(r._names.focus)&&e.focus)return e.focus(),1})),r._names.focus="",r._updateValid(),p.current=!1}),[c,n,r]),J.useEffect((()=>(!WT(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||i)&&r.unregister(n)})),[n,r,o,i]),{swap:J.useCallback(((e,t)=>{const o=r._getFieldArray(n);CD(o,e,t),CD(u.current,e,t),d(o),l(o),r._updateFieldArray(n,o,CD,{argA:e,argB:t},!1)}),[d,n,r]),move:J.useCallback(((e,t)=>{const o=r._getFieldArray(n);AD(o,e,t),AD(u.current,e,t),d(o),l(o),r._updateFieldArray(n,o,AD,{argA:e,argB:t},!1)}),[d,n,r]),prepend:J.useCallback(((e,t)=>{const o=fD(VT(e)),i=kD(r._getFieldArray(n),o);r._names.focus=yD(n,0,t),u.current=kD(u.current,o.map(hD)),d(i),l(i),r._updateFieldArray(n,i,kD,{argA:PD(e)})}),[d,n,r]),append:J.useCallback(((e,t)=>{const o=fD(VT(e)),i=jD(r._getFieldArray(n),o);r._names.focus=yD(n,i.length-1,t),u.current=jD(u.current,o.map(hD)),d(i),l(i),r._updateFieldArray(n,i,jD,{argA:PD(e)})}),[d,n,r]),remove:J.useCallback((e=>{const t=ED(r._getFieldArray(n),e);u.current=ED(u.current,e),d(t),l(t),!Array.isArray(WT(r._fields,n))&&GT(r._fields,n,void 0),r._updateFieldArray(n,t,ED,{argA:e})}),[d,n,r]),insert:J.useCallback(((e,t,o)=>{const i=fD(VT(t)),a=MD(r._getFieldArray(n),e,i);r._names.focus=yD(n,e,o),u.current=MD(u.current,e,i.map(hD)),d(a),l(a),r._updateFieldArray(n,a,MD,{argA:e,argB:PD(t)})}),[d,n,r]),update:J.useCallback(((e,t)=>{const o=VT(t),i=TD(r._getFieldArray(n),e,o);u.current=[...i].map(((t,r)=>t&&r!==e?u.current[r]:hD())),d(i),l([...i]),r._updateFieldArray(n,i,TD,{argA:e,argB:o},!0,!1)}),[d,n,r]),replace:J.useCallback((e=>{const t=fD(VT(e));u.current=t.map(hD),d([...t]),l([...t]),r._updateFieldArray(n,[...t],(e=>e),{},!0,!1)}),[d,n,r]),fields:J.useMemo((()=>c.map(((e,t)=>({...e,[o]:u.current[t]||hD()})))),[c,o])}}const ID=({name:r,control:n,register:o,defaultValues:i,onArrayAppend:a,onArrayRemove:c})=>{const{fields:l,append:u,remove:s}=DD({control:n,name:r}),p=Object.keys(i).reduce(((e,t)=>({...e,[t]:i[t]})),{});return e(C,{children:[l.map(((n,i)=>t(C,{children:e(C,{pb:6,position:"relative",children:[Object.keys(n).filter((e=>"id"!==e)).map((e=>t(BT,{label:e,name:`${r}.${i}.${e}`,register:o},`${e}-${n.id}`))),t(f,{label:"Delete",children:t(v,{position:"absolute",top:"0",right:"0",children:t(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(i),c&&c(i)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),t(v,{children:t(h,{size:"sm",onClick:()=>{u(p),a&&a(p)},ml:"auto",children:"+"})})]})},ND=({data:r,dataKey:n,width:o="100%",height:i="100%",lineType:a="linear",isAnimated:c=!1,formatter:l,labelFormatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=Sr({data:r,dataKey:n}),d=bn(),h=s?Ar({arr:r||[],n:s}):r;let y,v;h?.length?(v=p?Er.mint():Er.heroicRed(),y=h?.map((e=>({...e,[n]:Number(e[n])||0})))):(v=Er.coolElegance(),y=[{[n]:0},{[n]:0}]);const m={cursor:h?.length?"crosshair":"default",...f};return t(Jh,{width:o,minHeight:i,id:d,children:e(yT,{data:y,style:m,children:[t(y_,{domain:["dataMin","dataMax"],hide:!0}),t(_C,{isAnimationActive:c,type:a,dataKey:n,stroke:v,strokeWidth:"2",activeDot:e=>mT({labelFormatter:u,formatter:l,...e}),dot:!1,scale:"threshold"}),h?.length&&t($h,{cursor:!1,content:()=>null})]})})},RD=({isOpen:r,onClose:n,headerContent:o=null,footerContent:i=null,children:a,isCentered:c=!0,size:l={base:"md",md:"xl"},isDisabledCloseButton:u,bodyProps:s={},contentProps:f={},...p})=>{const d={maxHeight:"60vh",bg:"transparent",overflow:"scroll",...s},h={...{minWidth:Tr},...f};return e(_,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:l,trapFocus:!Pr(),...p,children:[t(T,{}),e(D,{...h,children:[t(I,{children:o}),t(N,{isDisabled:u}),t(R,{...d,children:a}),i&&t(L,{borderTop:"solid 1px",borderColor:Er.coolElegance(),justifyContent:"flex-start",children:i})]})]})},LD=e=>{const{isActive:r,children:n,href:o,...i}=e;return t(B,{display:"flex",as:B,borderRadius:"md",border:"solid 1px",bg:r?"brand.50":"transparent",borderColor:r?"brand.200":"transparent",boxShadow:r?`0 8px 16px 0 ${Er.black(.08)}`:"none",href:o,alignItems:"center",lineHeight:"1",position:"relative",padding:"2",zIndex:"3",transition:"border-color 0.25s",_hover:{borderColor:!r&&Er.coolElegance(),textDecoration:"none"},...i,children:n},o)};var BD,zD={exports:{}};var $D,HD=(BD||(BD=1,$D=zD,function(e,t){$D.exports=t(J)}(0,(e=>(()=>{var t={703:(e,t,r)=>{var n=r(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=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:i,resetWarningCache:o};return r.PropTypes=r,r}},697:(e,t,r)=>{e.exports=r(703)()},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:t=>{t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{n.r(o),n.d(o,{default:()=>w});var e=n(98),t=n.n(e),r=n(697),i=n.n(r);function a(){return a=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},a.apply(this,arguments)}var c=function(e){var r=e.pageClassName,n=e.pageLinkClassName,o=e.page,i=e.selected,c=e.activeClassName,l=e.activeLinkClassName,u=e.getEventListener,s=e.pageSelectedHandler,f=e.href,p=e.extraAriaContext,d=e.pageLabelBuilder,h=e.rel,y=e.ariaLabel||"Page "+o+(p?" "+p:""),v=null;return i&&(v="page",y=e.ariaLabel||"Page "+o+" is your current page",r=void 0!==r?r+" "+c:c,void 0!==n?void 0!==l&&(n=n+" "+l):n=l),t().createElement("li",{className:r},t().createElement("a",a({rel:h,role:f?void 0:"button",className:n,href:f,tabIndex:i?"-1":"0","aria-label":y,"aria-current":v,onKeyPress:s},u(s)),d(o)))};c.propTypes={pageSelectedHandler:i().func.isRequired,selected:i().bool.isRequired,pageClassName:i().string,pageLinkClassName:i().string,activeClassName:i().string,activeLinkClassName:i().string,extraAriaContext:i().string,href:i().string,ariaLabel:i().string,page:i().number.isRequired,getEventListener:i().func.isRequired,pageLabelBuilder:i().func.isRequired,rel:i().string};const l=c;function u(){return u=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},u.apply(this,arguments)}var s=function(e){var r=e.breakLabel,n=e.breakAriaLabel,o=e.breakClassName,i=e.breakLinkClassName,a=e.breakHandler,c=e.getEventListener,l=o||"break";return t().createElement("li",{className:l},t().createElement("a",u({className:i,role:"button",tabIndex:"0","aria-label":n,onKeyPress:a},c(a)),r))};s.propTypes={breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabel:i().string,breakClassName:i().string,breakLinkClassName:i().string,breakHandler:i().func.isRequired,getEventListener:i().func.isRequired};const f=s;function p(e){return null!=e?e:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(){return h=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},h.apply(this,arguments)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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&&y(e,t)}(c,e);var r,n,o,i,a=(o=c,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(o);if(i){var r=m(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}(this,e)});function c(e){var r,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),g(v(r=a.call(this,e)),"handlePreviousPage",(function(e){var t=r.state.selected;r.handleClick(e,null,t>0?t-1:void 0,{isPrevious:!0})})),g(v(r),"handleNextPage",(function(e){var t=r.state.selected,n=r.props.pageCount;r.handleClick(e,null,t<n-1?t+1:void 0,{isNext:!0})})),g(v(r),"handlePageSelected",(function(e,t){if(r.state.selected===e)return r.callActiveCallback(e),void r.handleClick(t,null,void 0,{isActive:!0});r.handleClick(t,null,e)})),g(v(r),"handlePageChange",(function(e){r.state.selected!==e&&(r.setState({selected:e}),r.callCallback(e))})),g(v(r),"getEventListener",(function(e){return g({},r.props.eventListener,e)})),g(v(r),"handleClick",(function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=o.isPrevious,a=void 0!==i&&i,c=o.isNext,l=void 0!==c&&c,u=o.isBreak,s=void 0!==u&&u,f=o.isActive,p=void 0!==f&&f;e.preventDefault?e.preventDefault():e.returnValue=!1;var d=r.state.selected,h=r.props.onClick,y=n;if(h){var v=h({index:t,selected:d,nextSelectedPage:n,event:e,isPrevious:a,isNext:l,isBreak:s,isActive:p});if(!1===v)return;Number.isInteger(v)&&(y=v)}void 0!==y&&r.handlePageChange(y)})),g(v(r),"handleBreakClick",(function(e,t){var n=r.state.selected;r.handleClick(t,e,n<e?r.getForwardJump():r.getBackwardJump(),{isBreak:!0})})),g(v(r),"callCallback",(function(e){void 0!==r.props.onPageChange&&"function"==typeof r.props.onPageChange&&r.props.onPageChange({selected:e})})),g(v(r),"callActiveCallback",(function(e){void 0!==r.props.onPageActive&&"function"==typeof r.props.onPageActive&&r.props.onPageActive({selected:e})})),g(v(r),"getElementPageRel",(function(e){var t=r.state.selected,n=r.props,o=n.nextPageRel,i=n.prevPageRel,a=n.selectedPageRel;return t-1===e?i:t===e?a:t+1===e?o:void 0})),g(v(r),"pagination",(function(){var e=[],n=r.props,o=n.pageRangeDisplayed,i=n.pageCount,a=n.marginPagesDisplayed,c=n.breakLabel,l=n.breakClassName,u=n.breakLinkClassName,s=n.breakAriaLabels,p=r.state.selected;if(i<=o)for(var d=0;d<i;d++)e.push(r.getPageElement(d));else{var h=o/2,y=o-h;p>i-o/2?h=o-(y=i-p):p<o/2&&(y=o-(h=p));var v,m,g=function(e){return r.getPageElement(e)},b=[];for(v=0;v<i;v++){var w=v+1;if(w<=a)b.push({type:"page",index:v,display:g(v)});else if(w>i-a)b.push({type:"page",index:v,display:g(v)});else if(v>=p-h&&v<=p+(0===p&&o>1?y-1:y))b.push({type:"page",index:v,display:g(v)});else if(c&&b.length>0&&b[b.length-1].display!==m&&(o>0||a>0)){var x=v<p?s.backward:s.forward;m=t().createElement(f,{key:v,breakAriaLabel:x,breakLabel:c,breakClassName:l,breakLinkClassName:u,breakHandler:r.handleBreakClick.bind(null,v),getEventListener:r.getEventListener}),b.push({type:"break",index:v,display:m})}}b.forEach((function(t,r){var n=t;"break"===t.type&&b[r-1]&&"page"===b[r-1].type&&b[r+1]&&"page"===b[r+1].type&&b[r+1].index-b[r-1].index<=2&&(n={type:"page",index:t.index,display:g(t.index)}),e.push(n.display)}))}return e})),void 0!==e.initialPage&&void 0!==e.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(e.initialPage,") and forcePage (").concat(e.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),n=e.initialPage?e.initialPage:e.forcePage?e.forcePage:0,r.state={selected:n},r}return r=c,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.initialPage,r=e.disableInitialCallback,n=e.extraAriaContext,o=e.pageCount,i=e.forcePage;void 0===t||r||this.callCallback(t),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(o)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(o,"). Did you forget a Math.ceil()?")),void 0!==t&&t>o-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(t," > ").concat(o-1,").")),void 0!==i&&i>o-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(i," > ").concat(o-1,")."))}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.forcePage&&this.props.forcePage!==e.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(e.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var e=this.state.selected,t=this.props,r=t.pageCount,n=e+t.pageRangeDisplayed;return n>=r?r-1:n}},{key:"getBackwardJump",value:function(){var e=this.state.selected-this.props.pageRangeDisplayed;return e<0?0:e}},{key:"getElementHref",value:function(e){var t=this.props,r=t.hrefBuilder,n=t.pageCount,o=t.hrefAllControls;if(r)return o||e>=0&&e<n?r(e+1,n,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(e){var t=e===this.state.selected;if(this.props.ariaLabelBuilder&&e>=0&&e<this.props.pageCount){var r=this.props.ariaLabelBuilder(e+1,t);return this.props.extraAriaContext&&!t&&(r=r+" "+this.props.extraAriaContext),r}}},{key:"getPageElement",value:function(e){var r=this.state.selected,n=this.props,o=n.pageClassName,i=n.pageLinkClassName,a=n.activeClassName,c=n.activeLinkClassName,u=n.extraAriaContext,s=n.pageLabelBuilder;return t().createElement(l,{key:e,pageSelectedHandler:this.handlePageSelected.bind(null,e),selected:r===e,rel:this.getElementPageRel(e),pageClassName:o,pageLinkClassName:i,activeClassName:a,activeLinkClassName:c,extraAriaContext:u,href:this.getElementHref(e),ariaLabel:this.ariaLabelBuilder(e),page:e+1,pageLabelBuilder:s,getEventListener:this.getEventListener})}},{key:"render",value:function(){var e=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==e)return e?e(this.props):e;var r=this.props,n=r.disabledClassName,o=r.disabledLinkClassName,i=r.pageCount,a=r.className,c=r.containerClassName,l=r.previousLabel,u=r.previousClassName,s=r.previousLinkClassName,f=r.previousAriaLabel,d=r.prevRel,y=r.nextLabel,v=r.nextClassName,m=r.nextLinkClassName,g=r.nextAriaLabel,b=r.nextRel,w=this.state.selected,x=0===w,O=w===i-1,S="".concat(p(u)).concat(x?" ".concat(p(n)):""),j="".concat(p(v)).concat(O?" ".concat(p(n)):""),P="".concat(p(s)).concat(x?" ".concat(p(o)):""),M="".concat(p(m)).concat(O?" ".concat(p(o)):""),A=x?"true":"false",k=O?"true":"false";return t().createElement("ul",{className:a||c,role:"navigation","aria-label":"Pagination"},t().createElement("li",{className:S},t().createElement("a",h({className:P,href:this.getElementHref(w-1),tabIndex:x?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":A,"aria-label":f,rel:d},this.getEventListener(this.handlePreviousPage)),l)),this.pagination(),t().createElement("li",{className:j},t().createElement("a",h({className:M,href:this.getElementHref(w+1),tabIndex:O?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":k,"aria-label":g,rel:b},this.getEventListener(this.handleNextPage)),y)))}}])&&function(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,n.key,n)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(e.Component);g(b,"propTypes",{pageCount:i().number.isRequired,pageRangeDisplayed:i().number,marginPagesDisplayed:i().number,previousLabel:i().node,previousAriaLabel:i().string,prevPageRel:i().string,prevRel:i().string,nextLabel:i().node,nextAriaLabel:i().string,nextPageRel:i().string,nextRel:i().string,breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabels:i().shape({forward:i().string,backward:i().string}),hrefBuilder:i().func,hrefAllControls:i().bool,onPageChange:i().func,onPageActive:i().func,onClick:i().func,initialPage:i().number,forcePage:i().number,disableInitialCallback:i().bool,containerClassName:i().string,className:i().string,pageClassName:i().string,pageLinkClassName:i().string,pageLabelBuilder:i().func,activeClassName:i().string,activeLinkClassName:i().string,previousClassName:i().string,nextClassName:i().string,previousLinkClassName:i().string,nextLinkClassName:i().string,disabledClassName:i().string,disabledLinkClassName:i().string,breakClassName:i().string,breakLinkClassName:i().string,extraAriaContext:i().string,ariaLabelBuilder:i().func,eventListener:i().string,renderOnZeroPageCount:i().func,selectedPageRel:i().string}),g(b,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(e){return e},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});const w=b})(),o})()))),zD.exports);const FD=n(tr(HD)),VD=({totalRecords:e=0,recordsPerPage:r=10,pageRangeDisplayed:n=3,handlePageClick:o,forcePage:i,...a})=>{const c=Math.ceil(e/r);return t(v,{justifyContent:{base:"center",md:"flex-end"},fontSize:{base:14,md:18},gap:2,w:"full",...a,children:t(FD,{breakLabel:"...",previousLabel:"<",nextLabel:">",onPageChange:o,pageRangeDisplayed:n,pageCount:c,renderOnZeroPageCount:null,forcePage:i,display:{base:"flex"},alignItems:"center",gap:"inherit",disabledLinkClassName:"disabled-pagination",pageLinkClassName:"pagination-link",activeClassName:"active-page",previousClassName:"previous-page-button",nextClassName:"next-page-button",sx:{listStyleType:"none",".pagination-link:hover":{backgroundColor:"brand.700"},".previous-page-button a, .next-page-button a, .pagination-link":{backgroundColor:"brand.300",borderRadius:4,color:Er.white()},".previous-page-button a, .next-page-button a":{minWidth:"2rem",display:"inline-block",textAlign:"center",paddingX:{base:2,lg:2.5}},".pagination-link":{minWidth:"2.5rem",display:"inline-block",textAlign:"center",paddingX:{base:2.5,lg:3}},".active-page a":{backgroundColor:"brand.500"},".disabled-pagination":{backgroundColor:"gray.300 !important",cursor:"not-allowed !important"}}})})},UD=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:o,lastEvaluatedKey:i,...a})=>{const[c,l]=ie([]),[u,s]=ie(1);return e(v,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[t(h,{onClick:()=>{if(2===u)return o(void 0),l([]),void s((e=>e-1));const e=c.length-1,t=c[e-1];o(t),l((e=>e.slice(0,-1))),s((e=>e-1))},isDisabled:r||1===u,children:"Previous"}),t(h,{onClick:()=>{if(i){const e={lastEvaluatedPKey:i.pKey,lastEvaluatedSKey:i.sKey};o(e),l((t=>[...t,e])),s((e=>e+1))}},isDisabled:r||!n,children:"Next"})]})},ZD=({children:e,isEnabled:r=!0,...n})=>{const o=r?he`
32
32
  text-wrap: balance;
33
33
  text-wrap: pretty;
34
34
  `:void 0;return t(C,{css:o,...n,children:e})},WD=r=>{const{children:n,size:o,isDisabled:i,isReadOnly:a,isRequired:c,name:l,register:u,errorMessage:s,helperText:f,label:p,...d}=r,h=jr(o),y=u?u(l):void 0;return e(g,{isInvalid:Boolean(s),isDisabled:i,isReadOnly:a,isRequired:c,children:[p&&t(b,{size:o,children:p}),t(z,{icon:t(Se,{}),size:o,...y,...d,children:n}),s&&t(x,{size:o,children:s}),f&&t(E,{fontSize:h,children:f})]})},qD=ye({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),YD=({boxSize:e=8,color:r="brand",...n})=>{const o="neutral"===r?Er.sonicSilver():"brand.500";return t(v,{width:"full",justifyContent:"center",alignItems:"center",minHeight:Number.isFinite(Number(e))?3*Number(e):`calc(${e} * 3)`,...n,children:t(v,{width:e,height:e,animation:`${qD} 2000ms infinite linear`,children:t(dt,{boxSize:e,__css:{path:{fill:o}}})})})},XD=r=>{const{label:n,rightIcon:o,leftIcon:i,onClose:a,...c}=r,[l,u]=ie(!0);return l?e($,{className:"cf-tag",...c,children:[i&&t(H,{as:i}),t(F,{children:n}),o&&t(V,{as:o}),a&&t(U,{onClick:()=>{a(),u(!1)}})]}):null},GD=({description:r,title:n,onClose:o,isClosable:i,status:a})=>{let c,l;switch(a){case"error":l=ve;break;case"success":l=ke;break;case"warning":l=qe,c="yellow";break;case"loading":c="brand",l=G;break;default:c="brand",l=qe}return e(Z,{as:v,colorScheme:c,justifyContent:"space-between",status:a,children:[e(v,{alignItems:"center",mr:"4",children:[t(W,{children:t(l,{size:"sm"})}),e(C,{children:[t(q,{children:n}),t(Y,{children:r})]})]}),i&&t(X,{onClick:o})]})},KD=({children:e,label:r})=>{const n=r?t(v,{padding:"1",flexDir:"column",gap:"2",lineHeight:"normal",fontSize:"sm",children:r}):null;return t(f,{label:n,hasArrow:!0,children:e})},JD=()=>{const e=u({ssr:!1}),t="base"===e||"sm"===e,r="md"===e,n="lg"===e||"xl"===e||"2xl"===e;return{breakpoint:e,isSmallBreakpoint:t,isMediumBreakpoint:r,isLargeBreakpoint:n,isAboveSmallBreakpoint:r||n,isBelowLargeBreakpoint:r||t}};export{gT as CfAreaChart,bT as CfBreakpointDebugger,wT as CfButtonGroup,xT as CfButtonGroupButton,OT as CfCard,ST as CfCarousel,jT as CfCheckbox,PT as CfForm,BT as CfInput,ID as CfInputArray,ND as CfLineChart,RD as CfModal,LD as CfNavLink,VD as CfOpenSearchPagination,UD as CfPagination,ZD as CfPrettyWrap,WD as CfSelect,YD as CfSpinner,XD as CfTag,GD as CfToast,KD as CfTooltip,ve as IconAlert,xt as IconAlgo,me as IconArrowDown,ge as IconArrowUp,Ot as IconAvax,be as IconBank,we as IconBarChart,St as IconBch,xe as IconBookCheck,jt as IconBtc,Oe as IconCalendar,Se as IconCaretDown,je as IconCaretLeft,Pe as IconCaretRight,Me as IconCaretUp,Ae as IconCent,ke as IconCheck,Ee as IconChecking,Ce as IconCircleCheck,_e as IconClose,Te as IconConnect,De as IconCopy,gt as IconDiamonds,Pt as IconDoge,Ie as IconDollar,Ne as IconDollarBill,Re as IconDownload,Le as IconEdit,Be as IconEnter,ze as IconEnterInverted,Mt as IconEth,$e as IconExchange,bt as IconExternalLink,He as IconFilter,Fe as IconHelp,Ve as IconHistory,Ue as IconHome,Ze as IconIndicatorDown,We as IconIndicatorUp,qe as IconInfo,At as IconLink,Ye as IconLock,kt as IconLtc,Xe as IconMail,Ge as IconMenu,Ke as IconMinus,Et as IconMkr,Je as IconMore,Qe as IconNotification,et as IconOverview,tt as IconPercent,rt as IconPieChart,nt as IconPlus,wt as IconRefresh,ot as IconReports,it as IconReservesSuccess,at as IconReservesWarning,ct as IconSearch,lt as IconSettings,ut as IconSettlement,st as IconSignIn,ft as IconSignOut,Ct as IconSol,pt as IconSort,dt as IconSpinner,ht as IconSupport,yt as IconTrash,vt as IconUpload,mt as IconUser,_t as IconXlm,Tt as IconXrp,Qt as aggregateAmounts,yn as coreTheme,Dr as dateFormats,dr as dateToTimestamp,hr as formatPercentage,vn as formatPhoneNumber,Or as formatUsd,Sr as getDelta,Pr as isIframe,Tr as layoutMinWidth,Ar as pullFromEnd,kr as splitOnCapitals,Er as uiColors,_r as usdToNumber,JD as useCfBreakpoint,Ir as utcDateToLocal};