kwant-ui 3.51.0-dev.14 → 3.51.0-dev.15

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.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as a,createGlobalStyle as c}from"styled-components";import*as i from"react";import o,{Fragment as s,useEffect as l,forwardRef as h,useId as v,useState as p,useRef as u,cloneElement as g,createContext as m,useContext as d,useCallback as f,useLayoutEffect as _,createElement as w,useMemo as b,isValidElement as y,Children as x,PureComponent as Z,useImperativeHandle as O,Component as M}from"react";import E,{createPortal as H}from"react-dom";import{ViewportList as P}from"react-viewport-list";var j;!function(e){var t,r;(t=e.Variant||(e.Variant={})).outline="outline",t.filled="filled",t.filter="filter",t.ghost="ghost",t.ghostSecondary="ghostSecondary",(r=e.ButtonEnum||(e.ButtonEnum={}))[r.primary=0]="primary",r[r.secondary=1]="secondary",r[r.error=2]="error",r[r.success=3]="success"}(j||(j={}));const V={regular:400,medium:500,semiBold:600},C={subtitle1:"\n font-size: 1.5rem;\n font-style: normal;\n line-height: 2rem;\n",subtitle2:"\n font-size: 1.25rem;\n font-style: normal;\n line-height: 1.75rem;\n ",body1:"\n font-size: 1rem;\n font-style: normal;\n line-height: 1.5rem;\n",body2:"\n font-size: 0.875rem;\n font-style: normal;\n line-height: 1.25rem;\n ",prefix:"\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n text-transform: uppercase;\n",caption:"\n font-size: 0.75rem;\n font-style: normal;\n font-weight: 400;\n line-height: 1re;\n",link:"\n font-size: 14px;\n line-height: 20px;\n text-decoration-line: underline;\n"},A=e=>{const{category:t,weight:r}=e;return t?`\n ${C[t]}\n font-weight:${(e=>e?V[e]:V.regular)(r)};\n `:C.body1},L={primary:{primary100:"#0B1B2A",primary90:"#1C2E40",primary80:"#2A4055",primary70:"#39526B",primary60:"#455F7B",primary50:"#5F758F",primary40:"#455F7B",primary30:"#9CACC0",primary20:"#C0CEDE",primary10:"#E4EBF8",primary5:"#F9FAFD"},secondary:{secondary100:"#103FE8",secondary90:"#2852EA",secondary80:"#4065ED",secondary70:"#5879EF",secondary60:"#708CF1",secondary50:"#889FF4",secondary40:"#9FB2F6",secondary30:"#B7C5F8",secondary20:"#CFD9FA",secondary10:"#E7ECFD",secondary5:"#F3F5FE"},tertiary:{tertiary100:"#174189",tertiary90:"#2E5495",tertiary80:"#4567A1",tertiary70:"#5D7AAC",tertiary60:"#748DB8",tertiary50:"#8BA0C4",tertiary40:"#A2B3D0",tertiary30:"#B9C6DC",tertiary20:"#D1D9E7",tertiary10:"#E8ECF3",tertiary5:"#F3F5F9"},accent:{accent500:"#BD9E2C",accent100:"#ECC537",accent75:"#FFC665",accent50:"#F4DC87",accent15:"#FFF4E0"},link:{linkHigh:"#002C99",linkMedium:"#0053CB",linkLow:"#5D7FFF"},error:{errorHigh:"#AB000D",errorMedium:"#E53935",errorLow:"#FF6F60",errorLow2:"#F8B4B4",errorLow3:"#FDE8E8",errorLower:"#FCF4F4"},success:{successDark:"#009624",successMedium:"#00C853",successLow:"#5EFC82"},black:{blackHigh:"#212121",blackMedium:"#666666",blackLow:"#757575",black:"#000000"},white:{white:"#FFFFFF"},grey:{grey5:"#F9FAFD",grey10:"#F2F5FA",grey20:"#C0CEDE",grey30:"#9CACC0",grey50:"#F9FAFD",grey90:"#1C2E40",grey100:"#F5F7FA",grey200:"#E4E9F2",grey250:"#e4e9f2",grey300:"#C8D2DE",grey400:"#A1AFC0",grey500:"#798CA4",grey600:"#5F758F",grey700:"#455F7B",grey800:"#2A4055",grey900:"#1C2E40",grey1000:"#0B1B2A",greyHigh:"#C2C2C2",greyMedium:"#E5E5E5",greyLow:"#F5F5F5"},warning:{warningHigh:"#C67100",warningMedium:"#FFA000",warningLow:"#FFD149",warningLower:"#FED7AA",warningLower2:"#FFEDD5"},alert:{border:"#FAEC88",background:"#FCF9DC",icon:"#EAB308"},disabled:{disabledHigh:"#B1B1B1",disabledMedium:"#CFCFCF",disabledLow:"#ECECEC"},text:{primary:"#24292E"},input:{focused:"0px 0px 0px 4px rgba(16, 63, 232, 0.25)",focusedShadowButton:"0px 0px 0px 4px rgba(16, 63, 232, 0.30)",focusedShadow:"0px 0px 0px 4px rgba(16, 63, 232, 0.25)",focusedShadowFilter:"rgba(102, 130, 231, 0.30)",focusedShadowError:" 0px 0px 0px 4px rgba(239, 68, 68, 0.25)",focusedSecondary:"rgba(102, 130, 231, 0.30)"},button:{primaryButton:"0px 0px 0px 4px rgba(16, 63, 232, 0.30)",primaryOutlineButton:"0px 0px 0px 4px rgba(16, 63, 232, 0.30)",secondaryButton:"0px 0px 0px 4px rgba(28, 46, 64, 0.10)",errorButton:"0px 0px 0px 4px rgba(229, 57, 53, 0.20)",successButton:"0px 0px 0px 4px rgba(45, 161, 96, 0.20)",filterButton:"0px 0px 0px 4px rgba(102, 130, 231, 0.30)"},green:{green40:"#2DA170",green10:"#9FD4B5",green8:"#D8F0E0",green5:"#F1FAF4",green50:"#F1FAF4",green100:"#D8F0E0",green200:"#9FD4B5",green300:"#52B87A",green400:"#2DA170",green500:"#10855E",green600:"#21765A",green700:"#246650",green800:"#0D533C",green900:"#0A402E",green1000:"#072B1F"},blue:{blue5:"#F6F8FE",blue50:"#F6F8FE",blue100:"#E7ECFD",blue200:"#CFD9FA",blue300:"#B7C5F8",blue400:"#9FB2F6",blue500:"#889FF4",blue600:"#708CF1",blue700:"#5879EF",blue800:"#4065ED",blue900:"#2852EA",blue1000:"#103FE8"},yellow:{yellow50:"#FCF9DC",yellow100:"#FAF4B4",yellow200:"#FAEC88",yellow300:"#F9DD69",yellow400:"#FACC15",yellow500:"#EAB308",yellow600:"#CA8A04",yellow700:"#A16207",yellow800:"#854D0E",yellow900:"#713F12",yellow1000:"#713F12"},red:{red050:"#FDF2F2",red50:"#FDF2F2",red100:"#FDE8E8",red200:"#FBD5D5",red300:"#F8B4B4",red400:"#F98080",red500:"#F05252",red600:"#DF4242",red700:"#CE3434",red800:"#9B1C1C",red900:"#771D1D"},orange:{orange050:"#FFF7ED",orange50:"#FFF7ED",orange100:"#FFEDD5",orange200:"#FED7AA",orange300:"#FDBA74",orange400:"#FFA84C",orange500:"#F98016",orange600:"#EA580C",orange700:"#C2410C",orange800:"#9A3412",orange900:"#7C2D12"},scrollbar:{track:"#F2F5FA",thumb:"#9CACC0"},transparent:{blueHover:"rgba(16, 63, 232, 0.06)",transparent:"#ffffff78"}},z={...L},{blue:{blue1000:B,blue900:k,blue300:S,blue100:R,blue50:D},button:{primaryButton:I,primaryOutlineButton:T,secondaryButton:N,errorButton:F,successButton:Q,filterButton:$},white:{white:Y},grey:{grey900:U,grey800:W,grey400:X,grey300:K,grey100:q,grey50:G},red:{red700:J,red300:ee,red50:te},green:{green400:re,green5:ne,green200:ae}}=z,ce={primary:{backgroundColor:B,textColor:Y,borderColor:"transparent",hoverColor:k,focusColor:I,disabledBackgroundColor:S,disabledTextColor:Y,disabledBorderColor:"transparent",disabledOutlineTextColor:S,disabledOutlineBorderColor:S,outlineHoverColor:D,outlineTextColor:B,outlineBorderColor:B,outlineFocusColor:T},secondary:{backgroundColor:"transparent",textColor:U,borderColor:U,hoverColor:D,focusColor:N,disabledBackgroundColor:D,disabledOutlineTextColor:X,disabledBorderColor:K,disabledOutlineBorderColor:K,disabledTextColor:X,outlineHoverColor:D,outlineTextColor:U,outlineBorderColor:U,outlineFocusColor:N},error:{backgroundColor:"transparent",textColor:J,borderColor:ee,hoverColor:te,focusColor:F,disabledBackgroundColor:"transparent",disabledBorderColor:ee,disabledTextColor:ee,disabledOutlineTextColor:ee,disabledOutlineBorderColor:ee,outlineHoverColor:te,outlineTextColor:J,outlineBorderColor:ee,outlineFocusColor:F},success:{backgroundColor:"transparent",textColor:re,borderColor:re,hoverColor:ne,focusColor:Q,disabledBackgroundColor:"transparent",disabledOutlineTextColor:re,disabledOutlineBorderColor:re,disabledTextColor:ae,disabledBorderColor:ae,outlineHoverColor:ne,outlineTextColor:re,outlineBorderColor:re,outlineFocusColor:Q},filter:{backgroundColor:G,textColor:W,borderColor:K,hoverColor:D,hoverTextColor:B,hoverBorderColor:B,focusColor:$,disabledOutlineTextColor:X,disabledOutlineBorderColor:K,disabledBackgroundColor:"transparent",disabledTextColor:X,disabledBorderColor:K,outlineHoverColor:D,outlineTextColor:B,outlineBorderColor:B,outlineFocusColor:$},ghost:{backgroundColor:"transparent",textColor:B,borderColor:"transparent",hoverColor:D,focusColor:R,disabledBackgroundColor:"transparent",disabledTextColor:S,disabledBorderColor:"transparent",disabledOutlineTextColor:S,disabledOutlineBorderColor:S,outlineHoverColor:D,outlineTextColor:B,outlineBorderColor:B,outlineFocusColor:T},ghostSecondary:{backgroundColor:Y,textColor:U,borderColor:"trasparent",hoverColor:G,focusColor:q,disabledBackgroundColor:Y,disabledTextColor:X,disabledBorderColor:"transparent",disabledOutlineBorderColor:K,disabledOutlineTextColor:S,outlineHoverColor:D,outlineTextColor:U,outlineBorderColor:U,outlineFocusColor:N}},ie=(e,t)=>{if(e&&t===j.Variant.filter)return a`
1
+ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as a,createGlobalStyle as c}from"styled-components";import*as i from"react";import o,{Fragment as s,useEffect as l,forwardRef as h,useId as v,useState as p,useRef as u,cloneElement as g,createContext as m,useContext as d,useCallback as f,useLayoutEffect as _,useMemo as w,createElement as b,isValidElement as y,Children as x,PureComponent as Z,useImperativeHandle as O,Component as M}from"react";import E,{createPortal as H}from"react-dom";import{ViewportList as P}from"react-viewport-list";var j;!function(e){var t,r;(t=e.Variant||(e.Variant={})).outline="outline",t.filled="filled",t.filter="filter",t.ghost="ghost",t.ghostSecondary="ghostSecondary",(r=e.ButtonEnum||(e.ButtonEnum={}))[r.primary=0]="primary",r[r.secondary=1]="secondary",r[r.error=2]="error",r[r.success=3]="success"}(j||(j={}));const V={regular:400,medium:500,semiBold:600},C={subtitle1:"\n font-size: 1.5rem;\n font-style: normal;\n line-height: 2rem;\n",subtitle2:"\n font-size: 1.25rem;\n font-style: normal;\n line-height: 1.75rem;\n ",body1:"\n font-size: 1rem;\n font-style: normal;\n line-height: 1.5rem;\n",body2:"\n font-size: 0.875rem;\n font-style: normal;\n line-height: 1.25rem;\n ",prefix:"\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n text-transform: uppercase;\n",caption:"\n font-size: 0.75rem;\n font-style: normal;\n font-weight: 400;\n line-height: 1re;\n",link:"\n font-size: 14px;\n line-height: 20px;\n text-decoration-line: underline;\n"},A=e=>{const{category:t,weight:r}=e;return t?`\n ${C[t]}\n font-weight:${(e=>e?V[e]:V.regular)(r)};\n `:C.body1},L={primary:{primary100:"#0B1B2A",primary90:"#1C2E40",primary80:"#2A4055",primary70:"#39526B",primary60:"#455F7B",primary50:"#5F758F",primary40:"#455F7B",primary30:"#9CACC0",primary20:"#C0CEDE",primary10:"#E4EBF8",primary5:"#F9FAFD"},secondary:{secondary100:"#103FE8",secondary90:"#2852EA",secondary80:"#4065ED",secondary70:"#5879EF",secondary60:"#708CF1",secondary50:"#889FF4",secondary40:"#9FB2F6",secondary30:"#B7C5F8",secondary20:"#CFD9FA",secondary10:"#E7ECFD",secondary5:"#F3F5FE"},tertiary:{tertiary100:"#174189",tertiary90:"#2E5495",tertiary80:"#4567A1",tertiary70:"#5D7AAC",tertiary60:"#748DB8",tertiary50:"#8BA0C4",tertiary40:"#A2B3D0",tertiary30:"#B9C6DC",tertiary20:"#D1D9E7",tertiary10:"#E8ECF3",tertiary5:"#F3F5F9"},accent:{accent500:"#BD9E2C",accent100:"#ECC537",accent75:"#FFC665",accent50:"#F4DC87",accent15:"#FFF4E0"},link:{linkHigh:"#002C99",linkMedium:"#0053CB",linkLow:"#5D7FFF"},error:{errorHigh:"#AB000D",errorMedium:"#E53935",errorLow:"#FF6F60",errorLow2:"#F8B4B4",errorLow3:"#FDE8E8",errorLower:"#FCF4F4"},success:{successDark:"#009624",successMedium:"#00C853",successLow:"#5EFC82"},black:{blackHigh:"#212121",blackMedium:"#666666",blackLow:"#757575",black:"#000000"},white:{white:"#FFFFFF"},grey:{grey5:"#F9FAFD",grey10:"#F2F5FA",grey20:"#C0CEDE",grey30:"#9CACC0",grey50:"#F9FAFD",grey90:"#1C2E40",grey100:"#F5F7FA",grey200:"#E4E9F2",grey250:"#e4e9f2",grey300:"#C8D2DE",grey400:"#A1AFC0",grey500:"#798CA4",grey600:"#5F758F",grey700:"#455F7B",grey800:"#2A4055",grey900:"#1C2E40",grey1000:"#0B1B2A",greyHigh:"#C2C2C2",greyMedium:"#E5E5E5",greyLow:"#F5F5F5"},warning:{warningHigh:"#C67100",warningMedium:"#FFA000",warningLow:"#FFD149",warningLower:"#FED7AA",warningLower2:"#FFEDD5"},alert:{border:"#FAEC88",background:"#FCF9DC",icon:"#EAB308"},disabled:{disabledHigh:"#B1B1B1",disabledMedium:"#CFCFCF",disabledLow:"#ECECEC"},text:{primary:"#24292E"},input:{focused:"0px 0px 0px 4px rgba(16, 63, 232, 0.25)",focusedShadowButton:"0px 0px 0px 4px rgba(16, 63, 232, 0.30)",focusedShadow:"0px 0px 0px 4px rgba(16, 63, 232, 0.25)",focusedShadowFilter:"rgba(102, 130, 231, 0.30)",focusedShadowError:" 0px 0px 0px 4px rgba(239, 68, 68, 0.25)",focusedSecondary:"rgba(102, 130, 231, 0.30)"},button:{primaryButton:"0px 0px 0px 4px rgba(16, 63, 232, 0.30)",primaryOutlineButton:"0px 0px 0px 4px rgba(16, 63, 232, 0.30)",secondaryButton:"0px 0px 0px 4px rgba(28, 46, 64, 0.10)",errorButton:"0px 0px 0px 4px rgba(229, 57, 53, 0.20)",successButton:"0px 0px 0px 4px rgba(45, 161, 96, 0.20)",filterButton:"0px 0px 0px 4px rgba(102, 130, 231, 0.30)"},green:{green40:"#2DA170",green10:"#9FD4B5",green8:"#D8F0E0",green5:"#F1FAF4",green50:"#F1FAF4",green100:"#D8F0E0",green200:"#9FD4B5",green300:"#52B87A",green400:"#2DA170",green500:"#10855E",green600:"#21765A",green700:"#246650",green800:"#0D533C",green900:"#0A402E",green1000:"#072B1F"},blue:{blue5:"#F6F8FE",blue50:"#F6F8FE",blue100:"#E7ECFD",blue200:"#CFD9FA",blue300:"#B7C5F8",blue400:"#9FB2F6",blue500:"#889FF4",blue600:"#708CF1",blue700:"#5879EF",blue800:"#4065ED",blue900:"#2852EA",blue1000:"#103FE8"},yellow:{yellow50:"#FCF9DC",yellow100:"#FAF4B4",yellow200:"#FAEC88",yellow300:"#F9DD69",yellow400:"#FACC15",yellow500:"#EAB308",yellow600:"#CA8A04",yellow700:"#A16207",yellow800:"#854D0E",yellow900:"#713F12",yellow1000:"#713F12"},red:{red050:"#FDF2F2",red50:"#FDF2F2",red100:"#FDE8E8",red200:"#FBD5D5",red300:"#F8B4B4",red400:"#F98080",red500:"#F05252",red600:"#DF4242",red700:"#CE3434",red800:"#9B1C1C",red900:"#771D1D"},orange:{orange050:"#FFF7ED",orange50:"#FFF7ED",orange100:"#FFEDD5",orange200:"#FED7AA",orange300:"#FDBA74",orange400:"#FFA84C",orange500:"#F98016",orange600:"#EA580C",orange700:"#C2410C",orange800:"#9A3412",orange900:"#7C2D12"},scrollbar:{track:"#F2F5FA",thumb:"#9CACC0"},transparent:{blueHover:"rgba(16, 63, 232, 0.06)",transparent:"#ffffff78"}},z={...L},{blue:{blue1000:B,blue900:k,blue300:S,blue100:R,blue50:D},button:{primaryButton:I,primaryOutlineButton:T,secondaryButton:N,errorButton:F,successButton:Q,filterButton:$},white:{white:Y},grey:{grey900:U,grey800:W,grey400:X,grey300:K,grey100:q,grey50:G},red:{red700:J,red300:ee,red50:te},green:{green400:re,green5:ne,green200:ae}}=z,ce={primary:{backgroundColor:B,textColor:Y,borderColor:"transparent",hoverColor:k,focusColor:I,disabledBackgroundColor:S,disabledTextColor:Y,disabledBorderColor:"transparent",disabledOutlineTextColor:S,disabledOutlineBorderColor:S,outlineHoverColor:D,outlineTextColor:B,outlineBorderColor:B,outlineFocusColor:T},secondary:{backgroundColor:"transparent",textColor:U,borderColor:U,hoverColor:D,focusColor:N,disabledBackgroundColor:D,disabledOutlineTextColor:X,disabledBorderColor:K,disabledOutlineBorderColor:K,disabledTextColor:X,outlineHoverColor:D,outlineTextColor:U,outlineBorderColor:U,outlineFocusColor:N},error:{backgroundColor:"transparent",textColor:J,borderColor:ee,hoverColor:te,focusColor:F,disabledBackgroundColor:"transparent",disabledBorderColor:ee,disabledTextColor:ee,disabledOutlineTextColor:ee,disabledOutlineBorderColor:ee,outlineHoverColor:te,outlineTextColor:J,outlineBorderColor:ee,outlineFocusColor:F},success:{backgroundColor:"transparent",textColor:re,borderColor:re,hoverColor:ne,focusColor:Q,disabledBackgroundColor:"transparent",disabledOutlineTextColor:re,disabledOutlineBorderColor:re,disabledTextColor:ae,disabledBorderColor:ae,outlineHoverColor:ne,outlineTextColor:re,outlineBorderColor:re,outlineFocusColor:Q},filter:{backgroundColor:G,textColor:W,borderColor:K,hoverColor:D,hoverTextColor:B,hoverBorderColor:B,focusColor:$,disabledOutlineTextColor:X,disabledOutlineBorderColor:K,disabledBackgroundColor:"transparent",disabledTextColor:X,disabledBorderColor:K,outlineHoverColor:D,outlineTextColor:B,outlineBorderColor:B,outlineFocusColor:$},ghost:{backgroundColor:"transparent",textColor:B,borderColor:"transparent",hoverColor:D,focusColor:R,disabledBackgroundColor:"transparent",disabledTextColor:S,disabledBorderColor:"transparent",disabledOutlineTextColor:S,disabledOutlineBorderColor:S,outlineHoverColor:D,outlineTextColor:B,outlineBorderColor:B,outlineFocusColor:T},ghostSecondary:{backgroundColor:Y,textColor:U,borderColor:"trasparent",hoverColor:G,focusColor:q,disabledBackgroundColor:Y,disabledTextColor:X,disabledBorderColor:"transparent",disabledOutlineBorderColor:K,disabledOutlineTextColor:S,outlineHoverColor:D,outlineTextColor:U,outlineBorderColor:U,outlineFocusColor:N}},ie=(e,t)=>{if(e&&t===j.Variant.filter)return a`
2
2
  padding: 0.75rem;
3
3
  border: 1px solid ${ce.filter.disabledBorderColor};
4
4
  background-color: 1px solid ${ce.filter.disabledBackgroundColor};
@@ -1420,7 +1420,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1420
1420
  position: absolute;
1421
1421
  bottom: ${e=>e.bottomOffset};
1422
1422
  right: ${e=>e.rightOffset};
1423
- `,ar={xxs:{avatarSize:24,fontSize:10},xs:{avatarSize:32,fontSize:14},sm:{avatarSize:48,fontSize:18},md:{avatarSize:64,fontSize:22},lg:{avatarSize:88,fontSize:26},xl:{avatarSize:128,fontSize:30},xxl:{avatarSize:180,fontSize:60}},cr=r=>{const{src:n,alt:a,size:c="md",fontSize:i,backgroundColor:o="random",fontColor:s="white",objectFit:h="cover",avatarButton:v,avatarButtonBottomOffset:u=0,avatarButtonRightOffset:g=0,onClick:m}=r,[d,f]=p(null),[_,w]=p(!1),b=((e="")=>{const t=e?.trim()?.split(" ");if(t.length>1){const[e,...r]=t;return`${e[0]}${r?.pop()?.[0]}`.toUpperCase()}const r=t[0];return r[0]?.toUpperCase()||""})(a),y="random"!==o?o:function(e){let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);let r="#";for(let e=0;e<3;e++)r+=("00"+(t>>8*e&255).toString(16)).substr(-2);return r}(a),x=c in ar?ar[c]:{avatarSize:c,fontSize:i},Z=()=>w(!0),O=()=>w(!1);return l((()=>{if(n){const e=new Image;e.src=n,e.onload=Z,e.onerror=O,f(e)}else O()}),[n]),t(Jt,{children:[e(er,{background:y,size:Se(x.avatarSize),onClick:()=>{m?.(r)},children:_?e(tr,{src:d?.currentSrc,alt:a,objectFit:h,loading:"lazy"}):e(rr,{fontSize:Se(i||x.fontSize),fontColor:s,children:b})}),e(nr,{rightOffset:Se(g,"0px"),bottomOffset:Se(u,"0px"),children:v})]})},ir=r=>{const{label:n="",image:a="",selected:c,avatarProps:i}=r;return t(qt,{selected:c,children:[e(cr,{src:a,alt:n,size:"xs",...i}),e(Gt,{category:"body2",weight:"medium",color:L.grey.grey900,children:r.label}),c&&e(at,{icon:"check",width:20,height:20,fill:L.green.green400})]})},or=r=>{const{maxHeight:n=297.5,width:a=350,offsetTop:c="60px",offsetLeft:i,offsetRight:o,offsetBottom:s="0px",zIndex:h,opened:v,onChange:g,onDropdownVisibilityChange:m,data:d=[],onSelect:b,itemComponent:y,showSeparator:x=!0,collapseOnSelect:Z=!0,inputLeftSection:O,inputRightSection:M,searchPlaceholder:E="Search",searchable:H=!0,showScrollbar:j=!0,targetRef:V,onMouseEnter:C,onMouseLeave:A,onClose:L,searchAutofocus:z=!0,addable:B,selectInputValue:k,avatarProps:S,selectedValue:R,withInput:D,isDynamicOptionPosition:I=!1}=r,[T,N]=p(""),[F,Q]=p([]),$=u(null),Y=u(null),U=u(null),W=u([]),X=Ct(T,400),K=T?F:d,q=T&&0===F.length||0===d.length&&!B,G=K.some((e=>"image"in e)),{currentOffsets:J,isOpeningUpward:ee,renderDropDown:te}=(({isDynamicOptionPosition:e=!1,targetRef:t,opened:r,maxHeight:n=297,offsetTop:a="60px",offsetBottom:c="0px",searchable:i=!0,dataLength:o=0,itemHeight:s=50})=>{const[l,h]=p(!1),[v,u]=p({offsetTop:a,offsetBottom:c,maxHeight:n}),g=f((()=>{if(!e||!t?.current||!r)return;const c=window.innerHeight,l=t.current.getBoundingClientRect(),v=l.y,p=c-v,g=Math.min(n+(i?60:0),o*s+(i?60:0)),m=Math.min(200,g);let d;d=v>c/2?{offsetTop:"",offsetBottom:l.height-(i?14:0)+"px",maxHeight:Math.min(n,v)}:p>=m?{offsetTop:a,offsetBottom:"",maxHeight:Math.min(n,p)}:{offsetTop:"",offsetBottom:`${l.height+10}px`,maxHeight:Math.min(n,v)},u(d),h(!0)}),[e,t,r,n,a,i,o,s]);_((()=>{if(!r||!e)return;r&&g();const t=()=>{g()},i=()=>{g()};return window.addEventListener("resize",t),window.addEventListener("scroll",i),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",i),h(!1),u({offsetTop:a,offsetBottom:c,maxHeight:n})}}),[r,e,o,n,t,i,s,g]);const m=e?v:{offsetTop:a,offsetBottom:c,maxHeight:n};return{currentOffsets:m,isOpeningUpward:e&&m.offsetBottom&&!m.offsetTop,calculateDropdownPosition:g,renderDropDown:l}})({isDynamicOptionPosition:I,targetRef:V,opened:v,maxHeight:n,offsetTop:c,offsetBottom:s,searchable:H,dataLength:K.length,itemHeight:50}),re=e=>{N(e.target.value)},ne=(e,t)=>r=>{r?.preventDefault(),r?.stopPropagation(),b?.(e,t),Z&&L?.()},ae=(e,t)=>r=>{"Enter"===r.key&&ne(e,t)(r)},ce=(e,t)=>{const r={onKeyDown:ae(e,t)};return H||D?{...r,onMouseDown:ne(e,t)}:{...r,onClick:ne(e,t)}};return l((()=>{const e=T.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&");const t=new RegExp(e,"ig"),r=d?.filter((({label:e,value:r})=>e?.match(t)||r?.match(t)));Q(r)}),[X,d]),l((()=>{g?.(v),m?.(),N(""),v&&H&&Y.current&&setTimeout((()=>Y.current?.focus()),10)}),[v]),e(Ft,{opened:v,onClose:L,width:Se(a),offsetTop:J.offsetTop,offsetLeft:i,offsetRight:o,offsetBottom:J.offsetBottom,zIndex:h,targetRef:V,onMouseEnter:C,onMouseLeave:A,children:(v&&te||!I)&&t(Qt,{expandedHeight:J.maxHeight,children:[H&&!ee&&e($t,{children:e(ct,{ref:Y,placeholder:E,value:T,onChange:re,leftSection:O,rightSection:M,autoFocus:z})}),q?e(Xt,{children:e(Me,{category:"body1",children:"Sorry, no results were found matching your search criteria."})}):t(Yt,{className:"select_item_container",separator:x,showScrollbar:j,ref:$,children:[e(P,{viewportRef:$,items:K,itemMargin:10,itemSize:K.length,overscan:6,ref:U,children:(t,r)=>{if(t?.isSelected)return null;const n=e=>{W.current[r]=e};return y?e(Wt,{isSelected:t?.isSelected,ref:n,...ce(t,r),children:w(y,{...t,label:t.label,value:t.value,index:r,key:`${t.label}${t.value}`})},`${t.label}${t.value}+${r}`):G?e(Wt,{ref:n,...ce(t,r),children:e(ir,{...t,avatarProps:S,selected:t.value===R})},`${t.label}${t.value}+${r}`):e(Ut,{ref:n,...ce(t,r),role:"button",isSelected:t?.isSelected,children:t.label},`${t.label}${t.value}+${r}`)}}),B&&0===K.length&&e(Ut,{...H||D?{onMouseDown:ne({label:k,value:null},0),onKeyDown:ae({label:k,value:null},0)}:{onClick:ne({label:k,value:null},0),onKeyDown:ae({label:k,value:null},0)},role:"button",children:t(Kt,{children:[e(Me,{category:"body1",weight:"semiBold",children:"Add:"}),t(Me,{children:[" ",k]})]})})]}),H&&ee&&e($t,{children:e(ct,{ref:Y,placeholder:E,value:T,onChange:re,leftSection:O,rightSection:M,autoFocus:z})})]})})},sr=n.div`
1423
+ `,ar={xxs:{avatarSize:24,fontSize:10},xs:{avatarSize:32,fontSize:14},sm:{avatarSize:48,fontSize:18},md:{avatarSize:64,fontSize:22},lg:{avatarSize:88,fontSize:26},xl:{avatarSize:128,fontSize:30},xxl:{avatarSize:180,fontSize:60}},cr=r=>{const{src:n,alt:a,size:c="md",fontSize:i,backgroundColor:o="random",fontColor:s="white",objectFit:h="cover",avatarButton:v,avatarButtonBottomOffset:u=0,avatarButtonRightOffset:g=0,onClick:m}=r,[d,f]=p(null),[_,w]=p(!1),b=((e="")=>{const t=e?.trim()?.split(" ");if(t.length>1){const[e,...r]=t;return`${e[0]}${r?.pop()?.[0]}`.toUpperCase()}const r=t[0];return r[0]?.toUpperCase()||""})(a),y="random"!==o?o:function(e){let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);let r="#";for(let e=0;e<3;e++)r+=("00"+(t>>8*e&255).toString(16)).substr(-2);return r}(a),x=c in ar?ar[c]:{avatarSize:c,fontSize:i},Z=()=>w(!0),O=()=>w(!1);return l((()=>{if(n){const e=new Image;e.src=n,e.onload=Z,e.onerror=O,f(e)}else O()}),[n]),t(Jt,{children:[e(er,{background:y,size:Se(x.avatarSize),onClick:()=>{m?.(r)},children:_?e(tr,{src:d?.currentSrc,alt:a,objectFit:h,loading:"lazy"}):e(rr,{fontSize:Se(i||x.fontSize),fontColor:s,children:b})}),e(nr,{rightOffset:Se(g,"0px"),bottomOffset:Se(u,"0px"),children:v})]})},ir=r=>{const{label:n="",image:a="",selected:c,avatarProps:i}=r;return t(qt,{selected:c,children:[e(cr,{src:a,alt:n,size:"xs",...i}),e(Gt,{category:"body2",weight:"medium",color:L.grey.grey900,children:r.label}),c&&e(at,{icon:"check",width:20,height:20,fill:L.green.green400})]})},or=r=>{const{maxHeight:n=297.5,width:a=350,offsetTop:c="60px",offsetLeft:i,offsetRight:o,offsetBottom:s="0px",zIndex:h,opened:v,onChange:g,onDropdownVisibilityChange:m,data:d=[],onSelect:y,itemComponent:x,showSeparator:Z=!0,collapseOnSelect:O=!0,inputLeftSection:M,inputRightSection:E,searchPlaceholder:H="Search",searchable:j=!0,showScrollbar:V=!0,targetRef:C,onMouseEnter:A,onMouseLeave:L,onClose:z,searchAutofocus:B=!0,addable:k,selectInputValue:S,avatarProps:R,selectedValue:D,withInput:I,isDynamicOptionPosition:T=!1}=r,[N,F]=p(""),[Q,$]=p([]),Y=u(null),U=u(null),W=u(null),X=u([]),K=Ct(N,400),q=N?Q:d,G=w((()=>N&&0===Q.length||!k&&!j&&0===d.length),[N,Q,d,k,j]),J=q.some((e=>"image"in e)),{currentOffsets:ee,isOpeningUpward:te,renderDropDown:re}=(({isDynamicOptionPosition:e=!1,targetRef:t,opened:r,maxHeight:n=297,offsetTop:a="60px",offsetBottom:c="0px",searchable:i=!0,dataLength:o=0,itemHeight:s=50})=>{const[l,h]=p(!1),[v,u]=p({offsetTop:a,offsetBottom:c,maxHeight:n}),g=f((()=>{if(!e||!t?.current||!r)return;const c=window.innerHeight,l=t.current.getBoundingClientRect(),v=l.y,p=c-v,g=Math.min(n+(i?60:0),o*s+(i?60:0)),m=Math.min(200,g);let d;d=v>c/2?{offsetTop:"",offsetBottom:l.height-(i?14:0)+"px",maxHeight:Math.min(n,v)}:p>=m?{offsetTop:a,offsetBottom:"",maxHeight:Math.min(n,p)}:{offsetTop:"",offsetBottom:`${l.height+10}px`,maxHeight:Math.min(n,v)},u(d),h(!0)}),[e,t,r,n,a,i,o,s]);_((()=>{if(!r||!e)return;r&&g();const t=()=>{g()},i=()=>{g()};return window.addEventListener("resize",t),window.addEventListener("scroll",i),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",i),h(!1),u({offsetTop:a,offsetBottom:c,maxHeight:n})}}),[r,e,o,n,t,i,s,g]);const m=e?v:{offsetTop:a,offsetBottom:c,maxHeight:n};return{currentOffsets:m,isOpeningUpward:e&&m.offsetBottom&&!m.offsetTop,calculateDropdownPosition:g,renderDropDown:l}})({isDynamicOptionPosition:T,targetRef:C,opened:v,maxHeight:n,offsetTop:c,offsetBottom:s,searchable:j,dataLength:q.length,itemHeight:50}),ne=e=>{F(e.target.value)},ae=(e,t)=>r=>{r?.preventDefault(),r?.stopPropagation(),y?.(e,t),O&&z?.()},ce=(e,t)=>r=>{"Enter"===r.key&&ae(e,t)(r)},ie=(e,t)=>{const r={onKeyDown:ce(e,t)};return j||I?{...r,onMouseDown:ae(e,t)}:{...r,onClick:ae(e,t)}};return l((()=>{const e=N.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&");const t=new RegExp(e,"ig"),r=d?.filter((({label:e,value:r})=>e?.match(t)||r?.match(t)));$(r)}),[K,d]),l((()=>{g?.(v),m?.(),F(""),v&&j&&U.current&&setTimeout((()=>U.current?.focus()),10)}),[v]),e(Ft,{opened:v,onClose:z,width:Se(a),offsetTop:ee.offsetTop,offsetLeft:i,offsetRight:o,offsetBottom:ee.offsetBottom,zIndex:h,targetRef:C,onMouseEnter:A,onMouseLeave:L,children:(v&&re||!T)&&t(Qt,{expandedHeight:ee.maxHeight,children:[j&&!te&&e($t,{children:e(ct,{ref:U,placeholder:H,value:N,onChange:ne,leftSection:M,rightSection:E,autoFocus:B})}),G?e(Xt,{children:e(Me,{category:"body1",children:"Sorry, no results were found matching your search criteria."})}):t(Yt,{className:"select_item_container",separator:Z,showScrollbar:V,ref:Y,children:[e(P,{viewportRef:Y,items:q,itemMargin:10,itemSize:q.length,overscan:6,ref:W,children:(t,r)=>{if(t?.isSelected)return null;const n=e=>{X.current[r]=e};return x?e(Wt,{isSelected:t?.isSelected,ref:n,...ie(t,r),children:b(x,{...t,label:t.label,value:t.value,index:r,key:`${t.label}${t.value}`})},`${t.label}${t.value}+${r}`):J?e(Wt,{ref:n,...ie(t,r),children:e(ir,{...t,avatarProps:R,selected:t.value===D})},`${t.label}${t.value}+${r}`):e(Ut,{ref:n,...ie(t,r),role:"button",isSelected:t?.isSelected,children:t.label},`${t.label}${t.value}+${r}`)}}),k&&0===q.length&&e(Ut,{...j||I?{onMouseDown:ae({label:S,value:null},0),onKeyDown:ce({label:S,value:null},0)}:{onClick:ae({label:S,value:null},0),onKeyDown:ce({label:S,value:null},0)},role:"button",children:t(Kt,{children:[e(Me,{category:"body1",weight:"semiBold",children:"Add:"}),t(Me,{children:[" ",S]})]})})]}),j&&te&&e($t,{children:e(ct,{ref:U,placeholder:H,value:N,onChange:ne,leftSection:M,rightSection:E,autoFocus:B})})]})})},sr=n.div`
1424
1424
  position: relative;
1425
1425
  pointer-events: ${e=>e.disabled?"none":"auto"};
1426
1426
  `,lr=n.div`
@@ -1520,7 +1520,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1520
1520
  font-weight: 400;
1521
1521
  line-height: 1.375rem;
1522
1522
  padding: 0rem 0.5rem;
1523
- `,dr=t=>e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"button",onClick:t.onClick,children:t.isFavourite?e("path",{d:"M9.99996 14.3917L15.15 17.5L13.7833 11.6417L18.3333 7.7L12.3416 7.19167L9.99996 1.66667L7.65829 7.19167L1.66663 7.7L6.21663 11.6417L4.84996 17.5L9.99996 14.3917Z",fill:L.yellow.yellow400}):e("path",{d:"M18.3332 7.69984L12.3415 7.18317L9.99984 1.6665L7.65817 7.1915L1.6665 7.69984L6.2165 11.6415L4.84984 17.4998L9.99984 14.3915L15.1498 17.4998L13.7915 11.6415L18.3332 7.69984ZM9.99984 12.8332L6.8665 14.7248L7.69984 11.1582L4.93317 8.75817L8.58317 8.4415L9.99984 5.08317L11.4248 8.44984L15.0748 8.7665L12.3082 11.1665L13.1415 14.7332L9.99984 12.8332Z",fill:L.grey.grey500})}),fr=()=>e(gr,{children:"..."}),_r=()=>e(mr,{children:"/"}),wr=(e,t)=>e===t.length-1,br=({name:r,isFavourite:n,isLast:a,showFavoriteButton:c=!1,onClick:i,onFavoriteClick:o})=>t(gr,{isLast:a,onClick:i,children:[r," ",c&&a&&e(dr,{isFavourite:n,onClick:o})," "]}),yr=({crumbs:r,showFavoriteButton:n,onCrumbClick:a,onFavoriteClick:c})=>{const i=b((()=>r.length>4?[r.slice(0,2),"REST",r.slice(-2)].flat():r),[r]);return e(ur,{children:i.map(((r,i,s)=>"string"==typeof r?t(o.Fragment,{children:[e(fr,{}),e(_r,{})]},i):t(o.Fragment,{children:[e(br,{name:r.name,path:r.path,isFavourite:r.isFavourite,isLast:wr(i,s),onClick:()=>a(r),onFavoriteClick:()=>c(r),showFavoriteButton:n}),!wr(i,s)&&e(_r,{})]},r.path)))})},xr=n.div`
1523
+ `,dr=t=>e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"button",onClick:t.onClick,children:t.isFavourite?e("path",{d:"M9.99996 14.3917L15.15 17.5L13.7833 11.6417L18.3333 7.7L12.3416 7.19167L9.99996 1.66667L7.65829 7.19167L1.66663 7.7L6.21663 11.6417L4.84996 17.5L9.99996 14.3917Z",fill:L.yellow.yellow400}):e("path",{d:"M18.3332 7.69984L12.3415 7.18317L9.99984 1.6665L7.65817 7.1915L1.6665 7.69984L6.2165 11.6415L4.84984 17.4998L9.99984 14.3915L15.1498 17.4998L13.7915 11.6415L18.3332 7.69984ZM9.99984 12.8332L6.8665 14.7248L7.69984 11.1582L4.93317 8.75817L8.58317 8.4415L9.99984 5.08317L11.4248 8.44984L15.0748 8.7665L12.3082 11.1665L13.1415 14.7332L9.99984 12.8332Z",fill:L.grey.grey500})}),fr=()=>e(gr,{children:"..."}),_r=()=>e(mr,{children:"/"}),wr=(e,t)=>e===t.length-1,br=({name:r,isFavourite:n,isLast:a,showFavoriteButton:c=!1,onClick:i,onFavoriteClick:o})=>t(gr,{isLast:a,onClick:i,children:[r," ",c&&a&&e(dr,{isFavourite:n,onClick:o})," "]}),yr=({crumbs:r,showFavoriteButton:n,onCrumbClick:a,onFavoriteClick:c})=>{const i=w((()=>r.length>4?[r.slice(0,2),"REST",r.slice(-2)].flat():r),[r]);return e(ur,{children:i.map(((r,i,s)=>"string"==typeof r?t(o.Fragment,{children:[e(fr,{}),e(_r,{})]},i):t(o.Fragment,{children:[e(br,{name:r.name,path:r.path,isFavourite:r.isFavourite,isLast:wr(i,s),onClick:()=>a(r),onFavoriteClick:()=>c(r),showFavoriteButton:n}),!wr(i,s)&&e(_r,{})]},r.path)))})},xr=n.div`
1524
1524
  display: flex;
1525
1525
  position: relative;
1526
1526
  height: ${e=>e.height};
@@ -2038,7 +2038,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2038
2038
  cursor: pointer;
2039
2039
  display: grid;
2040
2040
  place-items: center;
2041
- `,xn=e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M6.175 7.15833L10 10.975L13.825 7.15833L15 8.33333L10 13.3333L5 8.33333L6.175 7.15833Z",fill:L.grey.grey400})}),Zn=e("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:L.grey.grey400})}),On=h(((t,r)=>{const{width:n="100%",label:a,placeholder:c,allowInput:i=!0,onSelect:o,onInputChange:s,clearable:h,offsetTop:v,required:u,errorMessage:g,name:m,selectedValue:d,inputProps:f,onClear:_,addable:w,isDynamicOptionPosition:y,...x}=t,[Z,O]=p(!1),[M,E]=p(""),[H,P]=p(null),j=()=>{E(""),P(null),o?.(null),_?.()},V=(e,t)=>{P(e),o?.(e,t)},C=h&&H?e(yn,{onClick:j,children:Zn}):e(bn,{isOpened:Z,children:xn}),A=b((()=>(e=>{const t={};return e.reduce(((e,r)=>(-1!==e.findIndex((e=>e.label===r.label))?(t[r.label]++,e.push({...r,label:`${r.label} (${t[r.label]})`})):(e.push(r),t[r.label]=1),e)),[])})((i&&!H?x.data?.filter((e=>e.label.toLowerCase().includes(M.toLowerCase())||e.value.toLowerCase().includes(M.toLowerCase()))):x.data).reduce(((e,t)=>(-1===e.findIndex((e=>e.value===t.value))&&e.push(t),e)),[]))),[M,x.data,i]),L=(e,t)=>{E(e.label),V(e,t)};return l((()=>{E(x.value||"")}),[x.value]),l((()=>{const e=A.findIndex((e=>e.value===d));-1!==e&&L(A[e],e),0===d?.length&&j()}),[d]),e(wn,{width:`${n}`,disabled:f?.disabled,children:e(hr,{disabled:f?.disabled,offsetTop:v,opened:Z,onChange:e=>O(e),toggleOnTargetClick:!i,width:"100%",...x,searchable:!1,addable:w,onSelect:L,data:A,selectInputValue:M,withInput:!0,isDynamicOptionPosition:y,children:e(ct,{label:a,value:M,onChange:e=>{H&&V(null),E(e.target.value),s?.(e)},readOnly:!i,placeholder:c,rightSection:C,required:u,onBlur:e=>{setTimeout((()=>{e.relatedTarget&&e.relatedTarget.closest(".dropdown-selector")||O(!1)}),250)},onClick:e=>e.stopPropagation(),onFocus:()=>O(!0),error:!!g,errorMessage:g,name:m,...f,ref:r})})})}));var Mn={};function En(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 Hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?En(Object(r),!0).forEach((function(t){Pn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):En(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jn(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,a,c=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(c.push(n.value),!t||c.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vn(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)?Vn(e,t):void 0}}(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 Vn(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 Cn=h((function(e,t){var r=e.element,n=e.popper,a=e.position,c=void 0===a?"bottom-center":a,i=e.containerStyle,s=e.containerClassName,h=void 0===s?"":s,v=e.arrow,p=e.arrowStyle,m=void 0===p?{}:p,d=e.arrowClassName,_=void 0===d?"":d,w=e.fixMainPosition,x=e.fixRelativePosition,Z=e.offsetY,O=e.offsetX,M=e.animations,E=e.zIndex,P=void 0===E?0:E,j=e.popperShadow,V=e.onChange,C=e.active,A=void 0===C||C,L=e.portal,z=e.portalTarget,B="undefined"!=typeof window,k=B&&z instanceof HTMLElement,S=!0===v,R=n&&!0===A,D=u(),I=u(),T=u(),N=u(),F=b((function(){return{position:c,fixMainPosition:w,fixRelativePosition:x,offsetY:Z,offsetX:O,defaultArrow:S,animations:M,zIndex:P,onChange:V}}),[c,w,x,Z,O,S,M,V,P]),Q=f((function(){T.current&&(T.current.style.transition=""),I.current&&(I.current.parentNode.style.transition="")}),[]),$={element:Hn({display:"inline-block",height:"max-content"},i),arrow:Hn({visibility:"hidden",left:"0",top:"0",position:"absolute"},m),popper:{position:"absolute",left:"0",top:"0",willChange:"transform",visibility:"hidden",zIndex:P}};B&&!N.current&&(N.current=document.createElement("div"),N.current.data={portal:L,isValidPortalTarget:k}),l((function(){if(L&&!k){var e=N.current;return document.body.appendChild(e),function(){return document.body.removeChild(e)}}}),[L,k]),l((function(){if(!R)return Q(),I.current.parentNode.style.visibility="hidden",void(T.current&&(T.current.style.visibility="hidden"));function e(e){e&&"resize"!==e.type&&!e.target.contains(D.current)||(e&&Q(),An(D,I,T,F,e))}return e(),document.addEventListener("scroll",e,!0),window.addEventListener("resize",e),function(){document.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}}),[R,F,Q]),l((function(){var e={portal:L,isValidPortalTarget:k},t=N.current.data;JSON.stringify(e)!==JSON.stringify(t)&&(N.current.data=e,D.current.refreshPosition())}),[L,k]);var Y=o.createElement(o.Fragment,null,function(){if(!v||!R)return null;var e=o.createElement("div",{ref:T,style:$.arrow}),t=y(v)?{children:v}:{className:"ep-arrow ".concat(j?"ep-shadow":""," ").concat(_)};return g(e,t)}(),o.createElement("div",{className:j?"ep-popper-shadow":"",style:$.popper},o.createElement("div",{ref:I},n)));return o.createElement("div",{ref:function(e){if(e&&(e.removeTransition=Q,e.refreshPosition=function(){return setTimeout((function(){return An(D,I,T,F,{})}),10)}),D.current=e,t instanceof Function)return t(e);t&&(t.current=e)},className:h,style:$.element},r,L&&B?H(Y,k?z:N.current):Y)}));function An(e,t,r,n,a){var c=n.position,i=n.fixMainPosition,o=n.fixRelativePosition,s=n.offsetY,l=void 0===s?0:s,h=n.offsetX,v=void 0===h?0:h,p=n.defaultArrow,u=n.animations,g=void 0===u?[]:u,m=n.zIndex,d=n.onChange;if(e.current&&t.current){var f,_,w,b,y=(_=void 0!==window.pageXOffset,w="CSS1Compat"===(document.compatMode||""),{scrollLeft:_?window.pageXOffset:w?document.documentElement.scrollLeft:document.body.scrollLeft,scrollTop:_?window.pageYOffset:w?document.documentElement.scrollTop:document.body.scrollTop}),x=y.scrollLeft,Z=y.scrollTop,O=Ln(e.current,x,Z),M=O.top,E=O.left,H=O.height,P=O.width,j=O.right,V=O.bottom,C=Ln(t.current,x,Z),A=C.top,L=C.left,z=C.height,B=C.width,k=document.documentElement,S=k.clientHeight,R=k.clientWidth,D=t.current.parentNode,I=function(e){if(!e)return[0,0];var t=jn((e.style.transform.match(/translate\((.*?)px,\s(.*?)px\)/)||[]).map((function(e){return Number(e)})),3),r=t[1],n=void 0===r?0:r,a=t[2];return[n,void 0===a?0:a]}(D),T=jn(I,2),N=T[0],F=T[1],Q=function(e){var t=jn(e.split("-"),2),r=t[0],n=void 0===r?"bottom":r,a=t[1],c=void 0===a?"center":a;"auto"===n&&(n="bottom"),"auto"===c&&(c="center");var i="top"===n||"bottom"===n,o="left"===n||"right"===n;return o&&("start"===c&&(c="top"),"end"===c&&(c="bottom")),i&&("start"===c&&(c="left"),"end"===c&&(c="right")),[n,c,i,o]}(c),$=jn(Q,4),Y=$[0],U=$[1],W=$[2],X=$[3],K=Y,q=function(e,t){return"translate(".concat(e,"px, ").concat(t,"px)")},G=P-B,J=H-z,ee="left"===U?0:"right"===U?G:G/2,te=G-ee,re="top"===U?0:"bottom"===U?J:J/2,ne=J-re,ae=E-L+N,ce=M-A+F,ie=0,oe=0,se=zn(e.current),le=[],he=r.current,ve=Ln(he,x,Z)||{},pe=ve.height,ue=void 0===pe?0:pe,ge=ve.width,me=void 0===ge?0:ge,de=ae,fe=ce,_e={top:"bottom",bottom:"top",left:"right",right:"left"};for(W&&(ae+=ee,ce+="top"===Y?-z:H,p&&(ue=11,me=20)),X&&(ae+="left"===Y?-B:P,ce+=re,p&&(ue=20,me=11));se;)le.push(se),be(Ln(se,x,Z)),se=zn(se.parentNode);be({top:Z,bottom:Z+S,left:x,right:x+R,height:S,width:R}),W&&(ce+="bottom"===K?l:-l),X&&(ae+="right"===K?v:-v),ae-=ie,ce-=oe,f=_e[K],he&&(W&&((b=P<B)?de+=P/2:de=ae+B/2,de-=me/2,"bottom"===K&&(fe=ce,ce+=ue),"top"===K&&(fe=(ce-=ue)+z),ie<0&&ie-ee<0&&(b?de+=(ee-ie)/2:P-ee+ie<B&&(de+=(P-ee+ie-B)/2)),ie>0&&ie+te>0&&(b?de-=(ie+te)/2:P-ie-te<B&&(de-=(P-ie-te-B)/2))),X&&((b=H<z)?fe+=H/2:fe=ce+z/2,fe-=ue/2,"left"===K&&(de=(ae-=me)+B),"right"===K&&(de=ae,ae+=me),oe<0&&oe-re<0&&(b?fe+=(re-oe)/2:H-re+oe<z&&(fe+=(H-re+oe-z)/2)),oe>0&&oe+ne>0&&(b?fe-=(oe+ne)/2:H-oe-ne<z&&(fe-=(H-oe-ne-z)/2))),he.setAttribute("direction",f),he.style.height=ue+"px",he.style.width=me+"px",he.style.transform=q(de,fe),he.style.visibility="visible",he.style.zIndex=m+1),D.style.transform=q(ae,ce);var we={popper:{top:ce,bottom:ce+z,left:ae,right:ae+B,height:z,width:B},element:{top:M,bottom:V,left:E,right:j,height:H,width:P},arrow:{top:fe,bottom:fe+ue,left:de,right:de+me,height:ue,width:me,direction:f},position:K+"-"+(0!==ie?"auto":U),scroll:{scrollLeft:x,scrollTop:Z},scrollableParents:le,event:a};a||g.forEach((function(e){e({popper:D,arrow:he,data:Hn(Hn({},we),{},{getTransform:q,mirror:_e})})})),D.style.visibility="visible","function"==typeof d&&d(we)}function be(e){var t=e.top,r=e.bottom,n=e.left,a=e.right,c=e.height,s=e.width;if(W){var h=Math.round(M-t+H/2),p=Math.round(c/2);i||(M-(z+l+ue)<t&&h<=p&&"top"===K?(ce+=z+H,K="bottom"):V+z+l+ue>c+t&&h>=p&&"bottom"===K&&(ce-=z+H,K="top")),o||(E+ee<n&&(ie=Bn(j-me>n?E+ee-n:-P+ee+me,ie)),j-te>a&&(ie=Bn(E+me<a?j-te-a:P-te-me,ie)))}if(X){var u=Math.round(E-n+P/2),g=Math.round(s/2);i||(E-(B+v+me)<n&&u<g&&"left"===K?(ae+=P+B,K="right"):j+B+v+me>a&&u>g&&"right"===K&&(ae-=P+B,K="left")),o||(M+re<t&&(oe=Bn(V-ue>t?M+re-t:-H+re+ue,oe)),V-ne>r&&(oe=Bn(M+ue<r?V-ne-r:H-ne-ue,oe)))}}}function Ln(e,t,r){if(e){var n=e.getBoundingClientRect(),a=n.top,c=n.left,i=n.width,o=n.height,s=a+r,l=c+t;return{top:s,bottom:s+o,left:l,right:l+i,width:i,height:o}}}function zn(e){if(e&&"HTML"!==e.tagName){var t=window.getComputedStyle(e),r=function(e){return["auto","scroll"].includes(e)};return e.clientHeight<e.scrollHeight&&r(t.overflowX)||e.clientWidth<e.scrollWidth&&r(t.overflowY)?e:zn(e.parentNode)}}function Bn(e,t){return Math.round(Math.abs(e))>Math.round(Math.abs(t))?e:t}var kn=Bt(Object.freeze({__proto__:null,default:Cn}));function Sn(e){return(Sn="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 Rn(e){return function(e){if(Array.isArray(e))return Un(e)}(e)||Dn(e)||Yn(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 Dn(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function In(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Yn(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,c=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw c}}}}function Tn(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 Nn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(r),!0).forEach((function(t){Fn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fn(e,t,r){return(t=Xn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qn(e,t){return Wn(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||Yn(e,t)||$n()}function $n(){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 Yn(e,t){if(e){if("string"==typeof e)return Un(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)?Un(e,t):void 0}}function Un(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 Wn(e){if(Array.isArray(e))return e}function Xn(e){var t=function(e,t){if("object"!==Sn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Sn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Sn(t)?t:String(t)}function Kn(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function qn(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,Jn(e,t,"get"))}function Gn(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,Jn(e,t,"set"),r),r}function Jn(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var ea={name:"gregorian_en",months:[["January","Jan"],["February","Feb"],["March","Mar"],["April","Apr"],["May","May"],["June","Jun"],["July","Jul"],["August","Aug"],["September","Sep"],["October","Oct"],["November","Nov"],["December","Dec"]],weekDays:[["Saturday","Sat"],["Sunday","Sun"],["Monday","Mon"],["Tuesday","Tue"],["Wednesday","Wed"],["Thursday","Thu"],["Friday","Fri"]],digits:["0","1","2","3","4","5","6","7","8","9"],meridiems:[["AM","am"],["PM","pm"]]},ta={name:"gregorian",startYear:1,yearLength:365,epoch:1721424,century:20,weekStartDayIndex:1,getMonthLengths:function(e){return[31,e?29:28,31,30,31,30,31,31,30,31,30,31]},isLeap:function(e){return e%4==0&&e%100!=0||e%400==0},getLeaps:function(e){if(0!==e){for(var t=e>0?1:-1,r=[];e>0?t<=e:e<=t;)this.isLeap(t)&&r.push(t),e>0?t++:t--;return r}},getDayOfYear:function(e){for(var t=e.year,r=e.month,n=e.day,a=this.getMonthLengths(this.isLeap(t)),c=0;c<r.index;c++)n+=a[c];return n},getAllDays:function(e){var t=e.year;return this.yearLength*(t-1)+this.leapsLength(t)+this.getDayOfYear(e)},leapsLength:function(e){return((e-1)/4|0)+(-(e-1)/100|0)+((e-1)/400|0)},guessYear:function(e,t){return~~(e/365.24)+(t>0?1:-1)}};function ra(e){return e&&e.constructor===Object}function na(e){if(!isNaN(e))return parseInt(e)}function aa(e){return Array.isArray(e)}function ca(e,t,r){return void 0===e||e<t||e>r}var ia=new WeakMap,oa=new WeakMap,sa=new WeakMap,la=new WeakMap,ha=new WeakMap,va=new WeakMap,pa=new WeakMap,ua=new WeakMap,ga=new WeakMap,ma=new WeakMap,da=new WeakMap,fa=new WeakMap,_a=new WeakMap,wa=new WeakMap,ba=new WeakMap,ya=new WeakMap,xa=new WeakMap,Za=new WeakMap,Oa=new WeakMap,Ma=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Kn(this,ia,{writable:!0,value:void 0}),Kn(this,oa,{writable:!0,value:void 0}),Kn(this,sa,{writable:!0,value:void 0}),Kn(this,la,{writable:!0,value:void 0}),Kn(this,ha,{writable:!0,value:void 0}),Kn(this,va,{writable:!0,value:void 0}),Kn(this,pa,{writable:!0,value:void 0}),Kn(this,ua,{writable:!0,value:void 0}),Kn(this,ga,{writable:!0,value:ea}),Kn(this,ma,{writable:!0,value:ta}),Kn(this,da,{writable:!0,value:!1}),Kn(this,fa,{writable:!0,value:{}}),Kn(this,_a,{writable:!0,value:/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d\.\d\d\dZ$/}),Kn(this,wa,{writable:!0,value:[]}),Kn(this,ba,{writable:!0,value:!0}),Kn(this,ya,{writable:!0,value:function(e,t){switch(e){case"YYYY":return["year",t];case"YY":return["year","".concat(qn(r,ma).century).concat(t)];case"MMMM":case"MMM":return["month",r.months.findIndex((function(e){var r=e.name,n=e.shortName;return new RegExp(t,"i").test(r+n)}))+1];case"MM":case"M":return["month",t];case"DD":case"D":return["day",t];case"HH":case"H":return["hour",t];case"hh":case"h":var n=na(t);return["hour",n>12?n-12:n];case"mm":case"m":return["minute",t];case"ss":case"s":return["second",t];case"SSS":case"SS":case"S":return["millisecond",t];default:return[]}}}),Kn(this,xa,{writable:!0,value:function(){return 0===qn(r,ia)&&0!==qn(r,ma).startYear}}),Kn(this,Za,{writable:!0,value:function(){if(qn(r,ba)&&r.isValid){var e=Math.floor,t=function(t,r){return[(c=t,(c<0?-1:1)*Math.abs(e(t/r))),(n=t,a=r,(n<0&&-0!==e(n%a)?a:0)+e(t%r))];var n,a,c},n=function(){if(qn(r,oa)<0||qn(r,oa)>11){var e=qn(r,oa)<0?-1:1,n=Qn(t(qn(r,oa),12),2),a=n[0],c=n[1];Gn(r,ia,qn(r,ia)+a),Gn(r,oa,c),qn(r,xa).call(r)&&Gn(r,ia,e)}};for(Gn(r,ba,!1),[["millisecond","second",1e3],["second","minute",60],["minute","hour",60],["hour","day",24]].forEach((function(e){var n=Qn(e,3),a=n[0],c=n[1],i=n[2];if(function(e,t){return e>=t||e<0}(r[a],i)){var o=Qn(t(r[a],i),2),s=o[0],l=o[1];r[c]+=s,r[a]=l}})),Gn(r,ba,!0),n();qn(r,sa)<-qn(r,ma).yearLength||qn(r,sa)>qn(r,ma).yearLength;){if(qn(r,oa)>0){for(var a=qn(r,ma).getMonthLengths(r.isLeap),c=0;c<qn(r,oa);c++)Gn(r,sa,qn(r,sa)+a[c]);Gn(r,oa,0)}var i=r.isLeap?r.calendar.yearLength+1:r.calendar.yearLength;Gn(r,sa,qn(r,sa)+i*(qn(r,sa)<0?1:-1)),Gn(r,ia,qn(r,ia)+(qn(r,sa)<0?-1:1))}for(;;){var o;for(n();qn(r,sa)<1;)Gn(r,oa,qn(r,oa)-1),n(),Gn(r,sa,r.month.length+qn(r,sa));if(qn(r,sa)<=r.month.length||isNaN(qn(r,sa)))break;Gn(r,sa,qn(r,sa)-r.month.length),Gn(r,oa,(o=qn(r,oa),++o))}qn(r,la)||Gn(r,la,0),qn(r,ha)||Gn(r,ha,0),qn(r,va)||Gn(r,va,0),qn(r,pa)||Gn(r,pa,0)}}}),Kn(this,Oa,{writable:!0,value:function(){return(qn(r,fa).weekDays||qn(r,ga).weekDays).map((function(e,t){var n=Qn(e,2),a=n[0],c=n[1],i=t-r.weekStartDayIndex;return i<0&&(i+=7),{name:a,shortName:c,index:i,number:i+1,toString:function(){return this.number.toString()},valueOf:function(){return this.number}}}))}});var n=ra(t)?Nn({},t):t,a=!0;if(n&&"boolean"!=typeof n||(n={date:new Date}),ra(n)||(n={date:n}),0!==Object.keys(n).length){for(var c in ra(n.calendar)&&Gn(this,ma,n.calendar),ra(n.locale)&&Gn(this,ga,n.locale),isNaN(n.year)&&isNaN(n.month)&&isNaN(n.day)&&!n.date&&(n.date=new Date),n.date&&("string"==typeof n.date&&n.format&&Gn(this,ua,n.format),this.setDate(n.date),n.calendar&&this.convert(n.calendar),a=!1),delete n.calendar,delete n.locale,delete n.date,n)this.set(c,n[c]);qn(this,xa).call(this)&&Gn(this,ia,-1),a&&qn(this,Za).call(this)}}var t,r;return t=e,r=[{key:"parse",value:function(e){if(!e)return this;var t,r,n=qn(this,ua),a=qn(this,ga).digits,c=In(a);try{for(c.s();!(t=c.n()).done;){var i=t.value;e=e.replace(new RegExp(i,"g"),a.indexOf(i))}}catch(e){c.e(e)}finally{c.f()}if(n)for(var o=n.split(/[^\w\u0600-\u06FF]/),s=e.split(/[^\w\u0600-\u06FF]/),l=0;l<o.length;l++)this.set.apply(this,Rn(qn(this,ya).call(this,o[l],s[l])));else{var h=(Wn(r=e.match(/(-?\d{2,4})?\W?([A-z]{3,9}|\d{1,2})?\W?(\d{1,2})?\W?(\d{1,2})?\W?(\d{1,2})?\W?(\d{1,2})?\W?(\d{1,3})?\W?(am|pm)?/))||Dn(r)||Yn(r)||$n()).slice(1),v=h[1];v&&(v=/\d+/.test(v)?na(v)-1:this.months.findIndex((function(e){return new RegExp(v,"i").test(e.name)}))),h[1]=v;var p=Qn(h.map(na),7),u=p[0],g=p[1],m=p[2],d=p[3],f=p[4],_=p[5],w=p[6];Gn(this,ia,u),Gn(this,oa,g),Gn(this,sa,m),Gn(this,la,d),Gn(this,ha,f),Gn(this,va,_),Gn(this,pa,w)}var b=Qn(qn(this,ga).meridiems[1],2),y=b[0],x=b[1];return qn(this,la)<12&&(e.includes(y)||e.includes(x))&&Gn(this,la,qn(this,la)+12),qn(this,Za).call(this),this}},{key:"convert",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ta,r=arguments.length>1?arguments[1]:void 0;if(ra(r)&&Gn(this,ga,r),!ra(t)||t.name===qn(this,ma).name)return this;var n=this.toJulianDay()-t.epoch,a=new e({calendar:t,year:t.guessYear(n,qn(this,ia)),month:1,day:1});return a.day+=n-a.toDays(),Gn(this,ia,a.year),Gn(this,oa,a.month.index),Gn(this,sa,a.day),Gn(this,ma,t),this}},{key:"format",value:function(e,t){if(!this.isValid||e&&"string"!=typeof e)return"";e||(e=qn(this,ua)||"YYYY/MM/DD"),aa(t)||(t=[]),t=(t=t.concat(qn(this,wa))).filter((function(e){return"string"==typeof e||(console.warn("type of all items in the ignore list must be string, found",Sn(e)),!1)})).map((function(e){return e.replace(/[*/+\-()[\]{}\s$^]/g,(function(e){return"\\"+e}))}));var r,n=new RegExp("".concat(t.join("|")).concat(t.length>0?"|":"","YYYY|YY|MMMM|MMM|MM|M|WW|W|DDDD|DDD|DD|D|dddd|ddd|dd|d|HH|H|hh|h|mm|m|ss|s|SSS|SS|S|A|a|."),"g"),a="",c=In(e.match(n)||[]);try{for(c.s();!(r=c.n()).done;){var i=r.value,o=this.getValue(i);a+=t.includes(i)?i:0===o?o:o||i}}catch(e){c.e(e)}finally{c.f()}var s=this.digits;return a.replace(/[0-9]/g,(function(e){return s[e]}))}},{key:"getProperty",value:function(e){return this.getValue(e)}},{key:"getValue",value:function(e){var t=function(e){return e<10?"0"+e:e};switch(e){case"YYYY":return this.year;case"YY":return this.year.toString().substring(2,4);case"MMMM":return this.month.name;case"MMM":return this.month.shortName;case"MM":return t(this.month.number);case"M":return this.month.number;case"WW":return t(this.weekOfYear);case"W":return this.weekOfYear;case"DDDD":case"DDD":return this.dayOfYear;case"DD":return t(this.day);case"D":return this.day;case"HH":return t(this.hour);case"H":return this.hour;case"dddd":return this.weekDay.name;case"ddd":return this.weekDay.shortName;case"dd":return t(this.weekDay.number);case"d":return this.weekDay.number;case"hh":return t(this.hour>12?this.hour-12:this.hour||12);case"h":return this.hour>12?this.hour-12:this.hour||12;case"mm":return t(this.minute);case"m":return this.minute;case"ss":return t(this.second);case"s":return this.second;case"SSS":return qn(this,pa)<10?"00".concat(qn(this,pa)):qn(this,pa)<100?"0".concat(qn(this,pa)):qn(this,pa);case"SS":return qn(this,pa)<10?"00":qn(this,pa)<100?("0"+qn(this,pa)).substring(2,0):qn(this,pa).toString().substring(0,2);case"S":return qn(this,pa)<10||qn(this,pa)<100?"0":qn(this,pa).toString().substring(0,1);case"a":return this.hour>=12?qn(this,ga).meridiems[1][1]:qn(this,ga).meridiems[0][1];case"A":return this.hour>=12?qn(this,ga).meridiems[1][0]:qn(this,ga).meridiems[0][0];default:return""}}},{key:"setYear",value:function(e){return this.year=e,this}},{key:"setMonths",value:function(e){return this.months=e,this}},{key:"setMonth",value:function(e){return this.month=e,this}},{key:"setWeekDays",value:function(e){return this.weekDays=e,this}},{key:"setDigits",value:function(e){return this.digits=e,this}},{key:"setDay",value:function(e){return this.day=e,this}},{key:"setHour",value:function(e){return this.hour=e,this}},{key:"setMinute",value:function(e){return this.minute=e,this}},{key:"setSecond",value:function(e){return this.second=e,this}},{key:"setMillisecond",value:function(e){return this.millisecond=e,this}},{key:"setFormat",value:function(e){return Gn(this,ua,e),this}},{key:"setLocale",value:function(e){return this.locale=e,this}},{key:"setCalendar",value:function(e){return this.calendar=e,this}},{key:"setDate",value:function(t){if("string"==typeof t){if(!qn(this,_a).test(t))return this.parse(t);t=new Date(t)}return"number"==typeof t&&(t=new Date(t)),t instanceof Date&&(Gn(this,ma,ta),Gn(this,ia,t.getFullYear()),Gn(this,oa,t.getMonth()),Gn(this,sa,t.getDate()),Gn(this,la,t.getHours()),Gn(this,ha,t.getMinutes()),Gn(this,va,t.getSeconds()),Gn(this,pa,t.getMilliseconds()),Gn(this,da,!1)),t instanceof e&&(Gn(this,ia,t.year),Gn(this,oa,t.month.index),Gn(this,sa,t.day),Gn(this,la,t.hour),Gn(this,ha,t.minute),Gn(this,va,t.second),Gn(this,pa,t.millisecond),Gn(this,ga,t.locale),Gn(this,ua,t._format),Gn(this,ma,t.calendar),Gn(this,da,t.isUTC),Gn(this,wa,t.ignoreList),Gn(this,fa,t.custom)),this}},{key:"setIgnoreList",value:function(e){return this.ignoreList=e,this}},{key:"set",value:function(e,t){if(null==e)return this;if(ra(e)){var r=Nn({},e);for(var n in r.date&&(this.setDate(r.date),delete r.date),r.calendar&&(this.convert(r.calendar),delete r.calendar),r.locale&&(this.setLocale(r.locale),delete r.locale),Gn(this,ba,!1),r)this.set(n,r[n]);return Gn(this,ba,!0),qn(this,Za).call(this),this}"format"===e&&(e="_format");try{this[e]=t}catch(e){}return this}},{key:"add",value:function(e,t){if(!(e=na(e))||!t)return this;switch(t){case"years":case"y":t="year";break;case"months":case"M":t="month";break;case"days":case"d":t="day";break;case"hours":case"h":t="hour";break;case"minutes":case"m":t="minute";break;case"seconds":case"s":t="second";break;case"milliseconds":case"ms":t="millisecond"}return this[t]+=e,this}},{key:"subtract",value:function(e,t){return this.add(-e,t)}},{key:"toFirstOfYear",value:function(){return this.month=1,this.day=1,this}},{key:"toLastOfYear",value:function(){return this.day>=29&&(this.day=29),this.month=12,this.toLastOfMonth(),this}},{key:"toFirstOfMonth",value:function(){return Gn(this,sa,1),this}},{key:"toLastOfMonth",value:function(){return Gn(this,sa,0),Gn(this,oa,qn(this,oa)+1),qn(this,Za).call(this),this}},{key:"toFirstOfWeek",value:function(){return this.day-=this.weekDay.index,this}},{key:"toLastOfWeek",value:function(){return this.day+=6-this.weekDay.index,this}},{key:"toFirstWeekOfYear",value:function(){return this.toFirstOfYear(),0===this.weekDay.index?this:this.toLastOfWeek().setDay(this.day+1)}},{key:"toLastWeekOfYear",value:function(){return this.toLastOfYear().toFirstOfWeek()}},{key:"toString",value:function(){return this.format()}},{key:"toDate",value:function(){var t=new e(this);return"gregorian"!==qn(this,ma).name&&t.convert(ta),new Date(t.year,t.month.index,t.day,t.hour,t.minute,t.second,t.millisecond)}},{key:"toUTC",value:function(){return qn(this,da)||(this.minute+=this.toDate().getTimezoneOffset(),Gn(this,da,!0)),this}},{key:"toUnix",value:function(){return this.unix}},{key:"toJulianDay",value:function(){return this.toDays()+qn(this,ma).epoch}},{key:"toObject",value:function(){return{year:qn(this,ia),month:this.month,day:qn(this,sa),weekDay:this.weekDay,hour:qn(this,la),minute:qn(this,ha),second:qn(this,va),millisecond:qn(this,pa),weekOfYear:this.weekOfYear,dayOfYear:this.dayOfYear,daysLeft:this.daysLeft,calendar:qn(this,ma),locale:qn(this,ga),format:qn(this,ua)||"YYYY/MM/DD",ignoreList:qn(this,wa)}}},{key:"toJSON",value:function(){return this.valueOf()}},{key:"valueOf",value:function(){return this.toDate().valueOf()}},{key:"toDays",value:function(){if(this.isValid)return qn(this,ma).getAllDays(this)}},{key:"dayOfBeginning",get:function(){return this.toDays()}},{key:"dayOfYear",get:function(){if(this.isValid)return qn(this,ma).getDayOfYear(this)}},{key:"weekOfYear",get:function(){if(this.isValid)return 1+~~(this.dayOfYear/7)}},{key:"daysLeft",get:function(){if(this.isValid){var e=qn(this,ma).yearLength;return(this.isLeap?e+1:e)-this.dayOfYear}}},{key:"year",get:function(){return qn(this,ia)},set:function(e){Gn(this,ia,na(e)),qn(this,Za).call(this)}},{key:"month",get:function(){return this.months[qn(this,oa)]||{}},set:function(e){var t;e=null!==(t=na(e.valueOf())-1)&&void 0!==t?t:void 0,Gn(this,oa,e),ca(e,0,11)&&qn(this,Za).call(this)}},{key:"monthIndex",get:function(){return qn(this,oa)}},{key:"day",get:function(){return qn(this,sa)},set:function(e){e=na(e),Gn(this,sa,e),ca(e,1,28)&&qn(this,Za).call(this)}},{key:"weekDay",get:function(){if(!this.isValid)return{};var e=(this.toJulianDay()+3)%7;return qn(this,Oa).call(this)[e]}},{key:"hour",get:function(){return qn(this,la)},set:function(e){e=na(e),Gn(this,la,e),ca(e,0,23)&&qn(this,Za).call(this)}},{key:"minute",get:function(){return qn(this,ha)},set:function(e){e=na(e),Gn(this,ha,e),ca(e,0,59)&&qn(this,Za).call(this)}},{key:"second",get:function(){return qn(this,va)},set:function(e){e=na(e),Gn(this,va,e),ca(e,0,59)&&qn(this,Za).call(this)}},{key:"millisecond",get:function(){return qn(this,pa)},set:function(e){e=na(e),Gn(this,pa,e),ca(e,0,999)&&qn(this,Za).call(this)}},{key:"months",get:function(){var e=qn(this,ma).getMonthLengths(this.isLeap),t=(qn(this,fa).months||qn(this,ga).months).map((function(t,r){var n=Qn(t,2);return{name:n[0],shortName:n[1],length:e[r],index:r,number:r+1,toString:function(){return this.number.toString()},valueOf:function(){return this.number}}}));return t},set:function(e){if(!e)return delete qn(this,fa).months;aa(e)&&12===e.length&&e.every((function(e){return aa(e)&&2===e.length&&e.every((function(e){return"string"==typeof e}))}))&&(qn(this,fa).months=e)}},{key:"weekDays",get:function(){return qn(this,Oa).call(this).sort((function(e,t){return e.index-t.index}))},set:function(e){if(!e)return delete qn(this,fa).weekDays;aa(e)&&7===e.length&&e.every((function(e){return aa(e)&&2===e.length&&e.every((function(e){return"string"==typeof e}))}))&&(qn(this,fa).weekDays=e)}},{key:"leaps",get:function(){return qn(this,ma).getLeaps(qn(this,ia))}},{key:"calendar",get:function(){return qn(this,ma)},set:function(e){this.convert(e)}},{key:"locale",get:function(){return qn(this,ga)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ea;ra(e)&&Gn(this,ga,e)}},{key:"custom",get:function(){return qn(this,fa)}},{key:"meridiems",get:function(){return qn(this,ga).meridiems}},{key:"digits",get:function(){return qn(this,fa).digits||qn(this,ga).digits},set:function(e){if(!e)return delete qn(this,fa).digits;aa(e)&&10===e.length&&(qn(this,fa).digits=e)}},{key:"_format",get:function(){return qn(this,ua)},set:function(e){"string"==typeof e&&Gn(this,ua,e)}},{key:"isLeap",get:function(){return qn(this,ma).isLeap(qn(this,ia))}},{key:"isValid",get:function(){return!isNaN(qn(this,ia))&&!isNaN(qn(this,oa))&&!isNaN(qn(this,sa))}},{key:"isUTC",get:function(){return qn(this,da)}},{key:"unix",get:function(){return(this.valueOf()-this.millisecond)/1e3}},{key:"ignoreList",get:function(){return qn(this,wa)},set:function(e){aa(e)&&Gn(this,wa,e)}},{key:"weekStartDayIndex",get:function(){return qn(this,ma).weekStartDayIndex},set:function(e){void 0!==(e=na(e))&&(qn(this,ma).weekStartDayIndex=Math.abs(e)%7)}},{key:"date",set:function(e){this.setDate(e)}}],r&&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,Xn(n.key),n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ea=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Ma)),Ha=Bt(Object.freeze({__proto__:null,default:Ea}));!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=o,r=kn,n=Ha;function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(t),i=a(r),s=a(n);function l(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 h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(){return(p=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}).apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function g(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,a,c=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(c.push(n.value),!t||c.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw a}}return c}}(e,t)||d(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 m(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(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 d(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}function f(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 _(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=d(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,c=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw c}}}}function w(e){return Array.isArray(e)}function b(e){var r=e.state.date,n=r.calendar,a=r.locale,i=e.customWeekDays,o=e.weekStartDayIndex,l=e.displayWeekNumbers,h=e.weekNumber,v=t.useMemo((function(){var e=i;return w(e)&&e.length>=7?(e.length=7,e=e.map((function(e){return w(e)&e.length>1?e=e[1]:w(e)&&(e=e[0]),e}))):e=new s.default({year:1,calendar:n,locale:a}).weekDays.map((function(e){return e.shortName})),e}),[n,a,i]);return v=m(v).slice(o).concat(m(v).splice(0,o)),c.default.createElement("div",{className:"rmdp-week"},l&&c.default.createElement("div",{className:"rmdp-week-day"},h),v.map((function(e,t){return c.default.createElement("div",{key:t,className:"rmdp-week-day"},e)})))}function y(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)return!1;if(e.year===t.year){if(n)return!0;if(e.monthIndex===t.monthIndex)return!!r||e.day===t.day}}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY/MM/DD";return e.format(t)}function Z(e,t,r){var n=r.multiple,a=r.range,c=r.selectedDate,i=r.onlyMonthPicker,o=r.onlyYearPicker,l=r.format,h=r.focused,v=r.weekPicker;e.setFormat(l);var p=new s.default(e);return[c=n&&a?function(){var e=!0;w(c)||(c=[[c]]);var t=c.find((function(e){return 1===e.length})),r=i?"YYYY/MM":"YYYY/MM/DD",n=c;if(t){var a=t[0];n=n.filter((function(e){if(1===e.length)return!0;var t=g(e,2),n=t[0],c=t[1],i=g([a,p].sort((function(e,t){return e-t})),2),o=g([n,c,i[0],i[1]].map((function(e){return x(e,r)})),4),s=o[0],l=o[1],h=o[2],v=o[3];return!(h<=s&&v>=l||h>=s&&v>=l&&h<=l||h<=s&&v<=l&&v>=s)}))}else n=n.filter((function(e){if(!w(e))return!0;if(0===e.length)return!1;var t=g(e,2),n=g([t[0],t[1],p].map((function(e){return x(e,r)})),3),a=n[0],c=n[1],i=n[2];return!(i>=a&&i<=c)}));return n=n.map((function(t){var r;return w(t)?1===t.length?(e=!1,r=t.concat(p)):r=t:(e=!1,r=[t,p]),r.sort((function(e,t){return e-t}))})),e&&(n=[].concat(m(n),[[p]])),n}():n?function(){var r=c.filter((function(t){return!y(e,t,i,o)}));return r.length===c.length?r.push(p):p=r.find((function(e){return y(e,h)})),t&&r.sort((function(e,t){return e-t})),r}():a?v?[new s.default(p).toFirstOfWeek(),new s.default(p).toLastOfWeek()]:2===c.length||0===c.length?[p]:1===c.length?[c[0],p].sort((function(e,t){return e-t})):void 0:p,p]}function O(e,t,r,n){var a=[],c=r?"YYYY/MM":"YYYY/MM/DD",i=x(e,c);function o(t){var n=t[0],o=t[1];if(1===t.length)y(e,n,r)&&a.push("rmdp-range");else if(2===t.length){var s=g([n,o].map((function(e){return x(e,c)})),2),l=s[0],h=s[1];i>=l&&i<=h&&a.push("rmdp-range"),i===l&&a.push("start"),i===h&&a.push("end")}}return n?(w(t)?t:[[t]]).forEach(o):o(t),a.join(" ")}function M(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"day",c=[];if(n&&1===(null==t?void 0:t.length)&&r){var i="day"===a?"YYYY/MM/DD":"YYYY/MM",o=r.format(i),s=t[0].format(i),l=e.format(i);(l>s&&l<=o||l<s&&l>=o)&&(c.push("rmdp-range-hover"),l===o&&c.push(o>s?"end":"start"))}return c}function E(e){var r=e.state,n=e.onChange,a=e.showOtherDays,i=void 0!==a&&a,o=e.mapDays,l=e.onlyShowInRangeDates,u=e.customWeekDays,m=e.sort,d=e.numberOfMonths,f=e.isRTL,_=e.weekStartDayIndex,w=e.handleFocusedDate,x=e.hideWeekDays,E=e.fullYear,H=g(e.monthAndYears,1)[0],P=e.displayWeekNumbers,j=e.weekNumber,V=void 0===j?"":j,C=e.rangeHover,A=e.highlightToday,L=t.useRef({}),z=r.today,B=r.minDate,k=r.maxDate,S=r.range,R=r.multiple,D=r.date,I=r.selectedDate,T=r.onlyMonthPicker,N=r.onlyYearPicker,F=!T&&!N,Q=g(t.useState(),2),$=Q[0],Y=Q[1];L.current.date=D;var U=t.useMemo((function(){return F?function(e,t,r,n){if(!e)return[];for(var a=[],c=0;c<r;c++){var i=(e=new s.default(e).toFirstOfMonth()).monthIndex,o=[];e.toFirstOfWeek().add(n,"day"),e.monthIndex===i&&e.day>1&&e.subtract(7,"days");for(var l=0;l<6;l++){for(var h=[],v=0;v<7;v++)h.push({date:new s.default(e),day:e.format("D"),current:e.monthIndex===i}),e.day+=1;if(o.push(h),l>2&&e.monthIndex!==i&&!t)break}a.push(o)}return a}(L.current.date,i,d,_):[]}),[D.monthIndex,D.year,D.calendar,D.locale,F,i,d,_]);return F&&c.default.createElement("div",{className:"rmdp-day-picker ".concat(E?"rmdp-full-year":""),style:{display:E?"grid":"flex"},onMouseLeave:function(){return C&&Y()}},U.map((function(e,t){return c.default.createElement("div",{key:t,style:v({},f?"marginLeft":"marginRight",t+(E?0:1)<d?"10px":"")},E&&c.default.createElement("div",{className:"rmdp-month-name"},H[t]),!x&&c.default.createElement(b,{state:r,customWeekDays:u,weekStartDayIndex:_,displayWeekNumbers:P,weekNumber:V}),e.map((function(e,a){return c.default.createElement("div",{key:a,className:"rmdp-week"},P&&c.default.createElement("div",{className:"rmdp-day rmdp-disabled"},c.default.createElement("span",null,e[0].date.format("WW"))),e.map((function(e,a){var v=function(e){if(!e.current&&!i)return{};var t={};return o.forEach((function(n){var a,c=n({date:e.date,today:z,currentMonth:r.date.month,selectedDate:r.selectedDate,isSameDate:y});(null===(a=c)||void 0===a?void 0:a.constructor)!==Object&&(c={}),(c.disabled||c.hidden)&&(e.disabled=!0),c.hidden&&(e.hidden=!0),t=h(h({},t),c)})),delete t.disabled,delete t.hidden,t}(e={date:e.date,day:e.day,current:e.current}),u=W(e)&&!e.disabled,f="".concat(u?"sd":""),_=v.children;u&&(f="".concat(f," ").concat(v.className||"")),delete v.className,delete v.children;var b=function(e,t){var r,n=["rmdp-day"],a=e.date,c=e.hidden,i=e.current;if(!W(e)||c)n.push("rmdp-day-hidden");else{(B&&a<B||k&&a>k||e.disabled)&&(n.push("rmdp-disabled"),e.disabled||(e.disabled=!0)),i||n.push("rmdp-deactive");var o=t>1&&i||1===t;e.disabled&&l||(y(a,z)&&A&&n.push("rmdp-today"),r=a,[].concat(I).some((function(e){return y(e,r)}))&&o&&!S&&n.push("rmdp-selected")),S&&!e.disabled&&o&&(n.push(O(a,I,void 0,R)),R||(n=n.concat(M(a,I,$,C))))}return n.join(" ")}(e,d);return(e.hidden||e.disabled)&&(f=f.replace("sd","")),c.default.createElement("div",{key:a,className:b,onMouseEnter:function(){return C&&Y(e.date)},onClick:function(){W(e)&&!e.disabled&&function(e,t,a){var c,i,o,l=e.date,v=e.current,p=r.selectedDate,u=r.focused,d=r.date,f=d,_=f.hour,b=f.minute,y=f.second;l.set({hour:(null===(c=p)||void 0===c?void 0:c.hour)||_,minute:(null===(i=p)||void 0===i?void 0:i.minute)||b,second:(null===(o=p)||void 0===o?void 0:o.second)||y}),1!==a||v?a>1&&!v&&(0===t&&l<d&&(d=new s.default(d).toFirstOfMonth()),t>0&&l.monthIndex>d.monthIndex+t&&t+1===a&&(d=new s.default(d).toFirstOfMonth().add(1,"month"))):d=new s.default(d).toFirstOfMonth();var x=g(Z(l,m,r),2);p=x[0],u=x[1],n(p,h(h({},r),{},{date:d,focused:u,selectedDate:p})),w(u,l)}(e,t,d)}},c.default.createElement("span",p({className:f},v),W(e)&&!e.hidden?null!=_?_:e.day:""))})))})))})));function W(e){return!!e.current||i}}function H(e){var t=e.direction,r=e.onClick,n=e.disabled;return c.default.createElement("span",{className:"rmdp-arrow-container ".concat(t," ").concat(n?"disabled":""),onClick:r},c.default.createElement("i",{className:"rmdp-arrow"}))}function P(e){var r=e.state,n=e.setState,a=e.disableYearPicker,i=e.disableMonthPicker,o=e.buttons,s=e.renderButton,l=e.handleMonthChange,v=e.disabled,p=e.hideMonth,u=e.hideYear,m=e.isRTL,d=e.fullYear,f=g(e.monthAndYears,2),_=f[0],w=f[1],b=e.monthYearSeparator,y=e.formatMonth,x=e.formatYear,Z=e.headerOrder,O={},M=r.date,E=r.onlyMonthPicker,P=r.onlyYearPicker,j=r.mustShowYearPicker,V=r.minDate,C=r.maxDate,A=r.year,L=r.today,z=V&&M.year<=V.year&&V.monthIndex>M.monthIndex-1,B=C&&M.year>=C.year&&C.monthIndex<M.monthIndex+1,k=L.year+7;if(k-=12*Math.floor((k-A)/12),(p||d)&&u&&!o)return null;if((E||d)&&(V&&V.year>=M.year&&(z=!0),C&&C.year<=M.year&&(B=!0)),j||P){var S=k-11;z=V&&V.year>S,B=C&&C.year<k}return v&&(z=!0,B=!0),c.default.createElement("div",{className:"rmdp-header"},c.default.createElement("div",{style:{position:"relative",display:"flex",alignItems:"center"}},Array.from(new Set(Z)).map((function(e,r){return c.default.createElement(t.Fragment,{key:r},function(e){switch(e){case"LEFT_BUTTON":return o&&R("left");case"RIGHT_BUTTON":return o&&R("right");case"MONTH_YEAR":case"YEAR_MONTH":if(d)return c.default.createElement("div",{className:"rmdp-header-values",style:O},!u&&M.format("YYYY"));var r=e.split("_").filter((function(e){return"MONTH"===e&&!p||"YEAR"===e&&!u}));return _.map((function(e,n){return c.default.createElement("div",{key:n,className:"rmdp-header-values",style:O},r.length>0&&r.map((function(r,o){return c.default.createElement(t.Fragment,{key:o},function(e,t,r){return"MONTH"===e?!p&&c.default.createElement(c.default.Fragment,null,c.default.createElement("span",{style:{cursor:v||i||E?"default":"pointer"},onClick:function(){return!i&&I("mustShowMonthPicker")}},function(e,t){return"function"==typeof y?y(e,t):e}(t,w[r]))):!u&&c.default.createElement("span",{style:{cursor:v||a||P?"default":"pointer"},onClick:function(){return!a&&I("mustShowYearPicker")}},function(e,t){return"function"==typeof y?x(e,t):e}(w[r],t))}(r,e,n))})).reduce((function(e,t){return[e,b?c.default.createElement("span",null,b):m?"،":",",t]})))}))}}(e))}))));function R(e){var r=function(){return D("right"===e?1:-1)},n="left"===e&&z||"right"===e&&B;return s instanceof Function?s(e,r,n):t.isValidElement(s)?t.cloneElement(s,{direction:e,handleClick:r,disabled:n}):c.default.createElement(H,{direction:"rmdp-".concat(e),onClick:r,disabled:n})}function D(e){v||e<0&&z||e>0&&B||(d?M.year+=e:j||P?(A+=12*e,e<0&&V&&A<V.year&&(A=V.year),e>0&&C&&A>C.year&&(A=C.year)):(M.toFirstOfMonth(),E?M.year+=e:(M.month+=e,l(M))),n(h(h({},r),{},{date:M,year:A})))}function I(e){if(!v){var t={mustShowMonthPicker:!1,mustShowYearPicker:!1};t[e]=!r[e],n(h(h({},r),t))}}}function j(e){return w(e)||(e=[]),JSON.stringify(e)}function V(e){var r=e.state,n=e.onChange,a=e.customMonths,i=e.sort,o=e.handleMonthChange,l=e.handleFocusedDate,v=e.rangeHover,p=e.highlightToday,u=r.date,m=r.today,d=r.minDate,f=r.maxDate,_=r.calendar,b=r.locale,x=r.onlyMonthPicker,E=r.onlyYearPicker,H=r.range,P=r.onlyShowInRangeDates,V=(r.mustShowMonthPicker||x)&&!E,C=g(t.useState(),2),A=C[0],L=C[1];a=a&&j(a);var z=t.useMemo((function(){var e=a&&JSON.parse(a),t=[],n=0,c=new s.default({calendar:_,locale:b,format:r.date._format,year:r.date.year,month:1,day:1});w(e)&&e.length>=12?(e.length=12,e=e.map((function(e){return w(e)?e[0]:e}))):e=c.locale.months.map((function(e){return g(e,1)[0]}));for(var i=0;i<4;i++){for(var o=[],l=0;l<3;l++)o.push({date:new s.default(c),name:e[n]}),n++,c.add(1,"month");t.push(o)}return t}),[_,b,a,r.date.year,r.date._format]);return c.default.createElement("div",{className:"".concat(x?"only ":"","rmdp-month-picker"),style:{display:V?"block":"none"},onMouseLeave:function(){return v&&L()}},z.map((function(e,t){return c.default.createElement("div",{key:t,className:"rmdp-ym"},e.map((function(e,t){var r=e.date,n=e.name;return c.default.createElement("div",{key:t,className:k(r),onClick:function(){return B(r)},onMouseEnter:function(){return v&&L(r)}},c.default.createElement("span",{className:x?"sd":""},n))})))})));function B(e){var t=r.selectedDate,a=r.focused,c=e.year,s=e.monthIndex;if(!(d&&c<=d.year&&s<d.monthIndex||f&&c>=f.year&&s>f.monthIndex)){if(u.setMonth(s+1),x){var v=g(Z(e,i,r),2);t=v[0],a=v[1]}else o(u);n(x?t:void 0,h(h({},r),{},{date:u,focused:a,selectedDate:t,mustShowMonthPicker:!1})),x&&l(a,e)}}function k(e){var t=["rmdp-day"],n=e.year,a=e.monthIndex,c=r.selectedDate,i=r.multiple;if((d&&(n<d.year||n===d.year&&a<d.monthIndex)||f&&(n>f.year||n===f.year&&a>f.monthIndex))&&t.push("rmdp-disabled"),!t.includes("rmdp-disabled")||!P)return y(m,e,!0)&&p&&t.push("rmdp-today"),x?H?(t.push(O(e,c,!0,i)),i||(t=t.concat(M(e,c,A,v,"month")))):[].concat(c).some((function(t){return y(t,e,!0)}))&&t.push("rmdp-selected"):u.monthIndex===a&&t.push("rmdp-selected"),t.join(" ")}}function C(e,t){return e.replace(/[0-9]/g,(function(e){return t[e]}))}function A(e){var r=e.state,n=e.onChange,a=e.sort,i=e.handleFocusedDate,o=e.onYearChange,l=e.rangeHover,v=e.highlightToday,p=r.date,u=r.today,m=r.minDate,d=r.maxDate,f=r.onlyYearPicker,_=r.range,b=r.onlyShowInRangeDates,y=r.year,x=r.mustShowYearPicker||f,O=p.digits,M=g(t.useState(),2),E=M[0],H=M[1],P=u.year-4;P-=12*Math.ceil((P-y)/12);var j=t.useMemo((function(){for(var e=[],t=P,r=0;r<4;r++){for(var n=[],a=0;a<3;a++)n.push(t),t++;e.push(n)}return e}),[P]);return c.default.createElement("div",{className:"".concat(f?"only ":"","rmdp-year-picker"),style:{display:x?"block":"none"}},j.map((function(e,t){return c.default.createElement("div",{key:t,className:"rmdp-ym",onMouseLeave:function(){return l&&H()}},e.map((function(e,t){return c.default.createElement("div",{key:t,className:V(e),onClick:function(){return function(e){if(!A(e)){var t=new s.default(r.date).setYear(e),c=r.selectedDate,l=r.focused;if(f){var v=g(Z(t,a,r),2);c=v[0],l=v[1]}else m&&t.monthIndex<m.monthIndex?t=t.setMonth(m.monthIndex+1):d&&t.monthIndex>d.monthIndex&&(t=t.setMonth(d.monthIndex+1)),null==o||o(t);n(f?c:void 0,h(h({},r),{},{date:t,focused:l,selectedDate:c,mustShowYearPicker:!1})),f&&i(l,t)}}(e)},onMouseEnter:function(){return l&&H(e)}},c.default.createElement("span",{className:f?"sd":""},C(e.toString(),O)))})))})));function V(e){var t=["rmdp-day"],n=r.date,a=r.selectedDate,c=r.multiple;if(A(e)&&t.push("rmdp-disabled"),!t.includes("rmdp-disabled")||!b){if(u.year===e&&v&&t.push("rmdp-today"),f)if(_){var i=function(r){var n=r[0],a=r[1];if(1===r.length){if(e===n.year&&t.push("rmdp-range"),l){var c=r[0].year;(e>c&&e<=E||e<c&&e>=E)&&(t.push("rmdp-range-hover"),e===E&&t.push(E>c?"end":"start"))}}else 2===r.length&&(e>=n.year&&e<=a.year&&t.push("rmdp-range"),e===n.year&&t.push("start"),e===a.year&&t.push("end"))};c?(w(a)?a:[[a]]).forEach((function(e){return i(e)})):i(a)}else[].concat(a).some((function(t){return t&&t.year===e}))&&t.push("rmdp-selected");else e===n.year&&t.push("rmdp-selected");return t.join(" ")}}function A(e){return m&&e<m.year||d&&e>d.year}}function L(e,t,r){return r||(e?"MM/YYYY":t?"YYYY":"YYYY/MM/DD")}function z(e,t){return e instanceof s.default?e.setCalendar(t):e=new s.default({date:e,calendar:t}),e}function B(e){"_self"in c.default.createElement("div")&&console.warn(e.join("\n"))}var k=new s.default,S=k.calendar,R=k.locale;function D(e,t){return e&&e.constructor!==Object&&(B(I("calendar")),e=void 0),t&&t.constructor!==Object&&(B(I("locale")),t=void 0),[e||S,t||R]}function I(e){return["".concat(e," must be an object"),"https://shahabyazdi.github.io/react-multi-date-picker/calendars/"]}function T(e){return e&&e.name?e.name.split("_")[1]:""}function N(e){return["fa","ar"].includes(T(e))}function F(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===r&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}F(".rmdp-wrapper{background-color:#fff;border-radius:5px;direction:ltr;text-align:center;width:max-content}.rmdp-shadow{box-shadow:0 0 5px #8798ad}.rmdp-border{border:1px solid #cfd8e2}.rmdp-calendar{height:max-content;padding:4px}.rmdp-border-top{border-top:1px solid #cfd8e2}.rmdp-border-bottom{border-bottom:1px solid #cfd8e2}.rmdp-border-left{border-left:1px solid #cfd8e2}.rmdp-border-right{border-right:1px solid #cfd8e2}.rmdp-week,.rmdp-ym{display:flex;justify-content:space-between}.rmdp-ym{height:25%}.rmdp-day,.rmdp-week-day{color:#000;cursor:pointer;height:34px;position:relative;width:34px}.rmdp-week-day{color:#0074d9;cursor:default;font-size:13px;font-weight:500}.rmdp-day span,.rmdp-week-day{display:flex;flex-direction:column;justify-content:center}.rmdp-day span{border-radius:50%;bottom:3px;font-size:14px;left:3px;position:absolute;right:3px;top:3px}.rmdp-day.rmdp-today span{background-color:#7fdbff;color:#fff}.rmdp-day.rmdp-selected span:not(.highlight){background-color:#0074d9;box-shadow:0 0 3px #8798ad;color:#fff}.rmdp-day.rmdp-deactive,.rmdp-day.rmdp-disabled{color:#8798ad}.rmdp-day.rmdp-deactive.rmdp-selected span{background-color:#4ca6f5;box-shadow:0 0 3px #bac5d3}.rmdp-ym .rmdp-day{flex:1;margin:auto}.rmdp-ym .rmdp-day span{border-radius:12px;padding:2px 0}.rmdp-range{background-color:#0074d9;box-shadow:0 0 3px #8798ad;color:#fff}.rmdp-range-hover{background-color:#7ea6f0;color:#fff}.rmdp-range-hover.start,.rmdp-range.start{border-bottom-left-radius:50%;border-top-left-radius:50%}.rmdp-range-hover.end,.rmdp-range.end{border-bottom-right-radius:50%;border-top-right-radius:50%}.rmdp-ym .rmdp-range-hover.start,.rmdp-ym .rmdp-range.start{border-bottom-left-radius:15px;border-top-left-radius:15px}.rmdp-ym .rmdp-range-hover.end,.rmdp-ym .rmdp-range.end{border-bottom-right-radius:15px;border-top-right-radius:15px}.rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover{background-color:#7ea6f0;color:#fff}.rmdp-day-picker{padding:5px}.rmdp-header{font-size:14px;margin-top:5px;padding:9px 0}.rmdp-month-picker,.rmdp-year-picker{background-color:#fff;border-radius:0 0 5px 5px;bottom:2px;left:2px;position:absolute;right:2px;top:2px}.only.rmdp-month-picker,.only.rmdp-year-picker{height:240px;position:static;width:250px}.rmdp-header-values{color:#000;margin:auto}.rmdp-header-values span{padding:0 0 0 5px}.rmdp-arrow{border:solid #0074d9;border-width:0 2px 2px 0;display:inline-block;height:3px;margin-top:5px;padding:2px;width:3px}.rmdp-right i{margin-right:3px;transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.rmdp-left i{margin-left:3px;transform:rotate(135deg);-webkit-transform:rotate(135deg)}.rmdp-left{left:0}.rmdp-right{right:0}.rmdp-arrow-container{border-radius:50%;cursor:pointer;display:flex;height:20px;justify-content:center;margin:0 5px;width:20px}.rmdp-arrow-container:hover{background-color:#0074d9;box-shadow:0 0 3px #8798ad}.rmdp-arrow-container:hover .rmdp-arrow{border:solid #fff;border-width:0 2px 2px 0}.rmdp-arrow-container.disabled{cursor:default}.rmdp-arrow-container.disabled:hover{background-color:inherit;box-shadow:inherit}.rmdp-arrow-container.disabled .rmdp-arrow,.rmdp-arrow-container.disabled:hover .rmdp-arrow{border:solid gray;border-width:0 2px 2px 0}.rmdp-rtl{direction:rtl}.rmdp-rtl .rmdp-left i{margin-left:0;margin-right:3px;transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.rmdp-rtl .rmdp-right i{margin-left:3px;margin-right:0;transform:rotate(135deg);-webkit-transform:rotate(135deg)}.rmdp-rtl .rmdp-right{left:0;right:auto}.rmdp-rtl .rmdp-left{left:auto;right:0}.rmdp-rtl .rmdp-range-hover.start,.rmdp-rtl .rmdp-range.start{border-bottom-left-radius:unset;border-bottom-right-radius:50%;border-top-left-radius:unset;border-top-right-radius:50%}.rmdp-rtl .rmdp-range-hover.end,.rmdp-rtl .rmdp-range.end{border-bottom-left-radius:50%;border-bottom-right-radius:unset;border-top-left-radius:50%;border-top-right-radius:unset}.rmdp-rtl .rmdp-range.start.end{border-radius:50%}.rmdp-rtl .rmdp-ym .rmdp-range-hover.start,.rmdp-rtl .rmdp-ym .rmdp-range.start{border-bottom-right-radius:15px;border-top-right-radius:15px}.rmdp-rtl .rmdp-ym .rmdp-range-hover.end,.rmdp-rtl .rmdp-ym .rmdp-range.end{border-bottom-left-radius:15px;border-top-left-radius:15px}.rmdp-day-hidden,.rmdp-day.rmdp-disabled{cursor:default}.rmdp-selected .highlight{box-shadow:0 0 3px #8798ad}.rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) .highlight-red:hover{background-color:#ff6687}.rmdp-day:not(.rmdp-deactive) .highlight-red{color:#cc0303}.rmdp-day.rmdp-deactive .highlight-red{color:#e08e8e}.rmdp-day.rmdp-selected .highlight-red{background-color:#ea0034;color:#fff}.rmdp-day.rmdp-deactive.rmdp-selected .highlight-red{background-color:#e4b0ba;color:#fff}.rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) .highlight-green:hover{background-color:#4db6ac}.rmdp-day:not(.rmdp-deactive) .highlight-green{color:#00796b}.rmdp-day.rmdp-deactive .highlight-green{color:#7ab3ac}.rmdp-day.rmdp-selected .highlight-green{background-color:#009688;color:#fff}.rmdp-day.rmdp-deactive.rmdp-selected .highlight-green{background-color:#749c98;color:#fff}.rmdp-day-hidden,.rmdp-day-hidden:hover span{background-color:unset;color:transparent}.rmdp-month-name{cursor:default;font-size:14px;margin:3px 0}.rmdp-full-year{grid-template-columns:1fr 1fr 1fr}@media (max-height:450px),(max-width:450px){.rmdp-day,.rmdp-week-day{height:28px;width:28px}.rmdp-day span{font-size:12px;padding-left:.5px}.only.rmdp-month-picker,.only.rmdp-year-picker{height:200px;width:205px}.rmdp-header{padding:3px 0 0}.rmdp-header,.rmdp-month-name{font-size:12px}.rmdp-full-year{grid-template-columns:1fr 1fr}}");var Q=["value","calendar","locale","format","onlyMonthPicker","onlyYearPicker","range","multiple","className","role","weekDays","months","children","onChange","showOtherDays","minDate","maxDate","mapDays","disableMonthPicker","disableYearPicker","formattingIgnoreList","onReady","onlyShowInRangeDates","zIndex","plugins","sort","numberOfMonths","currentDate","digits","buttons","renderButton","weekStartDayIndex","disableDayPicker","onPropsChange","onMonthChange","onYearChange","onFocusedDateChange","readOnly","disabled","hideMonth","hideYear","hideWeekDays","shadow","fullYear","displayWeekNumbers","weekNumber","weekPicker","rangeHover","monthYearSeparator","formatMonth","formatYear","highlightToday","headerOrder","style"],$=["datePickerProps","DatePicker"],Y=["DatePicker","datePickerProps"];var U=t.forwardRef((function(e,r){var n,a=e.value,i=e.calendar,o=e.locale,l=e.format,v=e.onlyMonthPicker,m=e.onlyYearPicker,d=e.range,f=void 0!==d&&d,_=e.multiple,b=void 0!==_&&_,y=e.className,x=e.role,Z=e.weekDays,O=e.months,M=e.children,H=e.onChange,z=e.showOtherDays,B=e.minDate,k=e.maxDate,S=e.mapDays,R=e.disableMonthPicker,I=e.disableYearPicker,T=e.formattingIgnoreList,F=e.onReady,Y=e.onlyShowInRangeDates,U=void 0===Y||Y,q=e.zIndex,G=void 0===q?100:q,J=e.plugins,ee=void 0===J?[]:J,te=e.sort,re=e.numberOfMonths,ne=void 0===re?1:re,ae=e.currentDate,ce=e.digits,ie=e.buttons,oe=void 0===ie||ie,se=e.renderButton,le=e.weekStartDayIndex,he=void 0===le?0:le,ve=e.disableDayPicker,pe=e.onPropsChange,ue=e.onMonthChange,ge=e.onYearChange,me=e.onFocusedDateChange,de=e.readOnly,fe=e.disabled,_e=e.hideMonth,we=e.hideYear,be=e.hideWeekDays,ye=e.shadow,xe=void 0===ye||ye,Ze=e.fullYear,Oe=e.displayWeekNumbers,Me=e.weekNumber,Ee=e.weekPicker,He=e.rangeHover,Pe=e.monthYearSeparator,je=e.formatMonth,Ve=e.formatYear,Ce=e.highlightToday,Ae=void 0===Ce||Ce,Le=e.headerOrder,ze=void 0===Le?["LEFT_BUTTON","MONTH_YEAR","RIGHT_BUTTON"]:Le,Be=e.style,ke=void 0===Be?{}:Be,Se=u(e,Q);!ae||ae instanceof s.default||(console.warn("currentDate must be instance of DateObject"),ae=void 0),("number"!=typeof he||he<0||he>6)&&(he=0),("number"!=typeof ne||ne<1||v||m)&&(ne=1),!(b||f||w(a))||f||b||(b=!0),Ee&&(f=!0,b=!1),Ze&&(ne=12,v=!1,m=!1),m&&!_e&&(_e=!0);var Re=g(D(i,o),2);i=Re[0],o=Re[1],l=L(v,m,l),T=j(T),S=[].concat(S).filter(Boolean),ee=[].concat.apply([],ee);var De=g(t.useState({}),2),Ie=De[0],Te=De[1],Ne={},Fe=t.useRef({mustCallOnReady:!0,currentDate:ae});t.useEffect((function(){Te((function(e){var t=Fe.current.currentDate,r=e.date,n=e.selectedDate,c=e.initialValue,p=e.focused,u=e.mustSortDates;function g(e){if(e)return e.calendar.name!==i.name&&e.setCalendar(i),e.locale.name!==o.name&&e.setLocale(o),e._format!==l&&e.setFormat(l),e.digits=ce,e.ignoreList=JSON.parse(T),e}function d(e){return new s.default(t||e)}if(a)if(w(n=X(a,i,o,l)))r||(r=d(n.flat()[0]));else if(r&&1!==ne){var _=new s.default(r).toFirstOfMonth(),y=new s.default(r).add(ne-1,"months").toLastOfMonth();(n<_||n>y)&&(r=new s.default(n))}else r=d(n);else r||(r=d({calendar:i,locale:o,format:l})),c&&(n=void 0);if([].concat(n).flat().forEach(g),g(r),b||f||w(a)){if(n||(n=[]),w(n)||(n=b&&f?[[n]]:[n]),f&&!b&&n.length>2){var x=n[n.length-1];n=[n[0],x],p=x}b&&!f&&te&&!u?(u=!0,n.sort((function(e,t){return e-t}))):f&&!b&&n.sort((function(e,t){return e-t}))}else w(n)&&(n=n.flat()[n.length-1]);return Ze&&r.toFirstOfYear(),delete Fe.current.currentDate,h(h({},e),{},{date:r,selectedDate:n,multiple:b,range:f,onlyMonthPicker:v,onlyYearPicker:m,initialValue:e.initialValue||a,value:a,focused:p,calendar:i,locale:o,format:l,mustSortDates:u,year:r.year,today:g(e.today)||new s.default({calendar:i}),weekPicker:Ee})}))}),[a,i,o,l,v,m,f,b,te,ne,ce,T,Ze,Ee]),t.useEffect((function(){(B||k)&&Te((function(e){var t=e.calendar,r=e.locale,n=e.format,c=g(W(X(a,t,r,n),B,k,t),3),i=c[0],o=c[1],s=c[2];return h(h({},e),{},{inRangeDates:U?i:e.selectedDate,minDate:o,maxDate:s})}))}),[B,k,U,a]),Ie.today&&!Fe.current.isReady&&(Fe.current.isReady=!0),t.useEffect((function(){Fe.current.isReady&&Fe.current.mustCallOnReady&&F instanceof Function&&(Fe.current.mustCallOnReady=!1,F())}),[Fe.current.isReady,F]);var Qe="rmdp-top-class "+rt(["top","bottom"]),$e={top:[],bottom:[],left:[],right:[]},Ye=N(null===(n=Ie.date)||void 0===n?void 0:n.locale),Ue={state:Ie,setState:Te,onChange:Ge,sort:te,handleFocusedDate:et,isRTL:Ye,fullYear:Ze,monthAndYears:function(){var e=Ie.date;if(!e)return[];for(var t=[],r=[],n=e.digits,a=0;a<ne;a++){var c=void 0,i=e.year,o=e.monthIndex+a;if(o>11&&(o-=12,i++),w(O)&&O.length>=12){var s=O[o];c=w(s)?s[0]:s}else c=e.months[o].name;i=C(i.toString(),n),t.push(c),r.push(i)}return[t,r]}(),rangeHover:He,highlightToday:Ae},We=arguments[0],Xe=We.datePickerProps,Ke=We.DatePicker,qe=u(We,$);return function(){if(Fe.current.isReady&&w(ee)){var e={state:Ie,setState:Te,registerListener:nt,calendarProps:qe,datePickerProps:Xe,handleChange:Ge,Calendar:Fe.current.Calendar,DatePicker:Ke,handlePropsChange:Je,handleFocusedDate:function(e){return et(e)}},r=function(e){return ve?"bottom":e.props.position||"right"};ee.forEach((function(n,a){if("string"!=typeof n.type){var c={},i=r(n);if($e[i]&&!n.props.disabled){for(var o=0;o<ee.length;o++)if("string"!=typeof ee[o].type&&!ee[o].props.disabled){if(4===Object.keys(c).length)break;var s=r(ee[o]);["top","bottom"].includes(i)?(s===i&&o>a&&(c.bottom=!0),s===i&&o<a&&(c.top=!0)):(Qe.includes("border-top")&&(c.top=!0),Qe.includes("border-bottom")&&(c.bottom=!0),s===i&&o>a&&(c.right=!0),s===i&&o<a&&(c.left=!0))}$e[i].push(t.cloneElement(n,h({key:a,position:i,nodes:c},e)))}}else"mapDays"===n.type&&S.push(n.fn(e))}))}}(),Ie.today?c.default.createElement("div",p({ref:function(e){if(e&&(e.date=Ie.date,e.set=function(e,t){fe||Te(h(h({},Ie),{},{date:new s.default(Ie.date.set(e,t))}))}),Fe.current.Calendar=e,r instanceof Function)return r(e);r&&(r.current=e)},role:x||"dialog",className:"rmdp-wrapper rmdp-".concat(xe?"shadow":"border"," ").concat(y||""),style:h({zIndex:G},ke)},K(Se)),$e.top,c.default.createElement("div",{style:{display:"flex"},className:Qe},$e.left,!ve&&c.default.createElement("div",{className:"rmdp-calendar ".concat(Ye?"rmdp-rtl":""," ").concat(rt(["left","right"]))},c.default.createElement(P,h(h({},Ue),{},{disableYearPicker:I,disableMonthPicker:R,buttons:oe,renderButton:se,handleMonthChange:tt,disabled:fe,hideMonth:_e,hideYear:we,monthYearSeparator:Pe,formatMonth:je,formatYear:Ve,headerOrder:ze})),c.default.createElement("div",{style:{position:"relative"}},c.default.createElement(E,h(h({},Ue),{},{showOtherDays:z,mapDays:S,onlyShowInRangeDates:U,customWeekDays:Z,numberOfMonths:ne,weekStartDayIndex:he,hideWeekDays:be,displayWeekNumbers:Oe,weekNumber:Me})),!Ze&&c.default.createElement(c.default.Fragment,null,!R&&c.default.createElement(V,p({},Ue,{customMonths:O,handleMonthChange:tt})),!I&&c.default.createElement(A,p({},Ue,{onYearChange:ge}))))),$e.right),$e.bottom,M):null;function Ge(e,t){if(!fe){if(e||null===e){if(de)return;Ne.change&&Ne.change.forEach((function(t){return t(e)}))}if(e||null===e){var r=null==H?void 0:H(e);t&&!1!==r&&Te(t)}else t&&Te(t);Je({value:e})}}function Je(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!de&&!fe){var r=h(h(h(h({},qe),Xe),t),{},{value:null!==(e=t.value)&&void 0!==e?e:Ie.selectedDate});delete r.onPropsChange,null==pe||pe(r)}}function et(e,t){de||fe||null==me||me(e,t)}function tt(e){null==ue||ue(e)}function rt(e){return ve||!w(ee)?"":Array.from(new Set(ee.map((function(t){if(!t.props)return"";var r=t.props.position||"right";return e.includes(r)&&!t.props.disabled?"rmdp-border-"+r:""})))).join(" ")}function nt(e,t){Ne[e]||(Ne[e]=[]),Ne[e].push(t)}}));function W(e,t,r,n){return t&&(t=z(t,n).set({hour:0,minute:0,second:0,millisecond:0})),r&&(r=z(r,n).set({hour:23,minute:59,second:59,millisecond:999})),w(e)&&(e=e.filter((function(e){return!(t&&e<t||r&&e>r)}))),[e,t,r]}function X(e,t,r,n){var a=[].concat(e).map((function(e){return w(e)?e.map(c).filter(i):c(e)})).filter(i);return w(e)?a:a.flat()[0];function c(e){return e?e instanceof s.default?e:new s.default({date:e,calendar:t,locale:r,format:n}):{}}function i(e){return w(e)||e.isValid}}function K(e){return e.DatePicker,e.datePickerProps,u(e,Y)}F('.rmdp-visible{visibility:visible}.rmdp-invisible{visibility:hidden}.rmdp-input{border:1px solid #c0c4d6;border-radius:5px;height:22px;margin:1px 0;padding:2px 5px}.rmdp-input:focus{border:1px solid #a4b3c5;box-shadow:0 0 2px #a4b3c5;outline:none!important}.rmdp-button{background-color:#0074d9;border:none;border-radius:5px;color:#fff;cursor:pointer;display:inline-block;padding:7px 16px;text-align:center;text-decoration:none;transition:.3s}.rmdp-button:hover{background-color:#143ac5;transition:.4s}.rmdp-button:disabled{background-color:#8798ad}.rmdp-action-button{border-radius:unset;color:#2682d3;float:right;font-weight:700;margin:15px 10px 15px 0}.rmdp-action-button,.rmdp-action-button:hover{background-color:transparent}.rmdp-ep-arrow{overflow:hidden;will-change:transform}.rmdp-ep-arrow:after{background-color:#fff;content:"";height:12px;position:absolute;transform:rotate(45deg);width:12px}.rmdp-ep-shadow:after{box-shadow:0 0 6px #8798ad}.rmdp-ep-border:after{border:1px solid #cfd8e2}.rmdp-ep-arrow[direction=top]{border-bottom:1px solid #fff}.rmdp-ep-arrow[direction=left]{border-right:1px solid #fff}.rmdp-ep-arrow[direction=right]{border-left:1px solid #fff;margin-left:-1px}.rmdp-ep-arrow[direction=bottom]{border-top:1px solid #fff;margin-top:-1.5px}.rmdp-ep-arrow[direction=top]:after{left:4px;top:5px}.rmdp-ep-arrow[direction=bottom]:after{left:4px;top:-6px}.rmdp-ep-arrow[direction=left]:after{left:5px;top:3px}.rmdp-ep-arrow[direction=right]:after{left:-6px;top:3px}');var q=["value","calendar","locale","format","onlyMonthPicker","onlyYearPicker","onChange","range","multiple","name","id","title","placeholder","required","style","className","inputClass","disabled","render","weekDays","months","children","inputMode","scrollSensitive","hideOnScroll","minDate","maxDate","formattingIgnoreList","containerClassName","calendarPosition","editable","onOpen","onClose","arrowClassName","zIndex","arrow","fixMainPosition","onPositionChange","onPropsChange","digits","readOnly","shadow","onFocusedDateChange","type","weekPicker","mobileLabels","onOpenPickNewDate","mobileButtons","dateSeparator","multipleRangeSeparator"],G=["label"];var J=t.forwardRef((function(e,r){var n=e.value,a=e.calendar,o=e.locale,l=e.format,v=e.onlyMonthPicker,m=e.onlyYearPicker,d=e.onChange,f=e.range,b=void 0!==f&&f,y=e.multiple,x=void 0!==y&&y,Z=e.name,O=e.id,M=e.title,E=e.placeholder,H=e.required,P=e.style,V=void 0===P?{}:P,A=e.className,z=void 0===A?"":A,B=e.inputClass,k=e.disabled,S=e.render,R=e.weekDays,I=e.months,F=e.children,Q=e.inputMode,$=e.scrollSensitive,Y=void 0===$||$,W=e.hideOnScroll,X=e.minDate,K=e.maxDate,J=e.formattingIgnoreList,re=e.containerClassName,ne=void 0===re?"":re,ae=e.calendarPosition,ce=void 0===ae?"bottom-left":ae,ie=e.editable,oe=void 0===ie||ie,se=e.onOpen,le=e.onClose,he=e.arrowClassName,ve=void 0===he?"":he,pe=e.zIndex,ue=void 0===pe?100:pe,ge=e.arrow,me=void 0===ge||ge,de=e.fixMainPosition,fe=e.onPositionChange,_e=e.onPropsChange,we=e.digits,be=e.readOnly,ye=e.shadow,xe=void 0===ye||ye,Ze=e.onFocusedDateChange,Oe=e.type,Me=e.weekPicker,Ee=e.mobileLabels,He=e.onOpenPickNewDate,Pe=void 0===He||He,je=e.mobileButtons,Ve=void 0===je?[]:je,Ce=e.dateSeparator,Ae=e.multipleRangeSeparator,Le=void 0===Ae?",":Ae,ze=u(e,q),Be=g(t.useState(),2),ke=Be[0],Se=Be[1],Re=g(t.useState(),2),De=Re[0],Ie=Re[1],Te=g(t.useState(""),2),Ne=Te[0],Fe=Te[1],Qe=g(t.useState(!1),2),$e=Qe[0],Ye=Qe[1],Ue=g(t.useState(!1),2),We=Ue[0],Xe=Ue[1],Ke=t.useRef(),qe=t.useRef(),Ge=t.useRef(),Je=t.useRef({}),et=Ce||(b||Me?" ~ ":", "),tt=arguments[0],rt="string"==typeof z&&z.includes("rmdp-mobile"),nt=t.useCallback((function(){if(!1!==(null==le?void 0:le())){var e=te(qe);if(e&&e.blur(),Je.current.mobile){var t=Ge.current.parentNode.parentNode;t.classList.remove("rmdp-calendar-container-mobile"),t.style.position="absolute",t.style.visibility="hidden"}Ye(!1),Xe(!1)}}),[le]),at=[{type:"button",className:"rmdp-button rmdp-action-button",onClick:function(){Ie(void 0),nt()},label:it("CANCEL")},{type:"button",className:"rmdp-button rmdp-action-button",onClick:function(){De&&(st(De,!0),Ie(void 0)),nt()},label:it("OK")}];rt&&!Je.current.mobile&&(Je.current=h(h({},Je.current),{},{mobile:!0})),!rt&&Je.current.mobile&&(Je.current=h(h({},Je.current),{},{mobile:!1})),J=j(J),l=L(v,m,l);var ct=g(D(a,o),2);return a=ct[0],o=ct[1],t.useEffect((function(){function e(e){if($e&&!Je.current.mobile){var t=[];if([qe.current,Ge.current].forEach((function(r){!r||r.contains(e.target)||e.target.classList.contains("b-deselect")||t.push(r)})),2===t.length)return nt();Ge.current&&Ge.current.contains(e.target)&&(Ke.current.removeTransition(),Ke.current.refreshPosition())}}function t(){W&&$e&&nt()}return document.addEventListener("click",e,!1),document.addEventListener("scroll",t,!0),function(){document.removeEventListener("click",e,!1),document.removeEventListener("scroll",t,!0)}}),[nt,r,$e,W]),t.useEffect((function(){var e=n,t=Je.current,r=t.date,c=t.initialValue,i=function(){return e[e.length-1]};function v(e){if(e)return e instanceof s.default||(e=new s.default({date:e,calendar:a,locale:o,format:l})),e.calendar!==a&&e.setCalendar(a),e.set({weekDays:R,months:I,digits:we,locale:o,format:l,ignoreList:JSON.parse(J)}),e}n||c||!r?c&&!n&&(c=void 0):e=r;var p="";if(b||x||w(e)){var u=function(e){return e=e.map(v).filter((function(e){return void 0!==e})),b&&e.length>2&&(e=[e[0],i()]),[e,ee(e,et)]};if(w(e)||(e=b&&x?e?[[e]]:[]:[e]),x&&b)e=e.map((function(t,r){var n=g(u(w(t)?t:[t]),2),a=n[0],c=n[1];return p+=c+(r<e.length-1?" ".concat(Le," "):""),a}));else{var m=g(u(e),2);e=m[0],p=m[1]}p=p.toString().replace(/\s,\s$/,"")}else w(e)&&(e=i()),(e=v(e))&&(p=e.format());document.activeElement!==te(qe)&&Fe(p),Je.current=h(h({},Je.current),{},{date:e,separator:et,initialValue:c||n}),Je.current.mobile&&Ke.current.isOpen?Ie(e):Se(e)}),[n,a,o,l,b,x,et,v,m,R,I,we,J]),t.useEffect((function(){var e=Je.current.selection;if(e){var t=te(qe);t&&(t.setSelectionRange(e,e),Je.current.selection=void 0,Ke.current.refreshPosition())}}),[Ne]),(x||b||w(ke)||!oe)&&(Q="none"),c.default.createElement(i.default,p({ref:function(e){if(e&&(e.openCalendar=function(){return setTimeout((function(){return ot()}),10)},e.closeCalendar=nt,e.isOpen=$e&&We),Ke.current=e,r instanceof Function)return r(e);r&&(r.current=e)},element:S?c.default.createElement("div",{ref:qe},t.isValidElement(S)?t.cloneElement(S,{value:Ne,openCalendar:ot,onFocus:ot,handleValueChange:lt,onChange:lt,locale:o,separator:et}):S instanceof Function?S(Ne,ot,lt,o,et):null):c.default.createElement("input",{ref:qe,type:Oe||"text",name:Z,id:O,title:M,required:H,onFocus:ot,className:B||"rmdp-input",placeholder:E,value:Ne,onChange:lt,style:V,autoComplete:"off",disabled:!!k,inputMode:Q||(rt?"none":void 0),readOnly:be}),popper:$e&&c.default.createElement(U,p({ref:Ge,value:De||ke,onChange:st,range:b,multiple:x,calendar:a,locale:o,format:l,onlyMonthPicker:v,onlyYearPicker:m,className:z+(rt?" rmdp-mobile":""),weekDays:R,months:I,digits:we,minDate:X,maxDate:K,formattingIgnoreList:JSON.parse(J),onPropsChange:_e,shadow:xe,onReady:ht,DatePicker:Ke.current,datePickerProps:tt,onFocusedDateChange:vt,weekPicker:Me},ze),F,rt&&function(){var e=[].concat.apply([],tt.plugins||[]).some((function(e){var t=e.props;return!(void 0===t?{}:t).disabled}));return w(Ve)&&c.default.createElement("div",{className:"rmdp-action-buttons ".concat(N(o)?"rmdp-rtl":""," ").concat(e?"rmdp-border-top":"")},Ve.concat(at).map((function(e,t){var r=e.label,n=u(e,G);return c.default.createElement("button",p({key:t},n),r)})))}()),active:!rt&&We,position:ce,arrow:!rt&&me,fixMainPosition:!Y||de,zIndex:ue,onChange:!rt&&fe,containerClassName:"rmdp-container ".concat(ne),arrowClassName:["rmdp-ep-arrow","rmdp-ep-".concat(xe?"shadow":"border"),z,ve].join(" ")},ze));function it(e){var t,r=o||(new s.default).locale;return"string"!=typeof r.name?e:(null==Ee?void 0:Ee[e])||(null===(t={en:{OK:"OK",CANCEL:"CANCEL"},fa:{OK:"تأیید",CANCEL:"لغو"},ar:{OK:"تأكيد",CANCEL:"الغاء"},hi:{OK:"पुष्टि",CANCEL:"रद्द करें"}}[T(r)])||void 0===t?void 0:t[e])||e}function ot(){if(!k&&!be&&!1!==(null==se?void 0:se())){if(Pe&&!n&&!Je.current.date&&!b&&!x&&!rt){var e=new s.default({calendar:a,locale:o,format:l,months:I,weekDays:R,digits:we,ignoreList:JSON.parse(J)});(!X||e>X)&&(!K||e<K)&&(st(e),null==_e||_e(h(h({},tt),{},{value:e})),Je.current.date=e)}var t=te(qe);rt&&t&&t.blur(),t||!$e?Ye(!0):nt()}}function st(e,t,r){if(rt&&!t)return Ie(e);var n="";if(e&&(n=x&&b&&w(e)?e.map((function(e){return ee(e,et)})).join(" ".concat(Le," ")):ee(e,et)),!1===(null==d?void 0:d(e,{validatedValue:n,input:qe.current,isTyping:!!r})))return Fe(Ne),!1;Se(e),Fe(r||n.toString().replace(/\s,\s$/,"")),Je.current=h(h({},Je.current),{},{date:e})}function lt(e){if(oe){Je.current.selection=e.target.selectionStart;var t=e.target.value,r={calendar:a,locale:o,format:l,ignoreList:JSON.parse(J)};if(we=w(we)?we:o.digits,!t)return Fe(""),st(null);if(we){var n,c,i=_(we);try{for(i.s();!(n=i.n()).done;){var v=n.value;t=t.replace(new RegExp(v,"g"),we.indexOf(v))}}catch(e){i.e(e)}finally{i.f()}c=w(ke)?x&&b?(t||"").split(Le).filter(Boolean).map(u):u(t):p(t),st(w(ke)||c.isValid?c:null,void 0,C(t,we))}}function p(e){return/(?=.*Y)(?=.*M)(?=.*D)/.test(l)?new s.default(h(h({},r),{},{date:e})):new s.default(r).parse(e)}function u(e){return(e||"").split(et).filter(Boolean).map((function(e){return p(e.trim())}))}}function ht(){if(Xe(!0),rt){var e=Ge.current.parentNode.parentNode;e.className="rmdp-calendar-container-mobile",e.style.position="fixed",e.style.transform="",setTimeout((function(){e.style.visibility="visible"}),50)}}function vt(e,t){w(Je.current.date)||!t||rt||nt(),null==Ze||Ze(e,t)}}));function ee(e,t){var r=[].concat(e).map((function(e){return null!=e&&e.isValid?e.format():""}));return r.toString=function(){return this.filter(Boolean).join(t)},r}function te(e){if(e.current)return"INPUT"===e.current.tagName?e.current:e.current.querySelector("input")}Object.defineProperty(e,"DateObject",{enumerable:!0,get:function(){return s.default}}),e.Calendar=U,e.default=J,e.getAllDatesInRange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(!Array.isArray(e))return[];var r=e[0],n=e[e.length-1],a=[];if(!(r instanceof s.default&&n instanceof s.default&&r.isValid&&n.isValid)||r>n)return[];for(r=new s.default(r),n=new s.default(n);r<=n;r.day++)a.push(t?r.toDate():new s.default(r));return a},e.toDateObject=z}(Mn);var Pa=zt(Mn);const ja=n.div`
2041
+ `,xn=e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M6.175 7.15833L10 10.975L13.825 7.15833L15 8.33333L10 13.3333L5 8.33333L6.175 7.15833Z",fill:L.grey.grey400})}),Zn=e("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:L.grey.grey400})}),On=h(((t,r)=>{const{width:n="100%",label:a,placeholder:c,allowInput:i=!0,onSelect:o,onInputChange:s,clearable:h,offsetTop:v,required:u,errorMessage:g,name:m,selectedValue:d,inputProps:f,onClear:_,addable:b,isDynamicOptionPosition:y,...x}=t,[Z,O]=p(!1),[M,E]=p(""),[H,P]=p(null),j=()=>{E(""),P(null),o?.(null),_?.()},V=(e,t)=>{P(e),o?.(e,t)},C=h&&H?e(yn,{onClick:j,children:Zn}):e(bn,{isOpened:Z,children:xn}),A=w((()=>(e=>{const t={};return e.reduce(((e,r)=>(-1!==e.findIndex((e=>e.label===r.label))?(t[r.label]++,e.push({...r,label:`${r.label} (${t[r.label]})`})):(e.push(r),t[r.label]=1),e)),[])})((i&&!H?x.data?.filter((e=>e.label.toLowerCase().includes(M.toLowerCase())||e.value.toLowerCase().includes(M.toLowerCase()))):x.data).reduce(((e,t)=>(-1===e.findIndex((e=>e.value===t.value))&&e.push(t),e)),[]))),[M,x.data,i]),L=(e,t)=>{E(e.label),V(e,t)};return l((()=>{E(x.value||"")}),[x.value]),l((()=>{const e=A.findIndex((e=>e.value===d));-1!==e&&L(A[e],e),0===d?.length&&j()}),[d]),e(wn,{width:`${n}`,disabled:f?.disabled,children:e(hr,{disabled:f?.disabled,offsetTop:v,opened:Z,onChange:e=>O(e),toggleOnTargetClick:!i,width:"100%",...x,searchable:!1,addable:b,onSelect:L,data:A,selectInputValue:M,withInput:!0,isDynamicOptionPosition:y,children:e(ct,{label:a,value:M,onChange:e=>{H&&V(null),E(e.target.value),s?.(e)},readOnly:!i,placeholder:c,rightSection:C,required:u,onBlur:e=>{setTimeout((()=>{e.relatedTarget&&e.relatedTarget.closest(".dropdown-selector")||O(!1)}),250)},onClick:e=>e.stopPropagation(),onFocus:()=>O(!0),error:!!g,errorMessage:g,name:m,...f,ref:r})})})}));var Mn={};function En(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 Hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?En(Object(r),!0).forEach((function(t){Pn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):En(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jn(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,a,c=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(c.push(n.value),!t||c.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vn(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)?Vn(e,t):void 0}}(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 Vn(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 Cn=h((function(e,t){var r=e.element,n=e.popper,a=e.position,c=void 0===a?"bottom-center":a,i=e.containerStyle,s=e.containerClassName,h=void 0===s?"":s,v=e.arrow,p=e.arrowStyle,m=void 0===p?{}:p,d=e.arrowClassName,_=void 0===d?"":d,b=e.fixMainPosition,x=e.fixRelativePosition,Z=e.offsetY,O=e.offsetX,M=e.animations,E=e.zIndex,P=void 0===E?0:E,j=e.popperShadow,V=e.onChange,C=e.active,A=void 0===C||C,L=e.portal,z=e.portalTarget,B="undefined"!=typeof window,k=B&&z instanceof HTMLElement,S=!0===v,R=n&&!0===A,D=u(),I=u(),T=u(),N=u(),F=w((function(){return{position:c,fixMainPosition:b,fixRelativePosition:x,offsetY:Z,offsetX:O,defaultArrow:S,animations:M,zIndex:P,onChange:V}}),[c,b,x,Z,O,S,M,V,P]),Q=f((function(){T.current&&(T.current.style.transition=""),I.current&&(I.current.parentNode.style.transition="")}),[]),$={element:Hn({display:"inline-block",height:"max-content"},i),arrow:Hn({visibility:"hidden",left:"0",top:"0",position:"absolute"},m),popper:{position:"absolute",left:"0",top:"0",willChange:"transform",visibility:"hidden",zIndex:P}};B&&!N.current&&(N.current=document.createElement("div"),N.current.data={portal:L,isValidPortalTarget:k}),l((function(){if(L&&!k){var e=N.current;return document.body.appendChild(e),function(){return document.body.removeChild(e)}}}),[L,k]),l((function(){if(!R)return Q(),I.current.parentNode.style.visibility="hidden",void(T.current&&(T.current.style.visibility="hidden"));function e(e){e&&"resize"!==e.type&&!e.target.contains(D.current)||(e&&Q(),An(D,I,T,F,e))}return e(),document.addEventListener("scroll",e,!0),window.addEventListener("resize",e),function(){document.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}}),[R,F,Q]),l((function(){var e={portal:L,isValidPortalTarget:k},t=N.current.data;JSON.stringify(e)!==JSON.stringify(t)&&(N.current.data=e,D.current.refreshPosition())}),[L,k]);var Y=o.createElement(o.Fragment,null,function(){if(!v||!R)return null;var e=o.createElement("div",{ref:T,style:$.arrow}),t=y(v)?{children:v}:{className:"ep-arrow ".concat(j?"ep-shadow":""," ").concat(_)};return g(e,t)}(),o.createElement("div",{className:j?"ep-popper-shadow":"",style:$.popper},o.createElement("div",{ref:I},n)));return o.createElement("div",{ref:function(e){if(e&&(e.removeTransition=Q,e.refreshPosition=function(){return setTimeout((function(){return An(D,I,T,F,{})}),10)}),D.current=e,t instanceof Function)return t(e);t&&(t.current=e)},className:h,style:$.element},r,L&&B?H(Y,k?z:N.current):Y)}));function An(e,t,r,n,a){var c=n.position,i=n.fixMainPosition,o=n.fixRelativePosition,s=n.offsetY,l=void 0===s?0:s,h=n.offsetX,v=void 0===h?0:h,p=n.defaultArrow,u=n.animations,g=void 0===u?[]:u,m=n.zIndex,d=n.onChange;if(e.current&&t.current){var f,_,w,b,y=(_=void 0!==window.pageXOffset,w="CSS1Compat"===(document.compatMode||""),{scrollLeft:_?window.pageXOffset:w?document.documentElement.scrollLeft:document.body.scrollLeft,scrollTop:_?window.pageYOffset:w?document.documentElement.scrollTop:document.body.scrollTop}),x=y.scrollLeft,Z=y.scrollTop,O=Ln(e.current,x,Z),M=O.top,E=O.left,H=O.height,P=O.width,j=O.right,V=O.bottom,C=Ln(t.current,x,Z),A=C.top,L=C.left,z=C.height,B=C.width,k=document.documentElement,S=k.clientHeight,R=k.clientWidth,D=t.current.parentNode,I=function(e){if(!e)return[0,0];var t=jn((e.style.transform.match(/translate\((.*?)px,\s(.*?)px\)/)||[]).map((function(e){return Number(e)})),3),r=t[1],n=void 0===r?0:r,a=t[2];return[n,void 0===a?0:a]}(D),T=jn(I,2),N=T[0],F=T[1],Q=function(e){var t=jn(e.split("-"),2),r=t[0],n=void 0===r?"bottom":r,a=t[1],c=void 0===a?"center":a;"auto"===n&&(n="bottom"),"auto"===c&&(c="center");var i="top"===n||"bottom"===n,o="left"===n||"right"===n;return o&&("start"===c&&(c="top"),"end"===c&&(c="bottom")),i&&("start"===c&&(c="left"),"end"===c&&(c="right")),[n,c,i,o]}(c),$=jn(Q,4),Y=$[0],U=$[1],W=$[2],X=$[3],K=Y,q=function(e,t){return"translate(".concat(e,"px, ").concat(t,"px)")},G=P-B,J=H-z,ee="left"===U?0:"right"===U?G:G/2,te=G-ee,re="top"===U?0:"bottom"===U?J:J/2,ne=J-re,ae=E-L+N,ce=M-A+F,ie=0,oe=0,se=zn(e.current),le=[],he=r.current,ve=Ln(he,x,Z)||{},pe=ve.height,ue=void 0===pe?0:pe,ge=ve.width,me=void 0===ge?0:ge,de=ae,fe=ce,_e={top:"bottom",bottom:"top",left:"right",right:"left"};for(W&&(ae+=ee,ce+="top"===Y?-z:H,p&&(ue=11,me=20)),X&&(ae+="left"===Y?-B:P,ce+=re,p&&(ue=20,me=11));se;)le.push(se),be(Ln(se,x,Z)),se=zn(se.parentNode);be({top:Z,bottom:Z+S,left:x,right:x+R,height:S,width:R}),W&&(ce+="bottom"===K?l:-l),X&&(ae+="right"===K?v:-v),ae-=ie,ce-=oe,f=_e[K],he&&(W&&((b=P<B)?de+=P/2:de=ae+B/2,de-=me/2,"bottom"===K&&(fe=ce,ce+=ue),"top"===K&&(fe=(ce-=ue)+z),ie<0&&ie-ee<0&&(b?de+=(ee-ie)/2:P-ee+ie<B&&(de+=(P-ee+ie-B)/2)),ie>0&&ie+te>0&&(b?de-=(ie+te)/2:P-ie-te<B&&(de-=(P-ie-te-B)/2))),X&&((b=H<z)?fe+=H/2:fe=ce+z/2,fe-=ue/2,"left"===K&&(de=(ae-=me)+B),"right"===K&&(de=ae,ae+=me),oe<0&&oe-re<0&&(b?fe+=(re-oe)/2:H-re+oe<z&&(fe+=(H-re+oe-z)/2)),oe>0&&oe+ne>0&&(b?fe-=(oe+ne)/2:H-oe-ne<z&&(fe-=(H-oe-ne-z)/2))),he.setAttribute("direction",f),he.style.height=ue+"px",he.style.width=me+"px",he.style.transform=q(de,fe),he.style.visibility="visible",he.style.zIndex=m+1),D.style.transform=q(ae,ce);var we={popper:{top:ce,bottom:ce+z,left:ae,right:ae+B,height:z,width:B},element:{top:M,bottom:V,left:E,right:j,height:H,width:P},arrow:{top:fe,bottom:fe+ue,left:de,right:de+me,height:ue,width:me,direction:f},position:K+"-"+(0!==ie?"auto":U),scroll:{scrollLeft:x,scrollTop:Z},scrollableParents:le,event:a};a||g.forEach((function(e){e({popper:D,arrow:he,data:Hn(Hn({},we),{},{getTransform:q,mirror:_e})})})),D.style.visibility="visible","function"==typeof d&&d(we)}function be(e){var t=e.top,r=e.bottom,n=e.left,a=e.right,c=e.height,s=e.width;if(W){var h=Math.round(M-t+H/2),p=Math.round(c/2);i||(M-(z+l+ue)<t&&h<=p&&"top"===K?(ce+=z+H,K="bottom"):V+z+l+ue>c+t&&h>=p&&"bottom"===K&&(ce-=z+H,K="top")),o||(E+ee<n&&(ie=Bn(j-me>n?E+ee-n:-P+ee+me,ie)),j-te>a&&(ie=Bn(E+me<a?j-te-a:P-te-me,ie)))}if(X){var u=Math.round(E-n+P/2),g=Math.round(s/2);i||(E-(B+v+me)<n&&u<g&&"left"===K?(ae+=P+B,K="right"):j+B+v+me>a&&u>g&&"right"===K&&(ae-=P+B,K="left")),o||(M+re<t&&(oe=Bn(V-ue>t?M+re-t:-H+re+ue,oe)),V-ne>r&&(oe=Bn(M+ue<r?V-ne-r:H-ne-ue,oe)))}}}function Ln(e,t,r){if(e){var n=e.getBoundingClientRect(),a=n.top,c=n.left,i=n.width,o=n.height,s=a+r,l=c+t;return{top:s,bottom:s+o,left:l,right:l+i,width:i,height:o}}}function zn(e){if(e&&"HTML"!==e.tagName){var t=window.getComputedStyle(e),r=function(e){return["auto","scroll"].includes(e)};return e.clientHeight<e.scrollHeight&&r(t.overflowX)||e.clientWidth<e.scrollWidth&&r(t.overflowY)?e:zn(e.parentNode)}}function Bn(e,t){return Math.round(Math.abs(e))>Math.round(Math.abs(t))?e:t}var kn=Bt(Object.freeze({__proto__:null,default:Cn}));function Sn(e){return(Sn="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 Rn(e){return function(e){if(Array.isArray(e))return Un(e)}(e)||Dn(e)||Yn(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 Dn(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function In(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Yn(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,c=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw c}}}}function Tn(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 Nn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(r),!0).forEach((function(t){Fn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fn(e,t,r){return(t=Xn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qn(e,t){return Wn(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||Yn(e,t)||$n()}function $n(){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 Yn(e,t){if(e){if("string"==typeof e)return Un(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)?Un(e,t):void 0}}function Un(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 Wn(e){if(Array.isArray(e))return e}function Xn(e){var t=function(e,t){if("object"!==Sn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Sn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Sn(t)?t:String(t)}function Kn(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}function qn(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,Jn(e,t,"get"))}function Gn(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,Jn(e,t,"set"),r),r}function Jn(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var ea={name:"gregorian_en",months:[["January","Jan"],["February","Feb"],["March","Mar"],["April","Apr"],["May","May"],["June","Jun"],["July","Jul"],["August","Aug"],["September","Sep"],["October","Oct"],["November","Nov"],["December","Dec"]],weekDays:[["Saturday","Sat"],["Sunday","Sun"],["Monday","Mon"],["Tuesday","Tue"],["Wednesday","Wed"],["Thursday","Thu"],["Friday","Fri"]],digits:["0","1","2","3","4","5","6","7","8","9"],meridiems:[["AM","am"],["PM","pm"]]},ta={name:"gregorian",startYear:1,yearLength:365,epoch:1721424,century:20,weekStartDayIndex:1,getMonthLengths:function(e){return[31,e?29:28,31,30,31,30,31,31,30,31,30,31]},isLeap:function(e){return e%4==0&&e%100!=0||e%400==0},getLeaps:function(e){if(0!==e){for(var t=e>0?1:-1,r=[];e>0?t<=e:e<=t;)this.isLeap(t)&&r.push(t),e>0?t++:t--;return r}},getDayOfYear:function(e){for(var t=e.year,r=e.month,n=e.day,a=this.getMonthLengths(this.isLeap(t)),c=0;c<r.index;c++)n+=a[c];return n},getAllDays:function(e){var t=e.year;return this.yearLength*(t-1)+this.leapsLength(t)+this.getDayOfYear(e)},leapsLength:function(e){return((e-1)/4|0)+(-(e-1)/100|0)+((e-1)/400|0)},guessYear:function(e,t){return~~(e/365.24)+(t>0?1:-1)}};function ra(e){return e&&e.constructor===Object}function na(e){if(!isNaN(e))return parseInt(e)}function aa(e){return Array.isArray(e)}function ca(e,t,r){return void 0===e||e<t||e>r}var ia=new WeakMap,oa=new WeakMap,sa=new WeakMap,la=new WeakMap,ha=new WeakMap,va=new WeakMap,pa=new WeakMap,ua=new WeakMap,ga=new WeakMap,ma=new WeakMap,da=new WeakMap,fa=new WeakMap,_a=new WeakMap,wa=new WeakMap,ba=new WeakMap,ya=new WeakMap,xa=new WeakMap,Za=new WeakMap,Oa=new WeakMap,Ma=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Kn(this,ia,{writable:!0,value:void 0}),Kn(this,oa,{writable:!0,value:void 0}),Kn(this,sa,{writable:!0,value:void 0}),Kn(this,la,{writable:!0,value:void 0}),Kn(this,ha,{writable:!0,value:void 0}),Kn(this,va,{writable:!0,value:void 0}),Kn(this,pa,{writable:!0,value:void 0}),Kn(this,ua,{writable:!0,value:void 0}),Kn(this,ga,{writable:!0,value:ea}),Kn(this,ma,{writable:!0,value:ta}),Kn(this,da,{writable:!0,value:!1}),Kn(this,fa,{writable:!0,value:{}}),Kn(this,_a,{writable:!0,value:/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d\.\d\d\dZ$/}),Kn(this,wa,{writable:!0,value:[]}),Kn(this,ba,{writable:!0,value:!0}),Kn(this,ya,{writable:!0,value:function(e,t){switch(e){case"YYYY":return["year",t];case"YY":return["year","".concat(qn(r,ma).century).concat(t)];case"MMMM":case"MMM":return["month",r.months.findIndex((function(e){var r=e.name,n=e.shortName;return new RegExp(t,"i").test(r+n)}))+1];case"MM":case"M":return["month",t];case"DD":case"D":return["day",t];case"HH":case"H":return["hour",t];case"hh":case"h":var n=na(t);return["hour",n>12?n-12:n];case"mm":case"m":return["minute",t];case"ss":case"s":return["second",t];case"SSS":case"SS":case"S":return["millisecond",t];default:return[]}}}),Kn(this,xa,{writable:!0,value:function(){return 0===qn(r,ia)&&0!==qn(r,ma).startYear}}),Kn(this,Za,{writable:!0,value:function(){if(qn(r,ba)&&r.isValid){var e=Math.floor,t=function(t,r){return[(c=t,(c<0?-1:1)*Math.abs(e(t/r))),(n=t,a=r,(n<0&&-0!==e(n%a)?a:0)+e(t%r))];var n,a,c},n=function(){if(qn(r,oa)<0||qn(r,oa)>11){var e=qn(r,oa)<0?-1:1,n=Qn(t(qn(r,oa),12),2),a=n[0],c=n[1];Gn(r,ia,qn(r,ia)+a),Gn(r,oa,c),qn(r,xa).call(r)&&Gn(r,ia,e)}};for(Gn(r,ba,!1),[["millisecond","second",1e3],["second","minute",60],["minute","hour",60],["hour","day",24]].forEach((function(e){var n=Qn(e,3),a=n[0],c=n[1],i=n[2];if(function(e,t){return e>=t||e<0}(r[a],i)){var o=Qn(t(r[a],i),2),s=o[0],l=o[1];r[c]+=s,r[a]=l}})),Gn(r,ba,!0),n();qn(r,sa)<-qn(r,ma).yearLength||qn(r,sa)>qn(r,ma).yearLength;){if(qn(r,oa)>0){for(var a=qn(r,ma).getMonthLengths(r.isLeap),c=0;c<qn(r,oa);c++)Gn(r,sa,qn(r,sa)+a[c]);Gn(r,oa,0)}var i=r.isLeap?r.calendar.yearLength+1:r.calendar.yearLength;Gn(r,sa,qn(r,sa)+i*(qn(r,sa)<0?1:-1)),Gn(r,ia,qn(r,ia)+(qn(r,sa)<0?-1:1))}for(;;){var o;for(n();qn(r,sa)<1;)Gn(r,oa,qn(r,oa)-1),n(),Gn(r,sa,r.month.length+qn(r,sa));if(qn(r,sa)<=r.month.length||isNaN(qn(r,sa)))break;Gn(r,sa,qn(r,sa)-r.month.length),Gn(r,oa,(o=qn(r,oa),++o))}qn(r,la)||Gn(r,la,0),qn(r,ha)||Gn(r,ha,0),qn(r,va)||Gn(r,va,0),qn(r,pa)||Gn(r,pa,0)}}}),Kn(this,Oa,{writable:!0,value:function(){return(qn(r,fa).weekDays||qn(r,ga).weekDays).map((function(e,t){var n=Qn(e,2),a=n[0],c=n[1],i=t-r.weekStartDayIndex;return i<0&&(i+=7),{name:a,shortName:c,index:i,number:i+1,toString:function(){return this.number.toString()},valueOf:function(){return this.number}}}))}});var n=ra(t)?Nn({},t):t,a=!0;if(n&&"boolean"!=typeof n||(n={date:new Date}),ra(n)||(n={date:n}),0!==Object.keys(n).length){for(var c in ra(n.calendar)&&Gn(this,ma,n.calendar),ra(n.locale)&&Gn(this,ga,n.locale),isNaN(n.year)&&isNaN(n.month)&&isNaN(n.day)&&!n.date&&(n.date=new Date),n.date&&("string"==typeof n.date&&n.format&&Gn(this,ua,n.format),this.setDate(n.date),n.calendar&&this.convert(n.calendar),a=!1),delete n.calendar,delete n.locale,delete n.date,n)this.set(c,n[c]);qn(this,xa).call(this)&&Gn(this,ia,-1),a&&qn(this,Za).call(this)}}var t,r;return t=e,r=[{key:"parse",value:function(e){if(!e)return this;var t,r,n=qn(this,ua),a=qn(this,ga).digits,c=In(a);try{for(c.s();!(t=c.n()).done;){var i=t.value;e=e.replace(new RegExp(i,"g"),a.indexOf(i))}}catch(e){c.e(e)}finally{c.f()}if(n)for(var o=n.split(/[^\w\u0600-\u06FF]/),s=e.split(/[^\w\u0600-\u06FF]/),l=0;l<o.length;l++)this.set.apply(this,Rn(qn(this,ya).call(this,o[l],s[l])));else{var h=(Wn(r=e.match(/(-?\d{2,4})?\W?([A-z]{3,9}|\d{1,2})?\W?(\d{1,2})?\W?(\d{1,2})?\W?(\d{1,2})?\W?(\d{1,2})?\W?(\d{1,3})?\W?(am|pm)?/))||Dn(r)||Yn(r)||$n()).slice(1),v=h[1];v&&(v=/\d+/.test(v)?na(v)-1:this.months.findIndex((function(e){return new RegExp(v,"i").test(e.name)}))),h[1]=v;var p=Qn(h.map(na),7),u=p[0],g=p[1],m=p[2],d=p[3],f=p[4],_=p[5],w=p[6];Gn(this,ia,u),Gn(this,oa,g),Gn(this,sa,m),Gn(this,la,d),Gn(this,ha,f),Gn(this,va,_),Gn(this,pa,w)}var b=Qn(qn(this,ga).meridiems[1],2),y=b[0],x=b[1];return qn(this,la)<12&&(e.includes(y)||e.includes(x))&&Gn(this,la,qn(this,la)+12),qn(this,Za).call(this),this}},{key:"convert",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ta,r=arguments.length>1?arguments[1]:void 0;if(ra(r)&&Gn(this,ga,r),!ra(t)||t.name===qn(this,ma).name)return this;var n=this.toJulianDay()-t.epoch,a=new e({calendar:t,year:t.guessYear(n,qn(this,ia)),month:1,day:1});return a.day+=n-a.toDays(),Gn(this,ia,a.year),Gn(this,oa,a.month.index),Gn(this,sa,a.day),Gn(this,ma,t),this}},{key:"format",value:function(e,t){if(!this.isValid||e&&"string"!=typeof e)return"";e||(e=qn(this,ua)||"YYYY/MM/DD"),aa(t)||(t=[]),t=(t=t.concat(qn(this,wa))).filter((function(e){return"string"==typeof e||(console.warn("type of all items in the ignore list must be string, found",Sn(e)),!1)})).map((function(e){return e.replace(/[*/+\-()[\]{}\s$^]/g,(function(e){return"\\"+e}))}));var r,n=new RegExp("".concat(t.join("|")).concat(t.length>0?"|":"","YYYY|YY|MMMM|MMM|MM|M|WW|W|DDDD|DDD|DD|D|dddd|ddd|dd|d|HH|H|hh|h|mm|m|ss|s|SSS|SS|S|A|a|."),"g"),a="",c=In(e.match(n)||[]);try{for(c.s();!(r=c.n()).done;){var i=r.value,o=this.getValue(i);a+=t.includes(i)?i:0===o?o:o||i}}catch(e){c.e(e)}finally{c.f()}var s=this.digits;return a.replace(/[0-9]/g,(function(e){return s[e]}))}},{key:"getProperty",value:function(e){return this.getValue(e)}},{key:"getValue",value:function(e){var t=function(e){return e<10?"0"+e:e};switch(e){case"YYYY":return this.year;case"YY":return this.year.toString().substring(2,4);case"MMMM":return this.month.name;case"MMM":return this.month.shortName;case"MM":return t(this.month.number);case"M":return this.month.number;case"WW":return t(this.weekOfYear);case"W":return this.weekOfYear;case"DDDD":case"DDD":return this.dayOfYear;case"DD":return t(this.day);case"D":return this.day;case"HH":return t(this.hour);case"H":return this.hour;case"dddd":return this.weekDay.name;case"ddd":return this.weekDay.shortName;case"dd":return t(this.weekDay.number);case"d":return this.weekDay.number;case"hh":return t(this.hour>12?this.hour-12:this.hour||12);case"h":return this.hour>12?this.hour-12:this.hour||12;case"mm":return t(this.minute);case"m":return this.minute;case"ss":return t(this.second);case"s":return this.second;case"SSS":return qn(this,pa)<10?"00".concat(qn(this,pa)):qn(this,pa)<100?"0".concat(qn(this,pa)):qn(this,pa);case"SS":return qn(this,pa)<10?"00":qn(this,pa)<100?("0"+qn(this,pa)).substring(2,0):qn(this,pa).toString().substring(0,2);case"S":return qn(this,pa)<10||qn(this,pa)<100?"0":qn(this,pa).toString().substring(0,1);case"a":return this.hour>=12?qn(this,ga).meridiems[1][1]:qn(this,ga).meridiems[0][1];case"A":return this.hour>=12?qn(this,ga).meridiems[1][0]:qn(this,ga).meridiems[0][0];default:return""}}},{key:"setYear",value:function(e){return this.year=e,this}},{key:"setMonths",value:function(e){return this.months=e,this}},{key:"setMonth",value:function(e){return this.month=e,this}},{key:"setWeekDays",value:function(e){return this.weekDays=e,this}},{key:"setDigits",value:function(e){return this.digits=e,this}},{key:"setDay",value:function(e){return this.day=e,this}},{key:"setHour",value:function(e){return this.hour=e,this}},{key:"setMinute",value:function(e){return this.minute=e,this}},{key:"setSecond",value:function(e){return this.second=e,this}},{key:"setMillisecond",value:function(e){return this.millisecond=e,this}},{key:"setFormat",value:function(e){return Gn(this,ua,e),this}},{key:"setLocale",value:function(e){return this.locale=e,this}},{key:"setCalendar",value:function(e){return this.calendar=e,this}},{key:"setDate",value:function(t){if("string"==typeof t){if(!qn(this,_a).test(t))return this.parse(t);t=new Date(t)}return"number"==typeof t&&(t=new Date(t)),t instanceof Date&&(Gn(this,ma,ta),Gn(this,ia,t.getFullYear()),Gn(this,oa,t.getMonth()),Gn(this,sa,t.getDate()),Gn(this,la,t.getHours()),Gn(this,ha,t.getMinutes()),Gn(this,va,t.getSeconds()),Gn(this,pa,t.getMilliseconds()),Gn(this,da,!1)),t instanceof e&&(Gn(this,ia,t.year),Gn(this,oa,t.month.index),Gn(this,sa,t.day),Gn(this,la,t.hour),Gn(this,ha,t.minute),Gn(this,va,t.second),Gn(this,pa,t.millisecond),Gn(this,ga,t.locale),Gn(this,ua,t._format),Gn(this,ma,t.calendar),Gn(this,da,t.isUTC),Gn(this,wa,t.ignoreList),Gn(this,fa,t.custom)),this}},{key:"setIgnoreList",value:function(e){return this.ignoreList=e,this}},{key:"set",value:function(e,t){if(null==e)return this;if(ra(e)){var r=Nn({},e);for(var n in r.date&&(this.setDate(r.date),delete r.date),r.calendar&&(this.convert(r.calendar),delete r.calendar),r.locale&&(this.setLocale(r.locale),delete r.locale),Gn(this,ba,!1),r)this.set(n,r[n]);return Gn(this,ba,!0),qn(this,Za).call(this),this}"format"===e&&(e="_format");try{this[e]=t}catch(e){}return this}},{key:"add",value:function(e,t){if(!(e=na(e))||!t)return this;switch(t){case"years":case"y":t="year";break;case"months":case"M":t="month";break;case"days":case"d":t="day";break;case"hours":case"h":t="hour";break;case"minutes":case"m":t="minute";break;case"seconds":case"s":t="second";break;case"milliseconds":case"ms":t="millisecond"}return this[t]+=e,this}},{key:"subtract",value:function(e,t){return this.add(-e,t)}},{key:"toFirstOfYear",value:function(){return this.month=1,this.day=1,this}},{key:"toLastOfYear",value:function(){return this.day>=29&&(this.day=29),this.month=12,this.toLastOfMonth(),this}},{key:"toFirstOfMonth",value:function(){return Gn(this,sa,1),this}},{key:"toLastOfMonth",value:function(){return Gn(this,sa,0),Gn(this,oa,qn(this,oa)+1),qn(this,Za).call(this),this}},{key:"toFirstOfWeek",value:function(){return this.day-=this.weekDay.index,this}},{key:"toLastOfWeek",value:function(){return this.day+=6-this.weekDay.index,this}},{key:"toFirstWeekOfYear",value:function(){return this.toFirstOfYear(),0===this.weekDay.index?this:this.toLastOfWeek().setDay(this.day+1)}},{key:"toLastWeekOfYear",value:function(){return this.toLastOfYear().toFirstOfWeek()}},{key:"toString",value:function(){return this.format()}},{key:"toDate",value:function(){var t=new e(this);return"gregorian"!==qn(this,ma).name&&t.convert(ta),new Date(t.year,t.month.index,t.day,t.hour,t.minute,t.second,t.millisecond)}},{key:"toUTC",value:function(){return qn(this,da)||(this.minute+=this.toDate().getTimezoneOffset(),Gn(this,da,!0)),this}},{key:"toUnix",value:function(){return this.unix}},{key:"toJulianDay",value:function(){return this.toDays()+qn(this,ma).epoch}},{key:"toObject",value:function(){return{year:qn(this,ia),month:this.month,day:qn(this,sa),weekDay:this.weekDay,hour:qn(this,la),minute:qn(this,ha),second:qn(this,va),millisecond:qn(this,pa),weekOfYear:this.weekOfYear,dayOfYear:this.dayOfYear,daysLeft:this.daysLeft,calendar:qn(this,ma),locale:qn(this,ga),format:qn(this,ua)||"YYYY/MM/DD",ignoreList:qn(this,wa)}}},{key:"toJSON",value:function(){return this.valueOf()}},{key:"valueOf",value:function(){return this.toDate().valueOf()}},{key:"toDays",value:function(){if(this.isValid)return qn(this,ma).getAllDays(this)}},{key:"dayOfBeginning",get:function(){return this.toDays()}},{key:"dayOfYear",get:function(){if(this.isValid)return qn(this,ma).getDayOfYear(this)}},{key:"weekOfYear",get:function(){if(this.isValid)return 1+~~(this.dayOfYear/7)}},{key:"daysLeft",get:function(){if(this.isValid){var e=qn(this,ma).yearLength;return(this.isLeap?e+1:e)-this.dayOfYear}}},{key:"year",get:function(){return qn(this,ia)},set:function(e){Gn(this,ia,na(e)),qn(this,Za).call(this)}},{key:"month",get:function(){return this.months[qn(this,oa)]||{}},set:function(e){var t;e=null!==(t=na(e.valueOf())-1)&&void 0!==t?t:void 0,Gn(this,oa,e),ca(e,0,11)&&qn(this,Za).call(this)}},{key:"monthIndex",get:function(){return qn(this,oa)}},{key:"day",get:function(){return qn(this,sa)},set:function(e){e=na(e),Gn(this,sa,e),ca(e,1,28)&&qn(this,Za).call(this)}},{key:"weekDay",get:function(){if(!this.isValid)return{};var e=(this.toJulianDay()+3)%7;return qn(this,Oa).call(this)[e]}},{key:"hour",get:function(){return qn(this,la)},set:function(e){e=na(e),Gn(this,la,e),ca(e,0,23)&&qn(this,Za).call(this)}},{key:"minute",get:function(){return qn(this,ha)},set:function(e){e=na(e),Gn(this,ha,e),ca(e,0,59)&&qn(this,Za).call(this)}},{key:"second",get:function(){return qn(this,va)},set:function(e){e=na(e),Gn(this,va,e),ca(e,0,59)&&qn(this,Za).call(this)}},{key:"millisecond",get:function(){return qn(this,pa)},set:function(e){e=na(e),Gn(this,pa,e),ca(e,0,999)&&qn(this,Za).call(this)}},{key:"months",get:function(){var e=qn(this,ma).getMonthLengths(this.isLeap),t=(qn(this,fa).months||qn(this,ga).months).map((function(t,r){var n=Qn(t,2);return{name:n[0],shortName:n[1],length:e[r],index:r,number:r+1,toString:function(){return this.number.toString()},valueOf:function(){return this.number}}}));return t},set:function(e){if(!e)return delete qn(this,fa).months;aa(e)&&12===e.length&&e.every((function(e){return aa(e)&&2===e.length&&e.every((function(e){return"string"==typeof e}))}))&&(qn(this,fa).months=e)}},{key:"weekDays",get:function(){return qn(this,Oa).call(this).sort((function(e,t){return e.index-t.index}))},set:function(e){if(!e)return delete qn(this,fa).weekDays;aa(e)&&7===e.length&&e.every((function(e){return aa(e)&&2===e.length&&e.every((function(e){return"string"==typeof e}))}))&&(qn(this,fa).weekDays=e)}},{key:"leaps",get:function(){return qn(this,ma).getLeaps(qn(this,ia))}},{key:"calendar",get:function(){return qn(this,ma)},set:function(e){this.convert(e)}},{key:"locale",get:function(){return qn(this,ga)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ea;ra(e)&&Gn(this,ga,e)}},{key:"custom",get:function(){return qn(this,fa)}},{key:"meridiems",get:function(){return qn(this,ga).meridiems}},{key:"digits",get:function(){return qn(this,fa).digits||qn(this,ga).digits},set:function(e){if(!e)return delete qn(this,fa).digits;aa(e)&&10===e.length&&(qn(this,fa).digits=e)}},{key:"_format",get:function(){return qn(this,ua)},set:function(e){"string"==typeof e&&Gn(this,ua,e)}},{key:"isLeap",get:function(){return qn(this,ma).isLeap(qn(this,ia))}},{key:"isValid",get:function(){return!isNaN(qn(this,ia))&&!isNaN(qn(this,oa))&&!isNaN(qn(this,sa))}},{key:"isUTC",get:function(){return qn(this,da)}},{key:"unix",get:function(){return(this.valueOf()-this.millisecond)/1e3}},{key:"ignoreList",get:function(){return qn(this,wa)},set:function(e){aa(e)&&Gn(this,wa,e)}},{key:"weekStartDayIndex",get:function(){return qn(this,ma).weekStartDayIndex},set:function(e){void 0!==(e=na(e))&&(qn(this,ma).weekStartDayIndex=Math.abs(e)%7)}},{key:"date",set:function(e){this.setDate(e)}}],r&&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,Xn(n.key),n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ea=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Ma)),Ha=Bt(Object.freeze({__proto__:null,default:Ea}));!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=o,r=kn,n=Ha;function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(t),i=a(r),s=a(n);function l(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 h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(){return(p=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}).apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function g(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,a,c=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(c.push(n.value),!t||c.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw a}}return c}}(e,t)||d(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 m(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(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 d(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}function f(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 _(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=d(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,c=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw c}}}}function w(e){return Array.isArray(e)}function b(e){var r=e.state.date,n=r.calendar,a=r.locale,i=e.customWeekDays,o=e.weekStartDayIndex,l=e.displayWeekNumbers,h=e.weekNumber,v=t.useMemo((function(){var e=i;return w(e)&&e.length>=7?(e.length=7,e=e.map((function(e){return w(e)&e.length>1?e=e[1]:w(e)&&(e=e[0]),e}))):e=new s.default({year:1,calendar:n,locale:a}).weekDays.map((function(e){return e.shortName})),e}),[n,a,i]);return v=m(v).slice(o).concat(m(v).splice(0,o)),c.default.createElement("div",{className:"rmdp-week"},l&&c.default.createElement("div",{className:"rmdp-week-day"},h),v.map((function(e,t){return c.default.createElement("div",{key:t,className:"rmdp-week-day"},e)})))}function y(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)return!1;if(e.year===t.year){if(n)return!0;if(e.monthIndex===t.monthIndex)return!!r||e.day===t.day}}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY/MM/DD";return e.format(t)}function Z(e,t,r){var n=r.multiple,a=r.range,c=r.selectedDate,i=r.onlyMonthPicker,o=r.onlyYearPicker,l=r.format,h=r.focused,v=r.weekPicker;e.setFormat(l);var p=new s.default(e);return[c=n&&a?function(){var e=!0;w(c)||(c=[[c]]);var t=c.find((function(e){return 1===e.length})),r=i?"YYYY/MM":"YYYY/MM/DD",n=c;if(t){var a=t[0];n=n.filter((function(e){if(1===e.length)return!0;var t=g(e,2),n=t[0],c=t[1],i=g([a,p].sort((function(e,t){return e-t})),2),o=g([n,c,i[0],i[1]].map((function(e){return x(e,r)})),4),s=o[0],l=o[1],h=o[2],v=o[3];return!(h<=s&&v>=l||h>=s&&v>=l&&h<=l||h<=s&&v<=l&&v>=s)}))}else n=n.filter((function(e){if(!w(e))return!0;if(0===e.length)return!1;var t=g(e,2),n=g([t[0],t[1],p].map((function(e){return x(e,r)})),3),a=n[0],c=n[1],i=n[2];return!(i>=a&&i<=c)}));return n=n.map((function(t){var r;return w(t)?1===t.length?(e=!1,r=t.concat(p)):r=t:(e=!1,r=[t,p]),r.sort((function(e,t){return e-t}))})),e&&(n=[].concat(m(n),[[p]])),n}():n?function(){var r=c.filter((function(t){return!y(e,t,i,o)}));return r.length===c.length?r.push(p):p=r.find((function(e){return y(e,h)})),t&&r.sort((function(e,t){return e-t})),r}():a?v?[new s.default(p).toFirstOfWeek(),new s.default(p).toLastOfWeek()]:2===c.length||0===c.length?[p]:1===c.length?[c[0],p].sort((function(e,t){return e-t})):void 0:p,p]}function O(e,t,r,n){var a=[],c=r?"YYYY/MM":"YYYY/MM/DD",i=x(e,c);function o(t){var n=t[0],o=t[1];if(1===t.length)y(e,n,r)&&a.push("rmdp-range");else if(2===t.length){var s=g([n,o].map((function(e){return x(e,c)})),2),l=s[0],h=s[1];i>=l&&i<=h&&a.push("rmdp-range"),i===l&&a.push("start"),i===h&&a.push("end")}}return n?(w(t)?t:[[t]]).forEach(o):o(t),a.join(" ")}function M(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"day",c=[];if(n&&1===(null==t?void 0:t.length)&&r){var i="day"===a?"YYYY/MM/DD":"YYYY/MM",o=r.format(i),s=t[0].format(i),l=e.format(i);(l>s&&l<=o||l<s&&l>=o)&&(c.push("rmdp-range-hover"),l===o&&c.push(o>s?"end":"start"))}return c}function E(e){var r=e.state,n=e.onChange,a=e.showOtherDays,i=void 0!==a&&a,o=e.mapDays,l=e.onlyShowInRangeDates,u=e.customWeekDays,m=e.sort,d=e.numberOfMonths,f=e.isRTL,_=e.weekStartDayIndex,w=e.handleFocusedDate,x=e.hideWeekDays,E=e.fullYear,H=g(e.monthAndYears,1)[0],P=e.displayWeekNumbers,j=e.weekNumber,V=void 0===j?"":j,C=e.rangeHover,A=e.highlightToday,L=t.useRef({}),z=r.today,B=r.minDate,k=r.maxDate,S=r.range,R=r.multiple,D=r.date,I=r.selectedDate,T=r.onlyMonthPicker,N=r.onlyYearPicker,F=!T&&!N,Q=g(t.useState(),2),$=Q[0],Y=Q[1];L.current.date=D;var U=t.useMemo((function(){return F?function(e,t,r,n){if(!e)return[];for(var a=[],c=0;c<r;c++){var i=(e=new s.default(e).toFirstOfMonth()).monthIndex,o=[];e.toFirstOfWeek().add(n,"day"),e.monthIndex===i&&e.day>1&&e.subtract(7,"days");for(var l=0;l<6;l++){for(var h=[],v=0;v<7;v++)h.push({date:new s.default(e),day:e.format("D"),current:e.monthIndex===i}),e.day+=1;if(o.push(h),l>2&&e.monthIndex!==i&&!t)break}a.push(o)}return a}(L.current.date,i,d,_):[]}),[D.monthIndex,D.year,D.calendar,D.locale,F,i,d,_]);return F&&c.default.createElement("div",{className:"rmdp-day-picker ".concat(E?"rmdp-full-year":""),style:{display:E?"grid":"flex"},onMouseLeave:function(){return C&&Y()}},U.map((function(e,t){return c.default.createElement("div",{key:t,style:v({},f?"marginLeft":"marginRight",t+(E?0:1)<d?"10px":"")},E&&c.default.createElement("div",{className:"rmdp-month-name"},H[t]),!x&&c.default.createElement(b,{state:r,customWeekDays:u,weekStartDayIndex:_,displayWeekNumbers:P,weekNumber:V}),e.map((function(e,a){return c.default.createElement("div",{key:a,className:"rmdp-week"},P&&c.default.createElement("div",{className:"rmdp-day rmdp-disabled"},c.default.createElement("span",null,e[0].date.format("WW"))),e.map((function(e,a){var v=function(e){if(!e.current&&!i)return{};var t={};return o.forEach((function(n){var a,c=n({date:e.date,today:z,currentMonth:r.date.month,selectedDate:r.selectedDate,isSameDate:y});(null===(a=c)||void 0===a?void 0:a.constructor)!==Object&&(c={}),(c.disabled||c.hidden)&&(e.disabled=!0),c.hidden&&(e.hidden=!0),t=h(h({},t),c)})),delete t.disabled,delete t.hidden,t}(e={date:e.date,day:e.day,current:e.current}),u=W(e)&&!e.disabled,f="".concat(u?"sd":""),_=v.children;u&&(f="".concat(f," ").concat(v.className||"")),delete v.className,delete v.children;var b=function(e,t){var r,n=["rmdp-day"],a=e.date,c=e.hidden,i=e.current;if(!W(e)||c)n.push("rmdp-day-hidden");else{(B&&a<B||k&&a>k||e.disabled)&&(n.push("rmdp-disabled"),e.disabled||(e.disabled=!0)),i||n.push("rmdp-deactive");var o=t>1&&i||1===t;e.disabled&&l||(y(a,z)&&A&&n.push("rmdp-today"),r=a,[].concat(I).some((function(e){return y(e,r)}))&&o&&!S&&n.push("rmdp-selected")),S&&!e.disabled&&o&&(n.push(O(a,I,void 0,R)),R||(n=n.concat(M(a,I,$,C))))}return n.join(" ")}(e,d);return(e.hidden||e.disabled)&&(f=f.replace("sd","")),c.default.createElement("div",{key:a,className:b,onMouseEnter:function(){return C&&Y(e.date)},onClick:function(){W(e)&&!e.disabled&&function(e,t,a){var c,i,o,l=e.date,v=e.current,p=r.selectedDate,u=r.focused,d=r.date,f=d,_=f.hour,b=f.minute,y=f.second;l.set({hour:(null===(c=p)||void 0===c?void 0:c.hour)||_,minute:(null===(i=p)||void 0===i?void 0:i.minute)||b,second:(null===(o=p)||void 0===o?void 0:o.second)||y}),1!==a||v?a>1&&!v&&(0===t&&l<d&&(d=new s.default(d).toFirstOfMonth()),t>0&&l.monthIndex>d.monthIndex+t&&t+1===a&&(d=new s.default(d).toFirstOfMonth().add(1,"month"))):d=new s.default(d).toFirstOfMonth();var x=g(Z(l,m,r),2);p=x[0],u=x[1],n(p,h(h({},r),{},{date:d,focused:u,selectedDate:p})),w(u,l)}(e,t,d)}},c.default.createElement("span",p({className:f},v),W(e)&&!e.hidden?null!=_?_:e.day:""))})))})))})));function W(e){return!!e.current||i}}function H(e){var t=e.direction,r=e.onClick,n=e.disabled;return c.default.createElement("span",{className:"rmdp-arrow-container ".concat(t," ").concat(n?"disabled":""),onClick:r},c.default.createElement("i",{className:"rmdp-arrow"}))}function P(e){var r=e.state,n=e.setState,a=e.disableYearPicker,i=e.disableMonthPicker,o=e.buttons,s=e.renderButton,l=e.handleMonthChange,v=e.disabled,p=e.hideMonth,u=e.hideYear,m=e.isRTL,d=e.fullYear,f=g(e.monthAndYears,2),_=f[0],w=f[1],b=e.monthYearSeparator,y=e.formatMonth,x=e.formatYear,Z=e.headerOrder,O={},M=r.date,E=r.onlyMonthPicker,P=r.onlyYearPicker,j=r.mustShowYearPicker,V=r.minDate,C=r.maxDate,A=r.year,L=r.today,z=V&&M.year<=V.year&&V.monthIndex>M.monthIndex-1,B=C&&M.year>=C.year&&C.monthIndex<M.monthIndex+1,k=L.year+7;if(k-=12*Math.floor((k-A)/12),(p||d)&&u&&!o)return null;if((E||d)&&(V&&V.year>=M.year&&(z=!0),C&&C.year<=M.year&&(B=!0)),j||P){var S=k-11;z=V&&V.year>S,B=C&&C.year<k}return v&&(z=!0,B=!0),c.default.createElement("div",{className:"rmdp-header"},c.default.createElement("div",{style:{position:"relative",display:"flex",alignItems:"center"}},Array.from(new Set(Z)).map((function(e,r){return c.default.createElement(t.Fragment,{key:r},function(e){switch(e){case"LEFT_BUTTON":return o&&R("left");case"RIGHT_BUTTON":return o&&R("right");case"MONTH_YEAR":case"YEAR_MONTH":if(d)return c.default.createElement("div",{className:"rmdp-header-values",style:O},!u&&M.format("YYYY"));var r=e.split("_").filter((function(e){return"MONTH"===e&&!p||"YEAR"===e&&!u}));return _.map((function(e,n){return c.default.createElement("div",{key:n,className:"rmdp-header-values",style:O},r.length>0&&r.map((function(r,o){return c.default.createElement(t.Fragment,{key:o},function(e,t,r){return"MONTH"===e?!p&&c.default.createElement(c.default.Fragment,null,c.default.createElement("span",{style:{cursor:v||i||E?"default":"pointer"},onClick:function(){return!i&&I("mustShowMonthPicker")}},function(e,t){return"function"==typeof y?y(e,t):e}(t,w[r]))):!u&&c.default.createElement("span",{style:{cursor:v||a||P?"default":"pointer"},onClick:function(){return!a&&I("mustShowYearPicker")}},function(e,t){return"function"==typeof y?x(e,t):e}(w[r],t))}(r,e,n))})).reduce((function(e,t){return[e,b?c.default.createElement("span",null,b):m?"،":",",t]})))}))}}(e))}))));function R(e){var r=function(){return D("right"===e?1:-1)},n="left"===e&&z||"right"===e&&B;return s instanceof Function?s(e,r,n):t.isValidElement(s)?t.cloneElement(s,{direction:e,handleClick:r,disabled:n}):c.default.createElement(H,{direction:"rmdp-".concat(e),onClick:r,disabled:n})}function D(e){v||e<0&&z||e>0&&B||(d?M.year+=e:j||P?(A+=12*e,e<0&&V&&A<V.year&&(A=V.year),e>0&&C&&A>C.year&&(A=C.year)):(M.toFirstOfMonth(),E?M.year+=e:(M.month+=e,l(M))),n(h(h({},r),{},{date:M,year:A})))}function I(e){if(!v){var t={mustShowMonthPicker:!1,mustShowYearPicker:!1};t[e]=!r[e],n(h(h({},r),t))}}}function j(e){return w(e)||(e=[]),JSON.stringify(e)}function V(e){var r=e.state,n=e.onChange,a=e.customMonths,i=e.sort,o=e.handleMonthChange,l=e.handleFocusedDate,v=e.rangeHover,p=e.highlightToday,u=r.date,m=r.today,d=r.minDate,f=r.maxDate,_=r.calendar,b=r.locale,x=r.onlyMonthPicker,E=r.onlyYearPicker,H=r.range,P=r.onlyShowInRangeDates,V=(r.mustShowMonthPicker||x)&&!E,C=g(t.useState(),2),A=C[0],L=C[1];a=a&&j(a);var z=t.useMemo((function(){var e=a&&JSON.parse(a),t=[],n=0,c=new s.default({calendar:_,locale:b,format:r.date._format,year:r.date.year,month:1,day:1});w(e)&&e.length>=12?(e.length=12,e=e.map((function(e){return w(e)?e[0]:e}))):e=c.locale.months.map((function(e){return g(e,1)[0]}));for(var i=0;i<4;i++){for(var o=[],l=0;l<3;l++)o.push({date:new s.default(c),name:e[n]}),n++,c.add(1,"month");t.push(o)}return t}),[_,b,a,r.date.year,r.date._format]);return c.default.createElement("div",{className:"".concat(x?"only ":"","rmdp-month-picker"),style:{display:V?"block":"none"},onMouseLeave:function(){return v&&L()}},z.map((function(e,t){return c.default.createElement("div",{key:t,className:"rmdp-ym"},e.map((function(e,t){var r=e.date,n=e.name;return c.default.createElement("div",{key:t,className:k(r),onClick:function(){return B(r)},onMouseEnter:function(){return v&&L(r)}},c.default.createElement("span",{className:x?"sd":""},n))})))})));function B(e){var t=r.selectedDate,a=r.focused,c=e.year,s=e.monthIndex;if(!(d&&c<=d.year&&s<d.monthIndex||f&&c>=f.year&&s>f.monthIndex)){if(u.setMonth(s+1),x){var v=g(Z(e,i,r),2);t=v[0],a=v[1]}else o(u);n(x?t:void 0,h(h({},r),{},{date:u,focused:a,selectedDate:t,mustShowMonthPicker:!1})),x&&l(a,e)}}function k(e){var t=["rmdp-day"],n=e.year,a=e.monthIndex,c=r.selectedDate,i=r.multiple;if((d&&(n<d.year||n===d.year&&a<d.monthIndex)||f&&(n>f.year||n===f.year&&a>f.monthIndex))&&t.push("rmdp-disabled"),!t.includes("rmdp-disabled")||!P)return y(m,e,!0)&&p&&t.push("rmdp-today"),x?H?(t.push(O(e,c,!0,i)),i||(t=t.concat(M(e,c,A,v,"month")))):[].concat(c).some((function(t){return y(t,e,!0)}))&&t.push("rmdp-selected"):u.monthIndex===a&&t.push("rmdp-selected"),t.join(" ")}}function C(e,t){return e.replace(/[0-9]/g,(function(e){return t[e]}))}function A(e){var r=e.state,n=e.onChange,a=e.sort,i=e.handleFocusedDate,o=e.onYearChange,l=e.rangeHover,v=e.highlightToday,p=r.date,u=r.today,m=r.minDate,d=r.maxDate,f=r.onlyYearPicker,_=r.range,b=r.onlyShowInRangeDates,y=r.year,x=r.mustShowYearPicker||f,O=p.digits,M=g(t.useState(),2),E=M[0],H=M[1],P=u.year-4;P-=12*Math.ceil((P-y)/12);var j=t.useMemo((function(){for(var e=[],t=P,r=0;r<4;r++){for(var n=[],a=0;a<3;a++)n.push(t),t++;e.push(n)}return e}),[P]);return c.default.createElement("div",{className:"".concat(f?"only ":"","rmdp-year-picker"),style:{display:x?"block":"none"}},j.map((function(e,t){return c.default.createElement("div",{key:t,className:"rmdp-ym",onMouseLeave:function(){return l&&H()}},e.map((function(e,t){return c.default.createElement("div",{key:t,className:V(e),onClick:function(){return function(e){if(!A(e)){var t=new s.default(r.date).setYear(e),c=r.selectedDate,l=r.focused;if(f){var v=g(Z(t,a,r),2);c=v[0],l=v[1]}else m&&t.monthIndex<m.monthIndex?t=t.setMonth(m.monthIndex+1):d&&t.monthIndex>d.monthIndex&&(t=t.setMonth(d.monthIndex+1)),null==o||o(t);n(f?c:void 0,h(h({},r),{},{date:t,focused:l,selectedDate:c,mustShowYearPicker:!1})),f&&i(l,t)}}(e)},onMouseEnter:function(){return l&&H(e)}},c.default.createElement("span",{className:f?"sd":""},C(e.toString(),O)))})))})));function V(e){var t=["rmdp-day"],n=r.date,a=r.selectedDate,c=r.multiple;if(A(e)&&t.push("rmdp-disabled"),!t.includes("rmdp-disabled")||!b){if(u.year===e&&v&&t.push("rmdp-today"),f)if(_){var i=function(r){var n=r[0],a=r[1];if(1===r.length){if(e===n.year&&t.push("rmdp-range"),l){var c=r[0].year;(e>c&&e<=E||e<c&&e>=E)&&(t.push("rmdp-range-hover"),e===E&&t.push(E>c?"end":"start"))}}else 2===r.length&&(e>=n.year&&e<=a.year&&t.push("rmdp-range"),e===n.year&&t.push("start"),e===a.year&&t.push("end"))};c?(w(a)?a:[[a]]).forEach((function(e){return i(e)})):i(a)}else[].concat(a).some((function(t){return t&&t.year===e}))&&t.push("rmdp-selected");else e===n.year&&t.push("rmdp-selected");return t.join(" ")}}function A(e){return m&&e<m.year||d&&e>d.year}}function L(e,t,r){return r||(e?"MM/YYYY":t?"YYYY":"YYYY/MM/DD")}function z(e,t){return e instanceof s.default?e.setCalendar(t):e=new s.default({date:e,calendar:t}),e}function B(e){"_self"in c.default.createElement("div")&&console.warn(e.join("\n"))}var k=new s.default,S=k.calendar,R=k.locale;function D(e,t){return e&&e.constructor!==Object&&(B(I("calendar")),e=void 0),t&&t.constructor!==Object&&(B(I("locale")),t=void 0),[e||S,t||R]}function I(e){return["".concat(e," must be an object"),"https://shahabyazdi.github.io/react-multi-date-picker/calendars/"]}function T(e){return e&&e.name?e.name.split("_")[1]:""}function N(e){return["fa","ar"].includes(T(e))}function F(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===r&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}F(".rmdp-wrapper{background-color:#fff;border-radius:5px;direction:ltr;text-align:center;width:max-content}.rmdp-shadow{box-shadow:0 0 5px #8798ad}.rmdp-border{border:1px solid #cfd8e2}.rmdp-calendar{height:max-content;padding:4px}.rmdp-border-top{border-top:1px solid #cfd8e2}.rmdp-border-bottom{border-bottom:1px solid #cfd8e2}.rmdp-border-left{border-left:1px solid #cfd8e2}.rmdp-border-right{border-right:1px solid #cfd8e2}.rmdp-week,.rmdp-ym{display:flex;justify-content:space-between}.rmdp-ym{height:25%}.rmdp-day,.rmdp-week-day{color:#000;cursor:pointer;height:34px;position:relative;width:34px}.rmdp-week-day{color:#0074d9;cursor:default;font-size:13px;font-weight:500}.rmdp-day span,.rmdp-week-day{display:flex;flex-direction:column;justify-content:center}.rmdp-day span{border-radius:50%;bottom:3px;font-size:14px;left:3px;position:absolute;right:3px;top:3px}.rmdp-day.rmdp-today span{background-color:#7fdbff;color:#fff}.rmdp-day.rmdp-selected span:not(.highlight){background-color:#0074d9;box-shadow:0 0 3px #8798ad;color:#fff}.rmdp-day.rmdp-deactive,.rmdp-day.rmdp-disabled{color:#8798ad}.rmdp-day.rmdp-deactive.rmdp-selected span{background-color:#4ca6f5;box-shadow:0 0 3px #bac5d3}.rmdp-ym .rmdp-day{flex:1;margin:auto}.rmdp-ym .rmdp-day span{border-radius:12px;padding:2px 0}.rmdp-range{background-color:#0074d9;box-shadow:0 0 3px #8798ad;color:#fff}.rmdp-range-hover{background-color:#7ea6f0;color:#fff}.rmdp-range-hover.start,.rmdp-range.start{border-bottom-left-radius:50%;border-top-left-radius:50%}.rmdp-range-hover.end,.rmdp-range.end{border-bottom-right-radius:50%;border-top-right-radius:50%}.rmdp-ym .rmdp-range-hover.start,.rmdp-ym .rmdp-range.start{border-bottom-left-radius:15px;border-top-left-radius:15px}.rmdp-ym .rmdp-range-hover.end,.rmdp-ym .rmdp-range.end{border-bottom-right-radius:15px;border-top-right-radius:15px}.rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover{background-color:#7ea6f0;color:#fff}.rmdp-day-picker{padding:5px}.rmdp-header{font-size:14px;margin-top:5px;padding:9px 0}.rmdp-month-picker,.rmdp-year-picker{background-color:#fff;border-radius:0 0 5px 5px;bottom:2px;left:2px;position:absolute;right:2px;top:2px}.only.rmdp-month-picker,.only.rmdp-year-picker{height:240px;position:static;width:250px}.rmdp-header-values{color:#000;margin:auto}.rmdp-header-values span{padding:0 0 0 5px}.rmdp-arrow{border:solid #0074d9;border-width:0 2px 2px 0;display:inline-block;height:3px;margin-top:5px;padding:2px;width:3px}.rmdp-right i{margin-right:3px;transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.rmdp-left i{margin-left:3px;transform:rotate(135deg);-webkit-transform:rotate(135deg)}.rmdp-left{left:0}.rmdp-right{right:0}.rmdp-arrow-container{border-radius:50%;cursor:pointer;display:flex;height:20px;justify-content:center;margin:0 5px;width:20px}.rmdp-arrow-container:hover{background-color:#0074d9;box-shadow:0 0 3px #8798ad}.rmdp-arrow-container:hover .rmdp-arrow{border:solid #fff;border-width:0 2px 2px 0}.rmdp-arrow-container.disabled{cursor:default}.rmdp-arrow-container.disabled:hover{background-color:inherit;box-shadow:inherit}.rmdp-arrow-container.disabled .rmdp-arrow,.rmdp-arrow-container.disabled:hover .rmdp-arrow{border:solid gray;border-width:0 2px 2px 0}.rmdp-rtl{direction:rtl}.rmdp-rtl .rmdp-left i{margin-left:0;margin-right:3px;transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.rmdp-rtl .rmdp-right i{margin-left:3px;margin-right:0;transform:rotate(135deg);-webkit-transform:rotate(135deg)}.rmdp-rtl .rmdp-right{left:0;right:auto}.rmdp-rtl .rmdp-left{left:auto;right:0}.rmdp-rtl .rmdp-range-hover.start,.rmdp-rtl .rmdp-range.start{border-bottom-left-radius:unset;border-bottom-right-radius:50%;border-top-left-radius:unset;border-top-right-radius:50%}.rmdp-rtl .rmdp-range-hover.end,.rmdp-rtl .rmdp-range.end{border-bottom-left-radius:50%;border-bottom-right-radius:unset;border-top-left-radius:50%;border-top-right-radius:unset}.rmdp-rtl .rmdp-range.start.end{border-radius:50%}.rmdp-rtl .rmdp-ym .rmdp-range-hover.start,.rmdp-rtl .rmdp-ym .rmdp-range.start{border-bottom-right-radius:15px;border-top-right-radius:15px}.rmdp-rtl .rmdp-ym .rmdp-range-hover.end,.rmdp-rtl .rmdp-ym .rmdp-range.end{border-bottom-left-radius:15px;border-top-left-radius:15px}.rmdp-day-hidden,.rmdp-day.rmdp-disabled{cursor:default}.rmdp-selected .highlight{box-shadow:0 0 3px #8798ad}.rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) .highlight-red:hover{background-color:#ff6687}.rmdp-day:not(.rmdp-deactive) .highlight-red{color:#cc0303}.rmdp-day.rmdp-deactive .highlight-red{color:#e08e8e}.rmdp-day.rmdp-selected .highlight-red{background-color:#ea0034;color:#fff}.rmdp-day.rmdp-deactive.rmdp-selected .highlight-red{background-color:#e4b0ba;color:#fff}.rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) .highlight-green:hover{background-color:#4db6ac}.rmdp-day:not(.rmdp-deactive) .highlight-green{color:#00796b}.rmdp-day.rmdp-deactive .highlight-green{color:#7ab3ac}.rmdp-day.rmdp-selected .highlight-green{background-color:#009688;color:#fff}.rmdp-day.rmdp-deactive.rmdp-selected .highlight-green{background-color:#749c98;color:#fff}.rmdp-day-hidden,.rmdp-day-hidden:hover span{background-color:unset;color:transparent}.rmdp-month-name{cursor:default;font-size:14px;margin:3px 0}.rmdp-full-year{grid-template-columns:1fr 1fr 1fr}@media (max-height:450px),(max-width:450px){.rmdp-day,.rmdp-week-day{height:28px;width:28px}.rmdp-day span{font-size:12px;padding-left:.5px}.only.rmdp-month-picker,.only.rmdp-year-picker{height:200px;width:205px}.rmdp-header{padding:3px 0 0}.rmdp-header,.rmdp-month-name{font-size:12px}.rmdp-full-year{grid-template-columns:1fr 1fr}}");var Q=["value","calendar","locale","format","onlyMonthPicker","onlyYearPicker","range","multiple","className","role","weekDays","months","children","onChange","showOtherDays","minDate","maxDate","mapDays","disableMonthPicker","disableYearPicker","formattingIgnoreList","onReady","onlyShowInRangeDates","zIndex","plugins","sort","numberOfMonths","currentDate","digits","buttons","renderButton","weekStartDayIndex","disableDayPicker","onPropsChange","onMonthChange","onYearChange","onFocusedDateChange","readOnly","disabled","hideMonth","hideYear","hideWeekDays","shadow","fullYear","displayWeekNumbers","weekNumber","weekPicker","rangeHover","monthYearSeparator","formatMonth","formatYear","highlightToday","headerOrder","style"],$=["datePickerProps","DatePicker"],Y=["DatePicker","datePickerProps"];var U=t.forwardRef((function(e,r){var n,a=e.value,i=e.calendar,o=e.locale,l=e.format,v=e.onlyMonthPicker,m=e.onlyYearPicker,d=e.range,f=void 0!==d&&d,_=e.multiple,b=void 0!==_&&_,y=e.className,x=e.role,Z=e.weekDays,O=e.months,M=e.children,H=e.onChange,z=e.showOtherDays,B=e.minDate,k=e.maxDate,S=e.mapDays,R=e.disableMonthPicker,I=e.disableYearPicker,T=e.formattingIgnoreList,F=e.onReady,Y=e.onlyShowInRangeDates,U=void 0===Y||Y,q=e.zIndex,G=void 0===q?100:q,J=e.plugins,ee=void 0===J?[]:J,te=e.sort,re=e.numberOfMonths,ne=void 0===re?1:re,ae=e.currentDate,ce=e.digits,ie=e.buttons,oe=void 0===ie||ie,se=e.renderButton,le=e.weekStartDayIndex,he=void 0===le?0:le,ve=e.disableDayPicker,pe=e.onPropsChange,ue=e.onMonthChange,ge=e.onYearChange,me=e.onFocusedDateChange,de=e.readOnly,fe=e.disabled,_e=e.hideMonth,we=e.hideYear,be=e.hideWeekDays,ye=e.shadow,xe=void 0===ye||ye,Ze=e.fullYear,Oe=e.displayWeekNumbers,Me=e.weekNumber,Ee=e.weekPicker,He=e.rangeHover,Pe=e.monthYearSeparator,je=e.formatMonth,Ve=e.formatYear,Ce=e.highlightToday,Ae=void 0===Ce||Ce,Le=e.headerOrder,ze=void 0===Le?["LEFT_BUTTON","MONTH_YEAR","RIGHT_BUTTON"]:Le,Be=e.style,ke=void 0===Be?{}:Be,Se=u(e,Q);!ae||ae instanceof s.default||(console.warn("currentDate must be instance of DateObject"),ae=void 0),("number"!=typeof he||he<0||he>6)&&(he=0),("number"!=typeof ne||ne<1||v||m)&&(ne=1),!(b||f||w(a))||f||b||(b=!0),Ee&&(f=!0,b=!1),Ze&&(ne=12,v=!1,m=!1),m&&!_e&&(_e=!0);var Re=g(D(i,o),2);i=Re[0],o=Re[1],l=L(v,m,l),T=j(T),S=[].concat(S).filter(Boolean),ee=[].concat.apply([],ee);var De=g(t.useState({}),2),Ie=De[0],Te=De[1],Ne={},Fe=t.useRef({mustCallOnReady:!0,currentDate:ae});t.useEffect((function(){Te((function(e){var t=Fe.current.currentDate,r=e.date,n=e.selectedDate,c=e.initialValue,p=e.focused,u=e.mustSortDates;function g(e){if(e)return e.calendar.name!==i.name&&e.setCalendar(i),e.locale.name!==o.name&&e.setLocale(o),e._format!==l&&e.setFormat(l),e.digits=ce,e.ignoreList=JSON.parse(T),e}function d(e){return new s.default(t||e)}if(a)if(w(n=X(a,i,o,l)))r||(r=d(n.flat()[0]));else if(r&&1!==ne){var _=new s.default(r).toFirstOfMonth(),y=new s.default(r).add(ne-1,"months").toLastOfMonth();(n<_||n>y)&&(r=new s.default(n))}else r=d(n);else r||(r=d({calendar:i,locale:o,format:l})),c&&(n=void 0);if([].concat(n).flat().forEach(g),g(r),b||f||w(a)){if(n||(n=[]),w(n)||(n=b&&f?[[n]]:[n]),f&&!b&&n.length>2){var x=n[n.length-1];n=[n[0],x],p=x}b&&!f&&te&&!u?(u=!0,n.sort((function(e,t){return e-t}))):f&&!b&&n.sort((function(e,t){return e-t}))}else w(n)&&(n=n.flat()[n.length-1]);return Ze&&r.toFirstOfYear(),delete Fe.current.currentDate,h(h({},e),{},{date:r,selectedDate:n,multiple:b,range:f,onlyMonthPicker:v,onlyYearPicker:m,initialValue:e.initialValue||a,value:a,focused:p,calendar:i,locale:o,format:l,mustSortDates:u,year:r.year,today:g(e.today)||new s.default({calendar:i}),weekPicker:Ee})}))}),[a,i,o,l,v,m,f,b,te,ne,ce,T,Ze,Ee]),t.useEffect((function(){(B||k)&&Te((function(e){var t=e.calendar,r=e.locale,n=e.format,c=g(W(X(a,t,r,n),B,k,t),3),i=c[0],o=c[1],s=c[2];return h(h({},e),{},{inRangeDates:U?i:e.selectedDate,minDate:o,maxDate:s})}))}),[B,k,U,a]),Ie.today&&!Fe.current.isReady&&(Fe.current.isReady=!0),t.useEffect((function(){Fe.current.isReady&&Fe.current.mustCallOnReady&&F instanceof Function&&(Fe.current.mustCallOnReady=!1,F())}),[Fe.current.isReady,F]);var Qe="rmdp-top-class "+rt(["top","bottom"]),$e={top:[],bottom:[],left:[],right:[]},Ye=N(null===(n=Ie.date)||void 0===n?void 0:n.locale),Ue={state:Ie,setState:Te,onChange:Ge,sort:te,handleFocusedDate:et,isRTL:Ye,fullYear:Ze,monthAndYears:function(){var e=Ie.date;if(!e)return[];for(var t=[],r=[],n=e.digits,a=0;a<ne;a++){var c=void 0,i=e.year,o=e.monthIndex+a;if(o>11&&(o-=12,i++),w(O)&&O.length>=12){var s=O[o];c=w(s)?s[0]:s}else c=e.months[o].name;i=C(i.toString(),n),t.push(c),r.push(i)}return[t,r]}(),rangeHover:He,highlightToday:Ae},We=arguments[0],Xe=We.datePickerProps,Ke=We.DatePicker,qe=u(We,$);return function(){if(Fe.current.isReady&&w(ee)){var e={state:Ie,setState:Te,registerListener:nt,calendarProps:qe,datePickerProps:Xe,handleChange:Ge,Calendar:Fe.current.Calendar,DatePicker:Ke,handlePropsChange:Je,handleFocusedDate:function(e){return et(e)}},r=function(e){return ve?"bottom":e.props.position||"right"};ee.forEach((function(n,a){if("string"!=typeof n.type){var c={},i=r(n);if($e[i]&&!n.props.disabled){for(var o=0;o<ee.length;o++)if("string"!=typeof ee[o].type&&!ee[o].props.disabled){if(4===Object.keys(c).length)break;var s=r(ee[o]);["top","bottom"].includes(i)?(s===i&&o>a&&(c.bottom=!0),s===i&&o<a&&(c.top=!0)):(Qe.includes("border-top")&&(c.top=!0),Qe.includes("border-bottom")&&(c.bottom=!0),s===i&&o>a&&(c.right=!0),s===i&&o<a&&(c.left=!0))}$e[i].push(t.cloneElement(n,h({key:a,position:i,nodes:c},e)))}}else"mapDays"===n.type&&S.push(n.fn(e))}))}}(),Ie.today?c.default.createElement("div",p({ref:function(e){if(e&&(e.date=Ie.date,e.set=function(e,t){fe||Te(h(h({},Ie),{},{date:new s.default(Ie.date.set(e,t))}))}),Fe.current.Calendar=e,r instanceof Function)return r(e);r&&(r.current=e)},role:x||"dialog",className:"rmdp-wrapper rmdp-".concat(xe?"shadow":"border"," ").concat(y||""),style:h({zIndex:G},ke)},K(Se)),$e.top,c.default.createElement("div",{style:{display:"flex"},className:Qe},$e.left,!ve&&c.default.createElement("div",{className:"rmdp-calendar ".concat(Ye?"rmdp-rtl":""," ").concat(rt(["left","right"]))},c.default.createElement(P,h(h({},Ue),{},{disableYearPicker:I,disableMonthPicker:R,buttons:oe,renderButton:se,handleMonthChange:tt,disabled:fe,hideMonth:_e,hideYear:we,monthYearSeparator:Pe,formatMonth:je,formatYear:Ve,headerOrder:ze})),c.default.createElement("div",{style:{position:"relative"}},c.default.createElement(E,h(h({},Ue),{},{showOtherDays:z,mapDays:S,onlyShowInRangeDates:U,customWeekDays:Z,numberOfMonths:ne,weekStartDayIndex:he,hideWeekDays:be,displayWeekNumbers:Oe,weekNumber:Me})),!Ze&&c.default.createElement(c.default.Fragment,null,!R&&c.default.createElement(V,p({},Ue,{customMonths:O,handleMonthChange:tt})),!I&&c.default.createElement(A,p({},Ue,{onYearChange:ge}))))),$e.right),$e.bottom,M):null;function Ge(e,t){if(!fe){if(e||null===e){if(de)return;Ne.change&&Ne.change.forEach((function(t){return t(e)}))}if(e||null===e){var r=null==H?void 0:H(e);t&&!1!==r&&Te(t)}else t&&Te(t);Je({value:e})}}function Je(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!de&&!fe){var r=h(h(h(h({},qe),Xe),t),{},{value:null!==(e=t.value)&&void 0!==e?e:Ie.selectedDate});delete r.onPropsChange,null==pe||pe(r)}}function et(e,t){de||fe||null==me||me(e,t)}function tt(e){null==ue||ue(e)}function rt(e){return ve||!w(ee)?"":Array.from(new Set(ee.map((function(t){if(!t.props)return"";var r=t.props.position||"right";return e.includes(r)&&!t.props.disabled?"rmdp-border-"+r:""})))).join(" ")}function nt(e,t){Ne[e]||(Ne[e]=[]),Ne[e].push(t)}}));function W(e,t,r,n){return t&&(t=z(t,n).set({hour:0,minute:0,second:0,millisecond:0})),r&&(r=z(r,n).set({hour:23,minute:59,second:59,millisecond:999})),w(e)&&(e=e.filter((function(e){return!(t&&e<t||r&&e>r)}))),[e,t,r]}function X(e,t,r,n){var a=[].concat(e).map((function(e){return w(e)?e.map(c).filter(i):c(e)})).filter(i);return w(e)?a:a.flat()[0];function c(e){return e?e instanceof s.default?e:new s.default({date:e,calendar:t,locale:r,format:n}):{}}function i(e){return w(e)||e.isValid}}function K(e){return e.DatePicker,e.datePickerProps,u(e,Y)}F('.rmdp-visible{visibility:visible}.rmdp-invisible{visibility:hidden}.rmdp-input{border:1px solid #c0c4d6;border-radius:5px;height:22px;margin:1px 0;padding:2px 5px}.rmdp-input:focus{border:1px solid #a4b3c5;box-shadow:0 0 2px #a4b3c5;outline:none!important}.rmdp-button{background-color:#0074d9;border:none;border-radius:5px;color:#fff;cursor:pointer;display:inline-block;padding:7px 16px;text-align:center;text-decoration:none;transition:.3s}.rmdp-button:hover{background-color:#143ac5;transition:.4s}.rmdp-button:disabled{background-color:#8798ad}.rmdp-action-button{border-radius:unset;color:#2682d3;float:right;font-weight:700;margin:15px 10px 15px 0}.rmdp-action-button,.rmdp-action-button:hover{background-color:transparent}.rmdp-ep-arrow{overflow:hidden;will-change:transform}.rmdp-ep-arrow:after{background-color:#fff;content:"";height:12px;position:absolute;transform:rotate(45deg);width:12px}.rmdp-ep-shadow:after{box-shadow:0 0 6px #8798ad}.rmdp-ep-border:after{border:1px solid #cfd8e2}.rmdp-ep-arrow[direction=top]{border-bottom:1px solid #fff}.rmdp-ep-arrow[direction=left]{border-right:1px solid #fff}.rmdp-ep-arrow[direction=right]{border-left:1px solid #fff;margin-left:-1px}.rmdp-ep-arrow[direction=bottom]{border-top:1px solid #fff;margin-top:-1.5px}.rmdp-ep-arrow[direction=top]:after{left:4px;top:5px}.rmdp-ep-arrow[direction=bottom]:after{left:4px;top:-6px}.rmdp-ep-arrow[direction=left]:after{left:5px;top:3px}.rmdp-ep-arrow[direction=right]:after{left:-6px;top:3px}');var q=["value","calendar","locale","format","onlyMonthPicker","onlyYearPicker","onChange","range","multiple","name","id","title","placeholder","required","style","className","inputClass","disabled","render","weekDays","months","children","inputMode","scrollSensitive","hideOnScroll","minDate","maxDate","formattingIgnoreList","containerClassName","calendarPosition","editable","onOpen","onClose","arrowClassName","zIndex","arrow","fixMainPosition","onPositionChange","onPropsChange","digits","readOnly","shadow","onFocusedDateChange","type","weekPicker","mobileLabels","onOpenPickNewDate","mobileButtons","dateSeparator","multipleRangeSeparator"],G=["label"];var J=t.forwardRef((function(e,r){var n=e.value,a=e.calendar,o=e.locale,l=e.format,v=e.onlyMonthPicker,m=e.onlyYearPicker,d=e.onChange,f=e.range,b=void 0!==f&&f,y=e.multiple,x=void 0!==y&&y,Z=e.name,O=e.id,M=e.title,E=e.placeholder,H=e.required,P=e.style,V=void 0===P?{}:P,A=e.className,z=void 0===A?"":A,B=e.inputClass,k=e.disabled,S=e.render,R=e.weekDays,I=e.months,F=e.children,Q=e.inputMode,$=e.scrollSensitive,Y=void 0===$||$,W=e.hideOnScroll,X=e.minDate,K=e.maxDate,J=e.formattingIgnoreList,re=e.containerClassName,ne=void 0===re?"":re,ae=e.calendarPosition,ce=void 0===ae?"bottom-left":ae,ie=e.editable,oe=void 0===ie||ie,se=e.onOpen,le=e.onClose,he=e.arrowClassName,ve=void 0===he?"":he,pe=e.zIndex,ue=void 0===pe?100:pe,ge=e.arrow,me=void 0===ge||ge,de=e.fixMainPosition,fe=e.onPositionChange,_e=e.onPropsChange,we=e.digits,be=e.readOnly,ye=e.shadow,xe=void 0===ye||ye,Ze=e.onFocusedDateChange,Oe=e.type,Me=e.weekPicker,Ee=e.mobileLabels,He=e.onOpenPickNewDate,Pe=void 0===He||He,je=e.mobileButtons,Ve=void 0===je?[]:je,Ce=e.dateSeparator,Ae=e.multipleRangeSeparator,Le=void 0===Ae?",":Ae,ze=u(e,q),Be=g(t.useState(),2),ke=Be[0],Se=Be[1],Re=g(t.useState(),2),De=Re[0],Ie=Re[1],Te=g(t.useState(""),2),Ne=Te[0],Fe=Te[1],Qe=g(t.useState(!1),2),$e=Qe[0],Ye=Qe[1],Ue=g(t.useState(!1),2),We=Ue[0],Xe=Ue[1],Ke=t.useRef(),qe=t.useRef(),Ge=t.useRef(),Je=t.useRef({}),et=Ce||(b||Me?" ~ ":", "),tt=arguments[0],rt="string"==typeof z&&z.includes("rmdp-mobile"),nt=t.useCallback((function(){if(!1!==(null==le?void 0:le())){var e=te(qe);if(e&&e.blur(),Je.current.mobile){var t=Ge.current.parentNode.parentNode;t.classList.remove("rmdp-calendar-container-mobile"),t.style.position="absolute",t.style.visibility="hidden"}Ye(!1),Xe(!1)}}),[le]),at=[{type:"button",className:"rmdp-button rmdp-action-button",onClick:function(){Ie(void 0),nt()},label:it("CANCEL")},{type:"button",className:"rmdp-button rmdp-action-button",onClick:function(){De&&(st(De,!0),Ie(void 0)),nt()},label:it("OK")}];rt&&!Je.current.mobile&&(Je.current=h(h({},Je.current),{},{mobile:!0})),!rt&&Je.current.mobile&&(Je.current=h(h({},Je.current),{},{mobile:!1})),J=j(J),l=L(v,m,l);var ct=g(D(a,o),2);return a=ct[0],o=ct[1],t.useEffect((function(){function e(e){if($e&&!Je.current.mobile){var t=[];if([qe.current,Ge.current].forEach((function(r){!r||r.contains(e.target)||e.target.classList.contains("b-deselect")||t.push(r)})),2===t.length)return nt();Ge.current&&Ge.current.contains(e.target)&&(Ke.current.removeTransition(),Ke.current.refreshPosition())}}function t(){W&&$e&&nt()}return document.addEventListener("click",e,!1),document.addEventListener("scroll",t,!0),function(){document.removeEventListener("click",e,!1),document.removeEventListener("scroll",t,!0)}}),[nt,r,$e,W]),t.useEffect((function(){var e=n,t=Je.current,r=t.date,c=t.initialValue,i=function(){return e[e.length-1]};function v(e){if(e)return e instanceof s.default||(e=new s.default({date:e,calendar:a,locale:o,format:l})),e.calendar!==a&&e.setCalendar(a),e.set({weekDays:R,months:I,digits:we,locale:o,format:l,ignoreList:JSON.parse(J)}),e}n||c||!r?c&&!n&&(c=void 0):e=r;var p="";if(b||x||w(e)){var u=function(e){return e=e.map(v).filter((function(e){return void 0!==e})),b&&e.length>2&&(e=[e[0],i()]),[e,ee(e,et)]};if(w(e)||(e=b&&x?e?[[e]]:[]:[e]),x&&b)e=e.map((function(t,r){var n=g(u(w(t)?t:[t]),2),a=n[0],c=n[1];return p+=c+(r<e.length-1?" ".concat(Le," "):""),a}));else{var m=g(u(e),2);e=m[0],p=m[1]}p=p.toString().replace(/\s,\s$/,"")}else w(e)&&(e=i()),(e=v(e))&&(p=e.format());document.activeElement!==te(qe)&&Fe(p),Je.current=h(h({},Je.current),{},{date:e,separator:et,initialValue:c||n}),Je.current.mobile&&Ke.current.isOpen?Ie(e):Se(e)}),[n,a,o,l,b,x,et,v,m,R,I,we,J]),t.useEffect((function(){var e=Je.current.selection;if(e){var t=te(qe);t&&(t.setSelectionRange(e,e),Je.current.selection=void 0,Ke.current.refreshPosition())}}),[Ne]),(x||b||w(ke)||!oe)&&(Q="none"),c.default.createElement(i.default,p({ref:function(e){if(e&&(e.openCalendar=function(){return setTimeout((function(){return ot()}),10)},e.closeCalendar=nt,e.isOpen=$e&&We),Ke.current=e,r instanceof Function)return r(e);r&&(r.current=e)},element:S?c.default.createElement("div",{ref:qe},t.isValidElement(S)?t.cloneElement(S,{value:Ne,openCalendar:ot,onFocus:ot,handleValueChange:lt,onChange:lt,locale:o,separator:et}):S instanceof Function?S(Ne,ot,lt,o,et):null):c.default.createElement("input",{ref:qe,type:Oe||"text",name:Z,id:O,title:M,required:H,onFocus:ot,className:B||"rmdp-input",placeholder:E,value:Ne,onChange:lt,style:V,autoComplete:"off",disabled:!!k,inputMode:Q||(rt?"none":void 0),readOnly:be}),popper:$e&&c.default.createElement(U,p({ref:Ge,value:De||ke,onChange:st,range:b,multiple:x,calendar:a,locale:o,format:l,onlyMonthPicker:v,onlyYearPicker:m,className:z+(rt?" rmdp-mobile":""),weekDays:R,months:I,digits:we,minDate:X,maxDate:K,formattingIgnoreList:JSON.parse(J),onPropsChange:_e,shadow:xe,onReady:ht,DatePicker:Ke.current,datePickerProps:tt,onFocusedDateChange:vt,weekPicker:Me},ze),F,rt&&function(){var e=[].concat.apply([],tt.plugins||[]).some((function(e){var t=e.props;return!(void 0===t?{}:t).disabled}));return w(Ve)&&c.default.createElement("div",{className:"rmdp-action-buttons ".concat(N(o)?"rmdp-rtl":""," ").concat(e?"rmdp-border-top":"")},Ve.concat(at).map((function(e,t){var r=e.label,n=u(e,G);return c.default.createElement("button",p({key:t},n),r)})))}()),active:!rt&&We,position:ce,arrow:!rt&&me,fixMainPosition:!Y||de,zIndex:ue,onChange:!rt&&fe,containerClassName:"rmdp-container ".concat(ne),arrowClassName:["rmdp-ep-arrow","rmdp-ep-".concat(xe?"shadow":"border"),z,ve].join(" ")},ze));function it(e){var t,r=o||(new s.default).locale;return"string"!=typeof r.name?e:(null==Ee?void 0:Ee[e])||(null===(t={en:{OK:"OK",CANCEL:"CANCEL"},fa:{OK:"تأیید",CANCEL:"لغو"},ar:{OK:"تأكيد",CANCEL:"الغاء"},hi:{OK:"पुष्टि",CANCEL:"रद्द करें"}}[T(r)])||void 0===t?void 0:t[e])||e}function ot(){if(!k&&!be&&!1!==(null==se?void 0:se())){if(Pe&&!n&&!Je.current.date&&!b&&!x&&!rt){var e=new s.default({calendar:a,locale:o,format:l,months:I,weekDays:R,digits:we,ignoreList:JSON.parse(J)});(!X||e>X)&&(!K||e<K)&&(st(e),null==_e||_e(h(h({},tt),{},{value:e})),Je.current.date=e)}var t=te(qe);rt&&t&&t.blur(),t||!$e?Ye(!0):nt()}}function st(e,t,r){if(rt&&!t)return Ie(e);var n="";if(e&&(n=x&&b&&w(e)?e.map((function(e){return ee(e,et)})).join(" ".concat(Le," ")):ee(e,et)),!1===(null==d?void 0:d(e,{validatedValue:n,input:qe.current,isTyping:!!r})))return Fe(Ne),!1;Se(e),Fe(r||n.toString().replace(/\s,\s$/,"")),Je.current=h(h({},Je.current),{},{date:e})}function lt(e){if(oe){Je.current.selection=e.target.selectionStart;var t=e.target.value,r={calendar:a,locale:o,format:l,ignoreList:JSON.parse(J)};if(we=w(we)?we:o.digits,!t)return Fe(""),st(null);if(we){var n,c,i=_(we);try{for(i.s();!(n=i.n()).done;){var v=n.value;t=t.replace(new RegExp(v,"g"),we.indexOf(v))}}catch(e){i.e(e)}finally{i.f()}c=w(ke)?x&&b?(t||"").split(Le).filter(Boolean).map(u):u(t):p(t),st(w(ke)||c.isValid?c:null,void 0,C(t,we))}}function p(e){return/(?=.*Y)(?=.*M)(?=.*D)/.test(l)?new s.default(h(h({},r),{},{date:e})):new s.default(r).parse(e)}function u(e){return(e||"").split(et).filter(Boolean).map((function(e){return p(e.trim())}))}}function ht(){if(Xe(!0),rt){var e=Ge.current.parentNode.parentNode;e.className="rmdp-calendar-container-mobile",e.style.position="fixed",e.style.transform="",setTimeout((function(){e.style.visibility="visible"}),50)}}function vt(e,t){w(Je.current.date)||!t||rt||nt(),null==Ze||Ze(e,t)}}));function ee(e,t){var r=[].concat(e).map((function(e){return null!=e&&e.isValid?e.format():""}));return r.toString=function(){return this.filter(Boolean).join(t)},r}function te(e){if(e.current)return"INPUT"===e.current.tagName?e.current:e.current.querySelector("input")}Object.defineProperty(e,"DateObject",{enumerable:!0,get:function(){return s.default}}),e.Calendar=U,e.default=J,e.getAllDatesInRange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(!Array.isArray(e))return[];var r=e[0],n=e[e.length-1],a=[];if(!(r instanceof s.default&&n instanceof s.default&&r.isValid&&n.isValid)||r>n)return[];for(r=new s.default(r),n=new s.default(n);r<=n;r.day++)a.push(t?r.toDate():new s.default(r));return a},e.toDateObject=z}(Mn);var Pa=zt(Mn);const ja=n.div`
2042
2042
  ${e=>e.showTime&&a`
2043
2043
  .rmdp-wrapper {
2044
2044
  display: flex;
@@ -3251,7 +3251,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
3251
3251
  }
3252
3252
  }
3253
3253
  }
3254
- `,Rc={collapseOnSelect:!1,width:"100%",offsetTop:"80px",searchable:!0,toggleOnTargetClick:!1},Dc=e(at,{icon:"keyboard_arrow_down",width:20,height:20,fill:L.grey.grey400}),Ic=e(at,{icon:"keyboard_arrow_up",width:20,height:20,fill:L.grey.grey400});e(at,{icon:"close_circle",width:20,height:20,fill:L.grey.grey400});const Tc=e(at,{icon:"check",width:16,height:12,fill:L.green.green400}),Nc=({option:r,isSelected:n,variant:a,hasImage:c,avatarProps:i})=>{const{label:o="",image:s}=r;return t("div",{className:`multi-select-option ${n&&"active"}`,children:[c&&e(cr,{src:s,alt:o,size:"xs",...i}),t("div",{className:"multi-select-option__head",children:["checkbox"===a&&e(ke,{checked:n}),o]}),"normal"===a&&n&&e("div",{className:"multi-select-option__tail",children:Tc})]})},Fc=({filterLabel:t,onChipClose:r})=>e("div",{className:"selected",children:e(Pc,{size:"small",type:"secondary",label:`${t}`,showActionButton:!0,onClick:e=>{e.preventDefault(),e.stopPropagation()},onClose:e=>{e.preventDefault(),r(),e.stopPropagation()}})}),Qc=({width:r,options:n=[],activeOptions:a=[],setActiveOptions:c,placeholder:i,label:o,variant:s="normal",dropdownSelectProps:l,avatarProps:h,tooltipContent:v,tooltipPosition:u="right-center",labelTrimCount:g=11})=>{const m=n.some((e=>"image"in e)),[d,f]=p(!1),_=b((()=>{const t=a?.length;return(t>3?a.slice(0,3):a).map((t=>{let r=((e,t)=>e&&e.length>12?e.slice(0,t)+"..":e)(t?.label,g);return e(Fc,{filterLabel:r,onChipClose:()=>(e=>{let t=[...a].filter((t=>t.value!==e.value));c(t)})(t)},t.value)}))}),[a,g]),w=e=>a.some((t=>t.value===e));return e(Sc,{width:r,children:e(hr,{...Rc,onSelect:e=>{if(a.find((t=>t.value===e.value))){let t=[...a].filter((t=>t.value!==e.value));c([...t])}else c([...a,e])},data:n,opened:d,onClose:()=>f(!1),itemComponent:({label:t,value:r,image:n})=>e(Nc,{option:{label:t,value:r,image:n},isSelected:w(r),variant:s,hasImage:m,avatarProps:h}),...l,children:t("div",{className:"select-container",children:[t("div",{className:"select-container__label",children:[o,v&&e(et,{children:e(ye,{tooltipContent:()=>v,position:u,offset:"10px",top:"8px",children:e(at,{icon:"info",width:16,height:16,fill:L.grey.grey400})})})]}),e("div",{className:"select-container__body",children:t("div",{className:`select-input-container ${d&&"focus"}`,onClick:()=>{f(!0)},id:"select-input-container",children:[t("div",{className:"select-input-container__body",children:[_,a?.length>3&&e(Pc,{onClick:e=>{e.preventDefault(),e.stopPropogation()},size:"small",type:"secondary",label:"+"+(a.length-3)}),0===a?.length&&e("div",{className:"placeholder",children:i||"Select"})]}),e("div",{className:"select-input-container__icon",children:d?Ic:Dc})]})})]})})})},$c=n.div`
3254
+ `,Rc={collapseOnSelect:!1,width:"100%",offsetTop:"80px",searchable:!0,toggleOnTargetClick:!1},Dc=e(at,{icon:"keyboard_arrow_down",width:20,height:20,fill:L.grey.grey400}),Ic=e(at,{icon:"keyboard_arrow_up",width:20,height:20,fill:L.grey.grey400});e(at,{icon:"close_circle",width:20,height:20,fill:L.grey.grey400});const Tc=e(at,{icon:"check",width:16,height:12,fill:L.green.green400}),Nc=({option:r,isSelected:n,variant:a,hasImage:c,avatarProps:i})=>{const{label:o="",image:s}=r;return t("div",{className:`multi-select-option ${n&&"active"}`,children:[c&&e(cr,{src:s,alt:o,size:"xs",...i}),t("div",{className:"multi-select-option__head",children:["checkbox"===a&&e(ke,{checked:n}),o]}),"normal"===a&&n&&e("div",{className:"multi-select-option__tail",children:Tc})]})},Fc=({filterLabel:t,onChipClose:r})=>e("div",{className:"selected",children:e(Pc,{size:"small",type:"secondary",label:`${t}`,showActionButton:!0,onClick:e=>{e.preventDefault(),e.stopPropagation()},onClose:e=>{e.preventDefault(),r(),e.stopPropagation()}})}),Qc=({width:r,options:n=[],activeOptions:a=[],setActiveOptions:c,placeholder:i,label:o,variant:s="normal",dropdownSelectProps:l,avatarProps:h,tooltipContent:v,tooltipPosition:u="right-center",labelTrimCount:g=11})=>{const m=n.some((e=>"image"in e)),[d,f]=p(!1),_=w((()=>{const t=a?.length;return(t>3?a.slice(0,3):a).map((t=>{let r=((e,t)=>e&&e.length>12?e.slice(0,t)+"..":e)(t?.label,g);return e(Fc,{filterLabel:r,onChipClose:()=>(e=>{let t=[...a].filter((t=>t.value!==e.value));c(t)})(t)},t.value)}))}),[a,g]),b=e=>a.some((t=>t.value===e));return e(Sc,{width:r,children:e(hr,{...Rc,onSelect:e=>{if(a.find((t=>t.value===e.value))){let t=[...a].filter((t=>t.value!==e.value));c([...t])}else c([...a,e])},data:n,opened:d,onClose:()=>f(!1),itemComponent:({label:t,value:r,image:n})=>e(Nc,{option:{label:t,value:r,image:n},isSelected:b(r),variant:s,hasImage:m,avatarProps:h}),...l,children:t("div",{className:"select-container",children:[t("div",{className:"select-container__label",children:[o,v&&e(et,{children:e(ye,{tooltipContent:()=>v,position:u,offset:"10px",top:"8px",children:e(at,{icon:"info",width:16,height:16,fill:L.grey.grey400})})})]}),e("div",{className:"select-container__body",children:t("div",{className:`select-input-container ${d&&"focus"}`,onClick:()=>{f(!0)},id:"select-input-container",children:[t("div",{className:"select-input-container__body",children:[_,a?.length>3&&e(Pc,{onClick:e=>{e.preventDefault(),e.stopPropogation()},size:"small",type:"secondary",label:"+"+(a.length-3)}),0===a?.length&&e("div",{className:"placeholder",children:i||"Select"})]}),e("div",{className:"select-input-container__icon",children:d?Ic:Dc})]})})]})})})},$c=n.div`
3255
3255
  position: relative;
3256
3256
 
3257
3257
  .upload-avatar {
@@ -4254,7 +4254,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
4254
4254
  *
4255
4255
  * This source code is licensed under the MIT license found in the
4256
4256
  * LICENSE file in the root directory of this source tree.
4257
- */"production"===process.env.NODE_ENV?ml.exports=function(){if(ul)return dl;ul=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,f=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case l:case n:case c:case a:case v:return e;default:switch(e=e&&e.$$typeof){case o:case h:case g:case u:case i:return e;default:return p}}case r:return p}}}function b(e){return w(e)===l}return dl.AsyncMode=s,dl.ConcurrentMode=l,dl.ContextConsumer=o,dl.ContextProvider=i,dl.Element=t,dl.ForwardRef=h,dl.Fragment=n,dl.Lazy=g,dl.Memo=u,dl.Portal=r,dl.Profiler=c,dl.StrictMode=a,dl.Suspense=v,dl.isAsyncMode=function(e){return b(e)||w(e)===s},dl.isConcurrentMode=b,dl.isContextConsumer=function(e){return w(e)===o},dl.isContextProvider=function(e){return w(e)===i},dl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},dl.isForwardRef=function(e){return w(e)===h},dl.isFragment=function(e){return w(e)===n},dl.isLazy=function(e){return w(e)===g},dl.isMemo=function(e){return w(e)===u},dl.isPortal=function(e){return w(e)===r},dl.isProfiler=function(e){return w(e)===c},dl.isStrictMode=function(e){return w(e)===a},dl.isSuspense=function(e){return w(e)===v},dl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===c||e===a||e===v||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===u||e.$$typeof===i||e.$$typeof===o||e.$$typeof===h||e.$$typeof===d||e.$$typeof===f||e.$$typeof===_||e.$$typeof===m)},dl.typeOf=w,dl}():ml.exports=(fl||(fl=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,f=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case s:case l:case n:case c:case a:case v:return m;default:var d=m&&m.$$typeof;switch(d){case o:case h:case g:case u:case i:return d;default:return p}}case r:return p}}}var b=s,y=l,x=o,Z=i,O=t,M=h,E=n,H=g,P=u,j=r,V=c,C=a,A=v,L=!1;function z(e){return w(e)===l}_l.AsyncMode=b,_l.ConcurrentMode=y,_l.ContextConsumer=x,_l.ContextProvider=Z,_l.Element=O,_l.ForwardRef=M,_l.Fragment=E,_l.Lazy=H,_l.Memo=P,_l.Portal=j,_l.Profiler=V,_l.StrictMode=C,_l.Suspense=A,_l.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(e)||w(e)===s},_l.isConcurrentMode=z,_l.isContextConsumer=function(e){return w(e)===o},_l.isContextProvider=function(e){return w(e)===i},_l.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_l.isForwardRef=function(e){return w(e)===h},_l.isFragment=function(e){return w(e)===n},_l.isLazy=function(e){return w(e)===g},_l.isMemo=function(e){return w(e)===u},_l.isPortal=function(e){return w(e)===r},_l.isProfiler=function(e){return w(e)===c},_l.isStrictMode=function(e){return w(e)===a},_l.isSuspense=function(e){return w(e)===v},_l.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===c||e===a||e===v||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===u||e.$$typeof===i||e.$$typeof===o||e.$$typeof===h||e.$$typeof===d||e.$$typeof===f||e.$$typeof===_||e.$$typeof===m)},_l.typeOf=w}()),_l);var wl=ml.exports,bl=to,yl=ro;var xl=function(e){return"number"==typeof e||yl(e)&&"[object Number]"==bl(e)},Zl=zt(xl),Ol=xl;var Ml=zt((function(e){return Ol(e)&&e!=+e})),El=function(e){return 0===e?0:e>0?1:-1},Hl=function(e){return gl(e)&&e.indexOf("%")===e.length-1},Pl=function(e){return Zl(e)&&!Ml(e)},jl=function(e){return Pl(e)||gl(e)},Vl=0,Cl=function(e){var t=++Vl;return"".concat(e||"").concat(t)},Al=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Pl(e)&&!gl(e))return n;if(Hl(e)){var c=e.indexOf("%");r=t*parseFloat(e.slice(0,c))/100}else r=+e;return Ml(r)&&(r=n),a&&r>t&&(r=t),r},Ll=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},zl=function(e,t){return Pl(e)&&Pl(t)?function(r){return e+r*(t-e)}:function(){return t}};function Bl(e,t,r){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):sl(e,t))===r})):null}function kl(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 Sl(e){return Sl="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},Sl(e)}var Rl=["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"],Dl=["points","pathLength"],Il={svg:["viewBox","children"],polygon:Dl,polyline:Dl},Tl=["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"],Nl=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(y(e)&&(r=e.props),!po(r))return null;var n={};return Object.keys(r).forEach((function(e){Tl.includes(e)&&(n[e]=t||function(t){return r[e](r,t)})})),n},Fl=function(e,t,r){if(!po(e)||"object"!==Sl(e))return null;var n=null;return Object.keys(e).forEach((function(a){var c=e[a];Tl.includes(a)&&"function"==typeof c&&(n||(n={}),n[a]=function(e,t,r){return function(n){return e(t,r,n),null}}(c,t,r))})),n},Ql=["children"],$l=["children"];function Yl(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Ul(e){return Ul="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},Ul(e)}var Wl={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Xl=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},Kl=null,ql=null,Gl=function e(t){if(t===Kl&&Array.isArray(ql))return ql;var r=[];return x.forEach(t,(function(t){ll(t)||(wl.isFragment(t)?r=r.concat(e(t.props.children)):r.push(t))})),ql=r,Kl=t,r};function Jl(e,t){var r=[],n=[];return n=Array.isArray(t)?t.map((function(e){return Xl(e)})):[Xl(t)],Gl(e).forEach((function(e){var t=sl(e,"type.displayName")||sl(e,"type.name");-1!==n.indexOf(t)&&r.push(e)})),r}function eh(e,t){var r=Jl(e,t);return r&&r[0]}var th=function(e){if(!e||!e.props)return!1;var t=e.props,r=t.width,n=t.height;return!(!Pl(r)||r<=0||!Pl(n)||n<=0)},rh=["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"],nh=function(e){return e&&e.type&&gl(e.type)&&rh.indexOf(e.type)>=0},ah=function(e){return e&&"object"===Ul(e)&&"cx"in e&&"cy"in e&&"r"in e},ch=function(e){var t=[];return Gl(e).forEach((function(e){nh(e)&&t.push(e)})),t},ih=function(e,t,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if(y(e)&&(n=e.props),!po(n))return null;var a={};return Object.keys(n).forEach((function(e){var c;(function(e,t,r,n){var a,c=null!==(a=null==Il?void 0:Il[n])&&void 0!==a?a:[];return!_o(e)&&(n&&c.includes(t)||Rl.includes(t))||r&&Tl.includes(t)})(null===(c=n)||void 0===c?void 0:c[e],e,t,r)&&(a[e]=n[e])})),a},oh=function e(t,r){if(t===r)return!0;var n=x.count(t);if(n!==x.count(r))return!1;if(0===n)return!0;if(1===n)return sh(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var c=t[a],i=r[a];if(Array.isArray(c)||Array.isArray(i)){if(!e(c,i))return!1}else if(!sh(c,i))return!1}return!0},sh=function(e,t){if(ll(e)&&ll(t))return!0;if(!ll(e)&&!ll(t)){var r=e.props||{},n=r.children,a=Yl(r,Ql),c=t.props||{},i=c.children,o=Yl(c,$l);return n&&i?kl(a,o)&&oh(n,i):!n&&!i&&kl(a,o)}return!1},lh=function(e,t){var r=[],n={};return Gl(e).forEach((function(e,a){if(nh(e))r.push(e);else if(e){var c=Xl(e.type),i=t[c]||{},o=i.handler,s=i.once;if(o&&(!s||!n[c])){var l=o(e,c,a);r.push(l),n[c]=!0}}})),r},hh=function(e,t){return Gl(t).indexOf(e)},vh=["children","width","height","viewBox","className","style","title","desc"];function ph(){return ph=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},ph.apply(this,arguments)}function uh(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function gh(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,c=e.className,i=e.style,s=e.title,l=e.desc,h=uh(e,vh),v=a||{width:r,height:n,x:0,y:0},p=Ri("recharts-surface",c);return o.createElement("svg",ph({},ih(h,!0,"svg"),{className:p,width:r,height:n,style:i,viewBox:"".concat(v.x," ").concat(v.y," ").concat(v.width," ").concat(v.height)}),o.createElement("title",null,s),o.createElement("desc",null,l),t)}var mh=["children","className"];function dh(){return dh=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},dh.apply(this,arguments)}function fh(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var _h=o.forwardRef((function(e,t){var r=e.children,n=e.className,a=fh(e,mh),c=Ri("recharts-layer",n);return o.createElement("g",dh({className:c},ih(a,!0),{ref:t}),r)})),wh="production"!==process.env.NODE_ENV,bh=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(wh&&"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 c=0;console.warn(t.replace(/%s/g,(function(){return n[c++]})))}};var yh=function(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var c=Array(a);++n<a;)c[n]=e[n+t];return c},xh=yh;var Zh=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:xh(e,t,r)},Oh=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Mh=function(e){return Oh.test(e)};var Eh=function(e){return e.split("")},Hh="\\ud800-\\udfff",Ph="["+Hh+"]",jh="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Vh="\\ud83c[\\udffb-\\udfff]",Ch="[^"+Hh+"]",Ah="(?:\\ud83c[\\udde6-\\uddff]){2}",Lh="[\\ud800-\\udbff][\\udc00-\\udfff]",zh="(?:"+jh+"|"+Vh+")"+"?",Bh="[\\ufe0e\\ufe0f]?",kh=Bh+zh+("(?:\\u200d(?:"+[Ch,Ah,Lh].join("|")+")"+Bh+zh+")*"),Sh="(?:"+[Ch+jh+"?",jh,Ah,Lh,Ph].join("|")+")",Rh=RegExp(Vh+"(?="+Vh+")|"+Sh+kh,"g");var Dh=Eh,Ih=Mh,Th=function(e){return e.match(Rh)||[]};var Nh=Zh,Fh=Mh,Qh=function(e){return Ih(e)?Th(e):Dh(e)},$h=Xs;var Yh=zt(function(e){return function(t){t=$h(t);var r=Fh(t)?Qh(t):void 0,n=r?r[0]:t.charAt(0),a=r?Nh(r,1).join(""):t.slice(1);return n[e]()+a}}("toUpperCase"));function Uh(e){return function(){return e}}const Wh=Math.abs,Xh=Math.atan2,Kh=Math.cos,qh=Math.max,Gh=Math.min,Jh=Math.sin,ev=Math.sqrt,tv=1e-12,rv=Math.PI,nv=rv/2,av=2*rv;function cv(e){return e>=1?nv:e<=-1?-nv:Math.asin(e)}const iv=Math.PI,ov=2*iv,sv=1e-6,lv=ov-sv;function hv(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class vv{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?hv:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return hv;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,a,c){this._append`C${+e},${+t},${+r},${+n},${this._x1=+a},${this._y1=+c}`}arcTo(e,t,r,n,a){if(e=+e,t=+t,r=+r,n=+n,(a=+a)<0)throw new Error(`negative radius: ${a}`);let c=this._x1,i=this._y1,o=r-e,s=n-t,l=c-e,h=i-t,v=l*l+h*h;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(v>sv)if(Math.abs(h*o-s*l)>sv&&a){let p=r-c,u=n-i,g=o*o+s*s,m=p*p+u*u,d=Math.sqrt(g),f=Math.sqrt(v),_=a*Math.tan((iv-Math.acos((g+v-m)/(2*d*f)))/2),w=_/f,b=_/d;Math.abs(w-1)>sv&&this._append`L${e+w*l},${t+w*h}`,this._append`A${a},${a},0,0,${+(h*p>l*u)},${this._x1=e+b*o},${this._y1=t+b*s}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,n,a,c){if(e=+e,t=+t,c=!!c,(r=+r)<0)throw new Error(`negative radius: ${r}`);let i=r*Math.cos(n),o=r*Math.sin(n),s=e+i,l=t+o,h=1^c,v=c?n-a:a-n;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>sv||Math.abs(this._y1-l)>sv)&&this._append`L${s},${l}`,r&&(v<0&&(v=v%ov+ov),v>lv?this._append`A${r},${r},0,1,${h},${e-i},${t-o}A${r},${r},0,1,${h},${this._x1=s},${this._y1=l}`:v>sv&&this._append`A${r},${r},0,${+(v>=iv)},${h},${this._x1=e+r*Math.cos(a)},${this._y1=t+r*Math.sin(a)}`)}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 pv(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 vv(t)}function uv(e){return e.innerRadius}function gv(e){return e.outerRadius}function mv(e){return e.startAngle}function dv(e){return e.endAngle}function fv(e){return e&&e.padAngle}function _v(e,t,r,n,a,c,i){var o=e-r,s=t-n,l=(i?c:-c)/ev(o*o+s*s),h=l*s,v=-l*o,p=e+h,u=t+v,g=r+h,m=n+v,d=(p+g)/2,f=(u+m)/2,_=g-p,w=m-u,b=_*_+w*w,y=a-c,x=p*m-g*u,Z=(w<0?-1:1)*ev(qh(0,y*y*b-x*x)),O=(x*w-_*Z)/b,M=(-x*_-w*Z)/b,E=(x*w+_*Z)/b,H=(-x*_+w*Z)/b,P=O-d,j=M-f,V=E-d,C=H-f;return P*P+j*j>V*V+C*C&&(O=E,M=H),{cx:O,cy:M,x01:-h,y01:-v,x11:O*(a/y-1),y11:M*(a/y-1)}}function wv(){var e=uv,t=gv,r=Uh(0),n=null,a=mv,c=dv,i=fv,o=null,s=pv(l);function l(){var l,h,v=+e.apply(this,arguments),p=+t.apply(this,arguments),u=a.apply(this,arguments)-nv,g=c.apply(this,arguments)-nv,m=Wh(g-u),d=g>u;if(o||(o=l=s()),p<v&&(h=p,p=v,v=h),p>tv)if(m>av-tv)o.moveTo(p*Kh(u),p*Jh(u)),o.arc(0,0,p,u,g,!d),v>tv&&(o.moveTo(v*Kh(g),v*Jh(g)),o.arc(0,0,v,g,u,d));else{var f,_,w=u,b=g,y=u,x=g,Z=m,O=m,M=i.apply(this,arguments)/2,E=M>tv&&(n?+n.apply(this,arguments):ev(v*v+p*p)),H=Gh(Wh(p-v)/2,+r.apply(this,arguments)),P=H,j=H;if(E>tv){var V=cv(E/v*Jh(M)),C=cv(E/p*Jh(M));(Z-=2*V)>tv?(y+=V*=d?1:-1,x-=V):(Z=0,y=x=(u+g)/2),(O-=2*C)>tv?(w+=C*=d?1:-1,b-=C):(O=0,w=b=(u+g)/2)}var A=p*Kh(w),L=p*Jh(w),z=v*Kh(x),B=v*Jh(x);if(H>tv){var k,S=p*Kh(b),R=p*Jh(b),D=v*Kh(y),I=v*Jh(y);if(m<rv)if(k=function(e,t,r,n,a,c,i,o){var s=r-e,l=n-t,h=i-a,v=o-c,p=v*s-h*l;if(!(p*p<tv))return[e+(p=(h*(t-c)-v*(e-a))/p)*s,t+p*l]}(A,L,D,I,S,R,z,B)){var T=A-k[0],N=L-k[1],F=S-k[0],Q=R-k[1],$=1/Jh(function(e){return e>1?0:e<-1?rv:Math.acos(e)}((T*F+N*Q)/(ev(T*T+N*N)*ev(F*F+Q*Q)))/2),Y=ev(k[0]*k[0]+k[1]*k[1]);P=Gh(H,(v-Y)/($-1)),j=Gh(H,(p-Y)/($+1))}else P=j=0}O>tv?j>tv?(f=_v(D,I,A,L,p,j,d),_=_v(S,R,z,B,p,j,d),o.moveTo(f.cx+f.x01,f.cy+f.y01),j<H?o.arc(f.cx,f.cy,j,Xh(f.y01,f.x01),Xh(_.y01,_.x01),!d):(o.arc(f.cx,f.cy,j,Xh(f.y01,f.x01),Xh(f.y11,f.x11),!d),o.arc(0,0,p,Xh(f.cy+f.y11,f.cx+f.x11),Xh(_.cy+_.y11,_.cx+_.x11),!d),o.arc(_.cx,_.cy,j,Xh(_.y11,_.x11),Xh(_.y01,_.x01),!d))):(o.moveTo(A,L),o.arc(0,0,p,w,b,!d)):o.moveTo(A,L),v>tv&&Z>tv?P>tv?(f=_v(z,B,S,R,v,-P,d),_=_v(A,L,D,I,v,-P,d),o.lineTo(f.cx+f.x01,f.cy+f.y01),P<H?o.arc(f.cx,f.cy,P,Xh(f.y01,f.x01),Xh(_.y01,_.x01),!d):(o.arc(f.cx,f.cy,P,Xh(f.y01,f.x01),Xh(f.y11,f.x11),!d),o.arc(0,0,v,Xh(f.cy+f.y11,f.cx+f.x11),Xh(_.cy+_.y11,_.cx+_.x11),d),o.arc(_.cx,_.cy,P,Xh(_.y11,_.x11),Xh(_.y01,_.x01),!d))):o.arc(0,0,v,x,y,d):o.lineTo(z,B)}else o.moveTo(0,0);if(o.closePath(),l)return o=null,l+""||null}return l.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,n=(+a.apply(this,arguments)+ +c.apply(this,arguments))/2-rv/2;return[Kh(n)*r,Jh(n)*r]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Uh(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Uh(+e),l):t},l.cornerRadius=function(e){return arguments.length?(r="function"==typeof e?e:Uh(+e),l):r},l.padRadius=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Uh(+e),l):n},l.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:Uh(+e),l):a},l.endAngle=function(e){return arguments.length?(c="function"==typeof e?e:Uh(+e),l):c},l.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:Uh(+e),l):i},l.context=function(e){return arguments.length?(o=null==e?null:e,l):o},l}function bv(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function yv(e){this._context=e}function xv(e){return new yv(e)}function Zv(e){return e[0]}function Ov(e){return e[1]}function Mv(e,t){var r=Uh(!0),n=null,a=xv,c=null,i=pv(o);function o(o){var s,l,h,v=(o=bv(o)).length,p=!1;for(null==n&&(c=a(h=i())),s=0;s<=v;++s)!(s<v&&r(l=o[s],s,o))===p&&((p=!p)?c.lineStart():c.lineEnd()),p&&c.point(+e(l,s,o),+t(l,s,o));if(h)return c=null,h+""||null}return e="function"==typeof e?e:void 0===e?Zv:Uh(e),t="function"==typeof t?t:void 0===t?Ov:Uh(t),o.x=function(t){return arguments.length?(e="function"==typeof t?t:Uh(+t),o):e},o.y=function(e){return arguments.length?(t="function"==typeof e?e:Uh(+e),o):t},o.defined=function(e){return arguments.length?(r="function"==typeof e?e:Uh(!!e),o):r},o.curve=function(e){return arguments.length?(a=e,null!=n&&(c=a(n)),o):a},o.context=function(e){return arguments.length?(null==e?n=c=null:c=a(n=e),o):n},o}function Ev(e,t,r){var n=null,a=Uh(!0),c=null,i=xv,o=null,s=pv(l);function l(l){var h,v,p,u,g,m=(l=bv(l)).length,d=!1,f=new Array(m),_=new Array(m);for(null==c&&(o=i(g=s())),h=0;h<=m;++h){if(!(h<m&&a(u=l[h],h,l))===d)if(d=!d)v=h,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),p=h-1;p>=v;--p)o.point(f[p],_[p]);o.lineEnd(),o.areaEnd()}d&&(f[h]=+e(u,h,l),_[h]=+t(u,h,l),o.point(n?+n(u,h,l):f[h],r?+r(u,h,l):_[h]))}if(g)return o=null,g+""||null}function h(){return Mv().defined(a).curve(i).context(c)}return e="function"==typeof e?e:void 0===e?Zv:Uh(+e),t="function"==typeof t?t:Uh(void 0===t?0:+t),r="function"==typeof r?r:void 0===r?Ov:Uh(+r),l.x=function(t){return arguments.length?(e="function"==typeof t?t:Uh(+t),n=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Uh(+t),l):e},l.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Uh(+e),l):n},l.y=function(e){return arguments.length?(t="function"==typeof e?e:Uh(+e),r=null,l):t},l.y0=function(e){return arguments.length?(t="function"==typeof e?e:Uh(+e),l):t},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Uh(+e),l):r},l.lineX0=l.lineY0=function(){return h().x(e).y(t)},l.lineY1=function(){return h().x(e).y(r)},l.lineX1=function(){return h().x(n).y(t)},l.defined=function(e){return arguments.length?(a="function"==typeof e?e:Uh(!!e),l):a},l.curve=function(e){return arguments.length?(i=e,null!=c&&(o=i(c)),l):i},l.context=function(e){return arguments.length?(null==e?c=o=null:o=i(c=e),l):c},l}yv.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 Hv{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 Pv={draw(e,t){const r=ev(t/rv);e.moveTo(r,0),e.arc(0,0,r,0,av)}},jv={draw(e,t){const r=ev(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 Vv=ev(1/3),Cv=2*Vv;var Av={draw(e,t){const r=ev(t/Cv),n=r*Vv;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Lv={draw(e,t){const r=ev(t),n=-r/2;e.rect(n,n,r,r)}};const zv=Jh(rv/10)/Jh(7*rv/10),Bv=Jh(av/10)*zv,kv=-Kh(av/10)*zv;var Sv={draw(e,t){const r=ev(.8908130915292852*t),n=Bv*r,a=kv*r;e.moveTo(0,-r),e.lineTo(n,a);for(let t=1;t<5;++t){const c=av*t/5,i=Kh(c),o=Jh(c);e.lineTo(o*r,-i*r),e.lineTo(i*n-o*a,o*n+i*a)}e.closePath()}};const Rv=ev(3);var Dv={draw(e,t){const r=-ev(t/(3*Rv));e.moveTo(0,2*r),e.lineTo(-Rv*r,-r),e.lineTo(Rv*r,-r),e.closePath()}};const Iv=-.5,Tv=ev(3)/2,Nv=1/ev(12),Fv=3*(Nv/2+1);var Qv={draw(e,t){const r=ev(t/Fv),n=r/2,a=r*Nv,c=n,i=r*Nv+r,o=-c,s=i;e.moveTo(n,a),e.lineTo(c,i),e.lineTo(o,s),e.lineTo(Iv*n-Tv*a,Tv*n+Iv*a),e.lineTo(Iv*c-Tv*i,Tv*c+Iv*i),e.lineTo(Iv*o-Tv*s,Tv*o+Iv*s),e.lineTo(Iv*n+Tv*a,Iv*a-Tv*n),e.lineTo(Iv*c+Tv*i,Iv*i-Tv*c),e.lineTo(Iv*o+Tv*s,Iv*s-Tv*o),e.closePath()}};function $v(){}function Yv(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 Uv(e){this._context=e}function Wv(e){this._context=e}function Xv(e){this._context=e}function Kv(e,t){this._basis=new Uv(e),this._beta=t}function qv(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function Gv(e,t){this._context=e,this._k=(1-t)/6}function Jv(e,t){this._context=e,this._k=(1-t)/6}function ep(e,t){this._context=e,this._k=(1-t)/6}function tp(e,t,r){var n=e._x1,a=e._y1,c=e._x2,i=e._y2;if(e._l01_a>tv){var o=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,a=(a*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>tv){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,h=3*e._l23_a*(e._l23_a+e._l12_a);c=(c*l+e._x1*e._l23_2a-t*e._l12_2a)/h,i=(i*l+e._y1*e._l23_2a-r*e._l12_2a)/h}e._context.bezierCurveTo(n,a,c,i,e._x2,e._y2)}function rp(e,t){this._context=e,this._alpha=t}function np(e,t){this._context=e,this._alpha=t}function ap(e,t){this._context=e,this._alpha=t}function cp(e){this._context=e}function ip(e){return e<0?-1:1}function op(e,t,r){var n=e._x1-e._x0,a=t-e._x1,c=(e._y1-e._y0)/(n||a<0&&-0),i=(r-e._y1)/(a||n<0&&-0),o=(c*a+i*n)/(n+a);return(ip(c)+ip(i))*Math.min(Math.abs(c),Math.abs(i),.5*Math.abs(o))||0}function sp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function lp(e,t,r){var n=e._x0,a=e._y0,c=e._x1,i=e._y1,o=(c-n)/3;e._context.bezierCurveTo(n+o,a+o*t,c-o,i-o*r,c,i)}function hp(e){this._context=e}function vp(e){this._context=new pp(e)}function pp(e){this._context=e}function up(e){this._context=e}function gp(e){var t,r,n=e.length-1,a=new Array(n),c=new Array(n),i=new Array(n);for(a[0]=0,c[0]=2,i[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,c[t]=4,i[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,c[n-1]=7,i[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/c[t-1],c[t]-=r,i[t]-=r*i[t-1];for(a[n-1]=i[n-1]/c[n-1],t=n-2;t>=0;--t)a[t]=(i[t]-a[t+1])/c[t];for(c[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)c[t]=2*e[t+1]-a[t+1];return[a,c]}function mp(e,t){this._context=e,this._t=t}function dp(e,t){if((a=e.length)>1)for(var r,n,a,c=1,i=e[t[0]],o=i.length;c<a;++c)for(n=i,i=e[t[c]],r=0;r<o;++r)i[r][1]+=i[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function fp(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function _p(e,t){return e[t]}function wp(e){const t=[];return t.key=e,t}function bp(e){return bp="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},bp(e)}Uv.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:Yv(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:Yv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Wv.prototype={areaStart:$v,areaEnd:$v,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:Yv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Xv.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:Yv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Kv.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n,a=e[0],c=t[0],i=e[r]-a,o=t[r]-c,s=-1;++s<=r;)n=s/r,this._basis.point(this._beta*e[s]+(1-this._beta)*(a+n*i),this._beta*t[s]+(1-this._beta)*(c+n*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},function e(t){function r(e){return 1===t?new Uv(e):new Kv(e,t)}return r.beta=function(t){return e(+t)},r}(.85),Gv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:qv(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:qv(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return new Gv(e,t)}return r.tension=function(t){return e(+t)},r}(0),Jv.prototype={areaStart:$v,areaEnd:$v,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:qv(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return new Jv(e,t)}return r.tension=function(t){return e(+t)},r}(0),ep.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:qv(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return new ep(e,t)}return r.tension=function(t){return e(+t)},r}(0),rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}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;default:tp(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return t?new rp(e,t):new Gv(e,0)}return r.alpha=function(t){return e(+t)},r}(.5),np.prototype={areaStart:$v,areaEnd:$v,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:tp(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return t?new np(e,t):new Jv(e,0)}return r.alpha=function(t){return e(+t)},r}(.5),ap.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tp(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return t?new ap(e,t):new ep(e,0)}return r.alpha=function(t){return e(+t)},r}(.5),cp.prototype={areaStart:$v,areaEnd:$v,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))}},hp.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:lp(this,this._t0,sp(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,lp(this,sp(this,r=op(this,e,t)),r);break;default:lp(this,this._t0,r=op(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(vp.prototype=Object.create(hp.prototype)).point=function(e,t){hp.prototype.point.call(this,t,e)},pp.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,c){this._context.bezierCurveTo(t,e,n,r,c,a)}},up.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=gp(e),a=gp(t),c=0,i=1;i<r;++c,++i)this._context.bezierCurveTo(n[0][c],a[0][c],n[1][c],a[1][c],e[i],t[i]);(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)}},mp.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 yp=["type","size","sizeType"];function xp(){return xp=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},xp.apply(this,arguments)}function Zp(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 Op(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zp(Object(r),!0).forEach((function(t){Mp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mp(e,t,r){return t=function(e){var t=function(e,t){if("object"!==bp(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==bp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bp(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ep(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var Hp={symbolCircle:Pv,symbolCross:jv,symbolDiamond:Av,symbolSquare:Lv,symbolStar:Sv,symbolTriangle:Dv,symbolWye:Qv},Pp=Math.PI/180,jp=function(e){var t,r,n=e.type,a=void 0===n?"circle":n,c=e.size,i=void 0===c?64:c,s=e.sizeType,l=void 0===s?"area":s,h=Op(Op({},Ep(e,yp)),{},{type:a,size:i,sizeType:l}),v=h.className,p=h.cx,u=h.cy,g=ih(h,!0);return p===+p&&u===+u&&i===+i?o.createElement("path",xp({},g,{className:Ri("recharts-symbols",v),transform:"translate(".concat(p,", ").concat(u,")"),d:(t=function(e){var t="symbol".concat(Yh(e));return Hp[t]||Pv}(a),r=function(e,t){let r=null,n=pv(a);function a(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return e="function"==typeof e?e:Uh(e||Pv),t="function"==typeof t?t:Uh(void 0===t?64:+t),a.type=function(t){return arguments.length?(e="function"==typeof t?t:Uh(t),a):e},a.size=function(e){return arguments.length?(t="function"==typeof e?e:Uh(+e),a):t},a.context=function(e){return arguments.length?(r=null==e?null:e,a):r},a}().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*Pp;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}}(i,l,a)),r())})):null};function Vp(e){return Vp="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},Vp(e)}function Cp(){return Cp=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},Cp.apply(this,arguments)}function Ap(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 Lp(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 zp(e,t){return zp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zp(e,t)}function Bp(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=kp(e);if(t){var a=kp(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Vp(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)}(this,r)}}function kp(e){return kp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kp(e)}function Sp(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"!==Vp(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Vp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Vp(t)?t:String(t)}jp.registerSymbol=function(e,t){Hp["symbol".concat(Yh(e))]=t};var Dp=32,Ip=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&&zp(e,t)}(c,Z);var t,r,n,a=Bp(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,r=16,n=Dp/6,a=Dp/3,c=e.inactive?t:e.color;if("plainline"===e.type)return o.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:r,x2:Dp,y2:r,className:"recharts-legend-icon"});if("line"===e.type)return o.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(r,"h").concat(a,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*a,",").concat(r,"\n H").concat(Dp,"M").concat(2*a,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(a,",").concat(r),className:"recharts-legend-icon"});if("rect"===e.type)return o.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(4,"h").concat(Dp,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(o.isValidElement(e.legendIcon)){var i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ap(Object(r),!0).forEach((function(t){Sp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ap(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return delete i.legendIcon,o.cloneElement(e.legendIcon,i)}return o.createElement(jp,{fill:c,cx:r,cy:r,size:Dp,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,r=t.payload,n=t.iconSize,a=t.layout,c=t.formatter,i=t.inactiveColor,s={x:0,y:0,width:Dp,height:Dp},l={display:"horizontal"===a?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(t,r){var a,v=t.formatter||c,p=Ri((Sp(a={"recharts-legend-item":!0},"legend-item-".concat(r),!0),Sp(a,"inactive",t.inactive),a));if("none"===t.type)return null;var u=_o(t.value)?null:t.value;bh(!_o(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 g=t.inactive?i:t.color;return o.createElement("li",Cp({className:p,style:l,key:"legend-item-".concat(r)},Fl(e.props,t,r)),o.createElement(gh,{width:n,height:n,viewBox:s,style:h},e.renderIcon(t)),o.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},v?v(u,t,r):u))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,r=e.layout,n=e.align;if(!t||!t.length)return null;var a={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return o.createElement("ul",{className:"recharts-default-legend",style:a},this.renderItems())}}],r&&Lp(t.prototype,r),n&&Lp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();Sp(Ip,"displayName","Legend"),Sp(Ip,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Tp=ds;var Np=ds,Fp=fs,Qp=Ls;var $p=ds,Yp=function(){this.__data__=new Tp,this.size=0},Up=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Wp=function(e){return this.__data__.get(e)},Xp=function(e){return this.__data__.has(e)},Kp=function(e,t){var r=this.__data__;if(r instanceof Np){var n=r.__data__;if(!Fp||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Qp(n)}return r.set(e,t),this.size=r.size,this};function qp(e){var t=this.__data__=new $p(e);this.size=t.size}qp.prototype.clear=Yp,qp.prototype.delete=Up,qp.prototype.get=Wp,qp.prototype.has=Xp,qp.prototype.set=Kp;var Gp=qp;var Jp=Ls,eu=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},tu=function(e){return this.__data__.has(e)};function ru(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Jp;++t<r;)this.add(e[t])}ru.prototype.add=ru.prototype.push=eu,ru.prototype.has=tu;var nu=ru;var au=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};var cu=function(e,t){return e.has(t)},iu=nu,ou=au,su=cu;var lu=function(e,t,r,n,a,c){var i=1&r,o=e.length,s=t.length;if(o!=s&&!(i&&s>o))return!1;var l=c.get(e),h=c.get(t);if(l&&h)return l==t&&h==e;var v=-1,p=!0,u=2&r?new iu:void 0;for(c.set(e,t),c.set(t,e);++v<o;){var g=e[v],m=t[v];if(n)var d=i?n(m,g,v,t,e,c):n(g,m,v,e,t,c);if(void 0!==d){if(d)continue;p=!1;break}if(u){if(!ou(t,(function(e,t){if(!su(u,t)&&(g===e||a(g,e,r,n,c)))return u.push(t)}))){p=!1;break}}else if(g!==m&&!a(g,m,r,n,c)){p=!1;break}}return c.delete(e),c.delete(t),p},hu=Fi.Uint8Array;var vu=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};var pu=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},uu=hu,gu=rs,mu=lu,du=vu,fu=pu,_u=Qi?Qi.prototype:void 0,wu=_u?_u.valueOf:void 0;var bu=function(e,t,r,n,a,c,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!c(new uu(e),new uu(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return gu(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=du;case"[object Set]":var s=1&n;if(o||(o=fu),e.size!=t.size&&!s)return!1;var l=i.get(e);if(l)return l==t;n|=2,i.set(e,t);var h=mu(o(e),o(t),n,a,c,i);return i.delete(e),h;case"[object Symbol]":if(wu)return wu.call(e)==wu.call(t)}return!1};var yu=function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e},xu=yu,Zu=Di;var Ou=function(e,t,r){var n=t(e);return Zu(e)?n:xu(n,r(e))};var Mu=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,c=[];++r<n;){var i=e[r];t(i,r,e)&&(c[a++]=i)}return c};var Eu=function(){return[]},Hu=Mu,Pu=Eu,ju=Object.prototype.propertyIsEnumerable,Vu=Object.getOwnPropertySymbols,Cu=Vu?function(e){return null==e?[]:(e=Object(e),Hu(Vu(e),(function(t){return ju.call(e,t)})))}:Pu,Au=Cu;var Lu=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},zu=to,Bu=ro;var ku=function(e){return Bu(e)&&"[object Arguments]"==zu(e)},Su=ro,Ru=Object.prototype,Du=Ru.hasOwnProperty,Iu=Ru.propertyIsEnumerable,Tu=ku(function(){return arguments}())?ku:function(e){return Su(e)&&Du.call(e,"callee")&&!Iu.call(e,"callee")},Nu={exports:{}};var Fu=function(){return!1};!function(e,t){var r=Fi,n=Fu,a=t&&!t.nodeType&&t,c=a&&e&&!e.nodeType&&e,i=c&&c.exports===a?r.Buffer:void 0,o=(i?i.isBuffer:void 0)||n;e.exports=o}(Nu,Nu.exports);var Qu=Nu.exports,$u=/^(?:0|[1-9]\d*)$/;var Yu=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&$u.test(e))&&e>-1&&e%1==0&&e<t};var Uu=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Wu=to,Xu=Uu,Ku=ro,qu={};qu["[object Float32Array]"]=qu["[object Float64Array]"]=qu["[object Int8Array]"]=qu["[object Int16Array]"]=qu["[object Int32Array]"]=qu["[object Uint8Array]"]=qu["[object Uint8ClampedArray]"]=qu["[object Uint16Array]"]=qu["[object Uint32Array]"]=!0,qu["[object Arguments]"]=qu["[object Array]"]=qu["[object ArrayBuffer]"]=qu["[object Boolean]"]=qu["[object DataView]"]=qu["[object Date]"]=qu["[object Error]"]=qu["[object Function]"]=qu["[object Map]"]=qu["[object Number]"]=qu["[object Object]"]=qu["[object RegExp]"]=qu["[object Set]"]=qu["[object String]"]=qu["[object WeakMap]"]=!1;var Gu=function(e){return Ku(e)&&Xu(e.length)&&!!qu[Wu(e)]};var Ju=function(e){return function(t){return e(t)}},eg={exports:{}};!function(e,t){var r=Ii,n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,c=a&&a.exports===n&&r.process,i=function(){try{var e=a&&a.require&&a.require("util").types;return e||c&&c.binding&&c.binding("util")}catch(e){}}();e.exports=i}(eg,eg.exports);var tg=eg.exports,rg=Gu,ng=Ju,ag=tg&&tg.isTypedArray,cg=ag?ng(ag):rg,ig=Lu,og=Tu,sg=Di,lg=Qu,hg=Yu,vg=cg,pg=Object.prototype.hasOwnProperty;var ug=function(e,t){var r=sg(e),n=!r&&og(e),a=!r&&!n&&lg(e),c=!r&&!n&&!a&&vg(e),i=r||n||a||c,o=i?ig(e.length,String):[],s=o.length;for(var l in e)!t&&!pg.call(e,l)||i&&("length"==l||a&&("offset"==l||"parent"==l)||c&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||hg(l,s))||o.push(l);return o},gg=Object.prototype;var mg=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||gg)};var dg=function(e,t){return function(r){return e(t(r))}},fg=dg(Object.keys,Object),_g=mg,wg=fg,bg=Object.prototype.hasOwnProperty;var yg=function(e){if(!_g(e))return wg(e);var t=[];for(var r in Object(e))bg.call(e,r)&&"constructor"!=r&&t.push(r);return t},xg=fo,Zg=Uu;var Og=function(e){return null!=e&&Zg(e.length)&&!xg(e)},Mg=ug,Eg=yg,Hg=Og;var Pg=function(e){return Hg(e)?Mg(e):Eg(e)},jg=Ou,Vg=Au,Cg=Pg;var Ag=function(e){return jg(e,Cg,Vg)},Lg=Ag,zg=Object.prototype.hasOwnProperty;var Bg=function(e,t,r,n,a,c){var i=1&r,o=Lg(e),s=o.length;if(s!=Lg(t).length&&!i)return!1;for(var l=s;l--;){var h=o[l];if(!(i?h in t:zg.call(t,h)))return!1}var v=c.get(e),p=c.get(t);if(v&&p)return v==t&&p==e;var u=!0;c.set(e,t),c.set(t,e);for(var g=i;++l<s;){var m=e[h=o[l]],d=t[h];if(n)var f=i?n(d,m,h,t,e,c):n(m,d,h,e,t,c);if(!(void 0===f?m===d||a(m,d,r,n,c):f)){u=!1;break}g||(g="constructor"==h)}if(u&&!g){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(u=!1)}return c.delete(e),c.delete(t),u},kg=So(Fi,"DataView"),Sg=So(Fi,"Promise"),Rg=So(Fi,"Set"),Dg=kg,Ig=fs,Tg=Sg,Ng=Rg,Fg=So(Fi,"WeakMap"),Qg=to,$g=Zo,Yg="[object Map]",Ug="[object Promise]",Wg="[object Set]",Xg="[object WeakMap]",Kg="[object DataView]",qg=$g(Dg),Gg=$g(Ig),Jg=$g(Tg),em=$g(Ng),tm=$g(Fg),rm=Qg;(Dg&&rm(new Dg(new ArrayBuffer(1)))!=Kg||Ig&&rm(new Ig)!=Yg||Tg&&rm(Tg.resolve())!=Ug||Ng&&rm(new Ng)!=Wg||Fg&&rm(new Fg)!=Xg)&&(rm=function(e){var t=Qg(e),r="[object Object]"==t?e.constructor:void 0,n=r?$g(r):"";if(n)switch(n){case qg:return Kg;case Gg:return Yg;case Jg:return Ug;case em:return Wg;case tm:return Xg}return t});var nm=rm,am=Gp,cm=lu,im=bu,om=Bg,sm=nm,lm=Di,hm=Qu,vm=cg,pm="[object Arguments]",um="[object Array]",gm="[object Object]",mm=Object.prototype.hasOwnProperty;var dm=function(e,t,r,n,a,c){var i=lm(e),o=lm(t),s=i?um:sm(e),l=o?um:sm(t),h=(s=s==pm?gm:s)==gm,v=(l=l==pm?gm:l)==gm,p=s==l;if(p&&hm(e)){if(!hm(t))return!1;i=!0,h=!1}if(p&&!h)return c||(c=new am),i||vm(e)?cm(e,t,r,n,a,c):im(e,t,s,r,n,a,c);if(!(1&r)){var u=h&&mm.call(e,"__wrapped__"),g=v&&mm.call(t,"__wrapped__");if(u||g){var m=u?e.value():e,d=g?t.value():t;return c||(c=new am),a(m,d,r,n,c)}}return!!p&&(c||(c=new am),om(e,t,r,n,a,c))},fm=dm,_m=ro;var wm=function e(t,r,n,a,c){return t===r||(null==t||null==r||!_m(t)&&!_m(r)?t!=t&&r!=r:fm(t,r,n,a,e,c))},bm=Gp,ym=wm;var xm=function(e,t,r,n){var a=r.length,c=a,i=!n;if(null==e)return!c;for(e=Object(e);a--;){var o=r[a];if(i&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<c;){var s=(o=r[a])[0],l=e[s],h=o[1];if(i&&o[2]){if(void 0===l&&!(s in e))return!1}else{var v=new bm;if(n)var p=n(l,h,s,e,t,v);if(!(void 0===p?ym(h,l,3,n,v):p))return!1}}return!0},Zm=vo;var Om=function(e){return e==e&&!Zm(e)},Mm=Om,Em=Pg;var Hm=function(e){for(var t=Em(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Mm(a)]}return t};var Pm=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},jm=xm,Vm=Hm,Cm=Pm;var Am=function(e){var t=Vm(e);return 1==t.length&&t[0][2]?Cm(t[0][0],t[0][1]):function(r){return r===e||jm(r,e,t)}};var Lm=function(e,t){return null!=e&&t in Object(e)},zm=el,Bm=Tu,km=Di,Sm=Yu,Rm=Uu,Dm=rl;var Im=function(e,t,r){for(var n=-1,a=(t=zm(t,e)).length,c=!1;++n<a;){var i=Dm(t[n]);if(!(c=null!=e&&r(e,i)))break;e=e[i]}return c||++n!=a?c:!!(a=null==e?0:e.length)&&Rm(a)&&Sm(i,a)&&(km(e)||Bm(e))},Tm=Lm,Nm=Im;var Fm=function(e,t){return null!=e&&Nm(e,t,Tm)},Qm=wm,$m=ol,Ym=Fm,Um=ho,Wm=Om,Xm=Pm,Km=rl;var qm=function(e,t){return Um(e)&&Wm(t)?Xm(Km(e),t):function(r){var n=$m(r,e);return void 0===n&&n===t?Ym(r,e):Qm(t,n,3)}};var Gm=function(e){return e};var Jm=function(e){return function(t){return null==t?void 0:t[e]}},ed=cl;var td=function(e){return function(t){return ed(t,e)}},rd=Jm,nd=td,ad=ho,cd=rl;var id=Am,od=qm,sd=Gm,ld=Di,hd=function(e){return ad(e)?rd(cd(e)):nd(e)};var vd=function(e){return"function"==typeof e?e:null==e?sd:"object"==typeof e?ld(e)?od(e[0],e[1]):id(e):hd(e)};var pd=function(e,t,r,n){for(var a=e.length,c=r+(n?1:-1);n?c--:++c<a;)if(t(e[c],c,e))return c;return-1};var ud=function(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1},gd=pd,md=function(e){return e!=e},dd=ud;var fd=function(e,t,r){return t==t?dd(e,t,r):gd(e,md,r)},_d=fd;var wd=function(e,t){return!!(null==e?0:e.length)&&_d(e,t,0)>-1};var bd=function(e,t,r){for(var n=-1,a=null==e?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1};var yd=Rg,xd=function(){},Zd=yd&&1/pu(new yd([,-0]))[1]==1/0?function(e){return new yd(e)}:xd,Od=nu,Md=wd,Ed=bd,Hd=cu,Pd=Zd,jd=pu;var Vd=function(e,t,r){var n=-1,a=Md,c=e.length,i=!0,o=[],s=o;if(r)i=!1,a=Ed;else if(c>=200){var l=t?null:Pd(e);if(l)return jd(l);i=!1,a=Hd,s=new Od}else s=t?[]:o;e:for(;++n<c;){var h=e[n],v=t?t(h):h;if(h=r||0!==h?h:0,i&&v==v){for(var p=s.length;p--;)if(s[p]===v)continue e;t&&s.push(v),o.push(h)}else a(s,v,r)||(s!==o&&s.push(v),o.push(h))}return o},Cd=vd,Ad=Vd;var Ld=function(e,t){return e&&e.length?Ad(e,Cd(t)):[]},zd=zt(Ld);function Bd(e,t,r){return!0===t?zd(e,r):_o(t)?zd(e,t):e}function kd(e){return kd="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},kd(e)}var Sd=["ref"];function Rd(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 Dd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rd(Object(r),!0).forEach((function(t){$d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Id(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,Yd(n.key),n)}}function Td(e,t){return Td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Td(e,t)}function Nd(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=Qd(e);if(t){var a=Qd(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===kd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fd(e)}(this,r)}}function Fd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qd(e){return Qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qd(e)}function $d(e,t,r){return(t=Yd(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yd(e){var t=function(e,t){if("object"!==kd(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==kd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kd(t)?t:String(t)}function Ud(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Wd(e){return e.value}var Xd=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&&Td(e,t)}(c,Z);var t,r,n,a=Nd(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $d(Fd(e=a.call.apply(a,[this].concat(r))),"lastBoundingBox",{width:-1,height:-1}),e}return t=c,r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t))}else-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?Dd({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,r,n=this.props,a=n.layout,c=n.align,i=n.verticalAlign,o=n.margin,s=n.chartWidth,l=n.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===c&&"vertical"===a?{left:((s||0)-this.getBBoxSnapshot().width)/2}:"right"===c?{right:o&&o.right||0}:{left:o&&o.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(r="middle"===i?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===i?{bottom:o&&o.bottom||0}:{top:o&&o.top||0}),Dd(Dd({},t),r)}},{key:"render",value:function(){var e=this,t=this.props,r=t.content,n=t.width,a=t.height,c=t.wrapperStyle,i=t.payloadUniqBy,s=t.payload,l=Dd(Dd({position:"absolute",width:n||"auto",height:a||"auto"},this.getDefaultPosition(c)),c);return o.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if("function"==typeof e)return o.createElement(e,t);t.ref;var r=Ud(t,Sd);return o.createElement(Ip,r)}(r,Dd(Dd({},this.props),{},{payload:Bd(s,i,Wd)})))}}],n=[{key:"getWithHeight",value:function(e,t){var r=e.props.layout;return"vertical"===r&&Pl(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}}],r&&Id(t.prototype,r),n&&Id(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();$d(Xd,"displayName","Legend"),$d(Xd,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Kd=Tu,qd=Di,Gd=Qi?Qi.isConcatSpreadable:void 0;var Jd=yu,ef=function(e){return qd(e)||Kd(e)||!!(Gd&&e&&e[Gd])};var tf=function e(t,r,n,a,c){var i=-1,o=t.length;for(n||(n=ef),c||(c=[]);++i<o;){var s=t[i];r>0&&n(s)?r>1?e(s,r-1,n,a,c):Jd(c,s):a||(c[c.length]=s)}return c};var rf=function(e){return function(t,r,n){for(var a=-1,c=Object(t),i=n(t),o=i.length;o--;){var s=i[e?o:++a];if(!1===r(c[s],s,c))break}return t}},nf=rf(),af=Pg;var cf=function(e,t){return e&&nf(e,t,af)},of=Og;var sf=function(e,t){return function(r,n){if(null==r)return r;if(!of(r))return e(r,n);for(var a=r.length,c=t?a:-1,i=Object(r);(t?c--:++c<a)&&!1!==n(i[c],c,i););return r}}(cf),lf=sf,hf=Og;var vf=function(e,t){var r=-1,n=hf(e)?Array(e.length):[];return lf(e,(function(e,a,c){n[++r]=t(e,a,c)})),n};var pf=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e},uf=co;var gf=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,a=e==e,c=uf(e),i=void 0!==t,o=null===t,s=t==t,l=uf(t);if(!o&&!l&&!c&&e>t||c&&i&&s&&!o&&!l||n&&i&&s||!r&&s||!a)return 1;if(!n&&!c&&!l&&e<t||l&&r&&a&&!n&&!c||o&&r&&a||!i&&a||!s)return-1}return 0};var mf=function(e,t,r){for(var n=-1,a=e.criteria,c=t.criteria,i=a.length,o=r.length;++n<i;){var s=gf(a[n],c[n]);if(s)return n>=o?s:s*("desc"==r[n]?-1:1)}return e.index-t.index},df=Ts,ff=cl,_f=vd,wf=vf,bf=pf,yf=Ju,xf=mf,Zf=Gm,Of=Di;var Mf=function(e,t,r){t=t.length?df(t,(function(e){return Of(e)?function(t){return ff(t,1===e.length?e[0]:e)}:e})):[Zf];var n=-1;t=df(t,yf(_f));var a=wf(e,(function(e,r,a){return{criteria:df(t,(function(t){return t(e)})),index:++n,value:e}}));return bf(a,(function(e,t){return xf(e,t,r)}))};var Ef=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)},Hf=Math.max;var Pf=function(e,t,r){return t=Hf(void 0===t?e.length-1:t,0),function(){for(var n=arguments,a=-1,c=Hf(n.length-t,0),i=Array(c);++a<c;)i[a]=n[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=n[a];return o[t]=r(i),Ef(e,this,o)}};var jf=function(e){return function(){return e}},Vf=So,Cf=function(){try{var e=Vf(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Af=jf,Lf=Cf,zf=Lf?function(e,t){return Lf(e,"toString",{configurable:!0,enumerable:!1,value:Af(t),writable:!0})}:Gm,Bf=Date.now;var kf=function(e){var t=0,r=0;return function(){var n=Bf(),a=16-(n-r);if(r=n,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Sf=kf(zf),Rf=Gm,Df=Pf,If=Sf;var Tf=function(e,t){return If(Df(e,t,Rf),e+"")},Nf=rs,Ff=Og,Qf=Yu,$f=vo;var Yf=function(e,t,r){if(!$f(r))return!1;var n=typeof t;return!!("number"==n?Ff(r)&&Qf(t,r.length):"string"==n&&t in r)&&Nf(r[t],e)},Uf=tf,Wf=Mf,Xf=Yf,Kf=zt(Tf((function(e,t){if(null==e)return[];var r=t.length;return r>1&&Xf(e,t[0],t[1])?t=[]:r>2&&Xf(t[0],t[1],t[2])&&(t=[t[0]]),Wf(e,Uf(t,1),[])})));function qf(e){return qf="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},qf(e)}function Gf(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jf(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 Jf(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 Jf(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 e_(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 t_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?e_(Object(r),!0).forEach((function(t){r_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function r_(e,t,r){return t=function(e){var t=function(e,t){if("object"!==qf(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==qf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qf(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n_(e){return Array.isArray(e)&&jl(e[0])&&jl(e[1])?e.join(" ~ "):e}var a_,c_,i_,o_,s_,l_,h_,v_,p_,u_,g_,m_,d_=function(e){var t=e.separator,r=void 0===t?" : ":t,n=e.contentStyle,a=void 0===n?{}:n,c=e.itemStyle,i=void 0===c?{}:c,s=e.labelStyle,l=void 0===s?{}:s,h=e.payload,v=e.formatter,p=e.itemSorter,u=e.wrapperClassName,g=e.labelClassName,m=e.label,d=e.labelFormatter,f=t_({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),_=t_({margin:0},l),w=!ll(m),b=w?m:"",y=Ri("recharts-default-tooltip",u),x=Ri("recharts-tooltip-label",g);return w&&d&&null!=h&&(b=d(m,h)),o.createElement("div",{className:y,style:f},o.createElement("p",{className:x,style:_},o.isValidElement(b)?b:"".concat(b)),function(){if(h&&h.length){var e=(p?Kf(h,p):h).map((function(e,t){if("none"===e.type)return null;var n=t_({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},i),a=e.formatter||v||n_,c=e.value,s=e.name,l=c,p=s;if(a&&null!=l&&null!=p){var u=a(c,s,e,t,h);if(Array.isArray(u)){var g=Gf(u,2);l=g[0],p=g[1]}else l=u}return o.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:n},jl(p)?o.createElement("span",{className:"recharts-tooltip-item-name"},p):null,jl(p)?o.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,o.createElement("span",{className:"recharts-tooltip-item-value"},l),o.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return o.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())},f_={exports:{}};function __(){if(c_)return a_;c_=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return a_=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;var n=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==n.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(n,a){for(var c,i,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),s=1;s<arguments.length;s++){for(var l in c=Object(arguments[s]))t.call(c,l)&&(o[l]=c[l]);if(e){i=e(c);for(var h=0;h<i.length;h++)r.call(c,i[h])&&(o[i[h]]=c[i[h]])}}return o},a_}function w_(){if(o_)return i_;o_=1;return i_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function b_(){return l_?s_:(l_=1,s_=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var y_=wl;f_.exports=function(){if(u_)return p_;u_=1;var e=wl,t=__(),r=w_(),n=b_(),a=function(){if(v_)return h_;v_=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=w_(),r={},n=b_();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function a(a,c,i,o,s){if("production"!==process.env.NODE_ENV)for(var l in a)if(n(a,l)){var h;try{if("function"!=typeof a[l]){var v=Error((o||"React class")+": "+i+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}h=a[l](c,l,o,i,null,t)}catch(e){h=e}if(!h||h instanceof Error||e((o||"React class")+": type specification of "+i+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var p=s?s():"";e("Failed "+i+" type: "+h.message+(null!=p?p:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},h_=a}(),c=function(){};function i(){return null}return"production"!==process.env.NODE_ENV&&(c=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),p_=function(o,s){var l="function"==typeof Symbol&&Symbol.iterator,h="@@iterator",v="<<anonymous>>",p={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:m(i),arrayOf:function(e){return m((function(t,n,a,c,i){if("function"!=typeof e)return new g("Property `"+i+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var o=t[n];if(!Array.isArray(o))return new g("Invalid "+c+" `"+i+"` of type `"+w(o)+"` supplied to `"+a+"`, expected an array.");for(var s=0;s<o.length;s++){var l=e(o,s,a,c,i+"["+s+"]",r);if(l instanceof Error)return l}return null}))},element:m((function(e,t,r,n,a){var c=e[t];return o(c)?null:new g("Invalid "+n+" `"+a+"` of type `"+w(c)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:m((function(t,r,n,a,c){var i=t[r];return e.isValidElementType(i)?null:new g("Invalid "+a+" `"+c+"` of type `"+w(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,r,n,a,c){if(!(t[r]instanceof e)){var i=e.name||v;return new g("Invalid "+a+" `"+c+"` of type `"+((o=t[r]).constructor&&o.constructor.name?o.constructor.name:v)+"` supplied to `"+n+"`, expected instance of `"+i+"`.")}var o;return null}))},node:m((function(e,t,r,n,a){return _(e[t])?null:new g("Invalid "+n+" `"+a+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,a,c,i,o){if("function"!=typeof e)return new g("Property `"+o+"` of component `"+c+"` has invalid PropType notation inside objectOf.");var s=t[a],l=w(s);if("object"!==l)return new g("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+c+"`, expected an object.");for(var h in s)if(n(s,h)){var v=e(s,h,c,i,o+"."+h,r);if(v instanceof Error)return v}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,r,n,a,c){for(var i=t[r],o=0;o<e.length;o++)if(u(i,e[o]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new g("Invalid "+a+" `"+c+"` of value `"+String(i)+"` supplied to `"+n+"`, expected one of "+s+".")})):("production"!==process.env.NODE_ENV&&c(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."),i)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&c("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var t=0;t<e.length;t++){var a=e[t];if("function"!=typeof a)return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(a)+" at index "+t+"."),i}return m((function(t,a,c,i,o){for(var s=[],l=0;l<e.length;l++){var h=(0,e[l])(t,a,c,i,o,r);if(null==h)return null;h.data&&n(h.data,"expectedType")&&s.push(h.data.expectedType)}return new g("Invalid "+i+" `"+o+"` supplied to `"+c+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,n,a,c,i){var o=t[n],s=w(o);if("object"!==s)return new g("Invalid "+c+" `"+i+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");for(var l in e){var h=e[l];if("function"!=typeof h)return f(a,c,i,l,b(h));var v=h(o,l,a,c,i+"."+l,r);if(v)return v}return null}))},exact:function(e){return m((function(a,c,i,o,s){var l=a[c],h=w(l);if("object"!==h)return new g("Invalid "+o+" `"+s+"` of type `"+h+"` supplied to `"+i+"`, expected `object`.");var v=t({},a[c],e);for(var p in v){var u=e[p];if(n(e,p)&&"function"!=typeof u)return f(i,o,s,p,b(u));if(!u)return new g("Invalid "+o+" `"+s+"` key `"+p+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(a[c],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=u(l,p,i,o,s+"."+p,r);if(m)return m}return null}))}};function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function g(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function a(a,i,o,l,h,p,u){if(l=l||v,p=p||o,u!==r){if(s){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var d=l+":"+o;!t[d]&&n<3&&(c("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[d]=!0,n++)}}return null==i[o]?a?null===i[o]?new g("The "+h+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new g("The "+h+" `"+p+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(i,o,l,h,p)}var i=a.bind(null,!1);return i.isRequired=a.bind(null,!0),i}function d(e){return m((function(t,r,n,a,c,i){var o=t[r];return w(o)!==e?new g("Invalid "+a+" `"+c+"` of type `"+b(o)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function f(e,t,r,n,a){return new g((e||"React class")+": "+t+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function _(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(_);if(null===e||o(e))return!0;var t=function(e){var t=e&&(l&&e[l]||e[h]);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(!_(r.value))return!1}else for(;!(r=n.next()).done;){var a=r.value;if(a&&!_(a[1]))return!1}return!0;default:return!1}}function w(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 b(e){if(null==e)return""+e;var t=w(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return g.prototype=Error.prototype,p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},p_}()(y_.isElement,!0)}else f_.exports=function(){if(m_)return g_;m_=1;var e=w_();function t(){}function r(){}return r.resetWarningCache=t,g_=function(){function n(t,r,n,a,c,i){if(i!==e){var o=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 o.name="Invariant Violation",o}}function a(){return n}n.isRequired=n;var c={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return c.PropTypes=c,c}}()();var x_=f_.exports,Z_=zt(x_),O_=Object.getOwnPropertyNames,M_=Object.getOwnPropertySymbols,E_=Object.prototype.hasOwnProperty;function H_(e,t){return function(r,n,a){return e(r,n,a)&&t(r,n,a)}}function P_(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);var a=n.cache,c=a.get(t),i=a.get(r);if(c&&i)return c===r&&i===t;a.set(t,r),a.set(r,t);var o=e(t,r,n);return a.delete(t),a.delete(r),o}}function j_(e){return O_(e).concat(M_(e))}var V_=Object.hasOwn||function(e,t){return E_.call(e,t)};function C_(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var A_="_owner",L_=Object.getOwnPropertyDescriptor,z_=Object.keys;function B_(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 k_(e,t){return C_(e.getTime(),t.getTime())}function S_(e,t,r){if(e.size!==t.size)return!1;for(var n,a,c={},i=e.entries(),o=0;(n=i.next())&&!n.done;){for(var s=t.entries(),l=!1,h=0;(a=s.next())&&!a.done;){var v=n.value,p=v[0],u=v[1],g=a.value,m=g[0],d=g[1];l||c[h]||!(l=r.equals(p,m,o,h,e,t,r)&&r.equals(u,d,p,m,e,t,r))||(c[h]=!0),h++}if(!l)return!1;o++}return!0}function R_(e,t,r){var n,a=z_(e),c=a.length;if(z_(t).length!==c)return!1;for(;c-- >0;){if((n=a[c])===A_&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!V_(t,n)||!r.equals(e[n],t[n],n,n,e,t,r))return!1}return!0}function D_(e,t,r){var n,a,c,i=j_(e),o=i.length;if(j_(t).length!==o)return!1;for(;o-- >0;){if((n=i[o])===A_&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!V_(t,n))return!1;if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;if(a=L_(e,n),c=L_(t,n),(a||c)&&(!a||!c||a.configurable!==c.configurable||a.enumerable!==c.enumerable||a.writable!==c.writable))return!1}return!0}function I_(e,t){return C_(e.valueOf(),t.valueOf())}function T_(e,t){return e.source===t.source&&e.flags===t.flags}function N_(e,t,r){if(e.size!==t.size)return!1;for(var n,a,c={},i=e.values();(n=i.next())&&!n.done;){for(var o=t.values(),s=!1,l=0;(a=o.next())&&!a.done;)s||c[l]||!(s=r.equals(n.value,a.value,n.value,a.value,e,t,r))||(c[l]=!0),l++;if(!s)return!1}return!0}function F_(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 Q_="[object Arguments]",$_="[object Boolean]",Y_="[object Date]",U_="[object Map]",W_="[object Number]",X_="[object Object]",K_="[object RegExp]",q_="[object Set]",G_="[object String]",J_=Array.isArray,ew="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,tw=Object.assign,rw=Object.prototype.toString.call.bind(Object.prototype.toString);var nw=aw();function aw(e){void 0===e&&(e={});var t=e.circular,r=void 0!==t&&t,n=e.createInternalComparator,a=e.createState,c=e.strict,i=void 0!==c&&c,o=function(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?D_:B_,areDatesEqual:k_,areMapsEqual:n?H_(S_,D_):S_,areObjectsEqual:n?D_:R_,arePrimitiveWrappersEqual:I_,areRegExpsEqual:T_,areSetsEqual:n?H_(N_,D_):N_,areTypedArraysEqual:n?D_:F_};if(r&&(a=tw({},a,r(a))),t){var c=P_(a.areArraysEqual),i=P_(a.areMapsEqual),o=P_(a.areObjectsEqual),s=P_(a.areSetsEqual);a=tw({},a,{areArraysEqual:c,areMapsEqual:i,areObjectsEqual:o,areSetsEqual:s})}return a}(e),s=function(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,a=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,i=e.areRegExpsEqual,o=e.areSetsEqual,s=e.areTypedArraysEqual;return function(e,l,h){if(e===l)return!0;if(null==e||null==l||"object"!=typeof e||"object"!=typeof l)return e!=e&&l!=l;var v=e.constructor;if(v!==l.constructor)return!1;if(v===Object)return a(e,l,h);if(J_(e))return t(e,l,h);if(null!=ew&&ew(e))return s(e,l,h);if(v===Date)return r(e,l,h);if(v===RegExp)return i(e,l,h);if(v===Map)return n(e,l,h);if(v===Set)return o(e,l,h);var p=rw(e);return p===Y_?r(e,l,h):p===K_?i(e,l,h):p===U_?n(e,l,h):p===q_?o(e,l,h):p===X_?"function"!=typeof e.then&&"function"!=typeof l.then&&a(e,l,h):p===Q_?a(e,l,h):(p===$_||p===W_||p===G_)&&c(e,l,h)}}(o),l=n?n(s):function(e){return function(t,r,n,a,c,i,o){return e(t,r,o)}}(s);return function(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,c=e.strict;if(n)return function(e,i){var o=n(),s=o.cache,l=void 0===s?t?new WeakMap:void 0:s,h=o.meta;return r(e,i,{cache:l,equals:a,meta:h,strict:c})};if(t)return function(e,t){return r(e,t,{cache:new WeakMap,equals:a,meta:void 0,strict:c})};var i={cache:void 0,equals:a,meta:void 0,strict:c};return function(e,t){return r(e,t,i)}}({circular:r,comparator:s,createState:a,equals:l,strict:i})}function cw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(a){r<0&&(r=a),a-r>t?(e(a),r=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(n)}))}function iw(e){return iw="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},iw(e)}function ow(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 sw(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 sw(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 sw(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 lw(){var e=function(){return null},t=!1,r=function r(n){if(!t){if(Array.isArray(n)){if(!n.length)return;var a=ow(n),c=a[0],i=a.slice(1);return"number"==typeof c?void cw(r.bind(null,i),c):(r(c),void cw(r.bind(null,i)))}"object"===iw(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 hw(e){return hw="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},hw(e)}function vw(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 pw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vw(Object(r),!0).forEach((function(t){uw(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function uw(e,t,r){return t=function(e){var t=function(e,t){if("object"!==hw(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==hw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hw(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}aw({strict:!0}),aw({circular:!0}),aw({circular:!0,strict:!0}),aw({createInternalComparator:function(){return C_}}),aw({strict:!0,createInternalComparator:function(){return C_}}),aw({circular:!0,createInternalComparator:function(){return C_}}),aw({circular:!0,createInternalComparator:function(){return C_},strict:!0});var gw=["Webkit","Moz","O","ms"],mw=["-webkit-","-moz-","-o-","-ms-"],dw=["transform","transformOrigin","transition"],fw=function(e){return e},_w=function(e,t){return Object.keys(t).reduce((function(r,n){return pw(pw({},r),{},uw({},n,e(n,t[n])))}),{})},ww=function(e){return Object.keys(e).reduce((function(e,t){return pw(pw({},e),function(e,t){if(-1===dw.indexOf(e))return uw({},e,Number.isNaN(t)?0:t);var r="transition"===e,n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),a=t;return gw.reduce((function(e,c,i){return r&&(a=t.replace(/(transform|transform-origin)/gim,"".concat(mw[i],"$1"))),pw(pw({},e),{},uw({},c+n,a))}),{})}(t,e[t]))}),e)},bw=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(",")},yw="production"!==process.env.NODE_ENV,xw=function(e,t,r,n,a,c,i,o){if(yw&&"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 s=[r,n,a,c,i,o],l=0;console.warn(t.replace(/%s/g,(function(){return s[l++]})))}};function Zw(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||Mw(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 Ow(e){return function(e){if(Array.isArray(e))return Ew(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Mw(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 Mw(e,t){if(e){if("string"==typeof e)return Ew(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)?Ew(e,t):void 0}}function Ew(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 Hw=1e-4,Pw=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},jw=function(e,t){return e.map((function(e,r){return e*Math.pow(t,r)})).reduce((function(e,t){return e+t}))},Vw=function(e,t){return function(r){var n=Pw(e,t);return jw(n,r)}},Cw=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=t[1],c=t[2],i=t[3];if(1===t.length)switch(t[0]){case"linear":n=0,a=0,c=1,i=1;break;case"ease":n=.25,a=.1,c=.25,i=1;break;case"ease-in":n=.42,a=0,c=1,i=1;break;case"ease-out":n=.42,a=0,c=.58,i=1;break;case"ease-in-out":n=0,a=0,c=.58,i=1;break;default:var o=t[0].split("(");if("cubic-bezier"===o[0]&&4===o[1].split(")")[0].split(",").length){var s=o[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),l=Zw(s,4);n=l[0],a=l[1],c=l[2],i=l[3]}else xw(!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)}xw([n,c,a,i].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 h,v,p=Vw(n,c),u=Vw(a,i),g=(h=n,v=c,function(e){var t=Pw(h,v),r=[].concat(Ow(t.map((function(e,t){return e*t})).slice(1)),[0]);return jw(r,e)}),m=function(e){for(var t,r=e>1?1:e,n=r,a=0;a<8;++a){var c=p(n)-r,i=g(n);if(Math.abs(c-r)<Hw||i<Hw)return u(n);n=(t=n-c/i)>1?1:t<0?0:t}return u(n)};return m.isStepper=!1,m},Aw=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 Cw(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,a=void 0===n?8:n,c=e.dt,i=void 0===c?17:c,o=function(e,t,n){var c=n+(-(e-t)*r-n*a)*i/1e3,o=n*i/1e3+e;return Math.abs(o-t)<Hw&&Math.abs(c)<Hw?[t,0]:[o,c]};return o.isStepper=!0,o.dt=i,o}();default:if("cubic-bezier"===n.split("(")[0])return Cw(n);xw(!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:(xw(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function Lw(e){return Lw="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},Lw(e)}function zw(e){return function(e){if(Array.isArray(e))return Iw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Dw(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 Bw(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 kw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bw(Object(r),!0).forEach((function(t){Sw(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Sw(e,t,r){return t=function(e){var t=function(e,t){if("object"!==Lw(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Lw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Lw(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rw(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||Dw(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 Dw(e,t){if(e){if("string"==typeof e)return Iw(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)?Iw(e,t):void 0}}function Iw(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 Tw=function(e,t,r){return e+(t-e)*r},Nw=function(e){return e.from!==e.to},Fw=function e(t,r,n){var a=_w((function(e,r){if(Nw(r)){var n=Rw(t(r.from,r.to,r.velocity),2),a=n[0],c=n[1];return kw(kw({},r),{},{from:a,velocity:c})}return r}),r);return n<1?_w((function(e,t){return Nw(t)?kw(kw({},t),{},{velocity:Tw(t.velocity,a[e].velocity,n),from:Tw(t.from,a[e].from,n)}):t}),r):e(t,a,n-1)},Qw=function(e,t,r,n,a){var c,i,o,s,l=(c=e,i=t,[Object.keys(c),Object.keys(i)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),h=l.reduce((function(r,n){return kw(kw({},r),{},Sw({},n,[e[n],t[n]]))}),{}),v=l.reduce((function(r,n){return kw(kw({},r),{},Sw({},n,{from:e[n],velocity:0,to:t[n]}))}),{}),p=-1,u=function(){return null};return u=r.isStepper?function(n){o||(o=n);var c=(n-o)/r.dt;v=Fw(r,v,c),a(kw(kw(kw({},e),t),_w((function(e,t){return t.from}),v))),o=n,Object.values(v).filter(Nw).length&&(p=requestAnimationFrame(u))}:function(c){s||(s=c);var i=(c-s)/n,o=_w((function(e,t){return Tw.apply(void 0,zw(t).concat([r(i)]))}),h);if(a(kw(kw(kw({},e),t),o)),i<1)p=requestAnimationFrame(u);else{var l=_w((function(e,t){return Tw.apply(void 0,zw(t).concat([r(1)]))}),h);a(kw(kw(kw({},e),t),l))}},function(){return requestAnimationFrame(u),function(){cancelAnimationFrame(p)}}};function $w(e){return $w="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},$w(e)}var Yw=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Uw(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Ww(e){return function(e){if(Array.isArray(e))return Xw(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 Xw(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 Xw(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 Xw(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 Kw(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 qw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kw(Object(r),!0).forEach((function(t){Gw(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gw(e,t,r){return(t=eb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jw(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,eb(n.key),n)}}function eb(e){var t=function(e,t){if("object"!==$w(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==$w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$w(t)?t:String(t)}function tb(e,t){return tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tb(e,t)}function rb(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=cb(e);if(t){var a=cb(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return nb(this,r)}}function nb(e,t){if(t&&("object"===$w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ab(e)}function ab(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cb(e){return cb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cb(e)}var ib=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&&tb(e,t)}(c,Z);var t,r,n,a=rb(c);function c(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var n=(r=a.call(this,e,t)).props,i=n.isActive,o=n.attributeName,s=n.from,l=n.to,h=n.steps,v=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(ab(r)),r.changeStyle=r.changeStyle.bind(ab(r)),!i||p<=0)return r.state={style:{}},"function"==typeof v&&(r.state={style:l}),nb(r);if(h&&h.length)r.state={style:h[0].style};else if(s){if("function"==typeof v)return r.state={style:s},nb(r);r.state={style:o?Gw({},o,s):s}}else r.state={style:{}};return r}return t=c,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,a=t.attributeName,c=t.shouldReAnimate,i=t.to,o=t.from,s=this.state.style;if(n)if(r){if(!(nw(e.to,i)&&e.canBegin&&e.isActive)){var l=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var h=l||c?o:e.to;if(this.state&&s){var v={style:a?Gw({},a,h):h};(a&&[a]!==h||!a&&s!==h)&&this.setState(v)}this.runAnimation(qw(qw({},this.props),{},{from:h,begin:0}))}}else{var p={style:a?Gw({},a,i):i};this.state&&s&&(a&&s[a]!==i||!a&&s!==i)&&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,a=e.duration,c=e.easing,i=e.begin,o=e.onAnimationEnd,s=e.onAnimationStart,l=Qw(r,n,Aw(c),a,this.changeStyle);this.manager.start([s,i,function(){t.stopJSAnimation=l()},a,o])}},{key:"runStepAnimation",value:function(e){var t=this,r=e.steps,n=e.begin,a=e.onAnimationStart,c=r[0],i=c.style,o=c.duration,s=void 0===o?0:o;return this.manager.start([a].concat(Ww(r.reduce((function(e,n,a){if(0===a)return e;var c=n.duration,i=n.easing,o=void 0===i?"ease":i,s=n.style,l=n.properties,h=n.onAnimationEnd,v=a>0?r[a-1]:n,p=l||Object.keys(s);if("function"==typeof o||"spring"===o)return[].concat(Ww(e),[t.runJSAnimation.bind(t,{from:v.style,to:s,duration:c,easing:o}),c]);var u=bw(p,c,o),g=qw(qw(qw({},v.style),s),{},{transition:u});return[].concat(Ww(e),[g,c,h]).filter(fw)}),[i,Math.max(s,n)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=lw());var t=e.begin,r=e.duration,n=e.attributeName,a=e.to,c=e.easing,i=e.onAnimationStart,o=e.onAnimationEnd,s=e.steps,l=e.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),"function"!=typeof c&&"function"!=typeof l&&"spring"!==c)if(s.length>1)this.runStepAnimation(e);else{var v=n?Gw({},n,a):a,p=bw(Object.keys(v),r,c);h.start([i,t,qw(qw({},v),{},{transition:p}),r,o])}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 a=Uw(e,Yw),c=x.count(t),i=ww(this.state.style);if("function"==typeof t)return t(i);if(!n||0===c||r<=0)return t;var s=function(e){var t=e.props,r=t.style,n=void 0===r?{}:r,c=t.className;return g(e,qw(qw({},a),{},{style:qw(qw({},n),i),className:c}))};return 1===c?s(x.only(t)):o.createElement("div",null,x.map(t,(function(e){return s(e)})))}}],r&&Jw(t.prototype,r),n&&Jw(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();ib.displayName="Animate",ib.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},ib.propTypes={from:Z_.oneOfType([Z_.object,Z_.string]),to:Z_.oneOfType([Z_.object,Z_.string]),attributeName:Z_.string,duration:Z_.number,begin:Z_.number,easing:Z_.oneOfType([Z_.string,Z_.func]),steps:Z_.arrayOf(Z_.shape({duration:Z_.number.isRequired,style:Z_.object.isRequired,easing:Z_.oneOfType([Z_.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Z_.func]),properties:Z_.arrayOf("string"),onAnimationEnd:Z_.func})),children:Z_.oneOfType([Z_.node,Z_.func]),isActive:Z_.bool,canBegin:Z_.bool,onAnimationEnd:Z_.func,shouldReAnimate:Z_.bool,onAnimationStart:Z_.func,onAnimationReStart:Z_.func};var ob,sb={exports:{}},lb={exports:{}},hb={exports:{}};(ob=hb).exports=function(e){return e&&e.__esModule?e:{default:e}},ob.exports.__esModule=!0,ob.exports.default=ob.exports;var vb,pb=hb.exports,ub={exports:{}};!function(e,t){var r=pb;t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,n.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var n=r((vb||(vb=1,function(e,t){t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default}(ub,ub.exports)),ub.exports));e.exports=t.default}(lb,lb.exports);var gb=lb.exports;function mb(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var db=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=mb(e.className,t):e.setAttribute("class",mb(e.className&&e.className.baseVal||"",t))},fb={};function _b(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function wb(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function bb(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}_b.__suppressDeprecationWarning=!0,wb.__suppressDeprecationWarning=!0,bb.__suppressDeprecationWarning=!0;var yb=Object.freeze({__proto__:null,polyfill:function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,n=null,a=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?n="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(n="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==r||null!==n||null!==a){var c=e.displayName||e.name,i="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+i+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=_b,t.componentWillReceiveProps=wb),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=bb;var o=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;o.call(this,e,t,n)}}return e}}),xb=Bt(yb),Zb={__esModule:!0};Zb.classNamesShape=Zb.timeoutsShape=void 0;var Ob,Mb=(Ob=x_)&&Ob.__esModule?Ob:{default:Ob};var Eb="production"!==process.env.NODE_ENV?Mb.default.oneOfType([Mb.default.number,Mb.default.shape({enter:Mb.default.number,exit:Mb.default.number,appear:Mb.default.number}).isRequired]):null;Zb.timeoutsShape=Eb;var Hb="production"!==process.env.NODE_ENV?Mb.default.oneOfType([Mb.default.string,Mb.default.shape({enter:Mb.default.string,exit:Mb.default.string,active:Mb.default.string}),Mb.default.shape({enter:Mb.default.string,enterDone:Mb.default.string,enterActive:Mb.default.string,exit:Mb.default.string,exitDone:Mb.default.string,exitActive:Mb.default.string})]):null;Zb.classNamesShape=Hb,fb.__esModule=!0,fb.default=fb.EXITING=fb.ENTERED=fb.ENTERING=fb.EXITED=fb.UNMOUNTED=void 0;var Pb=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(x_),jb=Lb(o),Vb=Lb(E),Cb=xb,Ab=Zb;function Lb(e){return e&&e.__esModule?e:{default:e}}var zb="unmounted";fb.UNMOUNTED=zb;var Bb="exited";fb.EXITED=Bb;var kb="entering";fb.ENTERING=kb;var Sb="entered";fb.ENTERED=Sb;var Rb="exiting";fb.EXITING=Rb;var Db=function(e){var t,r;function n(t,r){var n;n=e.call(this,t,r)||this;var a,c=r.transitionGroup,i=c&&!c.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(a=Bb,n.appearStatus=kb):a=Sb:a=t.unmountOnExit||t.mountOnEnter?zb:Bb,n.state={status:a},n.nextCallback=null,n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===zb?{status:Bb}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==kb&&r!==Sb&&(t=kb):r!==kb&&r!==Sb||(t=Rb)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var r=Vb.default.findDOMNode(this);t===kb?this.performEnter(r,e):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===Bb&&this.setState({status:zb})},a.performEnter=function(e,t){var r=this,n=this.props.enter,a=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,c=this.getTimeouts(),i=a?c.appear:c.enter;t||n?(this.props.onEnter(e,a),this.safeSetState({status:kb},(function(){r.props.onEntering(e,a),r.onTransitionEnd(e,i,(function(){r.safeSetState({status:Sb},(function(){r.props.onEntered(e,a)}))}))}))):this.safeSetState({status:Sb},(function(){r.props.onEntered(e)}))},a.performExit=function(e){var t=this,r=this.props.exit,n=this.getTimeouts();r?(this.props.onExit(e),this.safeSetState({status:Rb},(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:Bb},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:Bb},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},a.onTransitionEnd=function(e,t,r){this.setNextCallback(r);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===zb)return null;var t=this.props,r=t.children,n=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(e,n);var a=jb.default.Children.only(r);return jb.default.cloneElement(a,n)},n}(jb.default.Component);function Ib(){}Db.contextTypes={transitionGroup:Pb.object},Db.childContextTypes={transitionGroup:function(){}},Db.propTypes="production"!==process.env.NODE_ENV?{children:Pb.oneOfType([Pb.func.isRequired,Pb.element.isRequired]).isRequired,in:Pb.bool,mountOnEnter:Pb.bool,unmountOnExit:Pb.bool,appear:Pb.bool,enter:Pb.bool,exit:Pb.bool,timeout:function(e){var t=Ab.timeoutsShape;e.addEndListener||(t=t.isRequired);for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return t.apply(void 0,[e].concat(n))},addEndListener:Pb.func,onEnter:Pb.func,onEntering:Pb.func,onEntered:Pb.func,onExit:Pb.func,onExiting:Pb.func,onExited:Pb.func}:{},Db.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ib,onEntering:Ib,onEntered:Ib,onExit:Ib,onExiting:Ib,onExited:Ib},Db.UNMOUNTED=0,Db.EXITED=1,Db.ENTERING=2,Db.ENTERED=3,Db.EXITING=4;var Tb=(0,Cb.polyfill)(Db);fb.default=Tb,function(e,t){t.__esModule=!0,t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(x_),n=l(gb),a=l(db),c=l(o),i=l(fb),s=Zb;function l(e){return e&&e.__esModule?e:{default:e}}function h(){return h=Object.assign||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)}var v=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,n.default)(e,t)}))},p=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,a.default)(e,t)}))},u=function(e){var t,r;function n(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return(t=e.call.apply(e,[this].concat(n))||this).onEnter=function(e,r){var n=t.getClassNames(r?"appear":"enter").className;t.removeClasses(e,"exit"),v(e,n),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.getClassNames(r?"appear":"enter").activeClassName;t.reflowAndAddClass(e,n),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.getClassNames("appear").doneClassName,a=t.getClassNames("enter").doneClassName,c=r?n+" "+a:a;t.removeClasses(e,r?"appear":"enter"),v(e,c),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),v(e,r),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,r),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),v(e,r),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,a=n?(n&&r?r+"-":"")+e:r[e];return{className:a,activeClassName:n?a+"-active":r[e+"Active"],doneClassName:n?a+"-done":r[e+"Done"]}},t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.removeClasses=function(e,t){var r=this.getClassNames(t),n=r.className,a=r.activeClassName,c=r.doneClassName;n&&p(e,n),a&&p(e,a),c&&p(e,c)},a.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,v(e,t))},a.render=function(){var e=h({},this.props);return delete e.classNames,c.default.createElement(i.default,h({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(c.default.Component);u.defaultProps={classNames:""},u.propTypes="production"!==process.env.NODE_ENV?h({},i.default.propTypes,{classNames:s.classNamesShape,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func}):{};var g=u;t.default=g,e.exports=t.default}(sb,sb.exports);var Nb=sb.exports,Fb={exports:{}},Qb={exports:{}},$b={__esModule:!0};$b.getChildMapping=Ub,$b.mergeChildMappings=Wb,$b.getInitialChildMapping=function(e,t){return Ub(e.children,(function(r){return(0,Yb.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:Xb(r,"appear",e),enter:Xb(r,"enter",e),exit:Xb(r,"exit",e)})}))},$b.getNextChildMapping=function(e,t,r){var n=Ub(e.children),a=Wb(t,n);return Object.keys(a).forEach((function(c){var i=a[c];if((0,Yb.isValidElement)(i)){var o=c in t,s=c in n,l=t[c],h=(0,Yb.isValidElement)(l)&&!l.props.in;!s||o&&!h?s||!o||h?s&&o&&(0,Yb.isValidElement)(l)&&(a[c]=(0,Yb.cloneElement)(i,{onExited:r.bind(null,i),in:l.props.in,exit:Xb(i,"exit",e),enter:Xb(i,"enter",e)})):a[c]=(0,Yb.cloneElement)(i,{in:!1}):a[c]=(0,Yb.cloneElement)(i,{onExited:r.bind(null,i),in:!0,exit:Xb(i,"exit",e),enter:Xb(i,"enter",e)})}})),a};var Yb=o;function Ub(e,t){var r=Object.create(null);return e&&Yb.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,Yb.isValidElement)(e)?t(e):e}(e)})),r}function Wb(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,a=Object.create(null),c=[];for(var i in e)i in t?c.length&&(a[i]=c,c=[]):c.push(i);var o={};for(var s in t){if(a[s])for(n=0;n<a[s].length;n++){var l=a[s][n];o[a[s][n]]=r(l)}o[s]=r(s)}for(n=0;n<c.length;n++)o[c[n]]=r(c[n]);return o}function Xb(e,t,r){return null!=r[t]?r[t]:e.props[t]}!function(e,t){t.__esModule=!0,t.default=void 0;var r=i(x_),n=i(o),a=xb,c=$b;function i(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||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},s.apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var h=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},v=function(e){var t,r;function a(t,r){var n,a=(n=e.call(this,t,r)||this).handleExited.bind(l(l(n)));return n.state={handleExited:a,firstRender:!0},n}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=a.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0,this.mounted=!0},i.componentWillUnmount=function(){this.mounted=!1},a.getDerivedStateFromProps=function(e,t){var r=t.children,n=t.handleExited;return{children:t.firstRender?(0,c.getInitialChildMapping)(e,n):(0,c.getNextChildMapping)(e,r,n),firstRender:!1}},i.handleExited=function(e,t){var r=(0,c.getChildMapping)(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=s({},t.children);return delete r[e.key],{children:r}})))},i.render=function(){var e=this.props,t=e.component,r=e.childFactory,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,["component","childFactory"]),c=h(this.state.children).map(r);return delete a.appear,delete a.enter,delete a.exit,null===t?c:n.default.createElement(t,a,c)},a}(n.default.Component);v.childContextTypes={transitionGroup:r.default.object.isRequired},v.propTypes="production"!==process.env.NODE_ENV?{component:r.default.any,children:r.default.node,appear:r.default.bool,enter:r.default.bool,exit:r.default.bool,childFactory:r.default.func}:{},v.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,a.polyfill)(v);t.default=p,e.exports=t.default}(Qb,Qb.exports);var Kb=Qb.exports;!function(e,t){t.__esModule=!0,t.default=void 0;var r=i(x_),n=i(o),a=E,c=i(Kb);function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,r;function i(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return(t=e.call.apply(e,[this].concat(n))||this).handleEnter=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEnter",0,r)},t.handleEntering=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntering",0,r)},t.handleEntered=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntered",0,r)},t.handleExit=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExit",1,r)},t.handleExiting=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExiting",1,r)},t.handleExited=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExited",1,r)},t}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=i.prototype;return o.handleLifecycle=function(e,t,r){var c,i=this.props.children,o=n.default.Children.toArray(i)[t];o.props[e]&&(c=o.props)[e].apply(c,r),this.props[e]&&this.props[e]((0,a.findDOMNode)(this))},o.render=function(){var e=this.props,t=e.children,r=e.in,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,["children","in"]),i=n.default.Children.toArray(t),o=i[0],s=i[1];return delete a.onEnter,delete a.onEntering,delete a.onEntered,delete a.onExit,delete a.onExiting,delete a.onExited,n.default.createElement(c.default,a,r?n.default.cloneElement(o,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):n.default.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},i}(n.default.Component);s.propTypes="production"!==process.env.NODE_ENV?{in:r.default.bool.isRequired,children:function(e,t){return 2!==n.default.Children.count(e[t])?new Error('"'+t+'" must be exactly two transition components.'):null}}:{};var l=s;t.default=l,e.exports=t.default}(Fb,Fb.exports);var qb=Fb.exports,Gb=ty(Nb),Jb=ty(qb),ey=ty(Kb);function ty(e){return e&&e.__esModule?e:{default:e}}function ry(e){return ry="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},ry(e)}function ny(e,t,r){return t=function(e){var t=function(e,t){if("object"!==ry(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ry(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ry(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}ty(fb).default,ey.default,Jb.default,Gb.default,void 0===Number.isFinite&&(Number.isFinite=function(e){return"number"==typeof e&&isFinite(e)}),Z_.object,Z_.object,Z_.object,Z_.element,Z_.object,Z_.object,Z_.object,Z_.oneOfType([Z_.array,Z_.element]),Z_.any;var ay="recharts-tooltip-wrapper",cy={visibility:"hidden"};function iy(e){var t,r=e.coordinate,n=e.translateX,a=e.translateY;return Ri(ay,(ny(t={},"".concat(ay,"-right"),Pl(n)&&r&&Pl(r.x)&&n>=r.x),ny(t,"".concat(ay,"-left"),Pl(n)&&r&&Pl(r.x)&&n<r.x),ny(t,"".concat(ay,"-bottom"),Pl(a)&&r&&Pl(r.y)&&a>=r.y),ny(t,"".concat(ay,"-top"),Pl(a)&&r&&Pl(r.y)&&a<r.y),t))}function oy(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,a=e.offsetTopLeft,c=e.position,i=e.reverseDirection,o=e.tooltipDimension,s=e.viewBox,l=e.viewBoxDimension;if(c&&Pl(c[n]))return c[n];var h=r[n]-o-a,v=r[n]+a;return t[n]?i[n]?h:v:i[n]?h<s[n]?Math.max(v,s[n]):Math.max(h,s[n]):v+o>s[n]+l?Math.max(h,s[n]):Math.max(v,s[n])}function sy(e){var t,r,n,a=e.allowEscapeViewBox,c=e.coordinate,i=e.offsetTopLeft,o=e.position,s=e.reverseDirection,l=e.tooltipBox,h=e.useTranslate3d,v=e.viewBox;return t=l.height>0&&l.width>0&&c?function(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return ww({transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")})}({translateX:r=oy({allowEscapeViewBox:a,coordinate:c,key:"x",offsetTopLeft:i,position:o,reverseDirection:s,tooltipDimension:l.width,viewBox:v,viewBoxDimension:v.width}),translateY:n=oy({allowEscapeViewBox:a,coordinate:c,key:"y",offsetTopLeft:i,position:o,reverseDirection:s,tooltipDimension:l.height,viewBox:v,viewBoxDimension:v.height}),useTranslate3d:h}):cy,{cssProperties:t,cssClasses:iy({translateX:r,translateY:n,coordinate:c})}}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 hy(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 vy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hy(Object(r),!0).forEach((function(t){fy(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function py(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_y(n.key),n)}}function uy(e,t){return uy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uy(e,t)}function gy(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=dy(e);if(t){var a=dy(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ly(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return my(e)}(this,r)}}function my(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dy(e){return dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dy(e)}function fy(e,t,r){return(t=_y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _y(e){var t=function(e,t){if("object"!==ly(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ly(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ly(t)?t:String(t)}var wy=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&&uy(e,t)}(c,Z);var t,r,n,a=gy(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return fy(my(e=a.call.apply(a,[this].concat(r))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),fy(my(e),"lastBoundingBox",{width:-1,height:-1}),fy(my(e),"handleKeyDown",(function(t){var r,n,a,c;"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!==(a=null===(c=e.props.coordinate)||void 0===c?void 0:c.y)&&void 0!==a?a:0}})})),e}return t=c,r=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var 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,a=t.animationDuration,c=t.animationEasing,i=t.children,s=t.coordinate,l=t.hasPayload,h=t.isAnimationActive,v=t.offset,p=t.position,u=t.reverseDirection,g=t.useTranslate3d,m=t.viewBox,d=t.wrapperStyle,f=sy({allowEscapeViewBox:n,coordinate:s,offsetTopLeft:v,position:p,reverseDirection:u,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:g,viewBox:m}),_=f.cssClasses,w=f.cssProperties,b=vy(vy(vy({},h&&r&&ww({transition:"transform ".concat(a,"ms ").concat(c)})),w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&l?"visible":"hidden",position:"absolute",top:0,left:0},d);return o.createElement("div",{tabIndex:-1,role:"dialog",className:_,style:b,ref:function(t){e.wrapperNode=t}},i)}}],r&&py(t.prototype,r),n&&py(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(),by={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return by[e]},set:function(e,t){if("string"==typeof e)by[e]=t;else{var r=Object.keys(e);r&&r.length&&r.forEach((function(t){by[t]=e[t]}))}}};function yy(e){return yy="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},yy(e)}function xy(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 Zy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xy(Object(r),!0).forEach((function(t){Py(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Oy(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,jy(n.key),n)}}function My(e,t){return My=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},My(e,t)}function Ey(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=Hy(e);if(t){var a=Hy(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===yy(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)}(this,r)}}function Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hy(e)}function Py(e,t,r){return(t=jy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jy(e){var t=function(e,t){if("object"!==yy(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==yy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yy(t)?t:String(t)}function Vy(e){return e.dataKey}var Cy=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&&My(e,t)}(c,Z);var t,r,n,a=Ey(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,r=[{key:"render",value:function(){var e=this.props,t=e.active,r=e.allowEscapeViewBox,n=e.animationDuration,a=e.animationEasing,c=e.content,i=e.coordinate,s=e.filterNull,l=e.isAnimationActive,h=e.offset,v=e.payload,p=e.payloadUniqBy,u=e.position,g=e.reverseDirection,m=e.useTranslate3d,d=e.viewBox,f=e.wrapperStyle,_=null!=v?v:[];s&&_.length&&(_=Bd(v.filter((function(e){return null!=e.value})),p,Vy));var w=_.length>0;return o.createElement(wy,{allowEscapeViewBox:r,animationDuration:n,animationEasing:a,isAnimationActive:l,active:t,coordinate:i,hasPayload:w,offset:h,position:u,reverseDirection:g,useTranslate3d:m,viewBox:d,wrapperStyle:f},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):"function"==typeof e?o.createElement(e,t):o.createElement(d_,t)}(c,Zy(Zy({},this.props),{},{payload:_})))}}],r&&Oy(t.prototype,r),n&&Oy(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();Py(Cy,"displayName","Tooltip"),Py(Cy,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!by.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Ay=Fi,Ly=/\s/;var zy=function(e){for(var t=e.length;t--&&Ly.test(e.charAt(t)););return t},By=/^\s+/;var ky=function(e){return e?e.slice(0,zy(e)+1).replace(By,""):e},Sy=vo,Ry=co,Dy=/^[-+]0x[0-9a-f]+$/i,Iy=/^0b[01]+$/i,Ty=/^0o[0-7]+$/i,Ny=parseInt;var Fy=function(e){if("number"==typeof e)return e;if(Ry(e))return NaN;if(Sy(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Sy(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ky(e);var r=Iy.test(e);return r||Ty.test(e)?Ny(e.slice(2),r?2:8):Dy.test(e)?NaN:+e},Qy=vo,$y=function(){return Ay.Date.now()},Yy=Fy,Uy=Math.max,Wy=Math.min;var Xy=function(e,t,r){var n,a,c,i,o,s,l=0,h=!1,v=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function u(t){var r=n,c=a;return n=a=void 0,l=t,i=e.apply(c,r)}function g(e){var r=e-s;return void 0===s||r>=t||r<0||v&&e-l>=c}function m(){var e=$y();if(g(e))return d(e);o=setTimeout(m,function(e){var r=t-(e-s);return v?Wy(r,c-(e-l)):r}(e))}function d(e){return o=void 0,p&&n?u(e):(n=a=void 0,i)}function f(){var e=$y(),r=g(e);if(n=arguments,a=this,s=e,r){if(void 0===o)return function(e){return l=e,o=setTimeout(m,t),h?u(e):i}(s);if(v)return clearTimeout(o),o=setTimeout(m,t),u(s)}return void 0===o&&(o=setTimeout(m,t)),i}return t=Yy(t)||0,Qy(r)&&(h=!!r.leading,c=(v="maxWait"in r)?Uy(Yy(r.maxWait)||0,t):c,p="trailing"in r?!!r.trailing:p),f.cancel=function(){void 0!==o&&clearTimeout(o),l=0,n=s=a=o=void 0},f.flush=function(){return void 0===o?i:d($y())},f},Ky=Xy,qy=vo;var Gy=zt((function(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return qy(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Ky(e,t,{leading:n,maxWait:t,trailing:a})}));function Jy(e){return Jy="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},Jy(e)}function ex(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 tx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ex(Object(r),!0).forEach((function(t){rx(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ex(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rx(e,t,r){return t=function(e){var t=function(e,t){if("object"!==Jy(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Jy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Jy(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nx(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ax(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 ax(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 ax(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 cx=h((function(e,t){var r=e.aspect,n=e.initialDimension,a=void 0===n?{width:-1,height:-1}:n,c=e.width,i=void 0===c?"100%":c,s=e.height,h=void 0===s?"100%":s,v=e.minWidth,m=void 0===v?0:v,d=e.minHeight,_=e.maxHeight,w=e.children,y=e.debounce,x=void 0===y?0:y,Z=e.id,M=e.className,E=e.onResize,H=e.style,P=void 0===H?{}:H,j=u(null),V=u();V.current=E,O(t,(function(){return j}));var C=nx(p({containerWidth:a.width,containerHeight:a.height}),2),A=C[0],L=C[1],z=f((function(e,t){L((function(r){var n=Math.round(e),a=Math.round(t);return r.containerWidth===n&&r.containerHeight===a?r:{containerWidth:n,containerHeight:a}}))}),[]);l((function(){var e=function(e){var t,r=e[0].contentRect,n=r.width,a=r.height;z(n,a),null===(t=V.current)||void 0===t||t.call(V,n,a)};x>0&&(e=Gy(e,x,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),r=j.current.getBoundingClientRect(),n=r.width,a=r.height;return z(n,a),t.observe(j.current),function(){t.disconnect()}}),[z,x]);var B=b((function(){var e=A.containerWidth,t=A.containerHeight;if(e<0||t<0)return null;bh(Hl(i)||Hl(h),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",i,h),bh(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=Hl(i)?e:i,a=Hl(h)?t:h;r&&r>0&&(n?a=n/r:a&&(n=a*r),_&&a>_&&(a=_)),bh(n>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,a,i,h,m,d,r);var c=!Array.isArray(w)&&wl.isElement(w)&&Xl(w.type).endsWith("Chart");return o.Children.map(w,(function(e){return wl.isElement(e)?g(e,tx({width:n,height:a},c?{style:tx({height:"100%",width:"100%",maxHeight:a,maxWidth:n},e.props.style)}:{})):e}))}),[r,w,h,_,d,m,A,i]);return o.createElement("div",{id:Z?"".concat(Z):void 0,className:Ri("recharts-responsive-container",M),style:tx(tx({},P),{},{width:i,height:h,minWidth:m,minHeight:d,maxHeight:_}),ref:j},B)})),ix=function(e){return null};function ox(e){return ox="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},ox(e)}function sx(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 lx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sx(Object(r),!0).forEach((function(t){hx(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sx(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function hx(e,t,r){return t=function(e){var t=function(e,t){if("object"!==ox(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ox(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ox(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}ix.displayName="Cell";var vx={widthCache:{},cacheCount:0},px={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ux="recharts_measurement_span";var gx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||by.isSsr)return{width:0,height:0};var r=function(e){var t=lx({},e);return Object.keys(t).forEach((function(e){t[e]||delete t[e]})),t}(t),n=JSON.stringify({text:e,copyStyle:r});if(vx.widthCache[n])return vx.widthCache[n];try{var a=document.getElementById(ux);a||((a=document.createElement("span")).setAttribute("id",ux),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var c=lx(lx({},px),r);Object.assign(a.style,c),a.textContent="".concat(e);var i=a.getBoundingClientRect(),o={width:i.width,height:i.height};return vx.widthCache[n]=o,++vx.cacheCount>2e3&&(vx.cacheCount=0,vx.widthCache={}),o}catch(e){return{width:0,height:0}}};function mx(e){return mx="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},mx(e)}function dx(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fx(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 fx(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 fx(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 _x(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,c=void 0,c=function(e,t){if("object"!==mx(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==mx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"),"symbol"===mx(c)?c:String(c)),n)}var a,c}var wx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yx=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,xx=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Zx={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Ox=Object.keys(Zx),Mx="NaN";var Ex=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||yx.test(r)||(this.num=NaN,this.unit=""),Ox.includes(r)&&(this.num=function(e,t){return e*Zx[t]}(t,r),this.unit="px")}var t,r,n;return t=e,n=[{key:"parse",value:function(t){var r,n=dx(null!==(r=xx.exec(t))&&void 0!==r?r:[],3),a=n[1],c=n[2];return new e(parseFloat(a),null!=c?c:"")}}],(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)}}])&&_x(t.prototype,r),n&&_x(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Hx(e){if(e.includes(Mx))return Mx;for(var t=e;t.includes("*")||t.includes("/");){var r,n=dx(null!==(r=wx.exec(t))&&void 0!==r?r:[],4),a=n[1],c=n[2],i=n[3],o=Ex.parse(null!=a?a:""),s=Ex.parse(null!=i?i:""),l="*"===c?o.multiply(s):o.divide(s);if(l.isNaN())return Mx;t=t.replace(wx,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,v=dx(null!==(h=bx.exec(t))&&void 0!==h?h:[],4),p=v[1],u=v[2],g=v[3],m=Ex.parse(null!=p?p:""),d=Ex.parse(null!=g?g:""),f="+"===u?m.add(d):m.subtract(d);if(f.isNaN())return Mx;t=t.replace(bx,f.toString())}return t}var Px=/\(([^()]*)\)/;function jx(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var r=dx(Px.exec(t),2)[1];t=t.replace(Px,Hx(r))}return t}(t),t=Hx(t)}function Vx(e){var t=function(e){try{return jx(e)}catch(e){return Mx}}(e.slice(5,-1));return t===Mx?"":t}var Cx=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Ax=["dx","dy","angle","className","breakAll"];function Lx(){return Lx=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},Lx.apply(this,arguments)}function zx(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Bx(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kx(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 kx(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 kx(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 Sx=/[ \f\n\r\t\v\u2028\u2029]+/,Rx=function(e){var t=e.children,r=e.breakAll,n=e.style;try{var a=[];return ll(t)||(a=r?t.toString().split(""):t.toString().split(Sx)),{wordsWithComputedWidth:a.map((function(e){return{word:e,width:gx(e,n).width}})),spaceWidth:r?0:gx(" ",n).width}}catch(e){return null}},Dx=function(e){return[{words:ll(e)?[]:e.toString().split(Sx)}]},Ix=function(e){var t=e.width,r=e.scaleToFit,n=e.children,a=e.style,c=e.breakAll,i=e.maxLines;if((t||r)&&!by.isSsr){var o=Rx({breakAll:c,children:n,style:a});return o?function(e,t,r,n,a){var c=e.maxLines,i=e.children,o=e.style,s=e.breakAll,l=Pl(c),h=i,v=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var c=t.word,i=t.width,o=e[e.length-1];if(o&&(null==n||a||o.width+i+r<Number(n)))o.words.push(c),o.width+=i+r;else{var s={words:[c],width:i};e.push(s)}return e}),[])},p=v(t);if(!l)return p;for(var u,g=function(e){var t=h.slice(0,e),r=Rx({breakAll:s,style:o,children:t+"…"}).wordsWithComputedWidth,a=v(r),i=a.length>c||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(a).width>Number(n);return[i,a]},m=0,d=h.length-1,f=0;m<=d&&f<=h.length-1;){var _=Math.floor((m+d)/2),w=Bx(g(_-1),2),b=w[0],y=w[1],x=Bx(g(_),1)[0];if(b||x||(m=_+1),b&&x&&(d=_-1),!b&&x){u=y;break}f++}return u||p}({breakAll:c,children:n,maxLines:i,style:a},o.wordsWithComputedWidth,o.spaceWidth,t,r):Dx(n)}return Dx(n)},Tx="#808080",Nx=function(e){var t=e.x,r=void 0===t?0:t,n=e.y,a=void 0===n?0:n,c=e.lineHeight,i=void 0===c?"1em":c,s=e.capHeight,l=void 0===s?"0.71em":s,h=e.scaleToFit,v=void 0!==h&&h,p=e.textAnchor,u=void 0===p?"start":p,g=e.verticalAnchor,m=void 0===g?"end":g,d=e.fill,f=void 0===d?Tx:d,_=zx(e,Cx),w=b((function(){return Ix({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:v,style:_.style,width:_.width})}),[_.breakAll,_.children,_.maxLines,v,_.style,_.width]),y=_.dx,x=_.dy,Z=_.angle,O=_.className,M=_.breakAll,E=zx(_,Ax);if(!jl(r)||!jl(a))return null;var H,P=r+(Pl(y)?y:0),j=a+(Pl(x)?x:0);switch(m){case"start":H=Vx("calc(".concat(l,")"));break;case"middle":H=Vx("calc(".concat((w.length-1)/2," * -").concat(i," + (").concat(l," / 2))"));break;default:H=Vx("calc(".concat(w.length-1," * -").concat(i,")"))}var V=[];if(v){var C=w[0].width,A=_.width;V.push("scale(".concat((Pl(A)?A/C:1)/C,")"))}return Z&&V.push("rotate(".concat(Z,", ").concat(P,", ").concat(j,")")),V.length&&(E.transform=V.join(" ")),o.createElement("text",Lx({},ih(E,!0),{x:P,y:j,className:Ri("recharts-text",O),textAnchor:u,fill:f.includes("url")?Tx:f}),w.map((function(e,t){var r=e.words.join(M?"":" ");return o.createElement("tspan",{x:P,dy:0===t?H:i,key:r},r)})))};function Fx(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Qx(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $x(e){let t,r,n;function a(e,n,a=0,c=e.length){if(a<c){if(0!==t(n,n))return c;do{const t=a+c>>>1;r(e[t],n)<0?a=t+1:c=t}while(a<c)}return a}return 2!==e.length?(t=Fx,r=(t,r)=>Fx(e(t),r),n=(t,r)=>e(t)-r):(t=e===Fx||e===Qx?e:Yx,r=e,n=e),{left:a,center:function(e,t,r=0,c=e.length){const i=a(e,t,r,c-1);return i>r&&n(e[i-1],t)>-n(e[i],t)?i-1:i},right:function(e,n,a=0,c=e.length){if(a<c){if(0!==t(n,n))return c;do{const t=a+c>>>1;r(e[t],n)<=0?a=t+1:c=t}while(a<c)}return a}}}function Yx(){return 0}function Ux(e){return null===e?NaN:+e}const Wx=$x(Fx).right;$x(Ux).center;class Xx extends Map{constructor(e,t=qx){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(Kx(this,e))}has(e){return super.has(Kx(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 Kx({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function qx(e){return null!==e&&"object"==typeof e?e.valueOf():e}function Gx(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const Jx=Math.sqrt(50),eZ=Math.sqrt(10),tZ=Math.sqrt(2);function rZ(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),c=n/Math.pow(10,a),i=c>=Jx?10:c>=eZ?5:c>=tZ?2:1;let o,s,l;return a<0?(l=Math.pow(10,-a)/i,o=Math.round(e*l),s=Math.round(t*l),o/l<e&&++o,s/l>t&&--s,l=-l):(l=Math.pow(10,a)*i,o=Math.round(e/l),s=Math.round(t/l),o*l<e&&++o,s*l>t&&--s),s<o&&.5<=r&&r<2?rZ(e,t,2*r):[o,s,l]}function nZ(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[a,c,i]=n?rZ(t,e,r):rZ(e,t,r);if(!(c>=a))return[];const o=c-a+1,s=new Array(o);if(n)if(i<0)for(let e=0;e<o;++e)s[e]=(c-e)/-i;else for(let e=0;e<o;++e)s[e]=(c-e)*i;else if(i<0)for(let e=0;e<o;++e)s[e]=(a+e)/-i;else for(let e=0;e<o;++e)s[e]=(a+e)*i;return s}function aZ(e,t,r){return rZ(e=+e,t=+t,r=+r)[2]}function cZ(e,t,r){r=+r;const n=(t=+t)<(e=+e),a=n?aZ(t,e,r):aZ(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function iZ(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let a of e)null!=(a=t(a,++n,e))&&(r<a||void 0===r&&a>=a)&&(r=a)}return r}function oZ(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let a of e)null!=(a=t(a,++n,e))&&(r>a||void 0===r&&a>=a)&&(r=a)}return r}function sZ(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=void 0===a?Gx:function(e=Fx){if(e===Fx)return Gx;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))}}(a);n>r;){if(n-r>600){const c=n-r+1,i=t-r+1,o=Math.log(c),s=.5*Math.exp(2*o/3),l=.5*Math.sqrt(o*s*(c-s)/c)*(i-c/2<0?-1:1);sZ(e,t,Math.max(r,Math.floor(t-i*s/c+l)),Math.min(n,Math.floor(t+(c-i)*s/c+l)),a)}const c=e[t];let i=r,o=n;for(lZ(e,r,t),a(e[n],c)>0&&lZ(e,r,n);i<o;){for(lZ(e,i,o),++i,--o;a(e[i],c)<0;)++i;for(;a(e[o],c)>0;)--o}0===a(e[r],c)?lZ(e,r,o):(++o,lZ(e,o,n)),o<=t&&(r=o+1),t<=o&&(n=o-1)}return e}function lZ(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function hZ(e,t,r=Ux){if((n=e.length)&&!isNaN(t=+t)){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,c=Math.floor(a),i=+r(e[c],c,e);return i+(+r(e[c+1],c+1,e)-i)*(a-c)}}function vZ(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function pZ(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 uZ=Symbol("implicit");function gZ(){var e=new Xx,t=[],r=[],n=uZ;function a(a){let c=e.get(a);if(void 0===c){if(n!==uZ)return n;e.set(a,c=t.push(a)-1)}return r[c%r.length]}return a.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new Xx;for(const n of r)e.has(n)||e.set(n,t.push(n)-1);return a},a.range=function(e){return arguments.length?(r=Array.from(e),a):r.slice()},a.unknown=function(e){return arguments.length?(n=e,a):n},a.copy=function(){return gZ(t,r).unknown(n)},vZ.apply(a,arguments),a}function mZ(){var e,t,r=gZ().unknown(void 0),n=r.domain,a=r.range,c=0,i=1,o=!1,s=0,l=0,h=.5;function v(){var r=n().length,v=i<c,p=v?i:c,u=v?c:i;e=(u-p)/Math.max(1,r-s+2*l),o&&(e=Math.floor(e)),p+=(u-p-e*(r-s))*h,t=e*(1-s),o&&(p=Math.round(p),t=Math.round(t));var g=function(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=0|Math.max(0,Math.ceil((t-e)/r)),c=new Array(a);++n<a;)c[n]=e+n*r;return c}(r).map((function(t){return p+e*t}));return a(v?g.reverse():g)}return delete r.unknown,r.domain=function(e){return arguments.length?(n(e),v()):n()},r.range=function(e){return arguments.length?([c,i]=e,c=+c,i=+i,v()):[c,i]},r.rangeRound=function(e){return[c,i]=e,c=+c,i=+i,o=!0,v()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(o=!!e,v()):o},r.padding=function(e){return arguments.length?(s=Math.min(1,l=+e),v()):s},r.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),v()):s},r.paddingOuter=function(e){return arguments.length?(l=+e,v()):l},r.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),v()):h},r.copy=function(){return mZ(n(),[c,i]).round(o).paddingInner(s).paddingOuter(l).align(h)},vZ.apply(v(),arguments)}function dZ(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return dZ(t())},e}function fZ(){return dZ(mZ.apply(null,arguments).paddingInner(1))}function _Z(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function wZ(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function bZ(){}var yZ=.7,xZ=1/yZ,ZZ="\\s*([+-]?\\d+)\\s*",OZ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",MZ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",EZ=/^#([0-9a-f]{3,8})$/,HZ=new RegExp(`^rgb\\(${ZZ},${ZZ},${ZZ}\\)$`),PZ=new RegExp(`^rgb\\(${MZ},${MZ},${MZ}\\)$`),jZ=new RegExp(`^rgba\\(${ZZ},${ZZ},${ZZ},${OZ}\\)$`),VZ=new RegExp(`^rgba\\(${MZ},${MZ},${MZ},${OZ}\\)$`),CZ=new RegExp(`^hsl\\(${OZ},${MZ},${MZ}\\)$`),AZ=new RegExp(`^hsla\\(${OZ},${MZ},${MZ},${OZ}\\)$`),LZ={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 zZ(){return this.rgb().formatHex()}function BZ(){return this.rgb().formatRgb()}function kZ(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=EZ.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?SZ(t):3===r?new TZ(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?RZ(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?RZ(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=HZ.exec(e))?new TZ(t[1],t[2],t[3],1):(t=PZ.exec(e))?new TZ(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jZ.exec(e))?RZ(t[1],t[2],t[3],t[4]):(t=VZ.exec(e))?RZ(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=CZ.exec(e))?UZ(t[1],t[2]/100,t[3]/100,1):(t=AZ.exec(e))?UZ(t[1],t[2]/100,t[3]/100,t[4]):LZ.hasOwnProperty(e)?SZ(LZ[e]):"transparent"===e?new TZ(NaN,NaN,NaN,0):null}function SZ(e){return new TZ(e>>16&255,e>>8&255,255&e,1)}function RZ(e,t,r,n){return n<=0&&(e=t=r=NaN),new TZ(e,t,r,n)}function DZ(e){return e instanceof bZ||(e=kZ(e)),e?new TZ((e=e.rgb()).r,e.g,e.b,e.opacity):new TZ}function IZ(e,t,r,n){return 1===arguments.length?DZ(e):new TZ(e,t,r,null==n?1:n)}function TZ(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function NZ(){return`#${YZ(this.r)}${YZ(this.g)}${YZ(this.b)}`}function FZ(){const e=QZ(this.opacity);return`${1===e?"rgb(":"rgba("}${$Z(this.r)}, ${$Z(this.g)}, ${$Z(this.b)}${1===e?")":`, ${e})`}`}function QZ(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function $Z(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function YZ(e){return((e=$Z(e))<16?"0":"")+e.toString(16)}function UZ(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new XZ(e,t,r,n)}function WZ(e){if(e instanceof XZ)return new XZ(e.h,e.s,e.l,e.opacity);if(e instanceof bZ||(e=kZ(e)),!e)return new XZ;if(e instanceof XZ)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),c=Math.max(t,r,n),i=NaN,o=c-a,s=(c+a)/2;return o?(i=t===c?(r-n)/o+6*(r<n):r===c?(n-t)/o+2:(t-r)/o+4,o/=s<.5?c+a:2-c-a,i*=60):o=s>0&&s<1?0:i,new XZ(i,o,s,e.opacity)}function XZ(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function KZ(e){return(e=(e||0)%360)<0?e+360:e}function qZ(e){return Math.max(0,Math.min(1,e||0))}function GZ(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}_Z(bZ,kZ,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zZ,formatHex:zZ,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return WZ(this).formatHsl()},formatRgb:BZ,toString:BZ}),_Z(TZ,IZ,wZ(bZ,{brighter(e){return e=null==e?xZ:Math.pow(xZ,e),new TZ(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?yZ:Math.pow(yZ,e),new TZ(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new TZ($Z(this.r),$Z(this.g),$Z(this.b),QZ(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:NZ,formatHex:NZ,formatHex8:function(){return`#${YZ(this.r)}${YZ(this.g)}${YZ(this.b)}${YZ(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:FZ,toString:FZ})),_Z(XZ,(function(e,t,r,n){return 1===arguments.length?WZ(e):new XZ(e,t,r,null==n?1:n)}),wZ(bZ,{brighter(e){return e=null==e?xZ:Math.pow(xZ,e),new XZ(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?yZ:Math.pow(yZ,e),new XZ(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,a=2*r-n;return new TZ(GZ(e>=240?e-240:e+120,a,n),GZ(e,a,n),GZ(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new XZ(KZ(this.h),qZ(this.s),qZ(this.l),QZ(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=QZ(this.opacity);return`${1===e?"hsl(":"hsla("}${KZ(this.h)}, ${100*qZ(this.s)}%, ${100*qZ(this.l)}%${1===e?")":`, ${e})`}`}}));const JZ=Math.PI/180,eO=180/Math.PI,tO=.96422,rO=1,nO=.82521,aO=4/29,cO=6/29,iO=3*cO*cO,oO=cO*cO*cO;function sO(e){if(e instanceof lO)return new lO(e.l,e.a,e.b,e.opacity);if(e instanceof gO)return mO(e);e instanceof TZ||(e=DZ(e));var t,r,n=uO(e.r),a=uO(e.g),c=uO(e.b),i=hO((.2225045*n+.7168786*a+.0606169*c)/rO);return n===a&&a===c?t=r=i:(t=hO((.4360747*n+.3850649*a+.1430804*c)/tO),r=hO((.0139322*n+.0971045*a+.7141733*c)/nO)),new lO(116*i-16,500*(t-i),200*(i-r),e.opacity)}function lO(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function hO(e){return e>oO?Math.pow(e,1/3):e/iO+aO}function vO(e){return e>cO?e*e*e:iO*(e-aO)}function pO(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function uO(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function gO(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function mO(e){if(isNaN(e.h))return new lO(e.l,0,0,e.opacity);var t=e.h*JZ;return new lO(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}_Z(lO,(function(e,t,r,n){return 1===arguments.length?sO(e):new lO(e,t,r,null==n?1:n)}),wZ(bZ,{brighter(e){return new lO(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new lO(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new TZ(pO(3.1338561*(t=tO*vO(t))-1.6168667*(e=rO*vO(e))-.4906146*(r=nO*vO(r))),pO(-.9787684*t+1.9161415*e+.033454*r),pO(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),_Z(gO,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof gO)return new gO(e.h,e.c,e.l,e.opacity);if(e instanceof lO||(e=sO(e)),0===e.a&&0===e.b)return new gO(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*eO;return new gO(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new gO(e,t,r,null==n?1:n)}),wZ(bZ,{brighter(e){return new gO(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new gO(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return mO(this).rgb()}}));var dO=-.14861,fO=1.78277,_O=-.29227,wO=-.90649,bO=1.97294,yO=bO*wO,xO=bO*fO,ZO=fO*_O-wO*dO;function OO(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof MO)return new MO(e.h,e.s,e.l,e.opacity);e instanceof TZ||(e=DZ(e));var t=e.r/255,r=e.g/255,n=e.b/255,a=(ZO*n+yO*t-xO*r)/(ZO+yO-xO),c=n-a,i=(bO*(r-a)-_O*c)/wO,o=Math.sqrt(i*i+c*c)/(bO*a*(1-a)),s=o?Math.atan2(i,c)*eO-120:NaN;return new MO(s<0?s+360:s,o,a,e.opacity)}(e):new MO(e,t,r,null==n?1:n)}function MO(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}_Z(MO,OO,wZ(bZ,{brighter(e){return e=null==e?xZ:Math.pow(xZ,e),new MO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?yZ:Math.pow(yZ,e),new MO(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*JZ,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),a=Math.sin(e);return new TZ(255*(t+r*(dO*n+fO*a)),255*(t+r*(_O*n+wO*a)),255*(t+r*(bO*n)),this.opacity)}}));var EO=e=>()=>e;function HO(e,t){return function(r){return e+r*t}}function PO(e){return 1==(e=+e)?jO: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):EO(isNaN(t)?r:t)}}function jO(e,t){var r=t-e;return r?HO(e,r):EO(isNaN(e)?t:e)}var VO=function e(t){var r=PO(t);function n(e,t){var n=r((e=IZ(e)).r,(t=IZ(t)).r),a=r(e.g,t.g),c=r(e.b,t.b),i=jO(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=a(t),e.b=c(t),e.opacity=i(t),e+""}}return n.gamma=e,n}(1);var CO,AO=(CO=function(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),a=e[n],c=e[n+1],i=n>0?e[n-1]:2*a-c,o=n<t-1?e[n+2]:2*c-a;return function(e,t,r,n,a){var c=e*e,i=c*e;return((1-3*e+3*c-i)*t+(4-6*c+3*i)*r+(1+3*e+3*c-3*i)*n+i*a)/6}((r-n/t)*t,i,a,c,o)}},function(e){var t,r,n=e.length,a=new Array(n),c=new Array(n),i=new Array(n);for(t=0;t<n;++t)r=IZ(e[t]),a[t]=r.r||0,c[t]=r.g||0,i[t]=r.b||0;return a=CO(a),c=CO(c),i=CO(i),r.opacity=1,function(e){return r.r=a(e),r.g=c(e),r.b=i(e),r+""}});function LO(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,a=t.slice();return function(c){for(r=0;r<n;++r)a[r]=e[r]*(1-c)+t[r]*c;return a}}function zO(e,t){var r,n=t?t.length:0,a=e?Math.min(n,e.length):0,c=new Array(a),i=new Array(n);for(r=0;r<a;++r)c[r]=TO(e[r],t[r]);for(;r<n;++r)i[r]=t[r];return function(e){for(r=0;r<a;++r)i[r]=c[r](e);return i}}function BO(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function kO(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function SO(e,t){var r,n={},a={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?n[r]=TO(e[r],t[r]):a[r]=t[r];return function(e){for(r in n)a[r]=n[r](e);return a}}var RO=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,DO=new RegExp(RO.source,"g");function IO(e,t){var r,n,a,c=RO.lastIndex=DO.lastIndex=0,i=-1,o=[],s=[];for(e+="",t+="";(r=RO.exec(e))&&(n=DO.exec(t));)(a=n.index)>c&&(a=t.slice(c,a),o[i]?o[i]+=a:o[++i]=a),(r=r[0])===(n=n[0])?o[i]?o[i]+=n:o[++i]=n:(o[++i]=null,s.push({i:i,x:kO(r,n)})),c=DO.lastIndex;return c<t.length&&(a=t.slice(c),o[i]?o[i]+=a:o[++i]=a),o.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var r,n=0;n<t;++n)o[(r=s[n]).i]=r.x(e);return o.join("")})}function TO(e,t){var r,n=typeof t;return null==t||"boolean"===n?EO(t):("number"===n?kO:"string"===n?(r=kZ(t))?(t=r,VO):IO:t instanceof kZ?VO:t instanceof Date?BO:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?LO:Array.isArray(t)?zO:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?SO:kO)(e,t)}function NO(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var FO,QO=180/Math.PI,$O={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function YO(e,t,r,n,a,c){var i,o,s;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(o=Math.sqrt(r*r+n*n))&&(r/=o,n/=o,s/=o),e*n<t*r&&(e=-e,t=-t,s=-s,i=-i),{translateX:a,translateY:c,rotate:Math.atan2(t,e)*QO,skewX:Math.atan(s)*QO,scaleX:i,scaleY:o}}function UO(e,t,r,n){function a(e){return e.length?e.pop()+" ":""}return function(c,i){var o=[],s=[];return c=e(c),i=e(i),function(e,n,a,c,i,o){if(e!==a||n!==c){var s=i.push("translate(",null,t,null,r);o.push({i:s-4,x:kO(e,a)},{i:s-2,x:kO(n,c)})}else(a||c)&&i.push("translate("+a+t+c+r)}(c.translateX,c.translateY,i.translateX,i.translateY,o,s),function(e,t,r,c){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),c.push({i:r.push(a(r)+"rotate(",null,n)-2,x:kO(e,t)})):t&&r.push(a(r)+"rotate("+t+n)}(c.rotate,i.rotate,o,s),function(e,t,r,c){e!==t?c.push({i:r.push(a(r)+"skewX(",null,n)-2,x:kO(e,t)}):t&&r.push(a(r)+"skewX("+t+n)}(c.skewX,i.skewX,o,s),function(e,t,r,n,c,i){if(e!==r||t!==n){var o=c.push(a(c)+"scale(",null,",",null,")");i.push({i:o-4,x:kO(e,r)},{i:o-2,x:kO(t,n)})}else 1===r&&1===n||c.push(a(c)+"scale("+r+","+n+")")}(c.scaleX,c.scaleY,i.scaleX,i.scaleY,o,s),c=i=null,function(e){for(var t,r=-1,n=s.length;++r<n;)o[(t=s[r]).i]=t.x(e);return o.join("")}}}var WO=UO((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?$O:YO(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),XO=UO((function(e){return null==e?$O:(FO||(FO=document.createElementNS("http://www.w3.org/2000/svg","g")),FO.setAttribute("transform",e),(e=FO.transform.baseVal.consolidate())?YO((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):$O)}),", ",")",")");function KO(e){return((e=Math.exp(e))+1/e)/2}function qO(e){return function t(r){function n(t,n){var a=e((t=OO(t)).h,(n=OO(n)).h),c=jO(t.s,n.s),i=jO(t.l,n.l),o=jO(t.opacity,n.opacity);return function(e){return t.h=a(e),t.s=c(e),t.l=i(Math.pow(e,r)),t.opacity=o(e),t+""}}return r=+r,n.gamma=t,n}(1)}!function e(t,r,n){function a(e,a){var c,i,o=e[0],s=e[1],l=e[2],h=a[0],v=a[1],p=a[2],u=h-o,g=v-s,m=u*u+g*g;if(m<1e-12)i=Math.log(p/l)/t,c=function(e){return[o+e*u,s+e*g,l*Math.exp(t*e*i)]};else{var d=Math.sqrt(m),f=(p*p-l*l+n*m)/(2*l*r*d),_=(p*p-l*l-n*m)/(2*p*r*d),w=Math.log(Math.sqrt(f*f+1)-f),b=Math.log(Math.sqrt(_*_+1)-_);i=(b-w)/t,c=function(e){var n=e*i,a=KO(w),c=l/(r*d)*(a*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*n+w)-function(e){return((e=Math.exp(e))-1/e)/2}(w));return[o+c*u,s+c*g,l*a/KO(t*n+w)]}}return c.duration=1e3*i*t/Math.SQRT2,c}return a.rho=function(t){var r=Math.max(.001,+t),n=r*r;return e(r,n,n*n)},a}(Math.SQRT2,2,4),qO((function(e,t){var r=t-e;return r?HO(e,r>180||r<-180?r-360*Math.round(r/360):r):EO(isNaN(e)?t:e)}));var GO=qO(jO);function JO(e){return+e}var eM=[0,1];function tM(e){return e}function rM(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function nM(e,t,r){var n=e[0],a=e[1],c=t[0],i=t[1];return a<n?(n=rM(a,n),c=r(i,c)):(n=rM(n,a),c=r(c,i)),function(e){return c(n(e))}}function aM(e,t,r){var n=Math.min(e.length,t.length)-1,a=new Array(n),c=new Array(n),i=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<n;)a[i]=rM(e[i],e[i+1]),c[i]=r(t[i],t[i+1]);return function(t){var r=Wx(e,t,1,n)-1;return c[r](a[r](t))}}function cM(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function iM(){var e,t,r,n,a,c,i=eM,o=eM,s=TO,l=tM;function h(){var e=Math.min(i.length,o.length);return l!==tM&&(l=function(e,t){var r;return e>t&&(r=e,e=t,t=r),function(r){return Math.max(e,Math.min(t,r))}}(i[0],i[e-1])),n=e>2?aM:nM,a=c=null,v}function v(t){return null==t||isNaN(t=+t)?r:(a||(a=n(i.map(e),o,s)))(e(l(t)))}return v.invert=function(r){return l(t((c||(c=n(o,i.map(e),kO)))(r)))},v.domain=function(e){return arguments.length?(i=Array.from(e,JO),h()):i.slice()},v.range=function(e){return arguments.length?(o=Array.from(e),h()):o.slice()},v.rangeRound=function(e){return o=Array.from(e),s=NO,h()},v.clamp=function(e){return arguments.length?(l=!!e||tM,h()):l!==tM},v.interpolate=function(e){return arguments.length?(s=e,h()):s},v.unknown=function(e){return arguments.length?(r=e,v):r},function(r,n){return e=r,t=n,h()}}function oM(){return iM()(tM,tM)}function sM(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 lM(e){return(e=sM(Math.abs(e)))?e[1]:NaN}var hM,vM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pM(e){if(!(t=vM.exec(e)))throw new Error("invalid format: "+e);var t;return new uM({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 uM(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 gM(e,t){var r=sM(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}pM.prototype=uM.prototype,uM.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 mM={"%":(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)=>gM(100*e,t),r:gM,s:function(e,t){var r=sM(e,t);if(!r)return e+"";var n=r[0],a=r[1],c=a-(hM=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,i=n.length;return c===i?n:c>i?n+new Array(c-i+1).join("0"):c>0?n.slice(0,c)+"."+n.slice(c):"0."+new Array(1-c).join("0")+sM(e,Math.max(0,t+c-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function dM(e){return e}var fM,_M,wM,bM=Array.prototype.map,yM=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xM(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?dM:(t=bM.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var a=e.length,c=[],i=0,o=t[0],s=0;a>0&&o>0&&(s+o+1>n&&(o=Math.max(1,n-s)),c.push(e.substring(a-=o,a+o)),!((s+=o+1)>n));)o=t[i=(i+1)%t.length];return c.reverse().join(r)}),a=void 0===e.currency?"":e.currency[0]+"",c=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",o=void 0===e.numerals?dM:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(bM.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"−":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function v(e){var t=(e=pM(e)).fill,r=e.align,v=e.sign,p=e.symbol,u=e.zero,g=e.width,m=e.comma,d=e.precision,f=e.trim,_=e.type;"n"===_?(m=!0,_="g"):mM[_]||(void 0===d&&(d=12),f=!0,_="g"),(u||"0"===t&&"="===r)&&(u=!0,t="0",r="=");var w="$"===p?a:"#"===p&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",b="$"===p?c:/[%p]/.test(_)?s:"",y=mM[_],x=/[defgprs%]/.test(_);function Z(e){var a,c,s,p=w,Z=b;if("c"===_)Z=y(e)+Z,e="";else{var O=(e=+e)<0||1/e<0;if(e=isNaN(e)?h:y(Math.abs(e),d),f&&(e=function(e){e:for(var t,r=e.length,n=1,a=-1;n<r;++n)switch(e[n]){case".":a=t=n;break;case"0":0===a&&(a=n),t=n;break;default:if(!+e[n])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),O&&0==+e&&"+"!==v&&(O=!1),p=(O?"("===v?v:l:"-"===v||"("===v?"":v)+p,Z=("s"===_?yM[8+hM/3]:"")+Z+(O&&"("===v?")":""),x)for(a=-1,c=e.length;++a<c;)if(48>(s=e.charCodeAt(a))||s>57){Z=(46===s?i+e.slice(a+1):e.slice(a))+Z,e=e.slice(0,a);break}}m&&!u&&(e=n(e,1/0));var M=p.length+e.length+Z.length,E=M<g?new Array(g-M+1).join(t):"";switch(m&&u&&(e=n(E+e,E.length?g-Z.length:1/0),E=""),r){case"<":e=p+e+Z+E;break;case"=":e=p+E+e+Z;break;case"^":e=E.slice(0,M=E.length>>1)+p+e+Z+E.slice(M);break;default:e=E+p+e+Z}return o(e)}return d=void 0===d?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),Z.toString=function(){return e+""},Z}return{format:v,formatPrefix:function(e,t){var r=v(((e=pM(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(lM(t)/3))),a=Math.pow(10,-n),c=yM[8+n/3];return function(e){return r(a*e)+c}}}}function ZM(e,t,r,n){var a,c=cZ(e,t,r);switch((n=pM(null==n?",f":n)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(a=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(lM(t)/3)))-lM(Math.abs(e)))}(c,i))||(n.precision=a),wM(n,i);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(a=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,lM(t)-lM(e))+1}(c,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=a-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(a=function(e){return Math.max(0,-lM(Math.abs(e)))}(c))||(n.precision=a-2*("%"===n.type))}return _M(n)}function OM(e){var t=e.domain;return e.ticks=function(e){var r=t();return nZ(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return ZM(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,a,c=t(),i=0,o=c.length-1,s=c[i],l=c[o],h=10;for(l<s&&(a=s,s=l,l=a,a=i,i=o,o=a);h-- >0;){if((a=aZ(s,l,r))===n)return c[i]=s,c[o]=l,t(c);if(a>0)s=Math.floor(s/a)*a,l=Math.ceil(l/a)*a;else{if(!(a<0))break;s=Math.ceil(s*a)/a,l=Math.floor(l*a)/a}n=a}return e},e}function MM(){var e=oM();return e.copy=function(){return cM(e,MM())},vZ.apply(e,arguments),OM(e)}function EM(e,t){var r,n=0,a=(e=e.slice()).length-1,c=e[n],i=e[a];return i<c&&(r=n,n=a,a=r,r=c,c=i,i=r),e[n]=t.floor(c),e[a]=t.ceil(i),e}function HM(e){return Math.log(e)}function PM(e){return Math.exp(e)}function jM(e){return-Math.log(-e)}function VM(e){return-Math.exp(-e)}function CM(e){return isFinite(e)?+("1e"+e):e<0?0:e}function AM(e){return(t,r)=>-e(-t,r)}function LM(e){const t=e(HM,PM),r=t.domain;let n,a,c=10;function i(){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)}(c),a=function(e){return 10===e?CM:e===Math.E?Math.exp:t=>Math.pow(e,t)}(c),r()[0]<0?(n=AM(n),a=AM(a),e(jM,VM)):e(HM,PM),t}return t.base=function(e){return arguments.length?(c=+e,i()):c},t.domain=function(e){return arguments.length?(r(e),i()):r()},t.ticks=e=>{const t=r();let i=t[0],o=t[t.length-1];const s=o<i;s&&([i,o]=[o,i]);let l,h,v=n(i),p=n(o);const u=null==e?10:+e;let g=[];if(!(c%1)&&p-v<u){if(v=Math.floor(v),p=Math.ceil(p),i>0){for(;v<=p;++v)for(l=1;l<c;++l)if(h=v<0?l/a(-v):l*a(v),!(h<i)){if(h>o)break;g.push(h)}}else for(;v<=p;++v)for(l=c-1;l>=1;--l)if(h=v>0?l/a(-v):l*a(v),!(h<i)){if(h>o)break;g.push(h)}2*g.length<u&&(g=nZ(i,o,u))}else g=nZ(v,p,Math.min(p-v,u)).map(a);return s?g.reverse():g},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===c?"s":","),"function"!=typeof r&&(c%1||null!=(r=pM(r)).precision||(r.trim=!0),r=_M(r)),e===1/0)return r;const i=Math.max(1,c*e/t.ticks().length);return e=>{let t=e/a(Math.round(n(e)));return t*c<c-.5&&(t*=c),t<=i?r(e):""}},t.nice=()=>r(EM(r(),{floor:e=>a(Math.floor(n(e))),ceil:e=>a(Math.ceil(n(e)))})),t}function zM(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function BM(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function kM(e){var t=1,r=e(zM(t),BM(t));return r.constant=function(r){return arguments.length?e(zM(t=+r),BM(t)):t},OM(r)}function SM(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function RM(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function DM(e){return e<0?-e*e:e*e}function IM(e){var t=e(tM,tM),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(tM,tM):.5===r?e(RM,DM):e(SM(r),SM(1/r)):r},OM(t)}function TM(){var e=IM(iM());return e.copy=function(){return cM(e,TM()).exponent(e.exponent())},vZ.apply(e,arguments),e}function NM(e){return Math.sign(e)*e*e}fM=xM({thousands:",",grouping:[3],currency:["$",""]}),_M=fM.format,wM=fM.formatPrefix;const FM=new Date,QM=new Date;function $M(e,t,r,n){function a(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return a.floor=t=>(e(t=new Date(+t)),t),a.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),a.round=e=>{const t=a(e),r=a.ceil(e);return e-t<r-e?t:r},a.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),a.range=(r,n,c)=>{const i=[];if(r=a.ceil(r),c=null==c?1:Math.floor(c),!(r<n&&c>0))return i;let o;do{i.push(o=new Date(+r)),t(r,c),e(r)}while(o<r&&r<n);return i},a.filter=r=>$M((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&&(a.count=(t,n)=>(FM.setTime(+t),QM.setTime(+n),e(FM),e(QM),Math.floor(r(FM,QM))),a.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?a.filter(n?t=>n(t)%e==0:t=>a.count(0,t)%e==0):a:null)),a}const YM=$M((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));YM.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?$M((t=>{t.setTime(Math.floor(t/e)*e)}),((t,r)=>{t.setTime(+t+r*e)}),((t,r)=>(r-t)/e)):YM:null),YM.range;const UM=1e3,WM=6e4,XM=36e5,KM=864e5,qM=6048e5,GM=2592e6,JM=31536e6,eE=$M((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*UM)}),((e,t)=>(t-e)/UM),(e=>e.getUTCSeconds()));eE.range;const tE=$M((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*UM)}),((e,t)=>{e.setTime(+e+t*WM)}),((e,t)=>(t-e)/WM),(e=>e.getMinutes()));tE.range;const rE=$M((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*WM)}),((e,t)=>(t-e)/WM),(e=>e.getUTCMinutes()));rE.range;const nE=$M((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*UM-e.getMinutes()*WM)}),((e,t)=>{e.setTime(+e+t*XM)}),((e,t)=>(t-e)/XM),(e=>e.getHours()));nE.range;const aE=$M((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*XM)}),((e,t)=>(t-e)/XM),(e=>e.getUTCHours()));aE.range;const cE=$M((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*WM)/KM),(e=>e.getDate()-1));cE.range;const iE=$M((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/KM),(e=>e.getUTCDate()-1));iE.range;const oE=$M((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/KM),(e=>Math.floor(e/KM)));function sE(e){return $M((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())*WM)/qM))}oE.range;const lE=sE(0),hE=sE(1),vE=sE(2),pE=sE(3),uE=sE(4),gE=sE(5),mE=sE(6);function dE(e){return $M((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)/qM))}lE.range,hE.range,vE.range,pE.range,uE.range,gE.range,mE.range;const fE=dE(0),_E=dE(1),wE=dE(2),bE=dE(3),yE=dE(4),xE=dE(5),ZE=dE(6);fE.range,_E.range,wE.range,bE.range,yE.range,xE.range,ZE.range;const OE=$M((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()));OE.range;const ME=$M((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()));ME.range;const EE=$M((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()));EE.every=e=>isFinite(e=Math.floor(e))&&e>0?$M((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,EE.range;const HE=$M((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 PE(e,t,r,n,a,c){const i=[[eE,1,UM],[eE,5,5e3],[eE,15,15e3],[eE,30,3e4],[c,1,WM],[c,5,3e5],[c,15,9e5],[c,30,18e5],[a,1,XM],[a,3,108e5],[a,6,216e5],[a,12,432e5],[n,1,KM],[n,2,1728e5],[r,1,qM],[t,1,GM],[t,3,7776e6],[e,1,JM]];function o(t,r,n){const a=Math.abs(r-t)/n,c=$x((([,,e])=>e)).right(i,a);if(c===i.length)return e.every(cZ(t/JM,r/JM,n));if(0===c)return YM.every(Math.max(cZ(t,r,n),1));const[o,s]=i[a/i[c-1][2]<i[c][2]/a?c-1:c];return o.every(s)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const a=r&&"function"==typeof r.range?r:o(e,t,r),c=a?a.range(e,+t+1):[];return n?c.reverse():c},o]}HE.every=e=>isFinite(e=Math.floor(e))&&e>0?$M((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,HE.range;const[jE,VE]=PE(HE,ME,fE,oE,aE,rE),[CE,AE]=PE(EE,OE,lE,cE,nE,tE);function LE(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 zE(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 BE(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var kE,SE,RE,DE,IE={"-":"",_:" ",0:"0"},TE=/^\s*\d+/,NE=/^%/,FE=/[\\^$*+?|[\]().{}]/g;function QE(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",c=a.length;return n+(c<r?new Array(r-c+1).join(t)+a:a)}function $E(e){return e.replace(FE,"\\$&")}function YE(e){return new RegExp("^(?:"+e.map($E).join("|")+")","i")}function UE(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function WE(e,t,r){var n=TE.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function XE(e,t,r){var n=TE.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function KE(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function qE(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function GE(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function JE(e,t,r){var n=TE.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function eH(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function tH(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 rH(e,t,r){var n=TE.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function nH(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function aH(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function cH(e,t,r){var n=TE.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function iH(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function oH(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function sH(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function lH(e,t,r){var n=TE.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function hH(e,t,r){var n=TE.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function vH(e,t,r){var n=NE.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function pH(e,t,r){var n=TE.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function uH(e,t,r){var n=TE.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function gH(e,t){return QE(e.getDate(),t,2)}function mH(e,t){return QE(e.getHours(),t,2)}function dH(e,t){return QE(e.getHours()%12||12,t,2)}function fH(e,t){return QE(1+cE.count(EE(e),e),t,3)}function _H(e,t){return QE(e.getMilliseconds(),t,3)}function wH(e,t){return _H(e,t)+"000"}function bH(e,t){return QE(e.getMonth()+1,t,2)}function yH(e,t){return QE(e.getMinutes(),t,2)}function xH(e,t){return QE(e.getSeconds(),t,2)}function ZH(e){var t=e.getDay();return 0===t?7:t}function OH(e,t){return QE(lE.count(EE(e)-1,e),t,2)}function MH(e){var t=e.getDay();return t>=4||0===t?uE(e):uE.ceil(e)}function EH(e,t){return e=MH(e),QE(uE.count(EE(e),e)+(4===EE(e).getDay()),t,2)}function HH(e){return e.getDay()}function PH(e,t){return QE(hE.count(EE(e)-1,e),t,2)}function jH(e,t){return QE(e.getFullYear()%100,t,2)}function VH(e,t){return QE((e=MH(e)).getFullYear()%100,t,2)}function CH(e,t){return QE(e.getFullYear()%1e4,t,4)}function AH(e,t){var r=e.getDay();return QE((e=r>=4||0===r?uE(e):uE.ceil(e)).getFullYear()%1e4,t,4)}function LH(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+QE(t/60|0,"0",2)+QE(t%60,"0",2)}function zH(e,t){return QE(e.getUTCDate(),t,2)}function BH(e,t){return QE(e.getUTCHours(),t,2)}function kH(e,t){return QE(e.getUTCHours()%12||12,t,2)}function SH(e,t){return QE(1+iE.count(HE(e),e),t,3)}function RH(e,t){return QE(e.getUTCMilliseconds(),t,3)}function DH(e,t){return RH(e,t)+"000"}function IH(e,t){return QE(e.getUTCMonth()+1,t,2)}function TH(e,t){return QE(e.getUTCMinutes(),t,2)}function NH(e,t){return QE(e.getUTCSeconds(),t,2)}function FH(e){var t=e.getUTCDay();return 0===t?7:t}function QH(e,t){return QE(fE.count(HE(e)-1,e),t,2)}function $H(e){var t=e.getUTCDay();return t>=4||0===t?yE(e):yE.ceil(e)}function YH(e,t){return e=$H(e),QE(yE.count(HE(e),e)+(4===HE(e).getUTCDay()),t,2)}function UH(e){return e.getUTCDay()}function WH(e,t){return QE(_E.count(HE(e)-1,e),t,2)}function XH(e,t){return QE(e.getUTCFullYear()%100,t,2)}function KH(e,t){return QE((e=$H(e)).getUTCFullYear()%100,t,2)}function qH(e,t){return QE(e.getUTCFullYear()%1e4,t,4)}function GH(e,t){var r=e.getUTCDay();return QE((e=r>=4||0===r?yE(e):yE.ceil(e)).getUTCFullYear()%1e4,t,4)}function JH(){return"+0000"}function eP(){return"%"}function tP(e){return+e}function rP(e){return Math.floor(+e/1e3)}!function(e){kE=function(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,c=e.days,i=e.shortDays,o=e.months,s=e.shortMonths,l=YE(a),h=UE(a),v=YE(c),p=UE(c),u=YE(i),g=UE(i),m=YE(o),d=UE(o),f=YE(s),_=UE(s),w={a:function(e){return i[e.getDay()]},A:function(e){return c[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return o[e.getMonth()]},c:null,d:gH,e:gH,f:wH,g:VH,G:AH,H:mH,I:dH,j:fH,L:_H,m:bH,M:yH,p:function(e){return a[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:tP,s:rP,S:xH,u:ZH,U:OH,V:EH,w:HH,W:PH,x:null,X:null,y:jH,Y:CH,Z:LH,"%":eP},b={a:function(e){return i[e.getUTCDay()]},A:function(e){return c[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return o[e.getUTCMonth()]},c:null,d:zH,e:zH,f:DH,g:KH,G:GH,H:BH,I:kH,j:SH,L:RH,m:IH,M:TH,p:function(e){return a[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:tP,s:rP,S:NH,u:FH,U:QH,V:YH,w:UH,W:WH,x:null,X:null,y:XH,Y:qH,Z:JH,"%":eP},y={a:function(e,t,r){var n=u.exec(t.slice(r));return n?(e.w=g.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=v.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=f.exec(t.slice(r));return n?(e.m=_.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=d.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return O(e,t,r,n)},d:aH,e:aH,f:hH,g:eH,G:JE,H:iH,I:iH,j:cH,L:lH,m:nH,M:oH,p:function(e,t,r){var n=l.exec(t.slice(r));return n?(e.p=h.get(n[0].toLowerCase()),r+n[0].length):-1},q:rH,Q:pH,s:uH,S:sH,u:XE,U:KE,V:qE,w:WE,W:GE,x:function(e,t,n){return O(e,r,t,n)},X:function(e,t,r){return O(e,n,t,r)},y:eH,Y:JE,Z:tH,"%":vH};function x(e,t){return function(r){var n,a,c,i=[],o=-1,s=0,l=e.length;for(r instanceof Date||(r=new Date(+r));++o<l;)37===e.charCodeAt(o)&&(i.push(e.slice(s,o)),null!=(a=IE[n=e.charAt(++o)])?n=e.charAt(++o):a="e"===n?" ":"0",(c=t[n])&&(n=c(r,a)),i.push(n),s=o+1);return i.push(e.slice(s,o)),i.join("")}}function Z(e,t){return function(r){var n,a,c=BE(1900,void 0,1);if(O(c,e,r+="",0)!=r.length)return null;if("Q"in c)return new Date(c.Q);if("s"in c)return new Date(1e3*c.s+("L"in c?c.L:0));if(t&&!("Z"in c)&&(c.Z=0),"p"in c&&(c.H=c.H%12+12*c.p),void 0===c.m&&(c.m="q"in c?c.q:0),"V"in c){if(c.V<1||c.V>53)return null;"w"in c||(c.w=1),"Z"in c?(a=(n=zE(BE(c.y,0,1))).getUTCDay(),n=a>4||0===a?_E.ceil(n):_E(n),n=iE.offset(n,7*(c.V-1)),c.y=n.getUTCFullYear(),c.m=n.getUTCMonth(),c.d=n.getUTCDate()+(c.w+6)%7):(a=(n=LE(BE(c.y,0,1))).getDay(),n=a>4||0===a?hE.ceil(n):hE(n),n=cE.offset(n,7*(c.V-1)),c.y=n.getFullYear(),c.m=n.getMonth(),c.d=n.getDate()+(c.w+6)%7)}else("W"in c||"U"in c)&&("w"in c||(c.w="u"in c?c.u%7:"W"in c?1:0),a="Z"in c?zE(BE(c.y,0,1)).getUTCDay():LE(BE(c.y,0,1)).getDay(),c.m=0,c.d="W"in c?(c.w+6)%7+7*c.W-(a+5)%7:c.w+7*c.U-(a+6)%7);return"Z"in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,zE(c)):LE(c)}}function O(e,t,r,n){for(var a,c,i=0,o=t.length,s=r.length;i<o;){if(n>=s)return-1;if(37===(a=t.charCodeAt(i++))){if(a=t.charAt(i++),!(c=y[a in IE?t.charAt(i++):a])||(n=c(e,r,n))<0)return-1}else if(a!=r.charCodeAt(n++))return-1}return n}return w.x=x(r,w),w.X=x(n,w),w.c=x(t,w),b.x=x(r,b),b.X=x(n,b),b.c=x(t,b),{format:function(e){var t=x(e+="",w);return t.toString=function(){return e},t},parse:function(e){var t=Z(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",b);return t.toString=function(){return e},t},utcParse:function(e){var t=Z(e+="",!0);return t.toString=function(){return e},t}}}(e),SE=kE.format,kE.parse,RE=kE.utcFormat,DE=kE.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 nP="%Y-%m-%dT%H:%M:%S.%LZ";function aP(e){return new Date(e)}function cP(e){return e instanceof Date?+e:+new Date(+e)}function iP(e,t,r,n,a,c,i,o,s,l){var h=oM(),v=h.invert,p=h.domain,u=l(".%L"),g=l(":%S"),m=l("%I:%M"),d=l("%I %p"),f=l("%a %d"),_=l("%b %d"),w=l("%B"),b=l("%Y");function y(e){return(s(e)<e?u:o(e)<e?g:i(e)<e?m:c(e)<e?d:n(e)<e?a(e)<e?f:_:r(e)<e?w:b)(e)}return h.invert=function(e){return new Date(v(e))},h.domain=function(e){return arguments.length?p(Array.from(e,cP)):p().map(aP)},h.ticks=function(t){var r=p();return e(r[0],r[r.length-1],null==t?10:t)},h.tickFormat=function(e,t){return null==t?y:l(t)},h.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(EM(r,e)):h},h.copy=function(){return cM(h,iP(e,t,r,n,a,c,i,o,s,l))},h}function oP(){var e,t,r,n,a,c=0,i=1,o=tM,s=!1;function l(t){return null==t||isNaN(t=+t)?a:o(0===r?.5:(t=(n(t)-e)*r,s?Math.max(0,Math.min(1,t)):t))}function h(e){return function(t){var r,n;return arguments.length?([r,n]=t,o=e(r,n),l):[o(0),o(1)]}}return l.domain=function(a){return arguments.length?([c,i]=a,e=n(c=+c),t=n(i=+i),r=e===t?0:1/(t-e),l):[c,i]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(o=e,l):o},l.range=h(TO),l.rangeRound=h(NO),l.unknown=function(e){return arguments.length?(a=e,l):a},function(a){return n=a,e=a(c),t=a(i),r=e===t?0:1/(t-e),l}}function sP(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function lP(){var e=IM(oP());return e.copy=function(){return sP(e,lP()).exponent(e.exponent())},pZ.apply(e,arguments)}function hP(){var e,t,r,n,a,c,i,o=0,s=.5,l=1,h=1,v=tM,p=!1;function u(e){return isNaN(e=+e)?i:(e=.5+((e=+c(e))-t)*(h*e<h*t?n:a),v(p?Math.max(0,Math.min(1,e)):e))}function g(e){return function(t){var r,n,a;return arguments.length?([r,n,a]=t,v=function(e,t){void 0===t&&(t=e,e=TO);for(var r=0,n=t.length-1,a=t[0],c=new Array(n<0?0:n);r<n;)c[r]=e(a,a=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return c[t](e-t)}}(e,[r,n,a]),u):[v(0),v(.5),v(1)]}}return u.domain=function(i){return arguments.length?([o,s,l]=i,e=c(o=+o),t=c(s=+s),r=c(l=+l),n=e===t?0:.5/(t-e),a=t===r?0:.5/(r-t),h=t<e?-1:1,u):[o,s,l]},u.clamp=function(e){return arguments.length?(p=!!e,u):p},u.interpolator=function(e){return arguments.length?(v=e,u):v},u.range=g(TO),u.rangeRound=g(NO),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return c=i,e=i(o),t=i(s),r=i(l),n=e===t?0:.5/(t-e),a=t===r?0:.5/(r-t),h=t<e?-1:1,u}}function vP(){var e=IM(hP());return e.copy=function(){return sP(e,vP()).exponent(e.exponent())},pZ.apply(e,arguments)}Date.prototype.toISOString||RE(nP),+new Date("2000-01-01T00:00:00.000Z")||DE(nP);var pP=Object.freeze({__proto__:null,scaleBand:mZ,scaleDiverging:function e(){var t=OM(hP()(tM));return t.copy=function(){return sP(t,e())},pZ.apply(t,arguments)},scaleDivergingLog:function e(){var t=LM(hP()).domain([.1,1,10]);return t.copy=function(){return sP(t,e()).base(t.base())},pZ.apply(t,arguments)},scaleDivergingPow:vP,scaleDivergingSqrt:function(){return vP.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=kM(hP());return t.copy=function(){return sP(t,e()).constant(t.constant())},pZ.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,JO),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,JO):[0,1],OM(n)},scaleImplicit:uZ,scaleLinear:MM,scaleLog:function e(){const t=LM(iM()).domain([1,10]);return t.copy=()=>cM(t,e()).base(t.base()),vZ.apply(t,arguments),t},scaleOrdinal:gZ,scalePoint:fZ,scalePow:TM,scaleQuantile:function e(){var t,r=[],n=[],a=[];function c(){var e=0,t=Math.max(1,n.length);for(a=new Array(t-1);++e<t;)a[e-1]=hZ(r,e/t);return i}function i(e){return null==e||isNaN(e=+e)?t:n[Wx(a,e)]}return i.invertExtent=function(e){var t=n.indexOf(e);return t<0?[NaN,NaN]:[t>0?a[t-1]:r[0],t<a.length?a[t]:r[r.length-1]]},i.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(Fx),c()},i.range=function(e){return arguments.length?(n=Array.from(e),c()):n.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return a.slice()},i.copy=function(){return e().domain(r).range(n).unknown(t)},vZ.apply(i,arguments)},scaleQuantize:function e(){var t,r=0,n=1,a=1,c=[.5],i=[0,1];function o(e){return null!=e&&e<=e?i[Wx(c,e,0,a)]:t}function s(){var e=-1;for(c=new Array(a);++e<a;)c[e]=((e+1)*n-(e-a)*r)/(a+1);return o}return o.domain=function(e){return arguments.length?([r,n]=e,r=+r,n=+n,s()):[r,n]},o.range=function(e){return arguments.length?(a=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(e){var t=i.indexOf(e);return t<0?[NaN,NaN]:t<1?[r,c[0]]:t>=a?[c[a-1],n]:[c[t-1],c[t]]},o.unknown=function(e){return arguments.length?(t=e,o):o},o.thresholds=function(){return c.slice()},o.copy=function(){return e().domain([r,n]).range(i).unknown(t)},vZ.apply(OM(o),arguments)},scaleRadial:function e(){var t,r=oM(),n=[0,1],a=!1;function c(e){var n=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(r(e));return isNaN(n)?t:a?Math.round(n):n}return c.invert=function(e){return r.invert(NM(e))},c.domain=function(e){return arguments.length?(r.domain(e),c):r.domain()},c.range=function(e){return arguments.length?(r.range((n=Array.from(e,JO)).map(NM)),c):n.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(a=!!e,c):a},c.clamp=function(e){return arguments.length?(r.clamp(e),c):r.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(r.domain(),n).round(a).clamp(r.clamp()).unknown(t)},vZ.apply(c,arguments),OM(c)},scaleSequential:function e(){var t=OM(oP()(tM));return t.copy=function(){return sP(t,e())},pZ.apply(t,arguments)},scaleSequentialLog:function e(){var t=LM(oP()).domain([1,10]);return t.copy=function(){return sP(t,e()).base(t.base())},pZ.apply(t,arguments)},scaleSequentialPow:lP,scaleSequentialQuantile:function e(){var t=[],r=tM;function n(e){if(null!=e&&!isNaN(e=+e))return r((Wx(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(Fx),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(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n=+n)>=n&&(yield n)}}(e,r)),(n=e.length)&&!isNaN(t=+t)){if(t<=0||n<2)return oZ(e);if(t>=1)return iZ(e);var n,a=(n-1)*t,c=Math.floor(a),i=iZ(sZ(e,c).subarray(0,c+1));return i+(oZ(e.subarray(c+1))-i)*(a-c)}}(t,n/e)))},n.copy=function(){return e(r).domain(t)},pZ.apply(n,arguments)},scaleSequentialSqrt:function(){return lP.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=kM(oP());return t.copy=function(){return sP(t,e()).constant(t.constant())},pZ.apply(t,arguments)},scaleSqrt:function(){return TM.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=kM(iM());return t.copy=function(){return cM(t,e()).constant(t.constant())},vZ.apply(t,arguments)},scaleThreshold:function e(){var t,r=[.5],n=[0,1],a=1;function c(e){return null!=e&&e<=e?n[Wx(r,e,0,a)]:t}return c.domain=function(e){return arguments.length?(r=Array.from(e),a=Math.min(r.length,n.length-1),c):r.slice()},c.range=function(e){return arguments.length?(n=Array.from(e),a=Math.min(r.length,n.length-1),c):n.slice()},c.invertExtent=function(e){var t=n.indexOf(e);return[r[t-1],r[t]]},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e().domain(r).range(n).unknown(t)},vZ.apply(c,arguments)},scaleTime:function(){return vZ.apply(iP(CE,AE,EE,OE,lE,cE,nE,tE,eE,SE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return vZ.apply(iP(jE,VE,HE,ME,fE,iE,aE,rE,eE,RE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:ZM}),uP=co;var gP=function(e,t,r){for(var n=-1,a=e.length;++n<a;){var c=e[n],i=t(c);if(null!=i&&(void 0===o?i==i&&!uP(i):r(i,o)))var o=i,s=c}return s};var mP=function(e,t){return e>t},dP=gP,fP=mP,_P=Gm;var wP=function(e){return e&&e.length?dP(e,_P,fP):void 0},bP=zt(wP);var yP=function(e,t){return e<t},xP=gP,ZP=yP,OP=Gm;var MP=function(e){return e&&e.length?xP(e,OP,ZP):void 0},EP=zt(MP),HP=Ts,PP=vd,jP=vf,VP=Di;var CP=tf,AP=function(e,t){return(VP(e)?HP:jP)(e,PP(t))};var LP=zt((function(e,t){return CP(AP(e,t),1)})),zP=wm;var BP,kP=zt((function(e,t){return zP(e,t)})),SP=1e9,RP=!0,DP="[DecimalError] ",IP=DP+"Invalid argument: ",TP=DP+"Exponent out of range: ",NP=Math.floor,FP=Math.pow,QP=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$P=1e7,YP=7,UP=9007199254740991,WP=NP(UP/YP),XP={};function KP(e,t){var r,n,a,c,i,o,s,l,h=e.constructor,v=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),RP?ij(t,v):t;if(s=e.d,l=t.d,i=e.e,a=t.e,s=s.slice(),c=i-a){for(c<0?(n=s,c=-c,o=l.length):(n=l,a=i,o=s.length),c>(o=(i=Math.ceil(v/YP))>o?i+1:o+1)&&(c=o,n.length=1),n.reverse();c--;)n.push(0);n.reverse()}for((o=s.length)-(c=l.length)<0&&(c=o,n=l,l=s,s=n),r=0;c;)r=(s[--c]=s[c]+l[c]+r)/$P|0,s[c]%=$P;for(r&&(s.unshift(r),++a),o=s.length;0==s[--o];)s.pop();return t.d=s,t.e=a,RP?ij(t,v):t}function qP(e,t,r){if(e!==~~e||e<t||e>r)throw Error(IP+e)}function GP(e){var t,r,n,a=e.length-1,c="",i=e[0];if(a>0){for(c+=i,t=1;t<a;t++)n=e[t]+"",(r=YP-n.length)&&(c+=nj(r)),c+=n;i=e[t],(r=YP-(n=i+"").length)&&(c+=nj(r))}else if(0===i)return"0";for(;i%10==0;)i/=10;return c+i}XP.absoluteValue=XP.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},XP.comparedTo=XP.cmp=function(e){var t,r,n,a,c=this;if(e=new c.constructor(e),c.s!==e.s)return c.s||-e.s;if(c.e!==e.e)return c.e>e.e^c.s<0?1:-1;for(t=0,r=(n=c.d.length)<(a=e.d.length)?n:a;t<r;++t)if(c.d[t]!==e.d[t])return c.d[t]>e.d[t]^c.s<0?1:-1;return n===a?0:n>a^c.s<0?1:-1},XP.decimalPlaces=XP.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*YP;if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},XP.dividedBy=XP.div=function(e){return JP(this,new this.constructor(e))},XP.dividedToIntegerBy=XP.idiv=function(e){var t=this.constructor;return ij(JP(this,new t(e),0,1),t.precision)},XP.equals=XP.eq=function(e){return!this.cmp(e)},XP.exponent=function(){return tj(this)},XP.greaterThan=XP.gt=function(e){return this.cmp(e)>0},XP.greaterThanOrEqualTo=XP.gte=function(e){return this.cmp(e)>=0},XP.isInteger=XP.isint=function(){return this.e>this.d.length-2},XP.isNegative=XP.isneg=function(){return this.s<0},XP.isPositive=XP.ispos=function(){return this.s>0},XP.isZero=function(){return 0===this.s},XP.lessThan=XP.lt=function(e){return this.cmp(e)<0},XP.lessThanOrEqualTo=XP.lte=function(e){return this.cmp(e)<1},XP.logarithm=XP.log=function(e){var t,r=this,n=r.constructor,a=n.precision,c=a+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(BP))throw Error(DP+"NaN");if(r.s<1)throw Error(DP+(r.s?"NaN":"-Infinity"));return r.eq(BP)?new n(0):(RP=!1,t=JP(aj(r,c),aj(e,c),c),RP=!0,ij(t,a))},XP.minus=XP.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oj(t,e):KP(t,(e.s=-e.s,e))},XP.modulo=XP.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(!(e=new n(e)).s)throw Error(DP+"NaN");return r.s?(RP=!1,t=JP(r,e,0,1).times(e),RP=!0,r.minus(t)):ij(new n(r),a)},XP.naturalExponential=XP.exp=function(){return ej(this)},XP.naturalLogarithm=XP.ln=function(){return aj(this)},XP.negated=XP.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},XP.plus=XP.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?KP(t,e):oj(t,(e.s=-e.s,e))},XP.precision=XP.sd=function(e){var t,r,n,a=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(IP+e);if(t=tj(a)+1,r=(n=a.d.length-1)*YP+1,n=a.d[n]){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},XP.squareRoot=XP.sqrt=function(){var e,t,r,n,a,c,i,o=this,s=o.constructor;if(o.s<1){if(!o.s)return new s(0);throw Error(DP+"NaN")}for(e=tj(o),RP=!1,0==(a=Math.sqrt(+o))||a==1/0?(((t=GP(o.d)).length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=NP((e+1)/2)-(e<0||e%2),n=new s(t=a==1/0?"5e"+e:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new s(a.toString()),a=i=(r=s.precision)+3;;)if(n=(c=n).plus(JP(o,c,i+2)).times(.5),GP(c.d).slice(0,i)===(t=GP(n.d)).slice(0,i)){if(t=t.slice(i-3,i+1),a==i&&"4999"==t){if(ij(c,r+1,0),c.times(c).eq(o)){n=c;break}}else if("9999"!=t)break;i+=4}return RP=!0,ij(n,r)},XP.times=XP.mul=function(e){var t,r,n,a,c,i,o,s,l,h=this,v=h.constructor,p=h.d,u=(e=new v(e)).d;if(!h.s||!e.s)return new v(0);for(e.s*=h.s,r=h.e+e.e,(s=p.length)<(l=u.length)&&(c=p,p=u,u=c,i=s,s=l,l=i),c=[],n=i=s+l;n--;)c.push(0);for(n=l;--n>=0;){for(t=0,a=s+n;a>n;)o=c[a]+u[n]*p[a-n-1]+t,c[a--]=o%$P|0,t=o/$P|0;c[a]=(c[a]+t)%$P|0}for(;!c[--i];)c.pop();return t?++r:c.shift(),e.d=c,e.e=r,RP?ij(e,v.precision):e},XP.toDecimalPlaces=XP.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(qP(e,0,SP),void 0===t?t=n.rounding:qP(t,0,8),ij(r,e+tj(r)+1,t))},XP.toExponential=function(e,t){var r,n=this,a=n.constructor;return void 0===e?r=sj(n,!0):(qP(e,0,SP),void 0===t?t=a.rounding:qP(t,0,8),r=sj(n=ij(new a(n),e+1,t),!0,e+1)),r},XP.toFixed=function(e,t){var r,n,a=this,c=a.constructor;return void 0===e?sj(a):(qP(e,0,SP),void 0===t?t=c.rounding:qP(t,0,8),r=sj((n=ij(new c(a),e+tj(a)+1,t)).abs(),!1,e+tj(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)},XP.toInteger=XP.toint=function(){var e=this,t=e.constructor;return ij(new t(e),tj(e)+1,t.rounding)},XP.toNumber=function(){return+this},XP.toPower=XP.pow=function(e){var t,r,n,a,c,i,o=this,s=o.constructor,l=+(e=new s(e));if(!e.s)return new s(BP);if(!(o=new s(o)).s){if(e.s<1)throw Error(DP+"Infinity");return o}if(o.eq(BP))return o;if(n=s.precision,e.eq(BP))return ij(o,n);if(i=(t=e.e)>=(r=e.d.length-1),c=o.s,i){if((r=l<0?-l:l)<=UP){for(a=new s(BP),t=Math.ceil(n/YP+4),RP=!1;r%2&&lj((a=a.times(o)).d,t),0!==(r=NP(r/2));)lj((o=o.times(o)).d,t);return RP=!0,e.s<0?new s(BP).div(a):ij(a,n)}}else if(c<0)throw Error(DP+"NaN");return c=c<0&&1&e.d[Math.max(t,r)]?-1:1,o.s=1,RP=!1,a=e.times(aj(o,n+12)),RP=!0,(a=ej(a)).s=c,a},XP.toPrecision=function(e,t){var r,n,a=this,c=a.constructor;return void 0===e?n=sj(a,(r=tj(a))<=c.toExpNeg||r>=c.toExpPos):(qP(e,1,SP),void 0===t?t=c.rounding:qP(t,0,8),n=sj(a=ij(new c(a),e,t),e<=(r=tj(a))||r<=c.toExpNeg,e)),n},XP.toSignificantDigits=XP.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(qP(e,1,SP),void 0===t?t=r.rounding:qP(t,0,8)),ij(new r(this),e,t)},XP.toString=XP.valueOf=XP.val=XP.toJSON=XP[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=tj(e),r=e.constructor;return sj(e,t<=r.toExpNeg||t>=r.toExpPos)};var JP=function(){function e(e,t){var r,n=0,a=e.length;for(e=e.slice();a--;)r=e[a]*t+n,e[a]=r%$P|0,n=r/$P|0;return n&&e.unshift(n),e}function t(e,t,r,n){var a,c;if(r!=n)c=r>n?1:-1;else for(a=c=0;a<r;a++)if(e[a]!=t[a]){c=e[a]>t[a]?1:-1;break}return c}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]<t[r]?1:0,e[r]=n*$P+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,a,c,i){var o,s,l,h,v,p,u,g,m,d,f,_,w,b,y,x,Z,O,M=n.constructor,E=n.s==a.s?1:-1,H=n.d,P=a.d;if(!n.s)return new M(n);if(!a.s)throw Error(DP+"Division by zero");for(s=n.e-a.e,Z=P.length,y=H.length,g=(u=new M(E)).d=[],l=0;P[l]==(H[l]||0);)++l;if(P[l]>(H[l]||0)&&--s,(_=null==c?c=M.precision:i?c+(tj(n)-tj(a))+1:c)<0)return new M(0);if(_=_/YP+2|0,l=0,1==Z)for(h=0,P=P[0],_++;(l<y||h)&&_--;l++)w=h*$P+(H[l]||0),g[l]=w/P|0,h=w%P|0;else{for((h=$P/(P[0]+1)|0)>1&&(P=e(P,h),H=e(H,h),Z=P.length,y=H.length),b=Z,d=(m=H.slice(0,Z)).length;d<Z;)m[d++]=0;(O=P.slice()).unshift(0),x=P[0],P[1]>=$P/2&&++x;do{h=0,(o=t(P,m,Z,d))<0?(f=m[0],Z!=d&&(f=f*$P+(m[1]||0)),(h=f/x|0)>1?(h>=$P&&(h=$P-1),1==(o=t(v=e(P,h),m,p=v.length,d=m.length))&&(h--,r(v,Z<p?O:P,p))):(0==h&&(o=h=1),v=P.slice()),(p=v.length)<d&&v.unshift(0),r(m,v,d),-1==o&&(o=t(P,m,Z,d=m.length))<1&&(h++,r(m,Z<d?O:P,d)),d=m.length):0===o&&(h++,m=[0]),g[l++]=h,o&&m[0]?m[d++]=H[b]||0:(m=[H[b]],d=1)}while((b++<y||void 0!==m[0])&&_--)}return g[0]||g.shift(),u.e=s,ij(u,i?c+tj(u)+1:c)}}();function ej(e,t){var r,n,a,c,i,o=0,s=0,l=e.constructor,h=l.precision;if(tj(e)>16)throw Error(TP+tj(e));if(!e.s)return new l(BP);for(null==t?(RP=!1,i=h):i=t,c=new l(.03125);e.abs().gte(.1);)e=e.times(c),s+=5;for(i+=Math.log(FP(2,s))/Math.LN10*2+5|0,r=n=a=new l(BP),l.precision=i;;){if(n=ij(n.times(e),i),r=r.times(++o),GP((c=a.plus(JP(n,r,i))).d).slice(0,i)===GP(a.d).slice(0,i)){for(;s--;)a=ij(a.times(a),i);return l.precision=h,null==t?(RP=!0,ij(a,h)):a}a=c}}function tj(e){for(var t=e.e*YP,r=e.d[0];r>=10;r/=10)t++;return t}function rj(e,t,r){if(t>e.LN10.sd())throw RP=!0,r&&(e.precision=r),Error(DP+"LN10 precision limit exceeded");return ij(new e(e.LN10),t)}function nj(e){for(var t="";e--;)t+="0";return t}function aj(e,t){var r,n,a,c,i,o,s,l,h,v=1,p=e,u=p.d,g=p.constructor,m=g.precision;if(p.s<1)throw Error(DP+(p.s?"NaN":"-Infinity"));if(p.eq(BP))return new g(0);if(null==t?(RP=!1,l=m):l=t,p.eq(10))return null==t&&(RP=!0),rj(g,l);if(l+=10,g.precision=l,n=(r=GP(u)).charAt(0),c=tj(p),!(Math.abs(c)<15e14))return s=rj(g,l+2,m).times(c+""),p=aj(new g(n+"."+r.slice(1)),l-10).plus(s),g.precision=m,null==t?(RP=!0,ij(p,m)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=GP((p=p.times(e)).d)).charAt(0),v++;for(c=tj(p),n>1?(p=new g("0."+r),c++):p=new g(n+"."+r.slice(1)),o=i=p=JP(p.minus(BP),p.plus(BP),l),h=ij(p.times(p),l),a=3;;){if(i=ij(i.times(h),l),GP((s=o.plus(JP(i,new g(a),l))).d).slice(0,l)===GP(o.d).slice(0,l))return o=o.times(2),0!==c&&(o=o.plus(rj(g,l+2,m).times(c+""))),o=JP(o,new g(v),l),g.precision=m,null==t?(RP=!0,ij(o,m)):o;o=s,a+=2}}function cj(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(a=t.length;48===t.charCodeAt(a-1);)--a;if(t=t.slice(n,a)){if(a-=n,r=r-n-1,e.e=NP(r/YP),e.d=[],n=(r+1)%YP,r<0&&(n+=YP),n<a){for(n&&e.d.push(+t.slice(0,n)),a-=YP;n<a;)e.d.push(+t.slice(n,n+=YP));t=t.slice(n),n=YP-t.length}else n-=a;for(;n--;)t+="0";if(e.d.push(+t),RP&&(e.e>WP||e.e<-WP))throw Error(TP+r)}else e.s=0,e.e=0,e.d=[0];return e}function ij(e,t,r){var n,a,c,i,o,s,l,h,v=e.d;for(i=1,c=v[0];c>=10;c/=10)i++;if((n=t-i)<0)n+=YP,a=t,l=v[h=0];else{if((h=Math.ceil((n+1)/YP))>=(c=v.length))return e;for(l=c=v[h],i=1;c>=10;c/=10)i++;a=(n%=YP)-YP+i}if(void 0!==r&&(o=l/(c=FP(10,i-a-1))%10|0,s=t<0||void 0!==v[h+1]||l%c,s=r<4?(o||s)&&(0==r||r==(e.s<0?3:2)):o>5||5==o&&(4==r||s||6==r&&(n>0?a>0?l/FP(10,i-a):0:v[h-1])%10&1||r==(e.s<0?8:7))),t<1||!v[0])return s?(c=tj(e),v.length=1,t=t-c-1,v[0]=FP(10,(YP-t%YP)%YP),e.e=NP(-t/YP)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(0==n?(v.length=h,c=1,h--):(v.length=h+1,c=FP(10,YP-n),v[h]=a>0?(l/FP(10,i-a)%FP(10,a)|0)*c:0),s)for(;;){if(0==h){(v[0]+=c)==$P&&(v[0]=1,++e.e);break}if(v[h]+=c,v[h]!=$P)break;v[h--]=0,c=1}for(n=v.length;0===v[--n];)v.pop();if(RP&&(e.e>WP||e.e<-WP))throw Error(TP+tj(e));return e}function oj(e,t){var r,n,a,c,i,o,s,l,h,v,p=e.constructor,u=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),RP?ij(t,u):t;if(s=e.d,v=t.d,n=t.e,l=e.e,s=s.slice(),i=l-n){for((h=i<0)?(r=s,i=-i,o=v.length):(r=v,n=l,o=s.length),i>(a=Math.max(Math.ceil(u/YP),o)+2)&&(i=a,r.length=1),r.reverse(),a=i;a--;)r.push(0);r.reverse()}else{for((h=(a=s.length)<(o=v.length))&&(o=a),a=0;a<o;a++)if(s[a]!=v[a]){h=s[a]<v[a];break}i=0}for(h&&(r=s,s=v,v=r,t.s=-t.s),o=s.length,a=v.length-o;a>0;--a)s[o++]=0;for(a=v.length;a>i;){if(s[--a]<v[a]){for(c=a;c&&0===s[--c];)s[c]=$P-1;--s[c],s[a]+=$P}s[a]-=v[a]}for(;0===s[--o];)s.pop();for(;0===s[0];s.shift())--n;return s[0]?(t.d=s,t.e=n,RP?ij(t,u):t):new p(0)}function sj(e,t,r){var n,a=tj(e),c=GP(e.d),i=c.length;return t?(r&&(n=r-i)>0?c=c.charAt(0)+"."+c.slice(1)+nj(n):i>1&&(c=c.charAt(0)+"."+c.slice(1)),c=c+(a<0?"e":"e+")+a):a<0?(c="0."+nj(-a-1)+c,r&&(n=r-i)>0&&(c+=nj(n))):a>=i?(c+=nj(a+1-i),r&&(n=r-a-1)>0&&(c=c+"."+nj(n))):((n=a+1)<i&&(c=c.slice(0,n)+"."+c.slice(n)),r&&(n=r-i)>0&&(a+1===i&&(c+="."),c+=nj(n))),e.s<0?"-"+c:c}function lj(e,t){if(e.length>t)return e.length=t,!0}function hj(e){if(!e||"object"!=typeof e)throw Error(DP+"Object expected");var t,r,n,a=["precision",1,SP,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if(void 0!==(n=e[r=a[t]])){if(!(NP(n)===n&&n>=a[t+1]&&n<=a[t+2]))throw Error(IP+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(IP+r+": "+n);this[r]=new this(n)}return this}var vj=function e(t){var r,n,a;function c(e){var t=this;if(!(t instanceof c))return new c(e);if(t.constructor=c,e instanceof c)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(IP+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])):cj(t,e.toString())}if("string"!=typeof e)throw Error(IP+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!QP.test(e))throw Error(IP+e);cj(t,e)}if(c.prototype=XP,c.ROUND_UP=0,c.ROUND_DOWN=1,c.ROUND_CEIL=2,c.ROUND_FLOOR=3,c.ROUND_HALF_UP=4,c.ROUND_HALF_DOWN=5,c.ROUND_HALF_EVEN=6,c.ROUND_HALF_CEIL=7,c.ROUND_HALF_FLOOR=8,c.clone=e,c.config=c.set=hj,void 0===t&&(t={}),t)for(a=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<a.length;)t.hasOwnProperty(n=a[r++])||(t[n]=this[n]);return c.config(t),c}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});BP=new vj(1);var pj=vj;function uj(e){return function(e){if(Array.isArray(e))return gj(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 gj(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 gj(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 gj(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 mj=function(e){return e},dj={"@@functional/placeholder":!0},fj=function(e){return e===dj},_j=function(e){return function t(){return 0===arguments.length||1===arguments.length&&fj(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},wj=function e(t,r){return 1===t?r:_j((function(){for(var n=arguments.length,a=new Array(n),c=0;c<n;c++)a[c]=arguments[c];var i=a.filter((function(e){return e!==dj})).length;return i>=t?r.apply(void 0,a):e(t-i,_j((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var c=a.map((function(e){return fj(e)?t.shift():e}));return r.apply(void 0,uj(c).concat(t))})))}))},bj=function(e){return wj(e.length,e)},yj=function(e,t){for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},xj=bj((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),Zj=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.length)return mj;var n=t.reverse(),a=n[0],c=n.slice(1);return function(){return c.reduce((function(e,t){return t(e)}),a.apply(void 0,arguments))}},Oj=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},Mj=function(e){var t=null,r=null;return function(){for(var n=arguments.length,a=new Array(n),c=0;c<n;c++)a[c]=arguments[c];return t&&a.every((function(e,r){return e===t[r]}))?r:(t=a,r=e.apply(void 0,a))}};var Ej=bj((function(e,t,r){var n=+e;return n+r*(+t-n)})),Hj=bj((function(e,t,r){var n=t-+e;return(r-e)/(n=n||1/0)})),Pj=bj((function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))})),jj={rangeStep:function(e,t,r){for(var n=new pj(e),a=0,c=[];n.lt(t)&&a<1e5;)c.push(n.toNumber()),n=n.add(r),a++;return c},getDigitCount:function(e){return 0===e?1:Math.floor(new pj(e).abs().log(10).toNumber())+1},interpolateNumber:Ej,uninterpolateNumber:Hj,uninterpolateTruncation:Pj};function Vj(e){return function(e){if(Array.isArray(e))return Lj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Aj(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 Cj(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,a=!1,c=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,c=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw c}}return r}(e,t)||Aj(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 Aj(e,t){if(e){if("string"==typeof e)return Lj(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)?Lj(e,t):void 0}}function Lj(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 zj(e){var t=Cj(e,2),r=t[0],n=t[1],a=r,c=n;return r>n&&(a=n,c=r),[a,c]}function Bj(e,t,r){if(e.lte(0))return new pj(0);var n=jj.getDigitCount(e.toNumber()),a=new pj(10).pow(n),c=e.div(a),i=1!==n?.05:.1,o=new pj(Math.ceil(c.div(i).toNumber())).add(r).mul(i).mul(a);return t?o:new pj(Math.ceil(o))}function kj(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new pj(0),tickMin:new pj(0),tickMax:new pj(0)};var c,i=Bj(new pj(t).sub(e).div(r-1),n,a);c=e<=0&&t>=0?new pj(0):(c=new pj(e).add(t).div(2)).sub(new pj(c).mod(i));var o=Math.ceil(c.sub(e).div(i).toNumber()),s=Math.ceil(new pj(t).sub(c).div(i).toNumber()),l=o+s+1;return l>r?kj(e,t,r,n,a+1):(l<r&&(s=t>0?s+(r-l):s,o=t>0?o:o+(r-l)),{step:i,tickMin:c.sub(new pj(o).mul(i)),tickMax:c.add(new pj(s).mul(i))})}var Sj=Mj((function(e){var t=Cj(e,2),r=t[0],n=t[1],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Math.max(a,2),o=Cj(zj([r,n]),2),s=o[0],l=o[1];if(s===-1/0||l===1/0){var h=l===1/0?[s].concat(Vj(yj(0,a-1).map((function(){return 1/0})))):[].concat(Vj(yj(0,a-1).map((function(){return-1/0}))),[l]);return r>n?Oj(h):h}if(s===l)return function(e,t,r){var n=1,a=new pj(e);if(!a.isint()&&r){var c=Math.abs(e);c<1?(n=new pj(10).pow(jj.getDigitCount(e)-1),a=new pj(Math.floor(a.div(n).toNumber())).mul(n)):c>1&&(a=new pj(Math.floor(e)))}else 0===e?a=new pj(Math.floor((t-1)/2)):r||(a=new pj(Math.floor(e)));var i=Math.floor((t-1)/2),o=Zj(xj((function(e){return a.add(new pj(e-i).mul(n)).toNumber()})),yj);return o(0,t)}(s,a,c);var v=kj(s,l,i,c),p=v.step,u=v.tickMin,g=v.tickMax,m=jj.rangeStep(u,g.add(new pj(.1).mul(p)),p);return r>n?Oj(m):m})),Rj=Mj((function(e,t){var r=Cj(e,2),n=r[0],a=r[1],c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Cj(zj([n,a]),2),o=i[0],s=i[1];if(o===-1/0||s===1/0)return[n,a];if(o===s)return[o];var l=Math.max(t,2),h=Bj(new pj(s).sub(o).div(l-1),c,0),v=[].concat(Vj(jj.rangeStep(new pj(o),new pj(s).sub(new pj(.99).mul(h)),h)),[s]);return n>a?Oj(v):v})),Dj=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ij(){return Ij=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},Ij.apply(this,arguments)}function Tj(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nj(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 Nj(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 Nj(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 Fj(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Qj(e){var t=e.offset,r=e.layout,n=e.width,a=e.dataKey,c=e.data,i=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,h=Fj(e,Dj),v=ih(h),p=c.map((function(e){var c=i(e,a),h=c.x,p=c.y,u=c.value,g=c.errorVal;if(!g)return null;var m,d,f=[];if(Array.isArray(g)){var _=Tj(g,2);m=_[0],d=_[1]}else m=d=g;if("vertical"===r){var w=s.scale,b=p+t,y=b+n,x=b-n,Z=w(u-m),O=w(u+d);f.push({x1:O,y1:y,x2:O,y2:x}),f.push({x1:Z,y1:b,x2:O,y2:b}),f.push({x1:Z,y1:y,x2:Z,y2:x})}else if("horizontal"===r){var M=l.scale,E=h+t,H=E-n,P=E+n,j=M(u-m),V=M(u+d);f.push({x1:H,y1:V,x2:P,y2:V}),f.push({x1:E,y1:j,x2:E,y2:V}),f.push({x1:H,y1:j,x2:P,y2:j})}return o.createElement(_h,Ij({className:"recharts-errorBar",key:"bar-".concat(f.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},v),f.map((function(e){return o.createElement("line",Ij({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return o.createElement(_h,{className:"recharts-errorBars"},p)}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 Yj(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 Uj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yj(Object(r),!0).forEach((function(t){Wj(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yj(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wj(e,t,r){return t=function(e){var t=function(e,t){if("object"!==$j(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==$j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$j(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Qj.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Qj.displayName="ErrorBar";var Xj=function(e){var t,r=e.children,n=e.formattedGraphicalItems,a=e.legendWidth,c=e.legendContent,i=eh(r,Xd);return i?(t=i.props&&i.props.payload?i.props&&i.props.payload:"children"===c?(n||[]).reduce((function(e,t){var r=t.item,n=t.props,a=n.sectors||n.data||[];return e.concat(a.map((function(e){return{type:i.props.iconType||r.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(n||[]).map((function(e){var t=e.item,r=t.props,n=r.dataKey,a=r.name,c=r.legendType;return{inactive:r.hide,dataKey:n,type:i.props.iconType||c||"square",color:aV(t),value:a||n,payload:t.props}})),Uj(Uj(Uj({},i.props),Xd.getWithHeight(i,a)),{},{payload:t,item:i})):null};function Kj(e){return Kj="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},Kj(e)}function qj(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 Gj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qj(Object(r),!0).forEach((function(t){Jj(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qj(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Jj(e,t,r){return t=function(e){var t=function(e,t){if("object"!==Kj(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Kj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Kj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eV(e){return function(e){if(Array.isArray(e))return tV(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 tV(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 tV(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 tV(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 rV(e,t,r){return ll(e)||ll(t)?r:jl(t)?sl(e,t,r):_o(t)?t(e):r}function nV(e,t,r,n){var a=LP(e,(function(e){return rV(e,t)}));if("number"===r){var c=a.filter((function(e){return Pl(e)||parseFloat(e)}));return c.length?[EP(c),bP(c)]:[1/0,-1/0]}return(n?a.filter((function(e){return!ll(e)})):a).map((function(e){return jl(e)||e instanceof Date?e:""}))}var aV=function(e){var t,r=e.type.displayName,n=e.props,a=n.stroke,c=n.fill;switch(r){case"Line":t=a;break;case"Area":case"Radar":t=a&&"none"!==a?a:c;break;default:t=c}return t},cV=function(e,t,r,n,a){var c=Jl(t.props.children,Qj).filter((function(e){return function(e,t,r){return!!ll(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===r?"xAxis"===t:"y"!==r||"yAxis"===t)}(n,a,e.props.direction)}));if(c&&c.length){var i=c.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var n=rV(t,r,0),a=Array.isArray(n)?[EP(n),bP(n)]:[n,n],c=i.reduce((function(e,r){var n=rV(t,r,0),c=a[0]-Math.abs(Array.isArray(n)?n[0]:n),i=a[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(c,e[0]),Math.max(i,e[1])]}),[1/0,-1/0]);return[Math.min(c[0],e[0]),Math.max(c[1],e[1])]}),[1/0,-1/0])}return null},iV=function(e,t,r,n,a){var c=t.map((function(t){var c=t.props.dataKey;return"number"===r&&c&&cV(e,t,c,n)||nV(e,c,r,a)}));if("number"===r)return c.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var i={};return c.reduce((function(e,t){for(var r=0,n=t.length;r<n;r++)i[t[r]]||(i[t[r]]=!0,e.push(t[r]));return e}),[])},oV=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},sV=function(e,t,r,n){if(n)return e.map((function(e){return e.coordinate}));var a,c,i=e.map((function(e){return e.coordinate===t&&(a=!0),e.coordinate===r&&(c=!0),e.coordinate}));return a||i.push(t),c||i.push(r),i},lV=function(e,t,r){if(!e)return null;var n=e.scale,a=e.duplicateDomain,c=e.type,i=e.range,o="scaleBand"===e.realScaleType?n.bandwidth()/2:2,s=(t||r)&&"category"===c&&n.bandwidth?n.bandwidth()/o:0;return s="angleAxis"===e.axisType&&(null==i?void 0:i.length)>=2?2*El(i[0]-i[1])*s:s,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=a?a.indexOf(e):e;return{coordinate:n(t)+s,value:e,offset:s}})).filter((function(e){return!Ml(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:n(e)+s,value:e,index:t,offset:s}})):n.ticks&&!r?n.ticks(e.tickCount).map((function(e){return{coordinate:n(e)+s,value:e,offset:s}})):n.domain().map((function(e,t){return{coordinate:n(e)+s,value:a?a[e]:e,index:t,offset:s}}))},hV=new WeakMap,vV=function(e,t){if("function"!=typeof t)return e;hV.has(e)||hV.set(e,new WeakMap);var r=hV.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},pV=function(e,t,r){var n=e.scale,a=e.type,c=e.layout,i=e.axisType;if("auto"===n)return"radial"===c&&"radiusAxis"===i?{scale:mZ(),realScaleType:"band"}:"radial"===c&&"angleAxis"===i?{scale:MM(),realScaleType:"linear"}:"category"===a&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!r)?{scale:fZ(),realScaleType:"point"}:"category"===a?{scale:mZ(),realScaleType:"band"}:{scale:MM(),realScaleType:"linear"};if(gl(n)){var o="scale".concat(Yh(n));return{scale:(pP[o]||fZ)(),realScaleType:pP[o]?o:"point"}}return _o(n)?{scale:n}:{scale:fZ(),realScaleType:"point"}},uV=1e-4,gV=function(e){var t=e.domain();if(t&&!(t.length<=2)){var r=t.length,n=e.range(),a=Math.min(n[0],n[1])-uV,c=Math.max(n[0],n[1])+uV,i=e(t[0]),o=e(t[r-1]);(i<a||i>c||o<a||o>c)&&e.domain([t[0],t[r-1]])}},mV=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},dV=function(e,t){if(!t||2!==t.length||!Pl(t[0])||!Pl(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),a=[e[0],e[1]];return(!Pl(e[0])||e[0]<r)&&(a[0]=r),(!Pl(e[1])||e[1]>n)&&(a[1]=n),a[0]>n&&(a[0]=n),a[1]<r&&(a[1]=r),a},fV={sign:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var a=0,c=0,i=0;i<t;++i){var o=Ml(e[i][r][1])?e[i][r][0]:e[i][r][1];o>=0?(e[i][r][0]=a,e[i][r][1]=a+o,a=e[i][r][1]):(e[i][r][0]=c,e[i][r][1]=c+o,c=e[i][r][1])}},expand:function(e,t){if((n=e.length)>0){for(var r,n,a,c=0,i=e[0].length;c<i;++c){for(a=r=0;r<n;++r)a+=e[r][c][1]||0;if(a)for(r=0;r<n;++r)e[r][c][1]/=a}dp(e,t)}},none:dp,silhouette:function(e,t){if((r=e.length)>0){for(var r,n=0,a=e[t[0]],c=a.length;n<c;++n){for(var i=0,o=0;i<r;++i)o+=e[i][n][1]||0;a[n][1]+=a[n][0]=-o/2}dp(e,t)}},wiggle:function(e,t){if((a=e.length)>0&&(n=(r=e[t[0]]).length)>0){for(var r,n,a,c=0,i=1;i<n;++i){for(var o=0,s=0,l=0;o<a;++o){for(var h=e[t[o]],v=h[i][1]||0,p=(v-(h[i-1][1]||0))/2,u=0;u<o;++u){var g=e[t[u]];p+=(g[i][1]||0)-(g[i-1][1]||0)}s+=v,l+=p*v}r[i-1][1]+=r[i-1][0]=c,s&&(c-=l/s)}r[i-1][1]+=r[i-1][0]=c,dp(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 a=0,c=0;c<t;++c){var i=Ml(e[c][r][1])?e[c][r][0]:e[c][r][1];i>=0?(e[c][r][0]=a,e[c][r][1]=a+i,a=e[c][r][1]):(e[c][r][0]=0,e[c][r][1]=0)}}},_V=function(e,t,r){var n=t.map((function(e){return e.props.dataKey})),a=fV[r],c=function(){var e=Uh([]),t=fp,r=dp,n=_p;function a(a){var c,i,o=Array.from(e.apply(this,arguments),wp),s=o.length,l=-1;for(const e of a)for(c=0,++l;c<s;++c)(o[c][l]=[0,+n(e,o[c].key,l,a)]).data=e;for(c=0,i=bv(t(o));c<s;++c)o[i[c]].index=c;return r(o,i),o}return a.keys=function(t){return arguments.length?(e="function"==typeof t?t:Uh(Array.from(t)),a):e},a.value=function(e){return arguments.length?(n="function"==typeof e?e:Uh(+e),a):n},a.order=function(e){return arguments.length?(t=null==e?fp:"function"==typeof e?e:Uh(Array.from(e)),a):t},a.offset=function(e){return arguments.length?(r=null==e?dp:e,a):r},a}().keys(n).value((function(e,t){return+rV(e,t,0)})).order(fp).offset(a);return c(e)},wV=function(e,t){var r=t.realScaleType,n=t.type,a=t.tickCount,c=t.originalDomain,i=t.allowDecimals,o=r||t.scale;if("auto"!==o&&"linear"!==o)return null;if(a&&"number"===n&&c&&("auto"===c[0]||"auto"===c[1])){var s=e.domain();if(!s.length)return null;var l=Sj(s,a,i);return e.domain([EP(l),bP(l)]),{niceTicks:l}}if(a&&"number"===n){var h=e.domain();return{niceTicks:Rj(h,a,i)}}return null},bV=function(e){var t=e.axis,r=e.ticks,n=e.bandSize,a=e.entry,c=e.index,i=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!ll(a[t.dataKey])){var o=Bl(r,"value",a[t.dataKey]);if(o)return o.coordinate+n/2}return r[c]?r[c].coordinate+n/2:null}var s=rV(a,ll(i)?t.dataKey:i);return ll(s)?null:t.scale(s)},yV=function(e){var t=e.axis,r=e.ticks,n=e.offset,a=e.bandSize,c=e.entry,i=e.index;if("category"===t.type)return r[i]?r[i].coordinate+n:null;var o=rV(c,t.dataKey,t.domain[i]);return ll(o)?null:t.scale(o)-a/2+n},xV=function(e){var t=e.numericAxis,r=t.scale.domain();if("number"===t.type){var n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return n<=0&&a>=0?0:a<0?a:n}return r[0]},ZV=function(e,t,r){return Object.keys(e).reduce((function(n,a){var c=e[a].stackedData.reduce((function(e,n){var a=n.slice(t,r+1).reduce((function(e,t){return[EP(t.concat([e[0]]).filter(Pl)),bP(t.concat([e[1]]).filter(Pl))]}),[1/0,-1/0]);return[Math.min(e[0],a[0]),Math.max(e[1],a[1])]}),[1/0,-1/0]);return[Math.min(c[0],n[0]),Math.max(c[1],n[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},OV=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,MV=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,EV=function(e,t,r){if(_o(e))return e(t,r);if(!Array.isArray(e))return t;var n=[];if(Pl(e[0]))n[0]=r?e[0]:Math.min(e[0],t[0]);else if(OV.test(e[0])){var a=+OV.exec(e[0])[1];n[0]=t[0]-a}else _o(e[0])?n[0]=e[0](t[0]):n[0]=t[0];if(Pl(e[1]))n[1]=r?e[1]:Math.max(e[1],t[1]);else if(MV.test(e[1])){var c=+MV.exec(e[1])[1];n[1]=t[1]+c}else _o(e[1])?n[1]=e[1](t[1]):n[1]=t[1];return n},HV=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 a=Kf(t,(function(e){return e.coordinate})),c=1/0,i=1,o=a.length;i<o;i++){var s=a[i],l=a[i-1];c=Math.min((s.coordinate||0)-(l.coordinate||0),c)}return c===1/0?0:c}return r?void 0:0},PV=function(e,t,r){return e&&e.length?kP(e,sl(r,"type.defaultProps.domain"))?t:e:t},jV=function(e,t){var r=e.props,n=r.dataKey,a=r.name,c=r.unit,i=r.formatter,o=r.tooltipType,s=r.chartType;return Gj(Gj({},ih(e)),{},{dataKey:n,unit:c,formatter:i,name:a||n,color:aV(e),value:rV(t,n),type:o,payload:t,chartType:s})};function VV(e){return VV="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},VV(e)}function CV(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 AV(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?CV(Object(r),!0).forEach((function(t){LV(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CV(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function LV(e,t,r){return t=function(e){var t=function(e,t){if("object"!==VV(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==VV(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VV(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zV(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return BV(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 BV(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 BV(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 kV=Math.PI/180,SV=function(e){return 180*e/Math.PI},RV=function(e,t,r,n){return{x:e+Math.cos(-kV*n)*r,y:t+Math.sin(-kV*n)*r}},DV=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(r.left||0)-(r.right||0)),Math.abs(t-(r.top||0)-(r.bottom||0)))/2},IV=function(e,t,r,n,a){var c=e.width,i=e.height,o=e.startAngle,s=e.endAngle,l=Al(e.cx,c,c/2),h=Al(e.cy,i,i/2),v=DV(c,i,r),p=Al(e.innerRadius,v,0),u=Al(e.outerRadius,v,.8*v);return Object.keys(t).reduce((function(e,r){var c,i=t[r],v=i.domain,g=i.reversed;if(ll(i.range))"angleAxis"===n?c=[o,s]:"radiusAxis"===n&&(c=[p,u]),g&&(c=[c[1],c[0]]);else{var m=zV(c=i.range,2);o=m[0],s=m[1]}var d=pV(i,a),f=d.realScaleType,_=d.scale;_.domain(v).range(c),gV(_);var w=wV(_,AV(AV({},i),{},{realScaleType:f})),b=AV(AV(AV({},i),w),{},{range:c,radius:u,realScaleType:f,scale:_,cx:l,cy:h,innerRadius:p,outerRadius:u,startAngle:o,endAngle:s});return AV(AV({},e),{},LV({},r,b))}),{})},TV=function(e,t){var r=e.x,n=e.y,a=t.cx,c=t.cy,i=function(e,t){var r=e.x,n=e.y,a=t.x,c=t.y;return Math.sqrt(Math.pow(r-a,2)+Math.pow(n-c,2))}({x:r,y:n},{x:a,y:c});if(i<=0)return{radius:i};var o=(r-a)/i,s=Math.acos(o);return n>c&&(s=2*Math.PI-s),{radius:i,angle:SV(s),angleInRadian:s}},NV=function(e,t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),c=Math.floor(n/360);return e+360*Math.min(a,c)},FV=function(e,t){var r=e.x,n=e.y,a=TV({x:r,y:n},t),c=a.radius,i=a.angle,o=t.innerRadius,s=t.outerRadius;if(c<o||c>s)return!1;if(0===c)return!0;var l,h=function(e){var t=e.startAngle,r=e.endAngle,n=Math.floor(t/360),a=Math.floor(r/360),c=Math.min(n,a);return{startAngle:t-360*c,endAngle:r-360*c}}(t),v=h.startAngle,p=h.endAngle,u=i;if(v<=p){for(;u>p;)u-=360;for(;u<v;)u+=360;l=u>=v&&u<=p}else{for(;u>v;)u-=360;for(;u<p;)u+=360;l=u>=p&&u<=v}return l?AV(AV({},t),{},{radius:c,angle:NV(u,t)}):null};function QV(e){return QV="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},QV(e)}var $V=["offset"];function YV(e){return function(e){if(Array.isArray(e))return UV(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 UV(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 UV(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 UV(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 WV(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function XV(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 KV(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?XV(Object(r),!0).forEach((function(t){qV(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XV(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qV(e,t,r){return t=function(e){var t=function(e,t){if("object"!==QV(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==QV(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QV(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GV(){return GV=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},GV.apply(this,arguments)}var JV=function(e){var t=e.value,r=e.formatter,n=ll(e.children)?t:e.children;return _o(r)?r(n):n},eC=function(e,t,r){var n,a,c=e.position,i=e.viewBox,s=e.offset,l=e.className,h=i,v=h.cx,p=h.cy,u=h.innerRadius,g=h.outerRadius,m=h.startAngle,d=h.endAngle,f=h.clockWise,_=(u+g)/2,w=function(e,t){return El(t-e)*Math.min(Math.abs(t-e),360)}(m,d),b=w>=0?1:-1;"insideStart"===c?(n=m+b*s,a=f):"insideEnd"===c?(n=d-b*s,a=!f):"end"===c&&(n=d+b*s,a=f),a=w<=0?a:!a;var y=RV(v,p,_,n),x=RV(v,p,_,n+359*(a?1:-1)),Z="M".concat(y.x,",").concat(y.y,"\n A").concat(_,",").concat(_,",0,1,").concat(a?0:1,",\n ").concat(x.x,",").concat(x.y),O=ll(e.id)?Cl("recharts-radial-line-"):e.id;return o.createElement("text",GV({},r,{dominantBaseline:"central",className:Ri("recharts-radial-bar-label",l)}),o.createElement("defs",null,o.createElement("path",{id:O,d:Z})),o.createElement("textPath",{xlinkHref:"#".concat(O)},t))},tC=function(e){var t=e.viewBox,r=e.offset,n=e.position,a=t,c=a.cx,i=a.cy,o=a.innerRadius,s=a.outerRadius,l=(a.startAngle+a.endAngle)/2;if("outside"===n){var h=RV(c,i,s+r,l),v=h.x;return{x:v,y:h.y,textAnchor:v>=c?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:c,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:c,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:c,y:i,textAnchor:"middle",verticalAnchor:"end"};var p=RV(c,i,(o+s)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},rC=function(e){var t=e.viewBox,r=e.parentViewBox,n=e.offset,a=e.position,c=t,i=c.x,o=c.y,s=c.width,l=c.height,h=l>=0?1:-1,v=h*n,p=h>0?"end":"start",u=h>0?"start":"end",g=s>=0?1:-1,m=g*n,d=g>0?"end":"start",f=g>0?"start":"end";if("top"===a)return KV(KV({},{x:i+s/2,y:o-h*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(o-r.y,0),width:s}:{});if("bottom"===a)return KV(KV({},{x:i+s/2,y:o+l+v,textAnchor:"middle",verticalAnchor:u}),r?{height:Math.max(r.y+r.height-(o+l),0),width:s}:{});if("left"===a){var _={x:i-m,y:o+l/2,textAnchor:d,verticalAnchor:"middle"};return KV(KV({},_),r?{width:Math.max(_.x-r.x,0),height:l}:{})}if("right"===a){var w={x:i+s+m,y:o+l/2,textAnchor:f,verticalAnchor:"middle"};return KV(KV({},w),r?{width:Math.max(r.x+r.width-w.x,0),height:l}:{})}var b=r?{width:s,height:l}:{};return"insideLeft"===a?KV({x:i+m,y:o+l/2,textAnchor:f,verticalAnchor:"middle"},b):"insideRight"===a?KV({x:i+s-m,y:o+l/2,textAnchor:d,verticalAnchor:"middle"},b):"insideTop"===a?KV({x:i+s/2,y:o+v,textAnchor:"middle",verticalAnchor:u},b):"insideBottom"===a?KV({x:i+s/2,y:o+l-v,textAnchor:"middle",verticalAnchor:p},b):"insideTopLeft"===a?KV({x:i+m,y:o+v,textAnchor:f,verticalAnchor:u},b):"insideTopRight"===a?KV({x:i+s-m,y:o+v,textAnchor:d,verticalAnchor:u},b):"insideBottomLeft"===a?KV({x:i+m,y:o+l-v,textAnchor:f,verticalAnchor:p},b):"insideBottomRight"===a?KV({x:i+s-m,y:o+l-v,textAnchor:d,verticalAnchor:p},b):po(a)&&(Pl(a.x)||Hl(a.x))&&(Pl(a.y)||Hl(a.y))?KV({x:i+Al(a.x,s),y:o+Al(a.y,l),textAnchor:"end",verticalAnchor:"end"},b):KV({x:i+s/2,y:o+l/2,textAnchor:"middle",verticalAnchor:"middle"},b)},nC=function(e){return"cx"in e&&Pl(e.cx)};function aC(e){var t,r=e.offset,n=KV({offset:void 0===r?5:r},WV(e,$V)),a=n.viewBox,c=n.position,i=n.value,s=n.children,l=n.content,h=n.className,v=void 0===h?"":h,p=n.textBreakAll;if(!a||ll(i)&&ll(s)&&!y(l)&&!_o(l))return null;if(y(l))return g(l,n);if(_o(l)){if(y(t=w(l,n)))return t}else t=JV(n);var u=nC(a),m=ih(n,!0);if(u&&("insideStart"===c||"insideEnd"===c||"end"===c))return eC(n,t,m);var d=u?tC(n):rC(n);return o.createElement(Nx,GV({className:Ri("recharts-label",v)},m,d,{breakAll:p}),t)}aC.displayName="Label";var cC=function(e){var t=e.cx,r=e.cy,n=e.angle,a=e.startAngle,c=e.endAngle,i=e.r,o=e.radius,s=e.innerRadius,l=e.outerRadius,h=e.x,v=e.y,p=e.top,u=e.left,g=e.width,m=e.height,d=e.clockWise,f=e.labelViewBox;if(f)return f;if(Pl(g)&&Pl(m)){if(Pl(h)&&Pl(v))return{x:h,y:v,width:g,height:m};if(Pl(p)&&Pl(u))return{x:p,y:u,width:g,height:m}}return Pl(h)&&Pl(v)?{x:h,y:v,width:0,height:0}:Pl(t)&&Pl(r)?{cx:t,cy:r,startAngle:a||n||0,endAngle:c||n||0,innerRadius:s||0,outerRadius:l||o||i||0,clockWise:d}:e.viewBox?e.viewBox:{}};aC.parseViewBox=cC,aC.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,a=cC(e),c=Jl(n,aC).map((function(e,r){return g(e,{viewBox:t||a,key:"label-".concat(r)})}));if(!r)return c;var i=function(e,t){return e?!0===e?o.createElement(aC,{key:"label-implicit",viewBox:t}):jl(e)?o.createElement(aC,{key:"label-implicit",viewBox:t,value:e}):y(e)?e.type===aC?g(e,{key:"label-implicit",viewBox:t}):o.createElement(aC,{key:"label-implicit",content:e,viewBox:t}):_o(e)?o.createElement(aC,{key:"label-implicit",content:e,viewBox:t}):po(e)?o.createElement(aC,GV({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||a);return[i].concat(YV(c))};var iC=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},oC=zt(iC);function sC(e){return sC="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},sC(e)}var lC=["valueAccessor"],hC=["data","dataKey","clockWise","id","textBreakAll"];function vC(e){return function(e){if(Array.isArray(e))return pC(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 pC(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 pC(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 pC(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 uC(){return uC=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},uC.apply(this,arguments)}function gC(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 mC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gC(Object(r),!0).forEach((function(t){dC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dC(e,t,r){return t=function(e){var t=function(e,t){if("object"!==sC(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==sC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sC(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fC(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var _C=function(e){return Array.isArray(e.value)?oC(e.value):e.value};function wC(e){var t=e.valueAccessor,r=void 0===t?_C:t,n=fC(e,lC),a=n.data,c=n.dataKey,i=n.clockWise,s=n.id,l=n.textBreakAll,h=fC(n,hC);return a&&a.length?o.createElement(_h,{className:"recharts-label-list"},a.map((function(e,t){var n=ll(c)?r(e,t):rV(e&&e.payload,c),a=ll(s)?{}:{id:"".concat(s,"-").concat(t)};return o.createElement(aC,uC({},ih(e,!0),h,a,{parentViewBox:e.parentViewBox,value:n,textBreakAll:l,viewBox:aC.parseViewBox(ll(i)?e:mC(mC({},e),{},{clockWise:i})),key:"label-".concat(t),index:t}))}))):null}function bC(e){return bC="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},bC(e)}function yC(){return yC=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},yC.apply(this,arguments)}function xC(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?xC(Object(r),!0).forEach((function(t){OC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function OC(e,t,r){return t=function(e){var t=function(e,t){if("object"!==bC(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==bC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bC(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}wC.displayName="LabelList",wC.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=Jl(e.children,wC).map((function(e,r){return g(e,{data:t,key:"labelList-".concat(r)})}));if(!r)return n;var a=function(e,t){return e?!0===e?o.createElement(wC,{key:"labelList-implicit",data:t}):o.isValidElement(e)||_o(e)?o.createElement(wC,{key:"labelList-implicit",data:t,content:e}):po(e)?o.createElement(wC,uC({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t);return[a].concat(vC(n))};var MC=function(e){var t=e.cx,r=e.cy,n=e.radius,a=e.angle,c=e.sign,i=e.isExternal,o=e.cornerRadius,s=e.cornerIsExternal,l=o*(i?1:-1)+n,h=Math.asin(o/l)/kV,v=s?a:a+c*h,p=s?a-c*h:a;return{center:RV(t,r,l,v),circleTangency:RV(t,r,n,v),lineTangency:RV(t,r,l*Math.cos(h*kV),p),theta:h}},EC=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,a=e.outerRadius,c=e.startAngle,i=function(e,t){return El(t-e)*Math.min(Math.abs(t-e),359.999)}(c,e.endAngle),o=c+i,s=RV(t,r,a,c),l=RV(t,r,a,o),h="M ".concat(s.x,",").concat(s.y,"\n A ").concat(a,",").concat(a,",0,\n ").concat(+(Math.abs(i)>180),",").concat(+(c>o),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var v=RV(t,r,n,c),p=RV(t,r,n,o);h+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(i)>180),",").concat(+(c<=o),",\n ").concat(v.x,",").concat(v.y," Z")}else h+="L ".concat(t,",").concat(r," Z");return h},HC={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},PC=function(e){var t=ZC(ZC({},HC),e),r=t.cx,n=t.cy,a=t.innerRadius,c=t.outerRadius,i=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,h=t.startAngle,v=t.endAngle,p=t.className;if(c<a||h===v)return null;var u,g=Ri("recharts-sector",p),m=c-a,d=Al(i,m,0,!0);return u=d>0&&Math.abs(h-v)<360?function(e){var t=e.cx,r=e.cy,n=e.innerRadius,a=e.outerRadius,c=e.cornerRadius,i=e.forceCornerRadius,o=e.cornerIsExternal,s=e.startAngle,l=e.endAngle,h=El(l-s),v=MC({cx:t,cy:r,radius:a,angle:s,sign:h,cornerRadius:c,cornerIsExternal:o}),p=v.circleTangency,u=v.lineTangency,g=v.theta,m=MC({cx:t,cy:r,radius:a,angle:l,sign:-h,cornerRadius:c,cornerIsExternal:o}),d=m.circleTangency,f=m.lineTangency,_=m.theta,w=o?Math.abs(s-l):Math.abs(s-l)-g-_;if(w<0)return i?"M ".concat(u.x,",").concat(u.y,"\n a").concat(c,",").concat(c,",0,0,1,").concat(2*c,",0\n a").concat(c,",").concat(c,",0,0,1,").concat(2*-c,",0\n "):EC({cx:t,cy:r,innerRadius:n,outerRadius:a,startAngle:s,endAngle:l});var b="M ".concat(u.x,",").concat(u.y,"\n A").concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(p.x,",").concat(p.y,"\n A").concat(a,",").concat(a,",0,").concat(+(w>180),",").concat(+(h<0),",").concat(d.x,",").concat(d.y,"\n A").concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(f.x,",").concat(f.y,"\n ");if(n>0){var y=MC({cx:t,cy:r,radius:n,angle:s,sign:h,isExternal:!0,cornerRadius:c,cornerIsExternal:o}),x=y.circleTangency,Z=y.lineTangency,O=y.theta,M=MC({cx:t,cy:r,radius:n,angle:l,sign:-h,isExternal:!0,cornerRadius:c,cornerIsExternal:o}),E=M.circleTangency,H=M.lineTangency,P=M.theta,j=o?Math.abs(s-l):Math.abs(s-l)-O-P;if(j<0&&0===c)return"".concat(b,"L").concat(t,",").concat(r,"Z");b+="L".concat(H.x,",").concat(H.y,"\n A").concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(E.x,",").concat(E.y,"\n A").concat(n,",").concat(n,",0,").concat(+(j>180),",").concat(+(h>0),",").concat(x.x,",").concat(x.y,"\n A").concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(Z.x,",").concat(Z.y,"Z")}else b+="L".concat(t,",").concat(r,"Z");return b}({cx:r,cy:n,innerRadius:a,outerRadius:c,cornerRadius:Math.min(d,m/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:h,endAngle:v}):EC({cx:r,cy:n,innerRadius:a,outerRadius:c,startAngle:h,endAngle:v}),o.createElement("path",yC({},ih(t,!0),{className:g,d:u,role:"img"}))};function jC(e){return jC="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},jC(e)}function VC(){return VC=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},VC.apply(this,arguments)}function CC(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 AC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?CC(Object(r),!0).forEach((function(t){LC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function LC(e,t,r){return t=function(e){var t=function(e,t){if("object"!==jC(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==jC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jC(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var zC={curveBasisClosed:function(e){return new Wv(e)},curveBasisOpen:function(e){return new Xv(e)},curveBasis:function(e){return new Uv(e)},curveBumpX:function(e){return new Hv(e,!0)},curveBumpY:function(e){return new Hv(e,!1)},curveLinearClosed:function(e){return new cp(e)},curveLinear:xv,curveMonotoneX:function(e){return new hp(e)},curveMonotoneY:function(e){return new vp(e)},curveNatural:function(e){return new up(e)},curveStep:function(e){return new mp(e,.5)},curveStepAfter:function(e){return new mp(e,1)},curveStepBefore:function(e){return new mp(e,0)}},BC=function(e){return e.x===+e.x&&e.y===+e.y},kC=function(e){return e.x},SC=function(e){return e.y},RC=function(e){var t,r=e.type,n=void 0===r?"linear":r,a=e.points,c=void 0===a?[]:a,i=e.baseLine,o=e.layout,s=e.connectNulls,l=void 0!==s&&s,h=function(e,t){if(_o(e))return e;var r="curve".concat(Yh(e));return"curveMonotone"!==r&&"curveBump"!==r||!t?zC[r]||xv:zC["".concat(r).concat("vertical"===t?"Y":"X")]}(n,o),v=l?c.filter((function(e){return BC(e)})):c;if(Array.isArray(i)){var p=l?i.filter((function(e){return BC(e)})):i,u=v.map((function(e,t){return AC(AC({},e),{},{base:p[t]})}));return t="vertical"===o?Ev().y(SC).x1(kC).x0((function(e){return e.base.x})):Ev().x(kC).y1(SC).y0((function(e){return e.base.y})),t.defined(BC).curve(h),t(u)}return(t="vertical"===o&&Pl(i)?Ev().y(SC).x1(kC).x0(i):Pl(i)?Ev().x(kC).y1(SC).y0(i):Mv().x(kC).y(SC)).defined(BC).curve(h),t(v)},DC=function(e){var t=e.className,r=e.points,n=e.path,a=e.pathRef;if(!(r&&r.length||n))return null;var c=r&&r.length?RC(e):n;return o.createElement("path",VC({},ih(e),Nl(e),{className:Ri("recharts-curve",t),d:c,ref:a}))};function IC(e){return IC="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},IC(e)}function TC(){return TC=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},TC.apply(this,arguments)}function NC(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return FC(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 FC(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 FC(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 QC(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 $C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?QC(Object(r),!0).forEach((function(t){YC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function YC(e,t,r){return t=function(e){var t=function(e,t){if("object"!==IC(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==IC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===IC(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var UC=function(e,t,r,n,a){var c,i=Math.min(Math.abs(r)/2,Math.abs(n)/2),o=n>=0?1:-1,s=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(i>0&&a instanceof Array){for(var h=[0,0,0,0],v=0;v<4;v++)h[v]=a[v]>i?i:a[v];c="M".concat(e,",").concat(t+o*h[0]),h[0]>0&&(c+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(l,",").concat(e+s*h[0],",").concat(t)),c+="L ".concat(e+r-s*h[1],",").concat(t),h[1]>0&&(c+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(l,",\n ").concat(e+r,",").concat(t+o*h[1])),c+="L ".concat(e+r,",").concat(t+n-o*h[2]),h[2]>0&&(c+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(l,",\n ").concat(e+r-s*h[2],",").concat(t+n)),c+="L ".concat(e+s*h[3],",").concat(t+n),h[3]>0&&(c+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+n-o*h[3])),c+="Z"}else if(i>0&&a===+a&&a>0){var p=Math.min(i,a);c="M ".concat(e,",").concat(t+o*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+s*p,",").concat(t,"\n L ").concat(e+r-s*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+r,",").concat(t+o*p,"\n L ").concat(e+r,",").concat(t+n-o*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+r-s*p,",").concat(t+n,"\n L ").concat(e+s*p,",").concat(t+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e,",").concat(t+n-o*p," Z")}else c="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return c},WC=function(e,t){if(!e||!t)return!1;var r=e.x,n=e.y,a=t.x,c=t.y,i=t.width,o=t.height;if(Math.abs(i)>0&&Math.abs(o)>0){var s=Math.min(a,a+i),l=Math.max(a,a+i),h=Math.min(c,c+o),v=Math.max(c,c+o);return r>=s&&r<=l&&n>=h&&n<=v}return!1},XC={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},KC=function(e){var t=$C($C({},XC),e),r=u(),n=NC(p(-1),2),a=n[0],c=n[1];l((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&c(e)}catch(e){}}),[]);var i=t.x,s=t.y,h=t.width,v=t.height,g=t.radius,m=t.className,d=t.animationEasing,f=t.animationDuration,_=t.animationBegin,w=t.isAnimationActive,b=t.isUpdateAnimationActive;if(i!==+i||s!==+s||h!==+h||v!==+v||0===h||0===v)return null;var y=Ri("recharts-rectangle",m);return b?o.createElement(ib,{canBegin:a>0,from:{width:h,height:v,x:i,y:s},to:{width:h,height:v,x:i,y:s},duration:f,animationEasing:d,isActive:b},(function(e){var n=e.width,c=e.height,i=e.x,s=e.y;return o.createElement(ib,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:_,duration:f,isActive:w,easing:d},o.createElement("path",TC({},ih(t,!0),{className:y,d:UC(i,s,n,c,g),ref:r})))})):o.createElement("path",TC({},ih(t,!0),{className:y,d:UC(i,s,h,v,g)}))},qC=["points","className","baseLinePoints","connectNulls"];function GC(){return GC=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},GC.apply(this,arguments)}function JC(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function eA(e){return function(e){if(Array.isArray(e))return tA(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 tA(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 tA(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 tA(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 rA=function(e){return e&&e.x===+e.x&&e.y===+e.y},nA=function(e,t){var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){rA(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),rA(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(r=[r.reduce((function(e,t){return[].concat(eA(e),eA(t))}),[])]);var n=r.map((function(e){return e.reduce((function(e,t,r){return"".concat(e).concat(0===r?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===r.length?"".concat(n,"Z"):n},aA=function(e){var t=e.points,r=e.className,n=e.baseLinePoints,a=e.connectNulls,c=JC(e,qC);if(!t||!t.length)return null;var i=Ri("recharts-polygon",r);if(n&&n.length){var s=c.stroke&&"none"!==c.stroke,l=function(e,t,r){var n=nA(e,r);return"".concat("Z"===n.slice(-1)?n.slice(0,-1):n,"L").concat(nA(t.reverse(),r).slice(1))}(t,n,a);return o.createElement("g",{className:i},o.createElement("path",GC({},ih(c,!0),{fill:"Z"===l.slice(-1)?c.fill:"none",stroke:"none",d:l})),s?o.createElement("path",GC({},ih(c,!0),{fill:"none",d:nA(t,a)})):null,s?o.createElement("path",GC({},ih(c,!0),{fill:"none",d:nA(n,a)})):null)}var h=nA(t,a);return o.createElement("path",GC({},ih(c,!0),{fill:"Z"===h.slice(-1)?c.fill:"none",className:i,d:h}))};function cA(){return cA=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},cA.apply(this,arguments)}var iA=function(e){var t=e.cx,r=e.cy,n=e.r,a=Ri("recharts-dot",e.className);return t===+t&&r===+r&&n===+n?o.createElement("circle",cA({},ih(e),Nl(e),{className:a,cx:t,cy:r,r:n})):null};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)}var sA=["x","y","top","left","width","height","className"];function lA(){return lA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lA.apply(this,arguments)}function hA(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 vA(e,t,r){return t=function(e){var t=function(e,t){if("object"!==oA(e)||null===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:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pA(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var uA=function(e,t,r,n,a,c){return"M".concat(e,",").concat(a,"v").concat(n,"M").concat(c,",").concat(t,"h").concat(r)},gA=function(e){var t=e.x,r=void 0===t?0:t,n=e.y,a=void 0===n?0:n,c=e.top,i=void 0===c?0:c,s=e.left,l=void 0===s?0:s,h=e.width,v=void 0===h?0:h,p=e.height,u=void 0===p?0:p,g=e.className,m=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hA(Object(r),!0).forEach((function(t){vA(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hA(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({x:r,y:a,top:i,left:l,width:v,height:u},pA(e,sA));return Pl(r)&&Pl(a)&&Pl(v)&&Pl(u)&&Pl(i)&&Pl(l)?o.createElement("path",lA({},ih(m,!0),{className:Ri("recharts-cross",g),d:uA(r,a,v,u,i,l)})):null},mA=gP,dA=mP,fA=vd;var _A=function(e,t){return e&&e.length?mA(e,fA(t),dA):void 0},wA=zt(_A),bA=gP,yA=vd,xA=yP;var ZA=function(e,t){return e&&e.length?bA(e,yA(t),xA):void 0},OA=zt(ZA),MA=["cx","cy","angle","ticks","axisLine"],EA=["ticks","tick","angle","tickFormatter","stroke"];function HA(e){return HA="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},HA(e)}function PA(){return PA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},PA.apply(this,arguments)}function 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 VA(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){kA(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 CA(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function AA(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,SA(n.key),n)}}function LA(e,t){return LA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LA(e,t)}function zA(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=BA(e);if(t){var a=BA(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===HA(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)}(this,r)}}function BA(e){return BA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BA(e)}function kA(e,t,r){return(t=SA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SA(e){var t=function(e,t){if("object"!==HA(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==HA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HA(t)?t:String(t)}var RA=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&&LA(e,t)}(c,Z);var t,r,n,a=zA(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,r=this.props,n=r.angle,a=r.cx,c=r.cy;return RV(a,c,t,n)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.angle,a=e.ticks,c=wA(a,(function(e){return e.coordinate||0}));return{cx:t,cy:r,startAngle:n,endAngle:n,innerRadius:OA(a,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.angle,a=e.ticks,c=e.axisLine,i=CA(e,MA),s=a.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=RV(t,r,s[0],n),h=RV(t,r,s[1],n),v=VA(VA(VA({},ih(i)),{},{fill:"none"},ih(c)),{},{x1:l.x,y1:l.y,x2:h.x,y2:h.y});return o.createElement("line",PA({className:"recharts-polar-radius-axis-line"},v))}},{key:"renderTicks",value:function(){var e=this,t=this.props,r=t.ticks,n=t.tick,a=t.angle,i=t.tickFormatter,s=t.stroke,l=CA(t,EA),h=this.getTickTextAnchor(),v=ih(l),p=ih(n),u=r.map((function(t,r){var l=e.getTickValueCoord(t),u=VA(VA(VA(VA({textAnchor:h,transform:"rotate(".concat(90-a,", ").concat(l.x,", ").concat(l.y,")")},v),{},{stroke:"none",fill:s},p),{},{index:r},l),{},{payload:t});return o.createElement(_h,PA({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(t.coordinate)},Fl(e.props,t,r)),c.renderTickItem(n,u,i?i(t.value,r):t.value))}));return o.createElement(_h,{className:"recharts-polar-radius-axis-ticks"},u)}},{key:"render",value:function(){var e=this.props,t=e.ticks,r=e.axisLine,n=e.tick;return t&&t.length?o.createElement(_h,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),n&&this.renderTicks(),aC.renderCallByParent(this.props,this.getViewBox())):null}}],n=[{key:"renderTickItem",value:function(e,t,r){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(Nx,PA({},t,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&AA(t.prototype,r),n&&AA(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();function DA(e){return DA="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},DA(e)}function IA(){return IA=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},IA.apply(this,arguments)}function TA(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 NA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?TA(Object(r),!0).forEach((function(t){UA(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TA(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function FA(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,WA(n.key),n)}}function QA(e,t){return QA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QA(e,t)}function $A(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=YA(e);if(t){var a=YA(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===DA(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)}(this,r)}}function YA(e){return YA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YA(e)}function UA(e,t,r){return(t=WA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WA(e){var t=function(e,t){if("object"!==DA(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==DA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DA(t)?t:String(t)}kA(RA,"displayName","PolarRadiusAxis"),kA(RA,"axisType","radiusAxis"),kA(RA,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var XA=Math.PI/180,KA=1e-5,qA=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&&QA(e,t)}(c,Z);var t,r,n,a=$A(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,r=t.cx,n=t.cy,a=t.radius,c=t.orientation,i=t.tickSize||8,o=RV(r,n,a,e.coordinate),s=RV(r,n,a+("inner"===c?-1:1)*i,e.coordinate);return{x1:o.x,y1:o.y,x2:s.x,y2:s.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,r=Math.cos(-e.coordinate*XA);return r>KA?"outer"===t?"start":"end":r<-KA?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.radius,a=e.axisLine,c=e.axisLineType,i=NA(NA({},ih(this.props)),{},{fill:"none"},ih(a));if("circle"===c)return o.createElement(iA,IA({className:"recharts-polar-angle-axis-line"},i,{cx:t,cy:r,r:n}));var s=this.props.ticks.map((function(e){return RV(t,r,n,e.coordinate)}));return o.createElement(aA,IA({className:"recharts-polar-angle-axis-line"},i,{points:s}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,r=t.ticks,n=t.tick,a=t.tickLine,i=t.tickFormatter,s=t.stroke,l=ih(this.props),h=ih(n),v=NA(NA({},l),{},{fill:"none"},ih(a)),p=r.map((function(t,r){var p=e.getTickLineCoord(t),u=NA(NA(NA({textAnchor:e.getTickTextAnchor(t)},l),{},{stroke:"none",fill:s},h),{},{index:r,payload:t,x:p.x2,y:p.y2});return o.createElement(_h,IA({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(t.coordinate)},Fl(e.props,t,r)),a&&o.createElement("line",IA({className:"recharts-polar-angle-axis-tick-line"},v,p)),n&&c.renderTickItem(n,u,i?i(t.value,r):t.value))}));return o.createElement(_h,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,r=e.radius,n=e.axisLine;return r<=0||!t||!t.length?null:o.createElement(_h,{className:"recharts-polar-angle-axis"},n&&this.renderAxisLine(),this.renderTicks())}}],n=[{key:"renderTickItem",value:function(e,t,r){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(Nx,IA({},t,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&FA(t.prototype,r),n&&FA(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();UA(qA,"displayName","PolarAngleAxis"),UA(qA,"axisType","angleAxis"),UA(qA,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var GA=dg(Object.getPrototypeOf,Object),JA=to,eL=GA,tL=ro,rL=Function.prototype,nL=Object.prototype,aL=rL.toString,cL=nL.hasOwnProperty,iL=aL.call(Object);var oL=function(e){if(!tL(e)||"[object Object]"!=JA(e))return!1;var t=eL(e);if(null===t)return!0;var r=cL.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&aL.call(r)==iL},sL=zt(oL),lL=to,hL=ro;var vL=zt((function(e){return!0===e||!1===e||hL(e)&&"[object Boolean]"==lL(e)}));function pL(e){return pL="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},pL(e)}function uL(){return uL=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},uL.apply(this,arguments)}function gL(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mL(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 mL(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 mL(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 dL(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 fL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dL(Object(r),!0).forEach((function(t){_L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _L(e,t,r){return t=function(e){var t=function(e,t){if("object"!==pL(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==pL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pL(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wL,bL=function(e,t,r,n,a){var c,i=r-n;return c="M ".concat(e,",").concat(t),c+="L ".concat(e+r,",").concat(t),c+="L ".concat(e+r-i/2,",").concat(t+a),c+="L ".concat(e+r-i/2-n,",").concat(t+a),c+="L ".concat(e,",").concat(t," Z")},yL={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},xL=function(e){var t=fL(fL({},yL),e),r=u(),n=gL(p(-1),2),a=n[0],c=n[1];l((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&c(e)}catch(e){}}),[]);var i=t.x,s=t.y,h=t.upperWidth,v=t.lowerWidth,g=t.height,m=t.className,d=t.animationEasing,f=t.animationDuration,_=t.animationBegin,w=t.isUpdateAnimationActive;if(i!==+i||s!==+s||h!==+h||v!==+v||g!==+g||0===h&&0===v||0===g)return null;var b=Ri("recharts-trapezoid",m);return w?o.createElement(ib,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:g,x:i,y:s},to:{upperWidth:h,lowerWidth:v,height:g,x:i,y:s},duration:f,animationEasing:d,isActive:w},(function(e){var n=e.upperWidth,c=e.lowerWidth,i=e.height,s=e.x,l=e.y;return o.createElement(ib,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:_,duration:f,easing:d},o.createElement("path",uL({},ih(t,!0),{className:b,d:bL(s,l,n,c,i),ref:r})))})):o.createElement("g",null,o.createElement("path",uL({},ih(t,!0),{className:b,d:bL(i,s,h,v,g)})))},ZL=["option","shapeType","propTransformer","activeClassName","isActive"];function OL(e){return OL="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},OL(e)}function ML(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function EL(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 HL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?EL(Object(r),!0).forEach((function(t){PL(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function PL(e,t,r){return t=function(e){var t=function(e,t){if("object"!==OL(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==OL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===OL(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jL(e,t){return HL(HL({},t),e)}function VL(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return o.createElement(KC,r);case"trapezoid":return o.createElement(xL,r);case"sector":return o.createElement(PC,r);case"symbols":if(function(e,t){return"symbols"===e}(t))return o.createElement(jp,r);break;default:return null}}function CL(e){return y(e)?e.props:e}function AL(e){var t,r=e.option,n=e.shapeType,a=e.propTransformer,c=void 0===a?jL:a,i=e.activeClassName,s=void 0===i?"recharts-active-shape":i,l=e.isActive,h=ML(e,ZL);if(y(r))t=g(r,HL(HL({},h),CL(r)));else if(_o(r))t=r(h);else if(sL(r)&&!vL(r)){var v=c(r,h);t=o.createElement(VL,{shapeType:n,elementProps:v})}else{var p=h;t=o.createElement(VL,{shapeType:n,elementProps:p})}return l?o.createElement(_h,{className:s},t):t}function LL(e,t){return null!=t&&"trapezoids"in e.props}function zL(e,t){return null!=t&&"sectors"in e.props}function BL(e,t){return null!=t&&"points"in e.props}function kL(e,t){var r,n,a=e.x===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.x)||e.x===t.x,c=e.y===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.y)||e.y===t.y;return a&&c}function SL(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function RL(e,t){var r=e.x===t.x,n=e.y===t.y,a=e.z===t.z;return r&&n&&a}function DL(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,a=function(e,t){var r;return LL(e,t)?r="trapezoids":zL(e,t)?r="sectors":BL(e,t)&&(r="points"),r}(r,t),c=function(e,t){var r,n;return LL(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:zL(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:BL(e,t)?t.payload:{}}(r,t),i=n.filter((function(e,n){var i=kP(c,e),o=r.props[a].filter((function(e){var n=function(e,t){var r;return LL(e,t)?r=kL:zL(e,t)?r=SL:BL(e,t)&&(r=RL),r}(r,t);return n(e,t)})),s=r.props[a].indexOf(o[o.length-1]);return i&&n===s}));return n.indexOf(i[i.length-1])}function IL(e){return IL="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},IL(e)}function TL(){return TL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},TL.apply(this,arguments)}function NL(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 FL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?NL(Object(r),!0).forEach((function(t){XL(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function QL(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,KL(n.key),n)}}function $L(e,t){return $L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$L(e,t)}function YL(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=WL(e);if(t){var a=WL(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===IL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return UL(e)}(this,r)}}function UL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WL(e){return WL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WL(e)}function XL(e,t,r){return(t=KL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KL(e){var t=function(e,t){if("object"!==IL(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==IL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===IL(t)?t:String(t)}var qL=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&&$L(e,t)}(c,Z);var t,r,n,a=YL(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),XL(UL(t=a.call(this,e)),"pieRef",null),XL(UL(t),"sectorRefs",[]),XL(UL(t),"id",Cl("recharts-pie-")),XL(UL(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),_o(e)&&e()})),XL(UL(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),_o(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return t=c,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,r=t.label,n=t.labelLine,a=t.dataKey,i=t.valueKey,s=ih(this.props),l=ih(r),h=ih(n),v=r&&r.offsetRadius||20,p=e.map((function(e,t){var p=(e.startAngle+e.endAngle)/2,u=RV(e.cx,e.cy,e.outerRadius+v,p),g=FL(FL(FL(FL({},s),e),{},{stroke:"none"},l),{},{index:t,textAnchor:c.getTextAnchor(u.x,e.cx)},u),m=FL(FL(FL(FL({},s),e),{},{fill:"none",stroke:e.fill},h),{},{index:t,points:[RV(e.cx,e.cy,e.outerRadius,p),u],key:"line"}),d=a;return ll(a)&&ll(i)?d="value":ll(a)&&(d=i),o.createElement(_h,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle)},n&&c.renderLabelLineItem(n,m),c.renderLabelItem(r,g,rV(e,d)))}));return o.createElement(_h,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var t=this,r=this.props,n=r.activeShape,a=r.blendStroke,c=r.inactiveShape;return e.map((function(e,r){var i=t.isActiveIndex(r),s=c&&t.hasActiveIndex()?c:null,l=i?n:s,h=FL(FL({},e),{},{stroke:a?e.fill:e.stroke,tabIndex:-1});return o.createElement(_h,TL({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},Fl(t.props,e,r),{key:"sector-".concat(r)}),o.createElement(AL,TL({option:l,isActive:i,shapeType:"sector"},h)))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,r=t.sectors,n=t.isAnimationActive,a=t.animationBegin,c=t.animationDuration,i=t.animationEasing,s=t.animationId,l=this.state,h=l.prevSectors,v=l.prevIsAnimationActive;return o.createElement(ib,{begin:a,duration:c,isActive:n,easing:i,from:{t:0},to:{t:1},key:"pie-".concat(s,"-").concat(v),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var n=t.t,a=[],c=(r&&r[0]).startAngle;return r.forEach((function(e,t){var r=h&&h[t],i=t>0?sl(e,"paddingAngle",0):0;if(r){var o=zl(r.endAngle-r.startAngle,e.endAngle-e.startAngle),s=FL(FL({},e),{},{startAngle:c+i,endAngle:c+o(n)+i});a.push(s),c=s.endAngle}else{var l=e.endAngle,v=e.startAngle,p=zl(0,l-v)(n),u=FL(FL({},e),{},{startAngle:c+i,endAngle:c+p+i});a.push(u),c=u.endAngle}})),o.createElement(_h,null,e.renderSectorsStatically(a))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var r=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"ArrowRight":var n=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,r=e.isAnimationActive,n=this.state.prevSectors;return!(r&&t&&t.length)||n&&kP(n,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,t=this.props,r=t.hide,n=t.sectors,a=t.className,c=t.label,i=t.cx,s=t.cy,l=t.innerRadius,h=t.outerRadius,v=t.isAnimationActive,p=this.state.isAnimationFinished;if(r||!n||!n.length||!Pl(i)||!Pl(s)||!Pl(l)||!Pl(h))return null;var u=Ri("recharts-pie",a);return o.createElement(_h,{tabIndex:this.props.rootTabIndex,className:u,ref:function(t){e.pieRef=t}},this.renderSectors(),c&&this.renderLabels(n),aC.renderCallByParent(this.props,null,!1),(!v||p)&&wC.renderCallByParent(this.props,n,!1))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(DC,TL({},t,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,t,r){if(o.isValidElement(e))return o.cloneElement(e,t);var n=r;return _o(e)&&(n=e(t),o.isValidElement(n))?n:o.createElement(Nx,TL({},t,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),n)}}],r&&QL(t.prototype,r),n&&QL(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();wL=qL,XL(qL,"displayName","Pie"),XL(qL,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!by.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),XL(qL,"parseDeltaAngle",(function(e,t){return El(t-e)*Math.min(Math.abs(t-e),360)})),XL(qL,"getRealPieData",(function(e){var t=e.props,r=t.data,n=t.children,a=ih(e.props),c=Jl(n,ix);return r&&r.length?r.map((function(e,t){return FL(FL(FL({payload:e},a),e),c&&c[t]&&c[t].props)})):c&&c.length?c.map((function(e){return FL(FL({},a),e.props)})):[]})),XL(qL,"parseCoordinateOfPie",(function(e,t){var r=t.top,n=t.left,a=t.width,c=t.height,i=DV(a,c);return{cx:n+Al(e.props.cx,a,a/2),cy:r+Al(e.props.cy,c,c/2),innerRadius:Al(e.props.innerRadius,i,0),outerRadius:Al(e.props.outerRadius,i,.8*i),maxRadius:e.props.maxRadius||Math.sqrt(a*a+c*c)/2}})),XL(qL,"getComposedData",(function(e){var t=e.item,r=e.offset,n=wL.getRealPieData(t);if(!n||!n.length)return null;var a=t.props,c=a.cornerRadius,i=a.startAngle,o=a.endAngle,s=a.paddingAngle,l=a.dataKey,h=a.nameKey,v=a.valueKey,p=a.tooltipType,u=Math.abs(t.props.minAngle),g=wL.parseCoordinateOfPie(t,r),m=wL.parseDeltaAngle(i,o),d=Math.abs(m),f=l;ll(l)&&ll(v)?(bh(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),f="value"):ll(l)&&(bh(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),f=v);var _,w,b=n.filter((function(e){return 0!==rV(e,f,0)})).length,y=d-b*u-(d>=360?b:b-1)*s,x=n.reduce((function(e,t){var r=rV(t,f,0);return e+(Pl(r)?r:0)}),0);x>0&&(_=n.map((function(e,t){var r,n=rV(e,f,0),a=rV(e,h,t),o=(Pl(n)?n:0)/x,l=(r=t?w.endAngle+El(m)*s*(0!==n?1:0):i)+El(m)*((0!==n?u:0)+o*y),v=(r+l)/2,d=(g.innerRadius+g.outerRadius)/2,_=[{name:a,value:n,payload:e,dataKey:f,type:p}],b=RV(g.cx,g.cy,d,v);return w=FL(FL(FL({percent:o,cornerRadius:c,name:a,tooltipPayload:_,midAngle:v,middleRadius:d,tooltipPosition:b},e),g),{},{value:rV(e,f),startAngle:r,endAngle:l,payload:e,paddingAngle:El(m)*s})})));return FL(FL({},g),{},{sectors:_,data:n})}));var GL=function(e){return e&&e.length?e[0]:void 0},JL=zt(GL);function ez(e){return ez="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},ez(e)}function tz(){return tz=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},tz.apply(this,arguments)}function rz(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 nz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rz(Object(r),!0).forEach((function(t){lz(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rz(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function az(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,hz(n.key),n)}}function cz(e,t){return cz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cz(e,t)}function iz(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=sz(e);if(t){var a=sz(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ez(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oz(e)}(this,r)}}function oz(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sz(e){return sz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sz(e)}function lz(e,t,r){return(t=hz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hz(e){var t=function(e,t){if("object"!==ez(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ez(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ez(t)?t:String(t)}var vz=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&&cz(e,t)}(c,Z);var t,r,n,a=iz(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return lz(oz(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!1}),lz(oz(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),_o(t)&&t()})),lz(oz(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),_o(t)&&t()})),lz(oz(e),"handleMouseEnter",(function(t){var r=e.props.onMouseEnter;r&&r(e.props,t)})),lz(oz(e),"handleMouseLeave",(function(t){var r=e.props.onMouseLeave;r&&r(e.props,t)})),e}return t=c,r=[{key:"renderDots",value:function(e){var t=this.props,r=t.dot,n=t.dataKey,a=ih(this.props),i=ih(r),s=e.map((function(e,t){var o=nz(nz(nz({key:"dot-".concat(t),r:3},a),i),{},{dataKey:n,cx:e.x,cy:e.y,index:t,payload:e});return c.renderDotItem(r,o)}));return o.createElement(_h,{className:"recharts-radar-dots"},s)}},{key:"renderPolygonStatically",value:function(e){var t,r=this.props,n=r.shape,a=r.dot,c=r.isRange,i=r.baseLinePoints,s=r.connectNulls;return t=o.isValidElement(n)?o.cloneElement(n,nz(nz({},this.props),{},{points:e})):_o(n)?n(nz(nz({},this.props),{},{points:e})):o.createElement(aA,tz({},ih(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:c?i:null,connectNulls:s})),o.createElement(_h,{className:"recharts-radar-polygon"},t,a?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,t=this.props,r=t.points,n=t.isAnimationActive,a=t.animationBegin,c=t.animationDuration,i=t.animationEasing,s=t.animationId,l=this.state.prevPoints;return o.createElement(ib,{begin:a,duration:c,isActive:n,easing:i,from:{t:0},to:{t:1},key:"radar-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var n=t.t,a=l&&l.length/r.length,c=r.map((function(e,t){var r=l&&l[Math.floor(t*a)];if(r){var c=zl(r.x,e.x),i=zl(r.y,e.y);return nz(nz({},e),{},{x:c(n),y:i(n)})}var o=zl(e.cx,e.x),s=zl(e.cy,e.y);return nz(nz({},e),{},{x:o(n),y:s(n)})}));return e.renderPolygonStatically(c)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,r=e.isAnimationActive,n=e.isRange,a=this.state.prevPoints;return!(r&&t&&t.length)||n||a&&kP(a,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.className,n=e.points,a=e.isAnimationActive;if(t||!n||!n.length)return null;var c=this.state.isAnimationFinished,i=Ri("recharts-radar",r);return o.createElement(_h,{className:i},this.renderPolygon(),(!a||c)&&wC.renderCallByParent(this.props,n))}}],n=[{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:"renderDotItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(iA,tz({},t,{className:"recharts-radar-dot"}))}}],r&&az(t.prototype,r),n&&az(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();function pz(e){return pz="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},pz(e)}function uz(){return uz=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},uz.apply(this,arguments)}function gz(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 mz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gz(Object(r),!0).forEach((function(t){dz(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gz(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dz(e,t,r){return t=function(e){var t=function(e,t){if("object"!==pz(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==pz(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pz(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fz(e){return"string"==typeof e?parseInt(e,10):e}function _z(e,t){var r="".concat(t.cx||e.cx),n=parseInt(r,10),a="".concat(t.cy||e.cy),c=parseInt(a,10);return mz(mz(mz({},t),e),{},{cx:n,cy:c})}function wz(e){return o.createElement(AL,uz({shapeType:"sector",propTransformer:_z},e))}lz(vz,"displayName","Radar"),lz(vz,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!by.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),lz(vz,"getComposedData",(function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,a=e.dataKey,c=e.bandSize,i=r.cx,o=r.cy,s=!1,l=[],h="number"!==r.type&&null!=c?c:0;n.forEach((function(e,n){var c=rV(e,r.dataKey,n),v=rV(e,a),p=r.scale(c)+h,u=Array.isArray(v)?oC(v):v,g=ll(u)?void 0:t.scale(u);Array.isArray(v)&&v.length>=2&&(s=!0),l.push(nz(nz({},RV(i,o,g,p)),{},{name:c,value:v,cx:i,cy:o,radius:g,angle:p,payload:e}))}));var v=[];return s&&l.forEach((function(e){if(Array.isArray(e.value)){var r=JL(e.value),n=ll(r)?void 0:t.scale(r);v.push(nz(nz({},e),{},{radius:n},RV(i,o,n,e.angle)))}else v.push(e)})),{points:l,isRange:s,baseLinePoints:v}}));var bz=["shape","activeShape","activeIndex","cornerRadius"],yz=["value","background"];function xz(e){return xz="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},xz(e)}function Zz(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 Oz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zz(Object(r),!0).forEach((function(t){Cz(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zz(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mz(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Ez(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,Az(n.key),n)}}function Hz(e,t){return Hz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hz(e,t)}function Pz(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=Vz(e);if(t){var a=Vz(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===xz(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jz(e)}(this,r)}}function jz(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vz(e){return Vz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vz(e)}function Cz(e,t,r){return(t=Az(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Az(e){var t=function(e,t){if("object"!==xz(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==xz(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xz(t)?t:String(t)}var Lz=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&&Hz(e,t)}(c,Z);var t,r,n,a=Pz(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Cz(jz(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!1}),Cz(jz(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),_o(t)&&t()})),Cz(jz(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),_o(t)&&t()})),e}return t=c,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,r=e.endAngle;return El(r-t)*Math.min(Math.abs(r-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,r=this.props,n=r.shape,a=r.activeShape,c=r.activeIndex,i=r.cornerRadius,s=Mz(r,bz),l=ih(s);return e.map((function(e,r){var h=r===c,v=Oz(Oz(Oz(Oz({},l),{},{cornerRadius:fz(i)},e),Fl(t.props,e,r)),{},{key:"sector-".concat(r),className:"recharts-radial-bar-sector ".concat(e.className),forceCornerRadius:s.forceCornerRadius,cornerIsExternal:s.cornerIsExternal,isActive:h,option:h?a:n});return o.createElement(wz,v)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,r=t.data,n=t.isAnimationActive,a=t.animationBegin,c=t.animationDuration,i=t.animationEasing,s=t.animationId,l=this.state.prevData;return o.createElement(ib,{begin:a,duration:c,isActive:n,easing:i,from:{t:0},to:{t:1},key:"radialBar-".concat(s),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var n=t.t,a=r.map((function(e,t){var r=l&&l[t];if(r){var a=zl(r.startAngle,e.startAngle),c=zl(r.endAngle,e.endAngle);return Oz(Oz({},e),{},{startAngle:a(n),endAngle:c(n)})}var i=e.endAngle,o=e.startAngle,s=zl(o,i);return Oz(Oz({},e),{},{endAngle:s(n)})}));return o.createElement(_h,null,e.renderSectorsStatically(a))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,r=e.isAnimationActive,n=this.state.prevData;return!(r&&t&&t.length)||n&&kP(n,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,r=this.props.cornerRadius,n=ih(this.props.background);return e.map((function(e,a){e.value;var c=e.background,i=Mz(e,yz);if(!c)return null;var s=Oz(Oz(Oz(Oz(Oz({cornerRadius:fz(r)},i),{},{fill:"#eee"},c),n),Fl(t.props,e,a)),{},{index:a,key:"sector-".concat(a),className:"recharts-radial-bar-background-sector",option:c,isActive:!1});return o.createElement(wz,s)}))}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.data,n=e.className,a=e.background,c=e.isAnimationActive;if(t||!r||!r.length)return null;var i=this.state.isAnimationFinished,s=Ri("recharts-area",n);return o.createElement(_h,{className:s},a&&o.createElement(_h,{className:"recharts-radial-bar-background"},this.renderBackground(r)),o.createElement(_h,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!c||i)&&wC.renderCallByParent(Oz({},this.props),r))}}],n=[{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}}],r&&Ez(t.prototype,r),n&&Ez(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();Cz(Lz,"displayName","RadialBar"),Cz(Lz,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!by.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),Cz(Lz,"getComposedData",(function(e){var t=e.item,r=e.props,n=e.radiusAxis,a=e.radiusAxisTicks,c=e.angleAxis,i=e.angleAxisTicks,o=e.displayedData,s=e.dataKey,l=e.stackedData,h=e.barPosition,v=e.bandSize,p=e.dataStartIndex,u=mV(h,t);if(!u)return null;var g=c.cx,m=c.cy,d=r.layout,f=t.props,_=f.children,w=f.minPointSize,b="radial"===d?c:n,y=l?b.scale.domain():null,x=xV({numericAxis:b}),Z=Jl(_,ix);return{data:o.map((function(e,o){var h,f,_,b,O,M;if(l?h=dV(l[p+o],y):(h=rV(e,s),Array.isArray(h)||(h=[x,h])),"radial"===d){f=yV({axis:n,ticks:a,bandSize:v,offset:u.offset,entry:e,index:o}),O=c.scale(h[1]),b=c.scale(h[0]),_=f+u.size;var E=O-b;if(Math.abs(w)>0&&Math.abs(E)<Math.abs(w))O+=El(E||w)*(Math.abs(w)-Math.abs(E));M={background:{cx:g,cy:m,innerRadius:f,outerRadius:_,startAngle:r.startAngle,endAngle:r.endAngle}}}else{f=n.scale(h[0]),_=n.scale(h[1]),O=(b=yV({axis:c,ticks:i,bandSize:v,offset:u.offset,entry:e,index:o}))+u.size;var H=_-f;if(Math.abs(w)>0&&Math.abs(H)<Math.abs(w))_+=El(H||w)*(Math.abs(w)-Math.abs(H))}return Oz(Oz(Oz(Oz({},e),M),{},{payload:e,value:l?h:h[1],cx:g,cy:m,innerRadius:f,outerRadius:_,startAngle:b,endAngle:O},Z&&Z[o]&&Z[o].props),{},{tooltipPayload:[jV(t,e)],tooltipPosition:RV(g,m,(f+_)/2,(b+O)/2)})})),layout:d}}));var zz=Math.ceil,Bz=Math.max;var kz=function(e,t,r,n){for(var a=-1,c=Bz(zz((t-e)/(r||1)),0),i=Array(c);c--;)i[n?c:++a]=e,e+=r;return i},Sz=Fy,Rz=1/0;var Dz=function(e){return e?(e=Sz(e))===Rz||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},Iz=kz,Tz=Yf,Nz=Dz;var Fz=function(e){return function(t,r,n){return n&&"number"!=typeof n&&Tz(t,r,n)&&(r=n=void 0),t=Nz(t),void 0===r?(r=t,t=0):r=Nz(r),n=void 0===n?t<r?1:-1:Nz(n),Iz(t,r,n,e)}},Qz=zt(Fz());function $z(e){return $z="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},$z(e)}function Yz(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 Uz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yz(Object(r),!0).forEach((function(t){Wz(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yz(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wz(e,t,r){return t=function(e){var t=function(e,t){if("object"!==$z(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==$z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$z(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xz=["Webkit","Moz","O","ms"];function Kz(e){return Kz="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},Kz(e)}function qz(){return qz=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},qz.apply(this,arguments)}function Gz(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 Jz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gz(Object(r),!0).forEach((function(t){cB(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gz(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function eB(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,iB(n.key),n)}}function tB(e,t){return tB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tB(e,t)}function rB(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=aB(e);if(t){var a=aB(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Kz(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nB(e)}(this,r)}}function nB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aB(e){return aB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aB(e)}function cB(e,t,r){return(t=iB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iB(e){var t=function(e,t){if("object"!==Kz(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Kz(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Kz(t)?t:String(t)}var oB=function(e){return e.changedTouches&&!!e.changedTouches.length},sB=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&&tB(e,t)}(c,Z);var t,r,n,a=rB(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),cB(nB(t=a.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),cB(nB(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),cB(nB(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=t.props,r=e.endIndex,n=e.onDragEnd,a=e.startIndex;null==n||n({endIndex:r,startIndex:a})})),t.detachDragEndListener()})),cB(nB(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),cB(nB(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),cB(nB(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),cB(nB(t),"handleSlideDragStart",(function(e){var r=oB(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(nB(t),"startX"),endX:t.handleTravellerDragStart.bind(nB(t),"endX")},t.state={},t}return t=c,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,r=e.endX,n=this.state.scaleValues,a=this.props,i=a.gap,o=a.data.length-1,s=Math.min(t,r),l=Math.max(t,r),h=c.getIndexInRange(n,s),v=c.getIndexInRange(n,l);return{startIndex:h-h%i,endIndex:v===o?o:v-v%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,r=t.data,n=t.tickFormatter,a=t.dataKey,c=rV(r[e],a,e);return _o(n)?n(c,e):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,r=t.slideMoveStartX,n=t.startX,a=t.endX,c=this.props,i=c.x,o=c.width,s=c.travellerWidth,l=c.startIndex,h=c.endIndex,v=c.onChange,p=e.pageX-r;p>0?p=Math.min(p,i+o-s-a,i+o-s-n):p<0&&(p=Math.max(p,i-n,i-a));var u=this.getIndex({startX:n+p,endX:a+p});u.startIndex===l&&u.endIndex===h||!v||v(u),this.setState({startX:n+p,endX:a+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var r=oB(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,r=this.state,n=r.brushMoveStartX,a=r.movingTravellerId,c=r.endX,i=r.startX,o=this.state[a],s=this.props,l=s.x,h=s.width,v=s.travellerWidth,p=s.onChange,u=s.gap,g=s.data,m={startX:this.state.startX,endX:this.state.endX},d=e.pageX-n;d>0?d=Math.min(d,l+h-v-o):d<0&&(d=Math.max(d,l-o)),m[a]=o+d;var f=this.getIndex(m),_=f.startIndex,w=f.endIndex;this.setState((cB(t={},a,o+d),cB(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=g.length-1,("startX"===a&&(c>i?_%u==0:w%u==0)||c<i&&w===e||"endX"===a&&(c>i?w%u==0:_%u==0)||c>i&&w===e)&&p(f))}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var r=this,n=this.state,a=n.scaleValues,c=n.startX,i=n.endX,o=this.state[t],s=a.indexOf(o);if(-1!==s){var l=s+e;if(!(-1===l||l>=a.length)){var h=a[l];"startX"===t&&h>=i||"endX"===t&&h<=c||this.setState(cB({},t,h),(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,a=e.height,c=e.fill,i=e.stroke;return o.createElement("rect",{stroke:i,fill:c,x:t,y:r,width:n,height:a})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,a=e.height,c=e.data,i=e.children,s=e.padding,l=x.only(i);return l?o.cloneElement(l,{x:t,y:r,width:n,height:a,margin:s,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(e,t){var r=this,n=this.props,a=n.y,i=n.travellerWidth,s=n.height,l=n.traveller,h=n.ariaLabel,v=n.data,p=n.startIndex,u=n.endIndex,g=Math.max(e,this.props.x),m=Jz(Jz({},ih(this.props)),{},{x:g,y:a,width:i,height:s}),d=h||"Min value: ".concat(v[p].name,", Max value: ").concat(v[u].name);return o.createElement(_h,{tabIndex:0,role:"slider","aria-label":d,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),r.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){r.setState({isTravellerFocused:!0})},onBlur:function(){r.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},c.renderTraveller(l,m))}},{key:"renderSlide",value:function(e,t){var r=this.props,n=r.y,a=r.height,c=r.stroke,i=r.travellerWidth,s=Math.min(e,t)+i,l=Math.max(Math.abs(t-e)-i,0);return o.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:s,y:n,width:l,height:a})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,r=e.endIndex,n=e.y,a=e.height,c=e.travellerWidth,i=e.stroke,s=this.state,l=s.startX,h=s.endX,v={pointerEvents:"none",fill:i};return o.createElement(_h,{className:"recharts-brush-texts"},o.createElement(Nx,qz({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-5,y:n+a/2},v),this.getTextOfTick(t)),o.createElement(Nx,qz({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+c+5,y:n+a/2},v),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,t=e.data,r=e.className,n=e.children,a=e.x,c=e.y,i=e.width,s=e.height,l=e.alwaysShowText,h=this.state,v=h.startX,p=h.endX,u=h.isTextActive,g=h.isSlideMoving,m=h.isTravellerMoving,d=h.isTravellerFocused;if(!t||!t.length||!Pl(a)||!Pl(c)||!Pl(i)||!Pl(s)||i<=0||s<=0)return null;var f=Ri("recharts-brush",r),_=1===o.Children.count(n),w=function(e,t){if(!e)return null;var r=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),n=Xz.reduce((function(e,n){return Uz(Uz({},e),{},Wz({},n+r,t))}),{});return n[e]=t,n}("userSelect","none");return o.createElement(_h,{className:f,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(v,p),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(p,"endX"),(u||g||m||d||l)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,r=e.y,n=e.width,a=e.height,c=e.stroke,i=Math.floor(r+a/2)-1;return o.createElement(o.Fragment,null,o.createElement("rect",{x:t,y:r,width:n,height:a,fill:c,stroke:"none"}),o.createElement("line",{x1:t+1,y1:i,x2:t+n-1,y2:i,fill:"none",stroke:"#fff"}),o.createElement("line",{x1:t+1,y1:i+2,x2:t+n-1,y2:i+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):c.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var r=e.data,n=e.width,a=e.x,c=e.travellerWidth,i=e.updateId,o=e.startIndex,s=e.endIndex;if(r!==t.prevData||i!==t.prevUpdateId)return Jz({prevData:r,prevTravellerWidth:c,prevUpdateId:i,prevX:a,prevWidth:n},r&&r.length?function(e){var t=e.data,r=e.startIndex,n=e.endIndex,a=e.x,c=e.width,i=e.travellerWidth;if(!t||!t.length)return{};var o=t.length,s=fZ().domain(Qz(0,o)).range([a,a+c-i]),l=s.domain().map((function(e){return s(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(r),endX:s(n),scale:s,scaleValues:l}}({data:r,width:n,x:a,travellerWidth:c,startIndex:o,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(n!==t.prevWidth||a!==t.prevX||c!==t.prevTravellerWidth)){t.scale.range([a,a+n-c]);var l=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:r,prevTravellerWidth:c,prevUpdateId:i,prevX:a,prevWidth:n,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(e,t){for(var r=0,n=e.length-1;n-r>1;){var a=Math.floor((r+n)/2);e[a]>t?n=a:r=a}return t>=e[n]?n:r}}],r&&eB(t.prototype,r),n&&eB(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();cB(sB,"displayName","Brush"),cB(sB,"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 lB=sf;var hB=au,vB=vd,pB=function(e,t){var r;return lB(e,(function(e,n,a){return!(r=t(e,n,a))})),!!r},uB=Di,gB=Yf;var mB=zt((function(e,t,r){var n=uB(e)?hB:pB;return r&&gB(e,t,r)&&(t=void 0),n(e,vB(t))})),dB=function(e,t){var r=e.alwaysShow,n=e.ifOverflow;return r&&(n="extendDomain"),n===t},fB=Cf;var _B=function(e,t,r){"__proto__"==t&&fB?fB(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},wB=_B,bB=cf,yB=vd;var xB=function(e,t){var r={};return t=yB(t),bB(e,(function(e,n,a){wB(r,n,t(e,n,a))})),r},ZB=zt(xB);var OB=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},MB=sf;var EB=OB,HB=function(e,t){var r=!0;return MB(e,(function(e,n,a){return r=!!t(e,n,a)})),r},PB=vd,jB=Di,VB=Yf;var CB=zt((function(e,t,r){var n=jB(e)?EB:HB;return r&&VB(e,t,r)&&(t=void 0),n(e,PB(t))}));function AB(e){return AB="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},AB(e)}var LB=["x","y"];function zB(){return zB=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},zB.apply(this,arguments)}function BB(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 kB(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?BB(Object(r),!0).forEach((function(t){SB(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BB(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function SB(e,t,r){return t=function(e){var t=function(e,t){if("object"!==AB(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==AB(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===AB(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RB(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function DB(e,t){var r=e.x,n=e.y,a=RB(e,LB),c="".concat(r),i=parseInt(c,10),o="".concat(n),s=parseInt(o,10),l="".concat(t.height||a.height),h=parseInt(l,10),v="".concat(t.width||a.width),p=parseInt(v,10);return kB(kB(kB(kB(kB({},t),a),i?{x:i}:{}),s?{y:s}:{}),{},{height:h,width:p,name:t.name,radius:t.radius})}function IB(e){return o.createElement(AL,zB({shapeType:"rectangle",propTransformer:DB,activeClassName:"recharts-active-bar"},e))}var TB=["value","background"];function NB(e){return NB="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},NB(e)}function FB(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function QB(){return QB=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},QB.apply(this,arguments)}function $B(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 YB(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$B(Object(r),!0).forEach((function(t){GB(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function UB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JB(n.key),n)}}function WB(e,t){return WB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WB(e,t)}function XB(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=qB(e);if(t){var a=qB(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===NB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return KB(e)}(this,r)}}function KB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qB(e){return qB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qB(e)}function GB(e,t,r){return(t=JB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JB(e){var t=function(e,t){if("object"!==NB(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==NB(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===NB(t)?t:String(t)}var ek=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&&WB(e,t)}(c,Z);var t,r,n,a=XB(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return GB(KB(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!1}),GB(KB(e),"id",Cl("recharts-bar-")),GB(KB(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),GB(KB(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return t=c,r=[{key:"renderRectanglesStatically",value:function(e){var t=this,r=this.props,n=r.shape,a=r.dataKey,c=r.activeIndex,i=r.activeBar,s=ih(this.props);return e&&e.map((function(e,r){var l=r===c,h=l?i:n,v=YB(YB(YB({},s),e),{},{isActive:l,option:h,index:r,dataKey:a,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return o.createElement(_h,QB({className:"recharts-bar-rectangle"},Fl(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)}),o.createElement(IB,v))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,r=t.data,n=t.layout,a=t.isAnimationActive,c=t.animationBegin,i=t.animationDuration,s=t.animationEasing,l=t.animationId,h=this.state.prevData;return o.createElement(ib,{begin:c,duration:i,isActive:a,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var a=t.t,c=r.map((function(e,t){var r=h&&h[t];if(r){var c=zl(r.x,e.x),i=zl(r.y,e.y),o=zl(r.width,e.width),s=zl(r.height,e.height);return YB(YB({},e),{},{x:c(a),y:i(a),width:o(a),height:s(a)})}if("horizontal"===n){var l=zl(0,e.height)(a);return YB(YB({},e),{},{y:e.y+e.height-l,height:l})}var v=zl(0,e.width)(a);return YB(YB({},e),{},{width:v})}));return o.createElement(_h,null,e.renderRectanglesStatically(c))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,r=e.isAnimationActive,n=this.state.prevData;return!(r&&t&&t.length)||n&&kP(n,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props,r=t.data,n=t.dataKey,a=t.activeIndex,c=ih(this.props.background);return r.map((function(t,r){t.value;var i=t.background,s=FB(t,TB);if(!i)return null;var l=YB(YB(YB(YB(YB({},s),{},{fill:"#eee"},i),c),Fl(e.props,t,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:n,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return o.createElement(IB,QB({option:e.props.background,isActive:r===a},l))}))}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,a=r.xAxis,c=r.yAxis,i=r.layout,s=Jl(r.children,Qj);if(!s)return null;var l="vertical"===i?n[0].height/2:n[0].width/2,h=function(e,t){var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:rV(e,t)}},v={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(_h,v,s.map((function(e){return o.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:n,xAxis:a,yAxis:c,layout:i,offset:l,dataPointFormatter:h})})))}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.data,n=e.className,a=e.xAxis,c=e.yAxis,i=e.left,s=e.top,l=e.width,h=e.height,v=e.isAnimationActive,p=e.background,u=e.id;if(t||!r||!r.length)return null;var g=this.state.isAnimationFinished,m=Ri("recharts-bar",n),d=a&&a.allowDataOverflow,f=c&&c.allowDataOverflow,_=d||f,w=ll(u)?this.id:u;return o.createElement(_h,{className:m},d||f?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(w)},o.createElement("rect",{x:d?i:i-l/2,y:f?s:s-h/2,width:d?l:2*l,height:f?h:2*h}))):null,o.createElement(_h,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(w,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,w),(!v||g)&&wC.renderCallByParent(this.props,r))}}],n=[{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}}],r&&UB(t.prototype,r),n&&UB(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();function tk(e){return tk="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},tk(e)}function rk(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,ik(n.key),n)}}function nk(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?nk(Object(r),!0).forEach((function(t){ck(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ck(e,t,r){return(t=ik(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ik(e){var t=function(e,t){if("object"!==tk(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==tk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tk(t)?t:String(t)}GB(ek,"displayName","Bar"),GB(ek,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!by.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),GB(ek,"getComposedData",(function(e){var t=e.props,r=e.item,n=e.barPosition,a=e.bandSize,c=e.xAxis,i=e.yAxis,o=e.xAxisTicks,s=e.yAxisTicks,l=e.stackedData,h=e.dataStartIndex,v=e.displayedData,p=e.offset,u=mV(n,r);if(!u)return null;var g=t.layout,m=r.props,d=m.dataKey,f=m.children,_=m.minPointSize,w="horizontal"===g?i:c,b=l?w.scale.domain():null,y=xV({numericAxis:w}),x=Jl(f,ix),Z=v.map((function(e,t){var n,v,p,m,f,w;if(l?n=dV(l[h+t],b):(n=rV(e,d),Array.isArray(n)||(n=[y,n])),"horizontal"===g){var Z,O=[i.scale(n[0]),i.scale(n[1])],M=O[0],E=O[1];v=yV({axis:c,ticks:o,bandSize:a,offset:u.offset,entry:e,index:t}),p=null!==(Z=null!=E?E:M)&&void 0!==Z?Z:void 0,m=u.size;var H=M-E;if(f=Number.isNaN(H)?0:H,w={x:v,y:i.y,width:m,height:i.height},Math.abs(_)>0&&Math.abs(f)<Math.abs(_)){var P=El(f||_)*(Math.abs(_)-Math.abs(f));p-=P,f+=P}}else{var j=[c.scale(n[0]),c.scale(n[1])],V=j[0],C=j[1];if(v=V,p=yV({axis:i,ticks:s,bandSize:a,offset:u.offset,entry:e,index:t}),m=C-V,f=u.size,w={x:c.x,y:p,width:c.width,height:f},Math.abs(_)>0&&Math.abs(m)<Math.abs(_))m+=El(m||_)*(Math.abs(_)-Math.abs(m))}return YB(YB(YB({},e),{},{x:v,y:p,width:m,height:f,value:l?n:n[1],payload:e,background:w},x&&x[t]&&x[t].props),{},{tooltipPayload:[jV(r,e)],tooltipPosition:{x:v+m/2,y:p+f/2}})}));return YB({data:Z,layout:g},p)}));var ok=function(e,t,r,n,a){var c=e.width,i=e.height,o=e.layout,s=e.children,l=Object.keys(t),h={left:r.left,leftMirror:r.left,right:c-r.right,rightMirror:c-r.right,top:r.top,topMirror:r.top,bottom:i-r.bottom,bottomMirror:i-r.bottom},v=!!eh(s,ek);return l.reduce((function(c,i){var s,l,p,u,g,m=t[i],d=m.orientation,f=m.domain,_=m.padding,w=void 0===_?{}:_,b=m.mirror,y=m.reversed,x="".concat(d).concat(b?"Mirror":"");if("number"===m.type&&("gap"===m.padding||"no-gap"===m.padding)){var Z=f[1]-f[0],O=1/0,M=m.categoricalDomain.sort();M.forEach((function(e,t){t>0&&(O=Math.min((e||0)-(M[t-1]||0),O))}));var E=O/Z,H="vertical"===m.layout?r.height:r.width;if("gap"===m.padding&&(s=E*H/2),"no-gap"===m.padding){var P=Al(e.barCategoryGap,E*H),j=E*H/2;s=j-P-(j-P)/H*P}}l="xAxis"===n?[r.left+(w.left||0)+(s||0),r.left+r.width-(w.right||0)-(s||0)]:"yAxis"===n?"horizontal"===o?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(s||0),r.top+r.height-(w.bottom||0)-(s||0)]:m.range,y&&(l=[l[1],l[0]]);var V=pV(m,a,v),C=V.scale,A=V.realScaleType;C.domain(f).range(l),gV(C);var L=wV(C,ak(ak({},m),{},{realScaleType:A}));"xAxis"===n?(g="top"===d&&!b||"bottom"===d&&b,p=r.left,u=h[x]-g*m.height):"yAxis"===n&&(g="left"===d&&!b||"right"===d&&b,p=h[x]-g*m.width,u=r.top);var z=ak(ak(ak({},m),L),{},{realScaleType:A,x:p,y:u,scale:C,width:"xAxis"===n?r.width:m.width,height:"yAxis"===n?r.height:m.height});return z.bandSize=HV(z,L),m.hide||"xAxis"!==n?m.hide||(h[x]+=(g?-1:1)*z.width):h[x]+=(g?-1:1)*z.height,ak(ak({},c),{},ck({},i,z))}),{})},sk=function(e,t){var r=e.x,n=e.y,a=t.x,c=t.y;return{x:Math.min(r,a),y:Math.min(n,c),width:Math.abs(a-r),height:Math.abs(c-n)}},lk=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}var t,r,n;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 a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a;case"end":var c=this.bandwidth?this.bandwidth():0;return this.scale(e)+c}if(r){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}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&&rk(t.prototype,r),n&&rk(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();ck(lk,"EPS",1e-4);var hk=function(e){var t=Object.keys(e).reduce((function(t,r){return ak(ak({},t),{},ck({},r,lk.create(e[r])))}),{});return ak(ak({},t),{},{apply:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,a=r.position;return ZB(e,(function(e,r){return t[r].apply(e,{bandAware:n,position:a})}))},isInRange:function(e){return CB(e,(function(e,r){return t[r].isInRange(e)}))}})};var vk=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),a=n*Math.PI/180,c=Math.atan(r/t),i=a>c&&a<Math.PI-c?r/Math.sin(a):t/Math.cos(a);return Math.abs(i)};function pk(e){return pk="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},pk(e)}function uk(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 gk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uk(Object(r),!0).forEach((function(t){mk(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function mk(e,t,r){return t=function(e){var t=function(e,t){if("object"!==pk(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==pk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pk(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dk(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fk(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 fk(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 fk(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 _k(){return _k=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},_k.apply(this,arguments)}function wk(e){var t=e.x,r=e.y,n=e.segment,a=e.xAxis,c=e.yAxis,i=e.shape,s=e.className,l=e.alwaysShow,h=e.clipPathId;bh(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=function(e,t,r,n,a){var c=a.viewBox,i=c.x,o=c.y,s=c.width,l=c.height,h=a.position;if(r){var v=a.y,p=a.yAxis.orientation,u=e.y.apply(v,{position:h});if(dB(a,"discard")&&!e.y.isInRange(u))return null;var g=[{x:i+s,y:u},{x:i,y:u}];return"left"===p?g.reverse():g}if(t){var m=a.x,d=a.xAxis.orientation,f=e.x.apply(m,{position:h});if(dB(a,"discard")&&!e.x.isInRange(f))return null;var _=[{x:f,y:o+l},{x:f,y:o}];return"top"===d?_.reverse():_}if(n){var w=a.segment.map((function(t){return e.apply(t,{position:h})}));return dB(a,"discard")&&mB(w,(function(t){return!e.isInRange(t)}))?null:w}return null}(hk({x:a.scale,y:c.scale}),jl(t),jl(r),n&&2===n.length,e);if(!v)return null;var p=dk(v,2),u=p[0],g=u.x,m=u.y,d=p[1],f=d.x,_=d.y,w=gk(gk({clipPath:dB(e,"hidden")?"url(#".concat(h,")"):void 0},ih(e,!0)),{},{x1:g,y1:m,x2:f,y2:_});return o.createElement(_h,{className:Ri("recharts-reference-line",s)},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement("line",_k({},t,{className:"recharts-reference-line-line"}))}(i,w),aC.renderCallByParent(e,function(e){var t=e.x1,r=e.y1,n=e.x2,a=e.y2;return sk({x:t,y:r},{x:n,y:a})}({x1:g,y1:m,x2:f,y2:_})))}function bk(e){return bk="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},bk(e)}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 xk(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 Zk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xk(Object(r),!0).forEach((function(t){Ok(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ok(e,t,r){return t=function(e){var t=function(e,t){if("object"!==bk(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==bk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bk(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}wk.displayName="ReferenceLine",wk.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function Mk(e){var t=e.x,r=e.y,n=e.r,a=e.alwaysShow,c=e.clipPathId,i=jl(t),s=jl(r);if(bh(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!i||!s)return null;var l=function(e){var t=e.x,r=e.y,n=e.xAxis,a=e.yAxis,c=hk({x:n.scale,y:a.scale}),i=c.apply({x:t,y:r},{bandAware:!0});return dB(e,"discard")&&!c.isInRange(i)?null:i}(e);if(!l)return null;var h=l.x,v=l.y,p=e.shape,u=e.className,g=Zk(Zk({clipPath:dB(e,"hidden")?"url(#".concat(c,")"):void 0},ih(e,!0)),{},{cx:h,cy:v});return o.createElement(_h,{className:Ri("recharts-reference-dot",u)},Mk.renderDot(p,g),aC.renderCallByParent(e,{x:h-n,y:v-n,width:2*n,height:2*n}))}function Ek(e){return Ek="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},Ek(e)}function Hk(){return Hk=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},Hk.apply(this,arguments)}function Pk(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 jk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pk(Object(r),!0).forEach((function(t){Vk(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vk(e,t,r){return t=function(e){var t=function(e,t){if("object"!==Ek(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ek(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ek(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Mk.displayName="ReferenceDot",Mk.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},Mk.renderDot=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(iA,yk({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};function Ck(e){var t=e.x1,r=e.x2,n=e.y1,a=e.y2,c=e.className,i=e.alwaysShow,s=e.clipPathId;bh(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=jl(t),h=jl(r),v=jl(n),p=jl(a),u=e.shape;if(!(l||h||v||p||u))return null;var g=function(e,t,r,n,a){var c=a.x1,i=a.x2,o=a.y1,s=a.y2,l=a.xAxis,h=a.yAxis;if(!l||!h)return null;var v=hk({x:l.scale,y:h.scale}),p={x:e?v.x.apply(c,{position:"start"}):v.x.rangeMin,y:r?v.y.apply(o,{position:"start"}):v.y.rangeMin},u={x:t?v.x.apply(i,{position:"end"}):v.x.rangeMax,y:n?v.y.apply(s,{position:"end"}):v.y.rangeMax};return!dB(a,"discard")||v.isInRange(p)&&v.isInRange(u)?sk(p,u):null}(l,h,v,p,e);if(!g&&!u)return null;var m=dB(e,"hidden")?"url(#".concat(s,")"):void 0;return o.createElement(_h,{className:Ri("recharts-reference-area",c)},Ck.renderRect(u,jk(jk({clipPath:m},ih(e,!0)),g)),aC.renderCallByParent(e,g))}function Ak(e,t,r){if(t<1)return[];if(1===t&&void 0===r)return e;for(var n=[],a=0;a<e.length;a+=t){if(void 0!==r&&!0!==r(e[a]))return;n.push(e[a])}return n}function Lk(e,t,r,n,a){if(e*t<e*n||e*t>e*a)return!1;var c=r();return e*(t-e*c/2-n)>=0&&e*(t+e*c/2-a)<=0}function zk(e){return zk="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},zk(e)}function Bk(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 kk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bk(Object(r),!0).forEach((function(t){Sk(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Sk(e,t,r){return t=function(e){var t=function(e,t){if("object"!==zk(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==zk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zk(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rk(e,t,r){var n=e.tick,a=e.ticks,c=e.viewBox,i=e.minTickGap,o=e.orientation,s=e.interval,l=e.tickFormatter,h=e.unit,v=e.angle;if(!a||!a.length||!n)return[];if(Pl(s)||by.isSsr)return function(e,t){return Ak(e,t+1)}(a,"number"==typeof s&&Pl(s)?s:0);var p=[],u="top"===o||"bottom"===o?"width":"height",g=h&&"width"===u?gx(h,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(e,n){var a=_o(l)?l(e.value,n):e.value;return"width"===u?function(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return vk(n,r)}(gx(a,{fontSize:t,letterSpacing:r}),g,v):gx(a,{fontSize:t,letterSpacing:r})[u]},d=a.length>=2?El(a[1].coordinate-a[0].coordinate):1,f=function(e,t,r){var n="width"===r,a=e.x,c=e.y,i=e.width,o=e.height;return 1===t?{start:n?a:c,end:n?a+i:c+o}:{start:n?a+i:c+o,end:n?a:c}}(c,d,u);return"equidistantPreserveStart"===s?function(e,t,r,n,a){for(var c,i=(n||[]).slice(),o=t.start,s=t.end,l=0,h=1,v=o,p=function(){var t=null==n?void 0:n[l];if(void 0===t)return{v:Ak(n,h)};var c,i=l,p=function(){return void 0===c&&(c=r(t,i)),c},u=t.coordinate,g=0===l||Lk(e,u,p,v,s);g||(l=0,v=o,h+=1),g&&(v=u+e*(p()/2+a),l+=h)};h<=i.length;)if(c=p())return c.v;return[]}(d,f,m,a,i):(p="preserveStart"===s||"preserveStartEnd"===s?function(e,t,r,n,a,c){var i=(n||[]).slice(),o=i.length,s=t.start,l=t.end;if(c){var h=n[o-1],v=r(h,o-1),p=e*(h.coordinate+e*v/2-l);i[o-1]=h=kk(kk({},h),{},{tickCoord:p>0?h.coordinate-p*e:h.coordinate}),Lk(e,h.tickCoord,(function(){return v}),s,l)&&(l=h.tickCoord-e*(v/2+a),i[o-1]=kk(kk({},h),{},{isShow:!0}))}for(var u=c?o-1:o,g=function(t){var n,c=i[t],o=function(){return void 0===n&&(n=r(c,t)),n};if(0===t){var h=e*(c.coordinate-e*o()/2-s);i[t]=c=kk(kk({},c),{},{tickCoord:h<0?c.coordinate-h*e:c.coordinate})}else i[t]=c=kk(kk({},c),{},{tickCoord:c.coordinate});Lk(e,c.tickCoord,o,s,l)&&(s=c.tickCoord+e*(o()/2+a),i[t]=kk(kk({},c),{},{isShow:!0}))},m=0;m<u;m++)g(m);return i}(d,f,m,a,i,"preserveStartEnd"===s):function(e,t,r,n,a){for(var c=(n||[]).slice(),i=c.length,o=t.start,s=t.end,l=function(t){var n,l=c[t],h=function(){return void 0===n&&(n=r(l,t)),n};if(t===i-1){var v=e*(l.coordinate+e*h()/2-s);c[t]=l=kk(kk({},l),{},{tickCoord:v>0?l.coordinate-v*e:l.coordinate})}else c[t]=l=kk(kk({},l),{},{tickCoord:l.coordinate});Lk(e,l.tickCoord,h,o,s)&&(s=l.tickCoord-e*(h()/2+a),c[t]=kk(kk({},l),{},{isShow:!0}))},h=i-1;h>=0;h--)l(h);return c}(d,f,m,a,i),p.filter((function(e){return e.isShow})))}Ck.displayName="ReferenceArea",Ck.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},Ck.renderRect=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(KC,Hk({},t,{className:"recharts-reference-area-rect"}))};var Dk=["viewBox"],Ik=["viewBox"],Tk=["ticks"];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 Fk(){return Fk=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},Fk.apply(this,arguments)}function Qk(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?Qk(Object(r),!0).forEach((function(t){qk(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yk(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Uk(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,Gk(n.key),n)}}function Wk(e,t){return Wk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wk(e,t)}function Xk(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=Kk(e);if(t){var a=Kk(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Nk(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)}(this,r)}}function Kk(e){return Kk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kk(e)}function qk(e,t,r){return(t=Gk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gk(e){var t=function(e,t){if("object"!==Nk(e)||null===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:String(t)}var Jk=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&&Wk(e,t)}(c,M);var t,r,n,a=Xk(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).state={fontSize:"",letterSpacing:""},t}return t=c,r=[{key:"shouldComponentUpdate",value:function(e,t){var r=e.viewBox,n=Yk(e,Dk),a=this.props,c=a.viewBox,i=Yk(a,Ik);return!kl(r,c)||!kl(n,i)||!kl(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,a,c,i,o=this.props,s=o.x,l=o.y,h=o.width,v=o.height,p=o.orientation,u=o.tickSize,g=o.mirror,m=o.tickMargin,d=g?-1:1,f=e.tickSize||u,_=Pl(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=r=e.coordinate,i=(n=(a=l+ +!g*v)-d*f)-d*m,c=_;break;case"left":n=a=e.coordinate,c=(t=(r=s+ +!g*h)-d*f)-d*m,i=_;break;case"right":n=a=e.coordinate,c=(t=(r=s+ +g*h)+d*f)+d*m,i=_;break;default:t=r=e.coordinate,i=(n=(a=l+ +g*v)+d*f)+d*m,c=_}return{line:{x1:t,y1:n,x2:r,y2:a},tick:{x:c,y:i}}}},{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,a=e.height,c=e.orientation,i=e.mirror,s=e.axisLine,l=$k($k($k({},ih(this.props)),ih(s)),{},{fill:"none"});if("top"===c||"bottom"===c){var h=+("top"===c&&!i||"bottom"===c&&i);l=$k($k({},l),{},{x1:t,y1:r+h*a,x2:t+n,y2:r+h*a})}else{var v=+("left"===c&&!i||"right"===c&&i);l=$k($k({},l),{},{x1:t+v*n,y1:r,x2:t+v*n,y2:r+a})}return o.createElement("line",Fk({},l,{className:Ri("recharts-cartesian-axis-line",sl(s,"className"))}))}},{key:"renderTicks",value:function(e,t,r){var n=this,a=this.props,i=a.tickLine,s=a.stroke,l=a.tick,h=a.tickFormatter,v=a.unit,p=Rk($k($k({},this.props),{},{ticks:e}),t,r),u=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),m=ih(this.props),d=ih(l),f=$k($k({},m),{},{fill:"none"},ih(i)),_=p.map((function(e,t){var r=n.getTickLineCoord(e),a=r.line,_=r.tick,w=$k($k($k($k({textAnchor:u,verticalAnchor:g},m),{},{stroke:"none",fill:s},d),_),{},{index:t,payload:e,visibleTicksCount:p.length,tickFormatter:h});return o.createElement(_h,Fk({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},Fl(n.props,e,t)),i&&o.createElement("line",Fk({},f,a,{className:Ri("recharts-cartesian-axis-tick-line",sl(i,"className"))})),l&&c.renderTickItem(l,w,"".concat(_o(h)?h(e.value,t):e.value).concat(v||"")))}));return o.createElement("g",{className:"recharts-cartesian-axis-ticks"},_)}},{key:"render",value:function(){var e=this,t=this.props,r=t.axisLine,n=t.width,a=t.height,c=t.ticksGenerator,i=t.className;if(t.hide)return null;var s=this.props,l=s.ticks,h=Yk(s,Tk),v=l;return _o(c)&&(v=l&&l.length>0?c(this.props):c(h)),n<=0||a<=0||!v||!v.length?null:o.createElement(_h,{className:Ri("recharts-cartesian-axis",i),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),aC.renderCallByParent(this.props))}}],n=[{key:"renderTickItem",value:function(e,t,r){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(Nx,Fk({},t,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&Uk(t.prototype,r),n&&Uk(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();qk(Jk,"displayName","CartesianAxis"),qk(Jk,"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 eS=["x1","y1","x2","y2","key"],tS=["offset"];function rS(e){return rS="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},rS(e)}function nS(){return nS=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},nS.apply(this,arguments)}function aS(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function cS(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 iS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cS(Object(r),!0).forEach((function(t){vS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cS(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oS(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,pS(n.key),n)}}function sS(e,t){return sS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sS(e,t)}function lS(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=hS(e);if(t){var a=hS(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===rS(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)}(this,r)}}function hS(e){return hS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hS(e)}function vS(e,t,r){return(t=pS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pS(e){var t=function(e,t){if("object"!==rS(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==rS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rS(t)?t:String(t)}var uS=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&&sS(e,t)}(c,Z);var t,r,n,a=lS(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,r=[{key:"renderHorizontal",value:function(e){var t=this,r=this.props,n=r.x,a=r.width,i=r.horizontal;if(!e||!e.length)return null;var s=e.map((function(e,r){var o=iS(iS({},t.props),{},{x1:n,y1:e,x2:n+a,y2:e,key:"line-".concat(r),index:r});return c.renderLineItem(i,o)}));return o.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}},{key:"renderVertical",value:function(e){var t=this,r=this.props,n=r.y,a=r.height,i=r.vertical;if(!e||!e.length)return null;var s=e.map((function(e,r){var o=iS(iS({},t.props),{},{x1:e,y1:n,x2:e,y2:n+a,key:"line-".concat(r),index:r});return c.renderLineItem(i,o)}));return o.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var r=this.props,n=r.fillOpacity,a=r.x,c=r.y,i=r.width,s=r.height,l=e.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==l[0]&&l.unshift(0);var h=l.map((function(e,r){var h=l[r+1]?l[r+1]-e:a+i-e;if(h<=0)return null;var v=r%t.length;return o.createElement("rect",{key:"react-".concat(r),x:e,y:c,width:h,height:s,stroke:"none",fill:t[v],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var r=this.props,n=r.fillOpacity,a=r.x,c=r.y,i=r.width,s=r.height,l=e.map((function(e){return Math.round(e+c-c)})).sort((function(e,t){return e-t}));c!==l[0]&&l.unshift(0);var h=l.map((function(e,r){var h=l[r+1]?l[r+1]-e:c+s-e;if(h<=0)return null;var v=r%t.length;return o.createElement("rect",{key:"react-".concat(r),y:e,x:a,height:h,width:i,stroke:"none",fill:t[v],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,r=t.fillOpacity,n=t.x,a=t.y,c=t.width,i=t.height;return o.createElement("rect",{x:n,y:a,width:c,height:i,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,a=e.height,c=e.horizontal,i=e.vertical,s=e.horizontalCoordinatesGenerator,l=e.verticalCoordinatesGenerator,h=e.xAxis,v=e.yAxis,p=e.offset,u=e.chartWidth,g=e.chartHeight,m=e.syncWithTicks,d=e.horizontalValues,f=e.verticalValues;if(!Pl(n)||n<=0||!Pl(a)||a<=0||!Pl(t)||t!==+t||!Pl(r)||r!==+r)return null;var _=this.props,w=_.horizontalPoints,b=_.verticalPoints;if((!w||!w.length)&&_o(s)){var y=d&&d.length;w=s({yAxis:v?iS(iS({},v),{},{ticks:y?d:v.ticks}):void 0,width:u,height:g,offset:p},!!y||m)}if((!b||!b.length)&&_o(l)){var x=f&&f.length;b=l({xAxis:h?iS(iS({},h),{},{ticks:x?f:h.ticks}):void 0,width:u,height:g,offset:p},!!x||m)}return o.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),c&&this.renderHorizontal(w),i&&this.renderVertical(b),c&&this.renderHorizontalStripes(w),i&&this.renderVerticalStripes(b))}}],n=[{key:"renderLineItem",value:function(e,t){var r;if(o.isValidElement(e))r=o.cloneElement(e,t);else if(_o(e))r=e(t);else{var n=t.x1,a=t.y1,c=t.x2,i=t.y2,s=t.key,l=aS(t,eS),h=ih(l);h.offset;var v=aS(h,tS);r=o.createElement("line",nS({},v,{x1:n,y1:a,x2:c,y2:i,fill:"none",key:s}))}return r}}],r&&oS(t.prototype,r),n&&oS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();vS(uS,"displayName","CartesianGrid"),vS(uS,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var gS=["type","layout","connectNulls","ref"];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)}function dS(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function fS(){return fS=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},fS.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 wS(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){HS(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 bS(e){return function(e){if(Array.isArray(e))return yS(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 yS(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 yS(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 yS(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 xS(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,PS(n.key),n)}}function ZS(e,t){return ZS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZS(e,t)}function OS(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=ES(e);if(t){var a=ES(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===mS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return MS(e)}(this,r)}}function MS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ES(e){return ES=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ES(e)}function HS(e,t,r){return(t=PS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PS(e){var t=function(e,t){if("object"!==mS(e)||null===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:String(t)}var jS=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&&ZS(e,t)}(c,Z);var t,r,n,a=OS(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return HS(MS(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!0,totalLength:0}),HS(MS(e),"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),HS(MS(e),"getStrokeDasharray",(function(t,r,n){var a=n.reduce((function(e,t){return e+t}));if(!a)return e.generateSimpleStrokeDasharray(r,t);for(var i=Math.floor(t/a),o=t%a,s=r-t,l=[],h=0,v=0;h<n.length;v+=n[h],++h)if(v+n[h]>o){l=[].concat(bS(n.slice(0,h)),[o-v]);break}var p=l.length%2==0?[0,s]:[s];return[].concat(bS(c.repeat(n,i)),bS(l),p).map((function(e){return"".concat(e,"px")})).join(", ")})),HS(MS(e),"id",Cl("recharts-line-")),HS(MS(e),"pathRef",(function(t){e.mainCurve=t})),HS(MS(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),HS(MS(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return t=c,r=[{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,a=r.xAxis,c=r.yAxis,i=r.layout,s=Jl(r.children,Qj);if(!s)return null;var l=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:rV(e.payload,t)}},h={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(_h,h,s.map((function(e){return o.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:n,xAxis:a,yAxis:c,layout:i,dataPointFormatter:l})})))}},{key:"renderDots",value:function(e,t,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,a=n.dot,i=n.points,s=n.dataKey,l=ih(this.props),h=ih(a,!0),v=i.map((function(e,t){var r=wS(wS(wS({key:"dot-".concat(t),r:3},l),h),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:t,payload:e.payload});return c.renderDotItem(a,r)})),p={clipPath:e?"url(#clipPath-".concat(t?"":"dots-").concat(r,")"):null};return o.createElement(_h,fS({className:"recharts-line-dots",key:"dots"},p),v)}},{key:"renderCurveStatically",value:function(e,t,r,n){var a=this.props,c=a.type,i=a.layout,s=a.connectNulls;a.ref;var l=dS(a,gS),h=wS(wS(wS({},ih(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(r,")"):null,points:e},n),{},{type:c,layout:i,connectNulls:s});return o.createElement(DC,fS({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var r=this,n=this.props,a=n.points,c=n.strokeDasharray,i=n.isAnimationActive,s=n.animationBegin,l=n.animationDuration,h=n.animationEasing,v=n.animationId,p=n.animateNewValues,u=n.width,g=n.height,m=this.state,d=m.prevPoints,f=m.totalLength;return o.createElement(ib,{begin:s,duration:l,isActive:i,easing:h,from:{t:0},to:{t:1},key:"line-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t;if(d){var o=d.length/a.length,s=a.map((function(e,t){var r=Math.floor(t*o);if(d[r]){var n=d[r],a=zl(n.x,e.x),c=zl(n.y,e.y);return wS(wS({},e),{},{x:a(i),y:c(i)})}if(p){var s=zl(2*u,e.x),l=zl(g/2,e.y);return wS(wS({},e),{},{x:s(i),y:l(i)})}return wS(wS({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(s,e,t)}var l,h=zl(0,f)(i);if(c){var v="".concat(c).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=r.getStrokeDasharray(h,f,v)}else l=r.generateSimpleStrokeDasharray(f,h);return r.renderCurveStatically(a,e,t,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(e,t){var r=this.props,n=r.points,a=r.isAnimationActive,c=this.state,i=c.prevPoints,o=c.totalLength;return a&&n&&n.length&&(!i&&o>0||!kP(i,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,a=t.points,c=t.className,i=t.xAxis,s=t.yAxis,l=t.top,h=t.left,v=t.width,p=t.height,u=t.isAnimationActive,g=t.id;if(r||!a||!a.length)return null;var m=this.state.isAnimationFinished,d=1===a.length,f=Ri("recharts-line",c),_=i&&i.allowDataOverflow,w=s&&s.allowDataOverflow,b=_||w,y=ll(g)?this.id:g,x=null!==(e=ih(n))&&void 0!==e?e:{r:3,strokeWidth:2},Z=x.r,O=void 0===Z?3:Z,M=x.strokeWidth,E=void 0===M?2:M,H=(ah(n)?n:{}).clipDot,P=void 0===H||H,j=2*O+E;return o.createElement(_h,{className:f},_||w?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(y)},o.createElement("rect",{x:_?h:h-v/2,y:w?l:l-p/2,width:_?v:2*v,height:w?p:2*p})),!P&&o.createElement("clipPath",{id:"clipPath-dots-".concat(y)},o.createElement("rect",{x:h-j/2,y:l-j/2,width:v+j,height:p+j}))):null,!d&&this.renderCurve(b,y),this.renderErrorBar(b,y),(d||n)&&this.renderDots(b,P,y),(!u||m)&&wC.renderCallByParent(this.props,a))}}],n=[{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(bS(e),[0]):e,n=[],a=0;a<t;++a)n=[].concat(bS(n),bS(r));return n}},{key:"renderDotItem",value:function(e,t){var r;if(o.isValidElement(e))r=o.cloneElement(e,t);else if(_o(e))r=e(t);else{var n=Ri("recharts-line-dot",e?e.className:"");r=o.createElement(iA,fS({},t,{className:n}))}return r}}],r&&xS(t.prototype,r),n&&xS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();HS(jS,"displayName","Line"),HS(jS,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!by.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),HS(jS,"getComposedData",(function(e){var t=e.props,r=e.xAxis,n=e.yAxis,a=e.xAxisTicks,c=e.yAxisTicks,i=e.dataKey,o=e.bandSize,s=e.displayedData,l=e.offset,h=t.layout;return wS({points:s.map((function(e,t){var s=rV(e,i);return"horizontal"===h?{x:bV({axis:r,ticks:a,bandSize:o,entry:e,index:t}),y:ll(s)?null:n.scale(s),value:s,payload:e}:{x:ll(s)?null:r.scale(s),y:bV({axis:n,ticks:c,bandSize:o,entry:e,index:t}),value:s,payload:e}})),layout:h},l)}));var VS,CS=["layout","type","stroke","connectNulls","isRange","ref"];function AS(e){return AS="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},AS(e)}function LS(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}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 BS(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 kS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?BS(Object(r),!0).forEach((function(t){NS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BS(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function SS(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,FS(n.key),n)}}function RS(e,t){return RS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RS(e,t)}function DS(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=TS(e);if(t){var a=TS(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===AS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return IS(e)}(this,r)}}function IS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TS(e){return TS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},TS(e)}function NS(e,t,r){return(t=FS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FS(e){var t=function(e,t){if("object"!==AS(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==AS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===AS(t)?t:String(t)}var QS=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&&RS(e,t)}(c,Z);var t,r,n,a=DS(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return NS(IS(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!0}),NS(IS(e),"id",Cl("recharts-area-")),NS(IS(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),_o(t)&&t()})),NS(IS(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),_o(t)&&t()})),e}return t=c,r=[{key:"renderDots",value:function(e,t,r){var n=this.props.isAnimationActive,a=this.state.isAnimationFinished;if(n&&!a)return null;var i=this.props,s=i.dot,l=i.points,h=i.dataKey,v=ih(this.props),p=ih(s,!0),u=l.map((function(e,t){var r=kS(kS(kS({key:"dot-".concat(t),r:3},v),p),{},{dataKey:h,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return c.renderDotItem(s,r)})),g={clipPath:e?"url(#clipPath-".concat(t?"":"dots-").concat(r,")"):null};return o.createElement(_h,zS({className:"recharts-area-dots"},g),u)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,r=t.baseLine,n=t.points,a=t.strokeWidth,c=n[0].x,i=n[n.length-1].x,s=e*Math.abs(c-i),l=bP(n.map((function(e){return e.y||0})));return Pl(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(bP(r.map((function(e){return e.y||0}))),l)),Pl(l)?o.createElement("rect",{x:c<i?c:c-s,y:0,width:s,height:Math.floor(l+(a?parseInt("".concat(a),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,r=t.baseLine,n=t.points,a=t.strokeWidth,c=n[0].y,i=n[n.length-1].y,s=e*Math.abs(c-i),l=bP(n.map((function(e){return e.x||0})));return Pl(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(bP(r.map((function(e){return e.x||0}))),l)),Pl(l)?o.createElement("rect",{x:0,y:c<i?c:c-s,width:l+(a?parseInt("".concat(a),10):1),height:Math.floor(s)}):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 a=this.props,c=a.layout,i=a.type,s=a.stroke,l=a.connectNulls,h=a.isRange;a.ref;var v=LS(a,CS);return o.createElement(_h,{clipPath:r?"url(#clipPath-".concat(n,")"):null},o.createElement(DC,zS({},ih(v,!0),{points:e,connectNulls:l,type:i,baseLine:t,layout:c,stroke:"none",className:"recharts-area-area"})),"none"!==s&&o.createElement(DC,zS({},ih(this.props),{className:"recharts-area-curve",layout:c,type:i,connectNulls:l,fill:"none",points:e})),"none"!==s&&h&&o.createElement(DC,zS({},ih(this.props),{className:"recharts-area-curve",layout:c,type:i,connectNulls:l,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var r=this,n=this.props,a=n.points,c=n.baseLine,i=n.isAnimationActive,s=n.animationBegin,l=n.animationDuration,h=n.animationEasing,v=n.animationId,p=this.state,u=p.prevPoints,g=p.prevBaseLine;return o.createElement(ib,{begin:s,duration:l,isActive:i,easing:h,from:{t:0},to:{t:1},key:"area-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t;if(u){var s,l=u.length/a.length,h=a.map((function(e,t){var r=Math.floor(t*l);if(u[r]){var n=u[r],a=zl(n.x,e.x),c=zl(n.y,e.y);return kS(kS({},e),{},{x:a(i),y:c(i)})}return e}));return s=Pl(c)&&"number"==typeof c?zl(g,c)(i):ll(c)||Ml(c)?zl(g,0)(i):c.map((function(e,t){var r=Math.floor(t*l);if(g[r]){var n=g[r],a=zl(n.x,e.x),c=zl(n.y,e.y);return kS(kS({},e),{},{x:a(i),y:c(i)})}return e})),r.renderAreaStatically(h,s,e,t)}return o.createElement(_h,null,o.createElement("defs",null,o.createElement("clipPath",{id:"animationClipPath-".concat(t)},r.renderClipRect(i))),o.createElement(_h,{clipPath:"url(#animationClipPath-".concat(t,")")},r.renderAreaStatically(a,c,e,t)))}))}},{key:"renderArea",value:function(e,t){var r=this.props,n=r.points,a=r.baseLine,c=r.isAnimationActive,i=this.state,o=i.prevPoints,s=i.prevBaseLine,l=i.totalLength;return c&&n&&n.length&&(!o&&l>0||!kP(o,n)||!kP(s,a))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(n,a,e,t)}},{key:"render",value:function(){var e,t=this.props,r=t.hide,n=t.dot,a=t.points,c=t.className,i=t.top,s=t.left,l=t.xAxis,h=t.yAxis,v=t.width,p=t.height,u=t.isAnimationActive,g=t.id;if(r||!a||!a.length)return null;var m=this.state.isAnimationFinished,d=1===a.length,f=Ri("recharts-area",c),_=l&&l.allowDataOverflow,w=h&&h.allowDataOverflow,b=_||w,y=ll(g)?this.id:g,x=null!==(e=ih(n))&&void 0!==e?e:{r:3,strokeWidth:2},Z=x.r,O=void 0===Z?3:Z,M=x.strokeWidth,E=void 0===M?2:M,H=(ah(n)?n:{}).clipDot,P=void 0===H||H,j=2*O+E;return o.createElement(_h,{className:f},_||w?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(y)},o.createElement("rect",{x:_?s:s-v/2,y:w?i:i-p/2,width:_?v:2*v,height:w?p:2*p})),!P&&o.createElement("clipPath",{id:"clipPath-dots-".concat(y)},o.createElement("rect",{x:s-j/2,y:i-j/2,width:v+j,height:p+j}))):null,d?null:this.renderArea(b,y),(n||d)&&this.renderDots(b,P,y),(!u||m)&&wC.renderCallByParent(this.props,a))}}],n=[{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}}],r&&SS(t.prototype,r),n&&SS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();VS=QS,NS(QS,"displayName","Area"),NS(QS,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!by.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),NS(QS,"getBaseValue",(function(e,t,r,n){var a=e.layout,c=e.baseValue,i=t.props.baseValue,o=null!=i?i:c;if(Pl(o)&&"number"==typeof o)return o;var s="horizontal"===a?n:r,l=s.scale.domain();if("number"===s.type){var h=Math.max(l[0],l[1]),v=Math.min(l[0],l[1]);return"dataMin"===o?v:"dataMax"===o||h<0?h:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===o?l[0]:"dataMax"===o?l[1]:l[0]})),NS(QS,"getComposedData",(function(e){var t,r=e.props,n=e.item,a=e.xAxis,c=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,h=e.stackedData,v=e.dataStartIndex,p=e.displayedData,u=e.offset,g=r.layout,m=h&&h.length,d=VS.getBaseValue(r,n,a,c),f="horizontal"===g,_=!1,w=p.map((function(e,t){var r;m?r=h[v+t]:(r=rV(e,l),Array.isArray(r)?_=!0:r=[d,r]);var n=null==r[1]||m&&null==rV(e,l);return f?{x:bV({axis:a,ticks:i,bandSize:s,entry:e,index:t}),y:n?null:c.scale(r[1]),value:r,payload:e}:{x:n?null:a.scale(r[1]),y:bV({axis:c,ticks:o,bandSize:s,entry:e,index:t}),value:r,payload:e}}));return t=m||_?w.map((function(e){var t=Array.isArray(e.value)?e.value[0]:null;return f?{x:e.x,y:null!=t&&null!=e.y?c.scale(t):null}:{x:null!=t?a.scale(t):null,y:e.y}})):f?c.scale(d):a.scale(d),kS({points:w,baseLine:t,layout:g,isRange:_},u)})),NS(QS,"renderDotItem",(function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(iA,zS({},t,{className:"recharts-area-dot"}))}));var $S=function(){return null};$S.displayName="ZAxis",$S.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var YS=["option","isActive"];function US(){return US=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},US.apply(this,arguments)}function WS(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function XS(e){var t=e.option,r=e.isActive,n=WS(e,YS);return"string"==typeof t?o.createElement(AL,US({option:o.createElement(jp,US({type:t},n)),isActive:r,shapeType:"symbols"},n)):o.createElement(AL,US({option:t,isActive:r,shapeType:"symbols"},n))}function KS(e){return KS="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},KS(e)}function qS(){return qS=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},qS.apply(this,arguments)}function GS(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?GS(Object(r),!0).forEach((function(t){cR(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GS(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function eR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iR(n.key),n)}}function tR(e,t){return tR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tR(e,t)}function rR(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=aR(e);if(t){var a=aR(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===KS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nR(e)}(this,r)}}function nR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aR(e){return aR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aR(e)}function cR(e,t,r){return(t=iR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iR(e){var t=function(e,t){if("object"!==KS(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==KS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===KS(t)?t:String(t)}var oR=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&&tR(e,t)}(c,Z);var t,r,n,a=rR(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return cR(nR(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!1}),cR(nR(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0})})),cR(nR(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1})})),cR(nR(e),"id",Cl("recharts-scatter-")),e}return t=c,r=[{key:"renderSymbolsStatically",value:function(e){var t=this,r=this.props,n=r.shape,a=r.activeShape,c=r.activeIndex,i=ih(this.props);return e.map((function(e,r){var s=c===r,l=s?a:n,h=JS(JS({key:"symbol-".concat(r)},i),e);return o.createElement(_h,qS({className:"recharts-scatter-symbol"},Fl(t.props,e,r),{key:"symbol-".concat(null==e?void 0:e.cx,"-").concat(null==e?void 0:e.cy,"-").concat(null==e?void 0:e.size),role:"img"}),o.createElement(XS,qS({option:l,isActive:s},h)))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,t=this.props,r=t.points,n=t.isAnimationActive,a=t.animationBegin,c=t.animationDuration,i=t.animationEasing,s=t.animationId,l=this.state.prevPoints;return o.createElement(ib,{begin:a,duration:c,isActive:n,easing:i,from:{t:0},to:{t:1},key:"pie-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var n=t.t,a=r.map((function(e,t){var r=l&&l[t];if(r){var a=zl(r.cx,e.cx),c=zl(r.cy,e.cy),i=zl(r.size,e.size);return JS(JS({},e),{},{cx:a(n),cy:c(n),size:i(n)})}var o=zl(0,e.size);return JS(JS({},e),{},{size:o(n)})}));return o.createElement(_h,null,e.renderSymbolsStatically(a))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,r=e.isAnimationActive,n=this.state.prevPoints;return!(r&&t&&t.length)||n&&kP(n,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,r=e.xAxis,n=e.yAxis,a=Jl(e.children,Qj);return a?a.map((function(e,a){var c=e.props,i=c.direction,s=c.dataKey;return o.cloneElement(e,{key:"".concat(i,"-").concat(s,"-").concat(t[a]),data:t,xAxis:r,yAxis:n,layout:"x"===i?"vertical":"horizontal",dataPointFormatter:function(e,t){return{x:e.cx,y:e.cy,value:"x"===i?+e.node.x:+e.node.y,errorVal:rV(e,t)}}})})):null}},{key:"renderLine",value:function(){var e,t,r=this.props,n=r.points,a=r.line,c=r.lineType,i=r.lineJointType,s=ih(this.props),l=ih(a);if("joint"===c)e=n.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===c){var h=function(e){if(!e||!e.length)return null;for(var t=e.length,r=0,n=0,a=0,c=0,i=1/0,o=-1/0,s=0,l=0,h=0;h<t;h++)r+=s=e[h].cx||0,n+=l=e[h].cy||0,a+=s*l,c+=s*s,i=Math.min(i,s),o=Math.max(o,s);var v=t*c!=r*r?(t*a-r*n)/(t*c-r*r):0;return{xmin:i,xmax:o,a:v,b:(n-v*r)/t}}(n),v=h.xmin,p=h.xmax,u=h.a,g=h.b,m=function(e){return u*e+g};e=[{x:v,y:m(v)},{x:p,y:m(p)}]}var d=JS(JS(JS({},s),{},{fill:"none",stroke:s&&s.fill},l),{},{points:e});return t=o.isValidElement(a)?o.cloneElement(a,d):_o(a)?a(d):o.createElement(DC,qS({},d,{type:i})),o.createElement(_h,{className:"recharts-scatter-line",key:"recharts-scatter-line"},t)}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.points,n=e.line,a=e.className,c=e.xAxis,i=e.yAxis,s=e.left,l=e.top,h=e.width,v=e.height,p=e.id,u=e.isAnimationActive;if(t||!r||!r.length)return null;var g=this.state.isAnimationFinished,m=Ri("recharts-scatter",a),d=c&&c.allowDataOverflow,f=i&&i.allowDataOverflow,_=d||f,w=ll(p)?this.id:p;return o.createElement(_h,{className:m,clipPath:_?"url(#clipPath-".concat(w,")"):null},d||f?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(w)},o.createElement("rect",{x:d?s:s-h/2,y:f?l:l-v/2,width:d?h:2*h,height:f?v:2*v}))):null,n&&this.renderLine(),this.renderErrorBar(),o.createElement(_h,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!u||g)&&wC.renderCallByParent(this.props,r))}}],n=[{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}}],r&&eR(t.prototype,r),n&&eR(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();cR(oR,"displayName","Scatter"),cR(oR,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!by.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),cR(oR,"getComposedData",(function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,a=e.item,c=e.displayedData,i=e.xAxisTicks,o=e.yAxisTicks,s=e.offset,l=a.props.tooltipType,h=Jl(a.props.children,ix),v=ll(t.dataKey)?a.props.dataKey:t.dataKey,p=ll(r.dataKey)?a.props.dataKey:r.dataKey,u=n&&n.dataKey,g=n?n.range:$S.defaultProps.range,m=g&&g[0],d=t.scale.bandwidth?t.scale.bandwidth():0,f=r.scale.bandwidth?r.scale.bandwidth():0,_=c.map((function(e,c){var s=rV(e,v),g=rV(e,p),_=!ll(u)&&rV(e,u)||"-",w=[{name:ll(t.dataKey)?a.props.name:t.name||t.dataKey,unit:t.unit||"",value:s,payload:e,dataKey:v,type:l},{name:ll(r.dataKey)?a.props.name:r.name||r.dataKey,unit:r.unit||"",value:g,payload:e,dataKey:p,type:l}];"-"!==_&&w.push({name:n.name||n.dataKey,unit:n.unit||"",value:_,payload:e,dataKey:u,type:l});var b=bV({axis:t,ticks:i,bandSize:d,entry:e,index:c,dataKey:v}),y=bV({axis:r,ticks:o,bandSize:f,entry:e,index:c,dataKey:p}),x="-"!==_?n.scale(_):m,Z=Math.sqrt(Math.max(x,0)/Math.PI);return JS(JS({},e),{},{cx:b,cy:y,x:b-Z,y:y-Z,xAxis:t,yAxis:r,zAxis:n,width:2*Z,height:2*Z,size:x,node:{x:s,y:g,z:_},tooltipPayload:w,tooltipPosition:{x:b,y:y},payload:e},h&&h[c]&&h[c].props)}));return JS({points:_},s)}));var sR=function(){return null};sR.displayName="XAxis",sR.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 lR=function(){return null};lR.displayName="YAxis",lR.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 hR=vd,vR=Og,pR=Pg;var uR=function(e){return function(t,r,n){var a=Object(t);if(!vR(t)){var c=hR(r);t=pR(t),r=function(e){return c(a[e],e,a)}}var i=e(t,r,n);return i>-1?a[c?t[i]:i]:void 0}},gR=Dz;var mR=pd,dR=vd,fR=function(e){var t=gR(e),r=t%1;return t==t?r?t-r:t:0},_R=Math.max;var wR=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:fR(r);return a<0&&(a=_R(n+a,0)),mR(e,dR(t),a)},bR=zt(uR(wR)),yR="production"===process.env.NODE_ENV,xR="Invariant failed";function ZR(e,t){if(!e){if(yR)throw new Error(xR);var r="function"==typeof t?t():t,n=r?"".concat(xR,": ").concat(r):xR;throw new Error(n)}}function OR(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,c=e.endAngle;return{points:[RV(t,r,n,a),RV(t,r,n,c)],cx:t,cy:r,radius:n,startAngle:a,endAngle:c}}function MR(e){return function(e){if(Array.isArray(e))return ER(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 ER(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 ER(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 ER(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 HR=function(e,t,r,n,a){var c=Jl(e,wk),i=Jl(e,Mk),o=[].concat(MR(c),MR(i)),s=Jl(e,Ck),l="".concat(n,"Id"),h=n[0],v=t;if(o.length&&(v=o.reduce((function(e,t){if(t.props[l]===r&&dB(t.props,"extendDomain")&&Pl(t.props[h])){var n=t.props[h];return[Math.min(e[0],n),Math.max(e[1],n)]}return e}),v)),s.length){var p="".concat(h,"1"),u="".concat(h,"2");v=s.reduce((function(e,t){if(t.props[l]===r&&dB(t.props,"extendDomain")&&Pl(t.props[p])&&Pl(t.props[u])){var n=t.props[p],a=t.props[u];return[Math.min(e[0],n,a),Math.max(e[1],n,a)]}return e}),v)}return a&&a.length&&(v=a.reduce((function(e,t){return Pl(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),v)),v},PR={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function a(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function c(e,t,n,c,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");var o=new a(n,c||e,i),s=r?r+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],o]:e._events[s].push(o):(e._events[s]=o,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function o(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),o.prototype.eventNames=function(){var e,n,a=[];if(0===this._eventsCount)return a;for(n in e=this._events)t.call(e,n)&&a.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},o.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 a=0,c=n.length,i=new Array(c);a<c;a++)i[a]=n[a].fn;return i},o.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},o.prototype.emit=function(e,t,n,a,c,i){var o=r?r+e:e;if(!this._events[o])return!1;var s,l,h=this._events[o],v=arguments.length;if(h.fn){switch(h.once&&this.removeListener(e,h.fn,void 0,!0),v){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,t),!0;case 3:return h.fn.call(h.context,t,n),!0;case 4:return h.fn.call(h.context,t,n,a),!0;case 5:return h.fn.call(h.context,t,n,a,c),!0;case 6:return h.fn.call(h.context,t,n,a,c,i),!0}for(l=1,s=new Array(v-1);l<v;l++)s[l-1]=arguments[l];h.fn.apply(h.context,s)}else{var p,u=h.length;for(l=0;l<u;l++)switch(h[l].once&&this.removeListener(e,h[l].fn,void 0,!0),v){case 1:h[l].fn.call(h[l].context);break;case 2:h[l].fn.call(h[l].context,t);break;case 3:h[l].fn.call(h[l].context,t,n);break;case 4:h[l].fn.call(h[l].context,t,n,a);break;default:if(!s)for(p=1,s=new Array(v-1);p<v;p++)s[p-1]=arguments[p];h[l].fn.apply(h[l].context,s)}}return!0},o.prototype.on=function(e,t,r){return c(this,e,t,r,!1)},o.prototype.once=function(e,t,r){return c(this,e,t,r,!0)},o.prototype.removeListener=function(e,t,n,a){var c=r?r+e:e;if(!this._events[c])return this;if(!t)return i(this,c),this;var o=this._events[c];if(o.fn)o.fn!==t||a&&!o.once||n&&o.context!==n||i(this,c);else{for(var s=0,l=[],h=o.length;s<h;s++)(o[s].fn!==t||a&&!o[s].once||n&&o[s].context!==n)&&l.push(o[s]);l.length?this._events[c]=1===l.length?l[0]:l:i(this,c)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&i(this,t)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,e.exports=o}(PR);var jR=new(zt(PR.exports)),VR="recharts.syncMouseEvents";function CR(e){return CR="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},CR(e)}function AR(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,zR(n.key),n)}}function LR(e,t,r){return(t=zR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zR(e){var t=function(e,t){if("object"!==CR(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==CR(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CR(t)?t:String(t)}var BR=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),LR(this,"activeIndex",0),LR(this,"coordinateList",[]),LR(this,"layout","horizontal")}var t,r,n;return t=e,r=[{key:"setDetails",value:function(e){var t=e.coordinateList,r=void 0===t?[]:t,n=e.container,a=void 0===n?null:n,c=e.layout,i=void 0===c?null:c,o=e.offset,s=void 0===o?null:o,l=e.mouseHandlerCallback,h=void 0===l?null:l;this.coordinateList=null!=r?r:this.coordinateList,this.container=null!=a?a:this.container,this.layout=null!=i?i:this.layout,this.offset=null!=s?s:this.offset,this.mouseHandlerCallback=null!=h?h:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(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:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,a=r.y,c=r.height,i=this.coordinateList[this.activeIndex].coordinate,o=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,s=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,l=n+i+o,h=a+this.offset.top+c/2+s;this.mouseHandlerCallback({pageX:l,pageY:h})}}}],r&&AR(t.prototype,r),n&&AR(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function kR(e,t,r){var n,a,c,i;if("horizontal"===e)c=n=t.x,a=r.top,i=r.top+r.height;else if("vertical"===e)i=a=t.y,n=r.left,c=r.left+r.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return OR(t);var o=t.cx,s=t.cy,l=t.innerRadius,h=t.outerRadius,v=t.angle,p=RV(o,s,l,v),u=RV(o,s,h,v);n=p.x,a=p.y,c=u.x,i=u.y}return[{x:n,y:a},{x:c,y:i}]}var SR=["item"],RR=["children","className","width","height","style","compact","title","desc"];function DR(e){return DR="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},DR(e)}function IR(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||XR(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 TR(){return TR=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},TR.apply(this,arguments)}function NR(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function FR(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,eD(n.key),n)}}function QR(e,t){return QR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QR(e,t)}function $R(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=UR(e);if(t){var a=UR(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===DR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YR(e)}(this,r)}}function YR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UR(e){return UR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},UR(e)}function WR(e){return function(e){if(Array.isArray(e))return KR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||XR(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 XR(e,t){if(e){if("string"==typeof e)return KR(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)?KR(e,t):void 0}}function KR(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 qR(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 GR(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qR(Object(r),!0).forEach((function(t){JR(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qR(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function JR(e,t,r){return(t=eD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eD(e){var t=function(e,t){if("object"!==DR(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==DR(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DR(t)?t:String(t)}var tD={xAxis:["bottom","top"],yAxis:["left","right"]},rD={width:"100%",height:"100%"},nD={x:0,y:0},aD=function(e,t){var r=t.graphicalItems,n=t.dataStartIndex,a=t.dataEndIndex,c=(null!=r?r:[]).reduce((function(e,t){var r=t.props.data;return r&&r.length?[].concat(WR(e),WR(r)):e}),[]);return c.length>0?c:e&&e.length&&Pl(n)&&Pl(a)?e.slice(n,a+1):[]};function cD(e){return"number"===e?[0,"auto"]:void 0}var iD=function(e,t,r,n){var a=e.graphicalItems,c=e.tooltipAxis,i=aD(t,e);return r<0||!a||!a.length||r>=i.length?null:a.reduce((function(a,o){var s;if(o.props.hide)return a;var l,h=null!==(s=o.props.data)&&void 0!==s?s:t;(h&&e.dataStartIndex+e.dataEndIndex!==0&&(h=h.slice(e.dataStartIndex,e.dataEndIndex+1)),c.dataKey&&!c.allowDuplicatedCategory)?l=Bl(void 0===h?i:h,c.dataKey,n):l=h&&h[r]||i[r];return l?[].concat(WR(a),[jV(o,l)]):a}),[])},oD=function(e,t,r,n){var a=n||{x:e.chartX,y:e.chartY},c=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(a,r),i=e.orderedTooltipTicks,o=e.tooltipAxis,s=e.tooltipTicks,l=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,c=-1,i=null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0;if(i<=1)return 0;if(a&&"angleAxis"===a.axisType&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var o=a.range,s=0;s<i;s++){var l=s>0?n[s-1].coordinate:n[i-1].coordinate,h=n[s].coordinate,v=s>=i-1?n[0].coordinate:n[s+1].coordinate,p=void 0;if(El(h-l)!==El(v-h)){var u=[];if(El(v-h)===El(o[1]-o[0])){p=v;var g=h+o[1]-o[0];u[0]=Math.min(g,(g+l)/2),u[1]=Math.max(g,(g+l)/2)}else{p=l;var m=v+o[1]-o[0];u[0]=Math.min(h,(m+h)/2),u[1]=Math.max(h,(m+h)/2)}var d=[Math.min(h,(p+h)/2),Math.max(h,(p+h)/2)];if(e>d[0]&&e<=d[1]||e>=u[0]&&e<=u[1]){c=n[s].index;break}}else{var f=Math.min(l,v),_=Math.max(l,v);if(e>(f+h)/2&&e<=(_+h)/2){c=n[s].index;break}}}else for(var w=0;w<i;w++)if(0===w&&e<=(r[w].coordinate+r[w+1].coordinate)/2||w>0&&w<i-1&&e>(r[w].coordinate+r[w-1].coordinate)/2&&e<=(r[w].coordinate+r[w+1].coordinate)/2||w===i-1&&e>(r[w].coordinate+r[w-1].coordinate)/2){c=r[w].index;break}return c}(c,i,s,o);if(l>=0&&s){var h=s[l]&&s[l].value,v=iD(e,t,l,h),p=function(e,t,r,n){var a=t.find((function(e){return e&&e.index===r}));if(a){if("horizontal"===e)return{x:a.coordinate,y:n.y};if("vertical"===e)return{x:n.x,y:a.coordinate};if("centric"===e){var c=a.coordinate,i=n.radius;return GR(GR(GR({},n),RV(n.cx,n.cy,i,c)),{},{angle:c,radius:i})}var o=a.coordinate,s=n.angle;return GR(GR(GR({},n),RV(n.cx,n.cy,o,s)),{},{angle:s,radius:o})}return nD}(r,i,l,a);return{activeTooltipIndex:l,activeLabel:h,activePayload:v,activeCoordinate:p}}return null},sD=function(e,t){var r=t.axes,n=t.graphicalItems,a=t.axisType,c=t.axisIdKey,i=t.stackGroups,o=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,h=e.children,v=e.stackOffset,p=oV(l,a);return r.reduce((function(t,r){var u,g=r.props,m=g.type,d=g.dataKey,f=g.allowDataOverflow,_=g.allowDuplicatedCategory,w=g.scale,b=g.ticks,y=g.includeHidden,x=r.props[c];if(t[x])return t;var Z,O,M,E=aD(e.data,{graphicalItems:n.filter((function(e){return e.props[c]===x})),dataStartIndex:o,dataEndIndex:s}),H=E.length;(function(e,t,r){if("number"===r&&!0===t&&Array.isArray(e)){var n=null==e?void 0:e[0],a=null==e?void 0:e[1];if(n&&a&&Pl(n)&&Pl(a))return!0}return!1})(r.props.domain,f,m)&&(Z=EV(r.props.domain,null,f),!p||"number"!==m&&"auto"===w||(M=nV(E,d,"category")));var P=cD(m);if(!Z||0===Z.length){var j,V=null!==(j=r.props.domain)&&void 0!==j?j:P;if(d){if(Z=nV(E,d,m),"category"===m&&p){var C=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}(Z);_&&C?(O=Z,Z=Qz(0,H)):_||(Z=PV(V,Z,r).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(WR(e),[t])}),[]))}else if("category"===m)Z=_?Z.filter((function(e){return""!==e&&!ll(e)})):PV(V,Z,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||ll(t)?e:[].concat(WR(e),[t])}),[]);else if("number"===m){var A=function(e,t,r,n,a){var c=t.map((function(t){return cV(e,t,r,a,n)})).filter((function(e){return!ll(e)}));return c&&c.length?c.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(E,n.filter((function(e){return e.props[c]===x&&(y||!e.props.hide)})),d,a,l);A&&(Z=A)}!p||"number"!==m&&"auto"===w||(M=nV(E,d,"category"))}else Z=p?Qz(0,H):i&&i[x]&&i[x].hasStack&&"number"===m?"expand"===v?[0,1]:ZV(i[x].stackGroups,o,s):iV(E,n.filter((function(e){return e.props[c]===x&&(y||!e.props.hide)})),m,l,!0);if("number"===m)Z=HR(h,Z,x,a,b),V&&(Z=EV(V,Z,f));else if("category"===m&&V){var L=V;Z.every((function(e){return L.indexOf(e)>=0}))&&(Z=L)}}return GR(GR({},t),{},JR({},x,GR(GR({},r.props),{},{axisType:a,domain:Z,categoricalDomain:M,duplicateDomain:O,originalDomain:null!==(u=r.props.domain)&&void 0!==u?u:P,isCategorical:p,layout:l})))}),{})},lD=function(e,t){var r=t.axisType,n=void 0===r?"xAxis":r,a=t.AxisComp,c=t.graphicalItems,i=t.stackGroups,o=t.dataStartIndex,s=t.dataEndIndex,l=e.children,h="".concat(n,"Id"),v=Jl(l,a),p={};return v&&v.length?p=sD(e,{axes:v,graphicalItems:c,axisType:n,axisIdKey:h,stackGroups:i,dataStartIndex:o,dataEndIndex:s}):c&&c.length&&(p=function(e,t){var r=t.graphicalItems,n=t.Axis,a=t.axisType,c=t.axisIdKey,i=t.stackGroups,o=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,h=e.children,v=aD(e.data,{graphicalItems:r,dataStartIndex:o,dataEndIndex:s}),p=v.length,u=oV(l,a),g=-1;return r.reduce((function(e,t){var m,d=t.props[c],f=cD("number");return e[d]?e:(g++,u?m=Qz(0,p):i&&i[d]&&i[d].hasStack?(m=ZV(i[d].stackGroups,o,s),m=HR(h,m,d,a)):(m=EV(f,iV(v,r.filter((function(e){return e.props[c]===d&&!e.props.hide})),"number",l),n.defaultProps.allowDataOverflow),m=HR(h,m,d,a)),GR(GR({},e),{},JR({},d,GR(GR({axisType:a},n.defaultProps),{},{hide:!0,orientation:sl(tD,"".concat(a,".").concat(g%2),null),domain:m,originalDomain:f,isCategorical:u,layout:l}))))}),{})}(e,{Axis:a,graphicalItems:c,axisType:n,axisIdKey:h,stackGroups:i,dataStartIndex:o,dataEndIndex:s})),p},hD=function(e){var t=e.children,r=e.defaultShowTooltip,n=eh(t,sB),a=0,c=0;return e.data&&0!==e.data.length&&(c=e.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(a=n.props.startIndex),n.props.endIndex>=0&&(c=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:c,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},vD=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"}},pD=function(e,t){var r=e.props,n=(e.graphicalItems,e.xAxisMap),a=void 0===n?{}:n,c=e.yAxisMap,i=void 0===c?{}:c,o=r.width,s=r.height,l=r.children,h=r.margin||{},v=eh(l,sB),p=eh(l,Xd),u=Object.keys(i).reduce((function(e,t){var r=i[t],n=r.orientation;return r.mirror||r.hide?e:GR(GR({},e),{},JR({},n,e[n]+r.width))}),{left:h.left||0,right:h.right||0}),g=Object.keys(a).reduce((function(e,t){var r=a[t],n=r.orientation;return r.mirror||r.hide?e:GR(GR({},e),{},JR({},n,sl(e,"".concat(n))+r.height))}),{top:h.top||0,bottom:h.bottom||0}),m=GR(GR({},g),u),d=m.bottom;v&&(m.bottom+=v.props.height||sB.defaultProps.height),p&&t&&(m=function(e,t,r,n){var a=r.children,c=r.width,i=r.margin,o=c-(i.left||0)-(i.right||0),s=Xj({children:a,legendWidth:o});if(s){var l=n||{},h=l.width,v=l.height,p=s.align,u=s.verticalAlign,g=s.layout;if(("vertical"===g||"horizontal"===g&&"middle"===u)&&"center"!==p&&Pl(e[p]))return Gj(Gj({},e),{},Jj({},p,e[p]+(h||0)));if(("horizontal"===g||"vertical"===g&&"center"===p)&&"middle"!==u&&Pl(e[u]))return Gj(Gj({},e),{},Jj({},u,e[u]+(v||0)))}return e}(m,0,r,t));var f=o-m.left-m.right,_=s-m.top-m.bottom;return GR(GR({brushBottom:d},m),{},{width:Math.max(f,0),height:Math.max(_,0)})},uD=function(e){var t,r=e.chartName,n=e.GraphicalChild,a=e.defaultTooltipEventType,c=void 0===a?"axis":a,i=e.validateTooltipEventTypes,s=void 0===i?["axis"]:i,l=e.axisComponents,h=e.legendContent,v=e.formatAxisMap,p=e.defaultProps,u=function(e,t){var r=t.graphicalItems,n=t.stackGroups,a=t.offset,c=t.updateId,i=t.dataStartIndex,o=t.dataEndIndex,s=e.barSize,h=e.layout,v=e.barGap,p=e.barCategoryGap,u=e.maxBarSize,g=vD(h),m=g.numericAxisName,d=g.cateAxisName,f=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Xl(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(r),_=f&&function(e){var t=e.barSize,r=e.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var a={},c=Object.keys(n),i=0,o=c.length;i<o;i++)for(var s=n[c[i]].stackGroups,l=Object.keys(s),h=0,v=l.length;h<v;h++){var p=s[l[h]],u=p.items,g=p.cateAxisId,m=u.filter((function(e){return Xl(e.type).indexOf("Bar")>=0}));if(m&&m.length){var d=m[0].props.barSize,f=m[0].props[g];a[f]||(a[f]=[]),a[f].push({item:m[0],stackList:m.slice(1),barSize:ll(d)?t:d})}}return a}({barSize:s,stackGroups:n}),w=[];return r.forEach((function(r,s){var g=aD(e.data,{graphicalItems:[r],dataStartIndex:i,dataEndIndex:o}),f=r.props,b=f.dataKey,y=f.maxBarSize,x=r.props["".concat(m,"Id")],Z=r.props["".concat(d,"Id")],O=l.reduce((function(e,n){var a,c,i,o=t["".concat(n.axisType,"Map")],s=r.props["".concat(n.axisType,"Id")];o&&o[s]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?ZR(!1,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(a=null==r||null===(c=r.type)||void 0===c?void 0:c.displayName)&&void 0!==a?a:"")):ZR(!1));var l=o[s];return GR(GR({},e),{},(JR(i={},n.axisType,l),JR(i,"".concat(n.axisType,"Ticks"),lV(l)),i))}),{}),M=O[d],E=O["".concat(d,"Ticks")],H=n&&n[x]&&n[x].hasStack&&function(e,t){var r=e.props.stackId;if(jl(r)){var n=t[r];if(n){var a=n.items.indexOf(e);return a>=0?n.stackedData[a]:null}}return null}(r,n[x].stackGroups),P=Xl(r.type).indexOf("Bar")>=0,j=HV(M,E),V=[];if(P){var C,A,L=ll(y)?u:y,z=null!==(C=null!==(A=HV(M,E,!0))&&void 0!==A?A:L)&&void 0!==C?C:0;V=function(e){var t=e.barGap,r=e.barCategoryGap,n=e.bandSize,a=e.sizeList,c=void 0===a?[]:a,i=e.maxBarSize,o=c.length;if(o<1)return null;var s,l=Al(t,n,0,!0),h=[];if(c[0].barSize===+c[0].barSize){var v=!1,p=n/o,u=c.reduce((function(e,t){return e+t.barSize||0}),0);(u+=(o-1)*l)>=n&&(u-=(o-1)*l,l=0),u>=n&&p>0&&(v=!0,u=o*(p*=.9));var g={offset:((n-u)/2>>0)-l,size:0};s=c.reduce((function(e,t){var r={item:t.item,position:{offset:g.offset+g.size+l,size:v?p:t.barSize}},n=[].concat(eV(e),[r]);return g=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:g})})),n}),h)}else{var m=Al(r,n,0,!0);n-2*m-(o-1)*l<=0&&(l=0);var d=(n-2*m-(o-1)*l)/o;d>1&&(d>>=0);var f=i===+i?Math.min(d,i):d;s=c.reduce((function(e,t,r){var n=[].concat(eV(e),[{item:t.item,position:{offset:m+(d+l)*r+(d-f)/2,size:f}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:n[n.length-1].position})})),n}),h)}return s}({barGap:v,barCategoryGap:p,bandSize:z!==j?z:j,sizeList:_[Z],maxBarSize:L}),z!==j&&(V=V.map((function(e){return GR(GR({},e),{},{position:GR(GR({},e.position),{},{offset:e.position.offset-z/2})})})))}var B,k=r&&r.type&&r.type.getComposedData;k&&w.push({props:GR(GR({},k(GR(GR({},O),{},{displayedData:g,props:e,dataKey:b,item:r,bandSize:j,barPosition:V,offset:a,stackedData:H,layout:h,dataStartIndex:i,dataEndIndex:o}))),{},(B={key:r.key||"item-".concat(s)},JR(B,m,O[m]),JR(B,d,O[d]),JR(B,"animationId",c),B)),childIndex:hh(r,e.children),item:r})})),w},m=function(e,t){var a=e.props,c=e.dataStartIndex,i=e.dataEndIndex,o=e.updateId;if(!th({props:a}))return null;var s=a.children,h=a.layout,p=a.stackOffset,g=a.data,m=a.reverseStackOrder,d=vD(h),f=d.numericAxisName,_=d.cateAxisName,w=Jl(s,n),b=function(e,t,r,n,a,c){if(!e)return null;var i=(c?t.reverse():t).reduce((function(e,t){var a=t.props,c=a.stackId;if(a.hide)return e;var i=t.props[r],o=e[i]||{hasStack:!1,stackGroups:{}};if(jl(c)){var s=o.stackGroups[c]||{numericAxisId:r,cateAxisId:n,items:[]};s.items.push(t),o.hasStack=!0,o.stackGroups[c]=s}else o.stackGroups[Cl("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[t]};return Gj(Gj({},e),{},Jj({},i,o))}),{});return Object.keys(i).reduce((function(t,c){var o=i[c];return o.hasStack&&(o.stackGroups=Object.keys(o.stackGroups).reduce((function(t,c){var i=o.stackGroups[c];return Gj(Gj({},t),{},Jj({},c,{numericAxisId:r,cateAxisId:n,items:i.items,stackedData:_V(e,i.items,a)}))}),{})),Gj(Gj({},t),{},Jj({},c,o))}),{})}(g,w,"".concat(f,"Id"),"".concat(_,"Id"),p,m),y=l.reduce((function(e,t){var r="".concat(t.axisType,"Map");return GR(GR({},e),{},JR({},r,lD(a,GR(GR({},t),{},{graphicalItems:w,stackGroups:t.axisType===f&&b,dataStartIndex:c,dataEndIndex:i}))))}),{}),x=pD(GR(GR({},y),{},{props:a,graphicalItems:w}),null==t?void 0:t.legendBBox);Object.keys(y).forEach((function(e){y[e]=v(a,y[e],x,e.replace("Map",""),r)}));var Z,O,M=y["".concat(_,"Map")],E=(Z=Ll(M),{tooltipTicks:O=lV(Z,!1,!0),orderedTooltipTicks:Kf(O,(function(e){return e.coordinate})),tooltipAxis:Z,tooltipAxisBandSize:HV(Z,O)}),H=u(a,GR(GR({},y),{},{dataStartIndex:c,dataEndIndex:i,updateId:o,graphicalItems:w,stackGroups:b,offset:x}));return GR(GR({formattedGraphicalItems:H,graphicalItems:w,offset:x,stackGroups:b},E),y)};return t=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&&QR(e,t)}(l,M);var t,n,a,i=$R(l);function l(e){var t,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),JR(YR(a=i.call(this,e)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),JR(YR(a),"accessibilityManager",new BR),JR(YR(a),"handleLegendBBoxUpdate",(function(e){if(e){var t=a.state,r=t.dataStartIndex,n=t.dataEndIndex,c=t.updateId;a.setState(GR({legendBBox:e},m({props:a.props,dataStartIndex:r,dataEndIndex:n,updateId:c},GR(GR({},a.state),{},{legendBBox:e}))))}})),JR(YR(a),"handleReceiveSyncEvent",(function(e,t,r){if(a.props.syncId===e){if(r===a.eventEmitterSymbol&&"function"!=typeof a.props.syncMethod)return;a.applySyncEvent(t)}})),JR(YR(a),"handleBrushChange",(function(e){var t=e.startIndex,r=e.endIndex;if(t!==a.state.dataStartIndex||r!==a.state.dataEndIndex){var n=a.state.updateId;a.setState((function(){return GR({dataStartIndex:t,dataEndIndex:r},m({props:a.props,dataStartIndex:t,dataEndIndex:r,updateId:n},a.state))})),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}})),JR(YR(a),"handleMouseEnter",(function(e){var t=a.getMouseInfo(e);if(t){var r=GR(GR({},t),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseEnter;_o(n)&&n(r,e)}})),JR(YR(a),"triggeredAfterMouseMove",(function(e){var t=a.getMouseInfo(e),r=t?GR(GR({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseMove;_o(n)&&n(r,e)})),JR(YR(a),"handleItemMouseEnter",(function(e){a.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),JR(YR(a),"handleItemMouseLeave",(function(){a.setState((function(){return{isTooltipActive:!1}}))})),JR(YR(a),"handleMouseMove",(function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)})),JR(YR(a),"handleMouseLeave",(function(e){var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var r=a.props.onMouseLeave;_o(r)&&r(t,e)})),JR(YR(a),"handleOuterEvent",(function(e){var t,r=function(e){var t=e&&e.type;return t&&Wl[t]?Wl[t]:null}(e),n=sl(a.props,"".concat(r));r&&_o(n)&&n(null!==(t=/.*touch.*/i.test(r)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))&&void 0!==t?t:{},e)})),JR(YR(a),"handleClick",(function(e){var t=a.getMouseInfo(e);if(t){var r=GR(GR({},t),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onClick;_o(n)&&n(r,e)}})),JR(YR(a),"handleMouseDown",(function(e){var t=a.props.onMouseDown;_o(t)&&t(a.getMouseInfo(e),e)})),JR(YR(a),"handleMouseUp",(function(e){var t=a.props.onMouseUp;_o(t)&&t(a.getMouseInfo(e),e)})),JR(YR(a),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),JR(YR(a),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])})),JR(YR(a),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])})),JR(YR(a),"triggerSyncEvent",(function(e){void 0!==a.props.syncId&&jR.emit(VR,a.props.syncId,e,a.eventEmitterSymbol)})),JR(YR(a),"applySyncEvent",(function(e){var t=a.props,r=t.layout,n=t.syncMethod,c=a.state.updateId,i=e.dataStartIndex,o=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)a.setState(GR({dataStartIndex:i,dataEndIndex:o},m({props:a.props,dataStartIndex:i,dataEndIndex:o,updateId:c},a.state)));else if(void 0!==e.activeTooltipIndex){var s=e.chartX,l=e.chartY,h=e.activeTooltipIndex,v=a.state,p=v.offset,u=v.tooltipTicks;if(!p)return;if("function"==typeof n)h=n(u,e);else if("value"===n){h=-1;for(var g=0;g<u.length;g++)if(u[g].value===e.activeLabel){h=g;break}}var d=GR(GR({},p),{},{x:p.left,y:p.top}),f=Math.min(s,d.x+d.width),_=Math.min(l,d.y+d.height),w=u[h]&&u[h].value,b=iD(a.state,a.props.data,h),y=u[h]?{x:"horizontal"===r?u[h].coordinate:f,y:"horizontal"===r?_:u[h].coordinate}:nD;a.setState(GR(GR({},e),{},{activeLabel:w,activeCoordinate:y,activePayload:b,activeTooltipIndex:h}))}else a.setState(e)})),JR(YR(a),"verticalCoordinatesGenerator",(function(e,t){var r=e.xAxis,n=e.width,a=e.height,c=e.offset;return sV(Rk(GR(GR(GR({},Jk.defaultProps),r),{},{ticks:lV(r,!0),viewBox:{x:0,y:0,width:n,height:a}})),c.left,c.left+c.width,t)})),JR(YR(a),"horizontalCoordinatesGenerator",(function(e,t){var r=e.yAxis,n=e.width,a=e.height,c=e.offset;return sV(Rk(GR(GR(GR({},Jk.defaultProps),r),{},{ticks:lV(r,!0),viewBox:{x:0,y:0,width:n,height:a}})),c.top,c.top+c.height,t)})),JR(YR(a),"axesTicksGenerator",(function(e){return lV(e,!0)})),JR(YR(a),"renderCursor",(function(e){var t,n=a.state,c=n.isTooltipActive,i=n.activeCoordinate,o=n.activePayload,s=n.offset,l=n.activeTooltipIndex,h=n.tooltipAxisBandSize,v=a.getTooltipEventType(),p=null!==(t=e.props.active)&&void 0!==t?t:c;if(!e||!e.props.cursor||!p||!i||"ScatterChart"!==r&&"axis"!==v)return null;var u,m=a.props.layout,d=DC;if("ScatterChart"===r)u=i,d=gA;else if("BarChart"===r)u=function(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-a:r.left+.5,y:"horizontal"===e?r.top+.5:t.y-a,width:"horizontal"===e?n:r.width-1,height:"horizontal"===e?r.height-1:n}}(m,i,s,h),d=KC;else if("radial"===m){var f=OR(i),_=f.cx,b=f.cy,x=f.radius;u={cx:_,cy:b,startAngle:f.startAngle,endAngle:f.endAngle,innerRadius:x,outerRadius:x},d=PC}else u={points:kR(m,i,s)},d=DC;var Z=e.key||"_recharts-cursor",O=GR(GR(GR(GR({stroke:"#ccc",pointerEvents:"none"},s),u),ih(e.props.cursor)),{},{payload:o,payloadIndex:l,key:Z,className:"recharts-tooltip-cursor"});return y(e.props.cursor)?g(e.props.cursor,O):w(d,O)})),JR(YR(a),"renderPolarAxis",(function(e,t,r){var n=sl(e,"type.axisType"),c=sl(a.state,"".concat(n,"Map")),i=c&&c[e.props["".concat(n,"Id")]];return g(e,GR(GR({},i),{},{className:n,key:e.key||"".concat(t,"-").concat(r),ticks:lV(i,!0)}))})),JR(YR(a),"renderXAxis",(function(e,t,r){var n=a.state.xAxisMap[e.props.xAxisId];return a.renderAxis(n,e,t,r)})),JR(YR(a),"renderYAxis",(function(e,t,r){var n=a.state.yAxisMap[e.props.yAxisId];return a.renderAxis(n,e,t,r)})),JR(YR(a),"renderGrid",(function(e){var t=a.state,r=t.xAxisMap,n=t.yAxisMap,c=t.offset,i=a.props,o=i.width,s=i.height,l=Ll(r),h=bR(n,(function(e){return CB(e.domain,Number.isFinite)}))||Ll(n),v=e.props||{};return g(e,{key:e.key||"grid",x:Pl(v.x)?v.x:c.left,y:Pl(v.y)?v.y:c.top,width:Pl(v.width)?v.width:c.width,height:Pl(v.height)?v.height:c.height,xAxis:l,yAxis:h,offset:c,chartWidth:o,chartHeight:s,verticalCoordinatesGenerator:v.verticalCoordinatesGenerator||a.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:v.horizontalCoordinatesGenerator||a.horizontalCoordinatesGenerator})})),JR(YR(a),"renderPolarGrid",(function(e){var t=e.props,r=t.radialLines,n=t.polarAngles,c=t.polarRadius,i=a.state,o=i.radiusAxisMap,s=i.angleAxisMap,l=Ll(o),h=Ll(s),v=h.cx,p=h.cy,u=h.innerRadius,m=h.outerRadius;return g(e,{polarAngles:Array.isArray(n)?n:lV(h,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(c)?c:lV(l,!0).map((function(e){return e.coordinate})),cx:v,cy:p,innerRadius:u,outerRadius:m,key:e.key||"polar-grid",radialLines:r})})),JR(YR(a),"renderLegend",(function(){var e=a.state.formattedGraphicalItems,t=a.props,r=t.children,n=t.width,c=t.height,i=a.props.margin||{},o=n-(i.left||0)-(i.right||0),s=Xj({children:r,formattedGraphicalItems:e,legendWidth:o,legendContent:h});if(!s)return null;var l=s.item,v=NR(s,SR);return g(l,GR(GR({},v),{},{chartWidth:n,chartHeight:c,margin:i,onBBoxUpdate:a.handleLegendBBoxUpdate}))})),JR(YR(a),"renderTooltip",(function(){var e,t=eh(a.props.children,Cy);if(!t)return null;var r=a.state,n=r.isTooltipActive,c=r.activeCoordinate,i=r.activePayload,o=r.activeLabel,s=r.offset,l=null!==(e=t.props.active)&&void 0!==e?e:n;return g(t,{viewBox:GR(GR({},s),{},{x:s.left,y:s.top}),active:l,label:o,payload:l?i:[],coordinate:c})})),JR(YR(a),"renderBrush",(function(e){var t=a.props,r=t.margin,n=t.data,c=a.state,i=c.offset,o=c.dataStartIndex,s=c.dataEndIndex,l=c.updateId;return g(e,{key:e.key||"_recharts-brush",onChange:vV(a.handleBrushChange,e.props.onChange),data:n,x:Pl(e.props.x)?e.props.x:i.left,y:Pl(e.props.y)?e.props.y:i.top+i.height+i.brushBottom-(r.bottom||0),width:Pl(e.props.width)?e.props.width:i.width,startIndex:o,endIndex:s,updateId:"brush-".concat(l)})})),JR(YR(a),"renderReferenceElement",(function(e,t,r){if(!e)return null;var n=YR(a).clipPathId,c=a.state,i=c.xAxisMap,o=c.yAxisMap,s=c.offset,l=e.props,h=l.xAxisId,v=l.yAxisId;return g(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:i[h],yAxis:o[v],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:n})})),JR(YR(a),"renderActivePoints",(function(e){var t=e.item,r=e.activePoint,n=e.basePoint,a=e.childIndex,c=e.isRange,i=[],o=t.props.key,s=t.item.props,h=s.activeDot,v=GR(GR({index:a,dataKey:s.dataKey,cx:r.x,cy:r.y,r:4,fill:aV(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(o,"-activePoint-").concat(a)},ih(h)),Nl(h));return i.push(l.renderActiveDot(h,v)),n?i.push(l.renderActiveDot(h,GR(GR({},v),{},{cx:n.x,cy:n.y,key:"".concat(o,"-basePoint-").concat(a)}))):c&&i.push(null),i})),JR(YR(a),"renderGraphicChild",(function(e,t,r){var n=a.filterFormatItem(e,t,r);if(!n)return null;var c=a.getTooltipEventType(),i=a.state,o=i.isTooltipActive,s=i.tooltipAxis,l=i.activeTooltipIndex,h=i.activeLabel,v=eh(a.props.children,Cy),p=n.props,u=p.points,m=p.isRange,d=p.baseLine,f=n.item.props,_=f.activeDot,w=f.hide,b=f.activeBar,y=f.activeShape,x=Boolean(!w&&o&&v&&(_||b||y)),Z={};"axis"!==c&&v&&"click"===v.props.trigger?Z={onClick:vV(a.handleItemMouseEnter,e.props.onClick)}:"axis"!==c&&(Z={onMouseLeave:vV(a.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:vV(a.handleItemMouseEnter,e.props.onMouseEnter)});var O=g(e,GR(GR({},n.props),Z));if(x){if(!(l>=0)){var M,E=(null!==(M=a.getItemByXY(a.state.activeCoordinate))&&void 0!==M?M:{graphicalItem:O}).graphicalItem,H=E.item,P=void 0===H?e:H,j=E.childIndex,V=GR(GR(GR({},n.props),Z),{},{activeIndex:j});return[g(P,V),null,null]}var C,A;if(s.dataKey&&!s.allowDuplicatedCategory){var L="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());C=Bl(u,L,h),A=m&&d&&Bl(d,L,h)}else C=null==u?void 0:u[l],A=m&&d&&d[l];if(y||b){var z=void 0!==e.props.activeIndex?e.props.activeIndex:l;return[g(e,GR(GR(GR({},n.props),Z),{},{activeIndex:z})),null,null]}if(!ll(C))return[O].concat(WR(a.renderActivePoints({item:n,activePoint:C,basePoint:A,childIndex:l,isRange:m})))}return m?[O,null,null]:[O,null]})),JR(YR(a),"renderCustomized",(function(e,t,r){return g(e,GR(GR({key:"recharts-customized-".concat(r)},a.props),a.state))})),JR(YR(a),"renderMap",{CartesianGrid:{handler:a.renderGrid,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:a.renderReferenceElement},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:a.renderXAxis},YAxis:{handler:a.renderYAxis},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(t=e.id)&&void 0!==t?t:Cl("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=Gy(a.triggeredAfterMouseMove,null!==(n=e.throttleDelay)&&void 0!==n?n:1e3/60),a.state={},a}return t=l,n=[{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})}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(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}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=eh(this.props.children,Cy);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return s.indexOf(t)>=0?t:c}return c}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,r=this.container,n=r.getBoundingClientRect(),a={top:(t=n).top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft},c={chartX:Math.round(e.pageX-a.left),chartY:Math.round(e.pageY-a.top)},i=n.width/r.offsetWidth||1,o=this.inRange(c.chartX,c.chartY,i);if(!o)return null;var s=this.state,l=s.xAxisMap,h=s.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&h){var v=Ll(l).scale,p=Ll(h).scale,u=v&&v.invert?v.invert(c.chartX):null,g=p&&p.invert?p.invert(c.chartY):null;return GR(GR({},c),{},{xValue:u,yValue:g})}var m=oD(this.state,this.props.data,this.props.layout,o);return m?GR(GR({},c),m):null}},{key:"inRange",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,a=e/r,c=t/r;if("horizontal"===n||"vertical"===n){var i=this.state.offset;return a>=i.left&&a<=i.left+i.width&&c>=i.top&&c<=i.top+i.height?{x:a,y:c}:null}var o=this.state,s=o.angleAxisMap,l=o.radiusAxisMap;if(s&&l){var h=Ll(s);return FV({x:a,y:c},h)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),r=eh(e,Cy),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}),GR(GR({},Nl(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){jR.on(VR,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){jR.removeListener(VR,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,r){for(var n=this.state.formattedGraphicalItems,a=0,c=n.length;a<c;a++){var i=n[a];if(i.item===e||i.props.key===e.key||t===Xl(i.item.type)&&r===i.childIndex)return i}return null}},{key:"renderAxis",value:function(e,t,r,n){var a=this.props,c=a.width,i=a.height;return o.createElement(Jk,TR({},e,{className:Ri("recharts-".concat(e.axisType," ").concat(e.axisType),e.className),key:t.key||"".concat(r,"-").concat(n),viewBox:{x:0,y:0,width:c,height:i},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,r=t.left,n=t.top,a=t.height,c=t.width;return o.createElement("defs",null,o.createElement("clipPath",{id:e},o.createElement("rect",{x:r,y:n,height:a,width:c})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=IR(t,2),n=r[0],a=r[1];return GR(GR({},e),{},JR({},n,a.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=IR(t,2),n=r[0],a=r[1];return GR(GR({},e),{},JR({},n,a.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 a=0,c=r.length;a<c;a++){var i=r[a],o=i.props,s=i.item,l=Xl(s.type);if("Bar"===l){var h=(o.data||[]).find((function(t){return WC(e,t)}));if(h)return{graphicalItem:i,payload:h}}else if("RadialBar"===l){var v=(o.data||[]).find((function(t){return FV(e,t)}));if(v)return{graphicalItem:i,payload:v}}else if(LL(i,n)||zL(i,n)||BL(i,n)){var p=DL({graphicalItem:i,activeTooltipItem:n,itemData:s.props.data}),u=void 0===s.props.activeIndex?p:s.props.activeIndex;return{graphicalItem:GR(GR({},i),{},{childIndex:u}),payload:BL(i,n)?s.props.data[p]:i.props.data[p]}}}return null}},{key:"render",value:function(){var e=this;if(!th(this))return null;var t,r,n=this.props,a=n.children,c=n.className,i=n.width,s=n.height,l=n.style,h=n.compact,v=n.title,p=n.desc,u=NR(n,RR),g=ih(u);if(h)return o.createElement(gh,TR({},g,{width:i,height:s,title:v,desc:p}),this.renderClipPath(),lh(a,this.renderMap));this.props.accessibilityLayer&&(g.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,g.role=null!==(r=this.props.role)&&void 0!==r?r:"img",g.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},g.onFocus=function(){e.accessibilityManager.focus()});var m=this.parseEventsOfWrapper();return o.createElement("div",TR({className:Ri("recharts-wrapper",c),style:GR({position:"relative",cursor:"default",width:i,height:s},l)},m,{ref:function(t){e.container=t},role:"region"}),o.createElement(gh,TR({},g,{width:i,height:s,title:v,desc:p,style:rD}),this.renderClipPath(),lh(a,this.renderMap)),this.renderLegend(),this.renderTooltip())}}],n&&FR(t.prototype,n),a&&FR(t,a),Object.defineProperty(t,"prototype",{writable:!1}),l}(),JR(t,"displayName",r),JR(t,"defaultProps",GR({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),JR(t,"getDerivedStateFromProps",(function(e,t){var r=e.dataKey,n=e.data,a=e.children,c=e.width,i=e.height,o=e.layout,s=e.stackOffset,l=e.margin;if(void 0===t.updateId){var h=hD(e);return GR(GR(GR({},h),{},{updateId:0},m(GR(GR({props:e},h),{},{updateId:0}),t)),{},{prevDataKey:r,prevData:n,prevWidth:c,prevHeight:i,prevLayout:o,prevStackOffset:s,prevMargin:l,prevChildren:a})}if(r!==t.prevDataKey||n!==t.prevData||c!==t.prevWidth||i!==t.prevHeight||o!==t.prevLayout||s!==t.prevStackOffset||!kl(l,t.prevMargin)){var v=hD(e),p={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},u=GR(GR({},oD(t,n,o)),{},{updateId:t.updateId+1}),g=GR(GR(GR({},v),p),u);return GR(GR(GR({},g),m(GR({props:e},g),t)),{},{prevDataKey:r,prevData:n,prevWidth:c,prevHeight:i,prevLayout:o,prevStackOffset:s,prevMargin:l,prevChildren:a})}if(!oh(a,t.prevChildren)){var d=!ll(n)?t.updateId:t.updateId+1;return GR(GR({updateId:d},m(GR(GR({props:e},t),{},{updateId:d}),t)),{},{prevChildren:a})}return null})),JR(t,"renderActiveDot",(function(e,t){var r;return r=y(e)?g(e,t):_o(e)?e(t):o.createElement(iA,t),o.createElement(_h,{className:"recharts-active-dot",key:t.key},r)})),t},gD=uD({chartName:"LineChart",GraphicalChild:jS,axisComponents:[{axisType:"xAxis",AxisComp:sR},{axisType:"yAxis",AxisComp:lR}],formatAxisMap:ok}),mD=uD({chartName:"BarChart",GraphicalChild:ek,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:sR},{axisType:"yAxis",AxisComp:lR}],formatAxisMap:ok});uD({chartName:"PieChart",GraphicalChild:qL,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:qA},{axisType:"radiusAxis",AxisComp:RA}],formatAxisMap:IV,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var dD=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},fD=_B,_D=rs,wD=Object.prototype.hasOwnProperty;var bD=function(e,t,r){var n=e[t];wD.call(e,t)&&_D(n,r)&&(void 0!==r||t in e)||fD(e,t,r)},yD=bD,xD=_B;var ZD=function(e,t,r,n){var a=!r;r||(r={});for(var c=-1,i=t.length;++c<i;){var o=t[c],s=n?n(r[o],e[o],o,r,e):void 0;void 0===s&&(s=e[o]),a?xD(r,o,s):yD(r,o,s)}return r},OD=ZD,MD=Pg;var ED=function(e,t){return e&&OD(t,MD(t),e)};var HD=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},PD=vo,jD=mg,VD=HD,CD=Object.prototype.hasOwnProperty;var AD=function(e){if(!PD(e))return VD(e);var t=jD(e),r=[];for(var n in e)("constructor"!=n||!t&&CD.call(e,n))&&r.push(n);return r},LD=ug,zD=AD,BD=Og;var kD=function(e){return BD(e)?LD(e,!0):zD(e)},SD=ZD,RD=kD;var DD=function(e,t){return e&&SD(t,RD(t),e)},ID={exports:{}};!function(e,t){var r=Fi,n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,c=a&&a.exports===n?r.Buffer:void 0,i=c?c.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}}(ID,ID.exports);var TD=ID.exports;var ND=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},FD=ZD,QD=Au;var $D=function(e,t){return FD(e,QD(e),t)},YD=yu,UD=GA,WD=Au,XD=Eu,KD=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)YD(t,WD(e)),e=UD(e);return t}:XD,qD=ZD,GD=KD;var JD=function(e,t){return qD(e,GD(e),t)},eI=Ou,tI=KD,rI=kD;var nI=function(e){return eI(e,rI,tI)},aI=Object.prototype.hasOwnProperty;var cI=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&aI.call(e,"index")&&(r.index=e.index,r.input=e.input),r},iI=hu;var oI=function(e){var t=new e.constructor(e.byteLength);return new iI(t).set(new iI(e)),t},sI=oI;var lI=function(e,t){var r=t?sI(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},hI=/\w*$/;var vI=function(e){var t=new e.constructor(e.source,hI.exec(e));return t.lastIndex=e.lastIndex,t},pI=Qi?Qi.prototype:void 0,uI=pI?pI.valueOf:void 0;var gI=oI;var mI=oI,dI=lI,fI=vI,_I=function(e){return uI?Object(uI.call(e)):{}},wI=function(e,t){var r=t?gI(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};var bI=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return mI(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return dI(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return wI(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return fI(e);case"[object Symbol]":return _I(e)}},yI=vo,xI=Object.create,ZI=function(){function e(){}return function(t){if(!yI(t))return{};if(xI)return xI(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),OI=ZI,MI=GA,EI=mg;var HI=function(e){return"function"!=typeof e.constructor||EI(e)?{}:OI(MI(e))},PI=nm,jI=ro;var VI=function(e){return jI(e)&&"[object Map]"==PI(e)},CI=Ju,AI=tg&&tg.isMap,LI=AI?CI(AI):VI,zI=nm,BI=ro;var kI=function(e){return BI(e)&&"[object Set]"==zI(e)},SI=Ju,RI=tg&&tg.isSet,DI=RI?SI(RI):kI,II=Gp,TI=dD,NI=bD,FI=ED,QI=DD,$I=TD,YI=ND,UI=$D,WI=JD,XI=Ag,KI=nI,qI=nm,GI=cI,JI=bI,eT=HI,tT=Di,rT=Qu,nT=LI,aT=vo,cT=DI,iT=Pg,oT=kD,sT="[object Arguments]",lT="[object Function]",hT="[object Object]",vT={};vT[sT]=vT["[object Array]"]=vT["[object ArrayBuffer]"]=vT["[object DataView]"]=vT["[object Boolean]"]=vT["[object Date]"]=vT["[object Float32Array]"]=vT["[object Float64Array]"]=vT["[object Int8Array]"]=vT["[object Int16Array]"]=vT["[object Int32Array]"]=vT["[object Map]"]=vT["[object Number]"]=vT[hT]=vT["[object RegExp]"]=vT["[object Set]"]=vT["[object String]"]=vT["[object Symbol]"]=vT["[object Uint8Array]"]=vT["[object Uint8ClampedArray]"]=vT["[object Uint16Array]"]=vT["[object Uint32Array]"]=!0,vT["[object Error]"]=vT[lT]=vT["[object WeakMap]"]=!1;var pT=function e(t,r,n,a,c,i){var o,s=1&r,l=2&r,h=4&r;if(n&&(o=c?n(t,a,c,i):n(t)),void 0!==o)return o;if(!aT(t))return t;var v=tT(t);if(v){if(o=GI(t),!s)return YI(t,o)}else{var p=qI(t),u=p==lT||"[object GeneratorFunction]"==p;if(rT(t))return $I(t,s);if(p==hT||p==sT||u&&!c){if(o=l||u?{}:eT(t),!s)return l?WI(t,QI(o,t)):UI(t,FI(o,t))}else{if(!vT[p])return c?t:{};o=JI(t,p,s)}}i||(i=new II);var g=i.get(t);if(g)return g;i.set(t,o),cT(t)?t.forEach((function(a){o.add(e(a,r,n,a,t,i))})):nT(t)&&t.forEach((function(a,c){o.set(c,e(a,r,n,c,t,i))}));var m=v?void 0:(h?l?KI:XI:l?oT:iT)(t);return TI(m||t,(function(a,c){m&&(a=t[c=a]),NI(o,c,e(a,r,n,c,t,i))})),o},uT=cl,gT=yh;var mT=function(e,t){return t.length<2?e:uT(e,gT(t,0,-1))},dT=el,fT=iC,_T=mT,wT=rl;var bT=function(e,t){return t=dT(t,e),null==(e=_T(e,t))||delete e[wT(fT(t))]},yT=oL;var xT=tf;var ZT=function(e){return(null==e?0:e.length)?xT(e,1):[]},OT=ZT,MT=Pf,ET=Sf;var HT=Ts,PT=pT,jT=bT,VT=el,CT=ZD,AT=function(e){return yT(e)?void 0:e},LT=nI,zT=function(e){return ET(MT(e,void 0,OT),e+"")}((function(e,t){var r={};if(null==e)return r;var n=!1;t=HT(t,(function(t){return t=VT(t,e),n||(n=t.length>1),t})),CT(e,LT(e),r),n&&(r=PT(r,7,AT));for(var a=t.length;a--;)jT(r,t[a]);return r})),BT=zt(zT),kT=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],ST=["width","height","className","style","children","type"];function RT(e){return RT="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},RT(e)}function DT(){return DT=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},DT.apply(this,arguments)}function IT(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function TT(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,XT(n.key),n)}}function NT(e,t){return NT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NT(e,t)}function FT(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=$T(e);if(t){var a=$T(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===RT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return QT(e)}(this,r)}}function QT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $T(e){return $T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$T(e)}function YT(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 UT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?YT(Object(r),!0).forEach((function(t){WT(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YT(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function WT(e,t,r){return(t=XT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XT(e){var t=function(e,t){if("object"!==RT(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==RT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RT(t)?t:String(t)}var KT="value",qT=function e(t){var r,n,a=t.depth,c=t.node,i=t.index,o=t.valueKey,s=c.children,l=a+1,h=s&&s.length?s.map((function(t,r){return e({depth:l,node:t,index:r,valueKey:o})})):null;return n=s&&s.length?h.reduce((function(e,t){return e+t[KT]}),0):Ml(c[o])||c[o]<=0?0:c[o],UT(UT({},c),{},(WT(r={children:h},KT,n),WT(r,"depth",a),WT(r,"index",i),r))},GT=function(e,t,r){var n=t*t,a=e.area*e.area,c=e.reduce((function(e,t){return{min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}}),{min:1/0,max:0}),i=c.min,o=c.max;return a?Math.max(n*o*r/a,a/(n*i*r)):1/0},JT=function(e,t,r,n){return t===r.width?function(e,t,r,n){var a=t?Math.round(e.area/t):0;(n||a>r.height)&&(a=r.height);for(var c,i=r.x,o=0,s=e.length;o<s;o++)(c=e[o]).x=i,c.y=r.y,c.height=a,c.width=Math.min(a?Math.round(c.area/a):0,r.x+r.width-i),i+=c.width;return c.width+=r.x+r.width-i,UT(UT({},r),{},{y:r.y+a,height:r.height-a})}(e,t,r,n):function(e,t,r,n){var a=t?Math.round(e.area/t):0;(n||a>r.width)&&(a=r.width);for(var c,i=r.y,o=0,s=e.length;o<s;o++)(c=e[o]).x=r.x,c.y=i,c.width=a,c.height=Math.min(a?Math.round(c.area/a):0,r.y+r.height-i),i+=c.height;return c&&(c.height+=r.y+r.height-i),UT(UT({},r),{},{x:r.x+a,width:r.width-a})}(e,t,r,n)},eN=function e(t,r){var n=t.children;if(n&&n.length){var a,c,i=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}(t),o=[],s=1/0,l=Math.min(i.width,i.height),h=function(e,t){var r=t<0?0:t;return e.map((function(e){var t=e[KT]*r;return UT(UT({},e),{},{area:Ml(t)||t<=0?0:t})}))}(n,i.width*i.height/t[KT]),v=h.slice();for(o.area=0;v.length>0;)o.push(a=v[0]),o.area+=a.area,(c=GT(o,l,r))<=s?(v.shift(),s=c):(o.area-=o.pop().area,i=JT(o,l,i,!1),l=Math.min(i.width,i.height),o.length=o.area=0,s=1/0);return o.length&&(i=JT(o,l,i,!0),o.length=o.area=0),UT(UT({},t),{},{children:h.map((function(t){return e(t,r)}))})}return t},tN={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},rN=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&&NT(e,t)}(c,Z);var t,r,n,a=FT(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return WT(QT(e=a.call.apply(a,[this].concat(r))),"state",UT({},tN)),WT(QT(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),_o(t)&&t()})),WT(QT(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),_o(t)&&t()})),e}return t=c,r=[{key:"handleMouseEnter",value:function(e,t){t.persist();var r=this.props,n=r.onMouseEnter;eh(r.children,Cy)?this.setState({isTooltipActive:!0,activeNode:e},(function(){n&&n(e,t)})):n&&n(e,t)}},{key:"handleMouseLeave",value:function(e,t){t.persist();var r=this.props,n=r.onMouseLeave;eh(r.children,Cy)?this.setState({isTooltipActive:!1,activeNode:null},(function(){n&&n(e,t)})):n&&n(e,t)}},{key:"handleClick",value:function(e){var t=this.props,r=t.onClick;if("nest"===t.type&&e.children){var n=this.props,a=n.width,c=n.height,i=n.dataKey,o=n.aspectRatio,s=qT({depth:0,node:UT(UT({},e),{},{x:0,y:0,width:a,height:c}),index:0,valueKey:i}),l=eN(s,o),h=this.state.nestIndex;h.push(e),this.setState({formatRoot:l,currentRoot:s,nestIndex:h})}r&&r(e)}},{key:"handleNestIndex",value:function(e,t){var r=this.state.nestIndex,n=this.props,a=n.width,c=n.height,i=n.dataKey,o=n.aspectRatio,s=qT({depth:0,node:UT(UT({},e),{},{x:0,y:0,width:a,height:c}),index:0,valueKey:i}),l=eN(s,o);r=r.slice(0,t+1),this.setState({formatRoot:l,currentRoot:e,nestIndex:r})}},{key:"renderItem",value:function(e,t,r){var n=this,a=this.props,c=a.isAnimationActive,i=a.animationBegin,s=a.animationDuration,l=a.animationEasing,h=a.isUpdateAnimationActive,v=a.type,p=a.animationId,u=a.colorPanel,g=this.state.isAnimationFinished,m=t.width,d=t.height,f=t.x,_=t.y,w=t.depth,b=parseInt("".concat((2*Math.random()-1)*m),10),y={};return(r||"nest"===v)&&(y={onMouseEnter:this.handleMouseEnter.bind(this,t),onMouseLeave:this.handleMouseLeave.bind(this,t),onClick:this.handleClick.bind(this,t)}),c?o.createElement(ib,{begin:i,duration:s,isActive:c,easing:l,key:"treemap-".concat(p),from:{x:f,y:_,width:m,height:d},to:{x:f,y:_,width:m,height:d},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var a=r.x,p=r.y,m=r.width,d=r.height;return o.createElement(ib,{from:"translate(".concat(b,"px, ").concat(b,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:i,easing:l,isActive:c,duration:s},o.createElement(_h,y,w>2&&!g?null:n.constructor.renderContentItem(e,UT(UT({},t),{},{isAnimationActive:c,isUpdateAnimationActive:!h,width:m,height:d,x:a,y:p}),v,u)))})):o.createElement(_h,y,this.constructor.renderContentItem(e,UT(UT({},t),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:m,height:d,x:f,y:_}),v,u))}},{key:"renderNode",value:function(e,t){var r=this,n=this.props,a=n.content,c=n.type,i=UT(UT(UT({},ih(this.props)),t),{},{root:e}),s=!t.children||!t.children.length;return!(this.state.currentRoot.children||[]).filter((function(e){return e.depth===t.depth&&e.name===t.name})).length&&e.depth&&"nest"===c?null:o.createElement(_h,{key:"recharts-treemap-node-".concat(i.x,"-").concat(i.y,"-").concat(i.name),className:"recharts-treemap-depth-".concat(t.depth)},this.renderItem(a,i,s),t.children&&t.children.length?t.children.map((function(e){return r.renderNode(t,e)})):null)}},{key:"renderAllNodes",value:function(){var e=this.state.formatRoot;return e?this.renderNode(e,e):null}},{key:"renderTooltip",value:function(){var e=this.props,t=e.children,r=e.nameKey,n=eh(t,Cy);if(!n)return null;var a=this.props,c=a.width,i=a.height,s=this.state,l=s.isTooltipActive,h=s.activeNode,v={x:0,y:0,width:c,height:i},p=h?{x:h.x+h.width/2,y:h.y+h.height/2}:null,u=l&&h?[{payload:h,name:rV(h,r,""),value:rV(h,KT)}]:[];return o.cloneElement(n,{viewBox:v,active:l,coordinate:p,label:"",payload:u})}},{key:"renderNestIndex",value:function(){var e=this,t=this.props,r=t.nameKey,n=t.nestIndexContent,a=this.state.nestIndex;return o.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},a.map((function(t,a){var c=sl(t,r,"root"),i=null;return o.isValidElement(n)&&(i=o.cloneElement(n,t,a)),i=_o(n)?n(t,a):c,o.createElement("div",{onClick:e.handleNestIndex.bind(e,t,a),key:"nest-index-".concat(Cl()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},i)})))}},{key:"render",value:function(){if(!th(this))return null;var e=this.props,t=e.width,r=e.height,n=e.className,a=e.style,c=e.children,i=e.type,s=IT(e,ST),l=ih(s);return o.createElement("div",{className:Ri("recharts-wrapper",n),style:UT(UT({},a),{},{position:"relative",cursor:"default",width:t,height:r}),role:"region"},o.createElement(gh,DT({},l,{width:t,height:"nest"===i?r-30:r}),this.renderAllNodes(),ch(c)),this.renderTooltip(),"nest"===i&&this.renderNestIndex())}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.data!==t.prevData||e.type!==t.prevType||e.width!==t.prevWidth||e.height!==t.prevHeight||e.dataKey!==t.prevDataKey||e.aspectRatio!==t.prevAspectRatio){var r=qT({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,valueKey:e.dataKey}),n=eN(r,e.aspectRatio);return UT(UT({},t),{},{formatRoot:n,currentRoot:r,nestIndex:[r],prevAspectRatio:e.aspectRatio,prevData:e.data,prevWidth:e.width,prevHeight:e.height,prevDataKey:e.dataKey,prevType:e.type})}return null}},{key:"renderContentItem",value:function(e,t,r,n){if(o.isValidElement(e))return o.cloneElement(e,t);if(_o(e))return e(t);var a=t.x,c=t.y,i=t.width,s=t.height,l=t.index,h=null;i>10&&s>10&&t.children&&"nest"===r&&(h=o.createElement(aA,{points:[{x:a+2,y:c+s/2},{x:a+6,y:c+s/2+3},{x:a+2,y:c+s/2+6}]}));var v=null,p=gx(t.name);i>20&&s>20&&p.width<i&&p.height<s&&(v=o.createElement("text",{x:a+8,y:c+s/2+7,fontSize:14},t.name));var u=n||kT;return o.createElement("g",null,o.createElement(KC,DT({fill:t.depth<2?u[l%u.length]:"rgba(255,255,255,0)",stroke:"#fff"},BT(t,"children"),{role:"img"})),h,v)}}],r&&TT(t.prototype,r),n&&TT(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();WT(rN,"displayName","Treemap"),WT(rN,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!by.isSsr,isUpdateAnimationActive:!by.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var nN=function(e,t){for(var r,n=-1,a=e.length;++n<a;){var c=t(e[n]);void 0!==c&&(r=void 0===r?c:r+c)}return r},aN=vd,cN=nN;var iN=function(e,t){return e&&e.length?cN(e,aN(t)):0},oN=zt(iN),sN=["width","height","className","style","children"],lN=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function hN(e){return hN="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},hN(e)}function vN(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function pN(){return pN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pN.apply(this,arguments)}function uN(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,yN(n.key),n)}}function gN(e,t){return gN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gN(e,t)}function mN(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=fN(e);if(t){var a=fN(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===hN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dN(e)}(this,r)}}function dN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fN(e){return fN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fN(e)}function _N(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 wN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_N(Object(r),!0).forEach((function(t){bN(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bN(e,t,r){return(t=yN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yN(e){var t=function(e,t){if("object"!==hN(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==hN(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hN(t)?t:String(t)}var xN={x:0,y:0},ZN=function(e){return e.y+e.dy/2},ON=function(e){return e&&e.value||0},MN=function(e,t){return t.reduce((function(t,r){return t+ON(e[r])}),0)},EN=function(e,t,r){return r.reduce((function(r,n){var a=t[n],c=e[a.source];return r+ZN(c)*ON(t[n])}),0)},HN=function(e,t,r){return r.reduce((function(r,n){var a=t[n],c=e[a.target];return r+ZN(c)*ON(t[n])}),0)},PN=function(e,t){return e.y-t.y},jN=function e(t,r){for(var n=r.targetNodes,a=0,c=n.length;a<c;a++){var i=t[n[a]];i&&(i.depth=Math.max(r.depth+1,i.depth),e(t,i))}},VN=function(e,t,r){for(var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=0,c=e.length;a<c;a++){var i=e[a],o=i.length;n&&i.sort(PN);for(var s=0,l=0;l<o;l++){var h=i[l],v=s-h.y;v>0&&(h.y+=v),s=h.y+h.dy+r}s=t+r;for(var p=o-1;p>=0;p--){var u=i[p],g=u.y+u.dy+r-s;if(!(g>0))break;u.y-=g,s=u.y}}},CN=function(e,t,r,n){for(var a=0,c=t.length;a<c;a++)for(var i=t[a],o=0,s=i.length;o<s;o++){var l=i[o];if(l.sourceLinks.length){var h=MN(r,l.sourceLinks),v=EN(e,r,l.sourceLinks)/h;l.y+=(v-ZN(l))*n}}},AN=function(e,t,r,n){for(var a=t.length-1;a>=0;a--)for(var c=t[a],i=0,o=c.length;i<o;i++){var s=c[i];if(s.targetLinks.length){var l=MN(r,s.targetLinks),h=HN(e,r,s.targetLinks)/l;s.y+=(h-ZN(s))*n}}},LN=function(e){var t=e.data,r=e.width,n=e.height,a=e.iterations,c=e.nodeWidth,i=e.nodePadding,o=e.sort,s=t.links,l=function(e,t,r){for(var n=e.nodes,a=e.links,c=n.map((function(e,t){var r=function(e,t){for(var r=[],n=[],a=[],c=[],i=0,o=e.length;i<o;i++){var s=e[i];s.source===t&&(a.push(s.target),c.push(i)),s.target===t&&(r.push(s.source),n.push(i))}return{sourceNodes:r,sourceLinks:n,targetLinks:c,targetNodes:a}}(a,t);return wN(wN(wN({},e),r),{},{value:Math.max(MN(a,r.sourceLinks),MN(a,r.targetLinks)),depth:0})})),i=0,o=c.length;i<o;i++){var s=c[i];s.sourceNodes.length||jN(c,s)}var l=wA(c,(function(e){return e.depth})).depth;if(l>=1)for(var h=(t-r)/l,v=0,p=c.length;v<p;v++){var u=c[v];u.targetNodes.length||(u.depth=l),u.x=u.depth*h,u.dx=r}return{tree:c,maxDepth:l}}(t,r,c),h=l.tree,v=function(e){for(var t=[],r=0,n=e.length;r<n;r++){var a=e[r];t[a.depth]||(t[a.depth]=[]),t[a.depth].push(a)}return t}(h),p=function(e,t,r,n){for(var a=EP(e.map((function(e){return(t-(e.length-1)*r)/oN(e,ON)}))),c=0,i=e.length;c<i;c++)for(var o=0,s=e[c].length;o<s;o++){var l=e[c][o];l.y=o,l.dy=l.value*a}return n.map((function(e){return wN(wN({},e),{},{dy:ON(e)*a})}))}(v,n,i,s);VN(v,n,i,o);for(var u=1,g=1;g<=a;g++)AN(h,v,p,u*=.99),VN(v,n,i,o),CN(h,v,p,u),VN(v,n,i,o);return function(e,t){for(var r=0,n=e.length;r<n;r++){var a=e[r],c=0,i=0;a.targetLinks.sort((function(r,n){return e[t[r].target].y-e[t[n].target].y})),a.sourceLinks.sort((function(r,n){return e[t[r].source].y-e[t[n].source].y}));for(var o=0,s=a.targetLinks.length;o<s;o++){var l=t[a.targetLinks[o]];l&&(l.sy=c,c+=l.dy)}for(var h=0,v=a.sourceLinks.length;h<v;h++){var p=t[a.sourceLinks[h]];p&&(p.ty=i,i+=p.dy)}}}(h,p),{nodes:h,links:p}},zN=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&&gN(e,t)}(c,Z);var t,r,n,a=mN(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return bN(dN(e=a.call.apply(a,[this].concat(r))),"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),e}return t=c,r=[{key:"handleMouseEnter",value:function(e,t,r){var n=this.props,a=n.onMouseEnter,c=eh(n.children,Cy);c?this.setState((function(r){return"hover"===c.props.trigger?wN(wN({},r),{},{activeElement:e,activeElementType:t,isTooltipActive:!0}):r}),(function(){a&&a(e,t,r)})):a&&a(e,t,r)}},{key:"handleMouseLeave",value:function(e,t,r){var n=this.props,a=n.onMouseLeave,c=eh(n.children,Cy);c?this.setState((function(e){return"hover"===c.props.trigger?wN(wN({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):e}),(function(){a&&a(e,t,r)})):a&&a(e,t,r)}},{key:"handleClick",value:function(e,t,r){var n=this.props,a=n.onClick,c=eh(n.children,Cy);c&&"click"===c.props.trigger&&(this.state.isTooltipActive?this.setState((function(e){return wN(wN({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(r){return wN(wN({},r),{},{activeElement:e,activeElementType:t,isTooltipActive:!0})}))),a&&a(e,t,r)}},{key:"renderLinks",value:function(e,t){var r=this,n=this.props,a=n.linkCurvature,c=n.link,i=n.margin,s=sl(i,"top")||0,l=sl(i,"left")||0;return o.createElement(_h,{className:"recharts-sankey-links",key:"recharts-sankey-links"},e.map((function(e,n){var i=e.sy,h=e.ty,v=e.dy,p=t[e.source],u=t[e.target],g=p.x+p.dx+l,m=u.x+l,d=function(e,t){var r=+e,n=t-r;return function(e){return r+n*e}}(g,m),f=d(a),_=d(1-a),w=wN({sourceX:g,targetX:m,sourceY:p.y+i+v/2+s,targetY:u.y+h+v/2+s,sourceControlX:f,targetControlX:_,sourceRelativeY:i,targetRelativeY:h,linkWidth:v,index:n,payload:wN(wN({},e),{},{source:p,target:u})},ih(c)),b={onMouseEnter:r.handleMouseEnter.bind(r,w,"link"),onMouseLeave:r.handleMouseLeave.bind(r,w,"link"),onClick:r.handleClick.bind(r,w,"link")};return o.createElement(_h,pN({key:"link-".concat(e.source,"-").concat(e.target,"-").concat(e.value)},b),r.constructor.renderLinkItem(c,w))})))}},{key:"renderNodes",value:function(e){var t=this,r=this.props,n=r.node,a=r.margin,c=sl(a,"top")||0,i=sl(a,"left")||0;return o.createElement(_h,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},e.map((function(e,r){var a=e.x,s=e.y,l=e.dx,h=e.dy,v=wN(wN({},ih(n)),{},{x:a+i,y:s+c,width:l,height:h,index:r,payload:e}),p={onMouseEnter:t.handleMouseEnter.bind(t,v,"node"),onMouseLeave:t.handleMouseLeave.bind(t,v,"node"),onClick:t.handleClick.bind(t,v,"node")};return o.createElement(_h,pN({key:"node-".concat(e.x,"-").concat(e.y,"-").concat(e.value)},p),t.constructor.renderNodeItem(n,v))})))}},{key:"renderTooltip",value:function(){var e=this.props,t=e.children,r=e.width,n=e.height,a=e.nameKey,c=eh(t,Cy);if(!c)return null;var i,s=this.state,l=s.isTooltipActive,h=s.activeElement,v=s.activeElementType,p={x:0,y:0,width:r,height:n},u=h?(i=h,"node"===v?{x:i.x+i.width/2,y:i.y+i.height/2}:{x:(i.sourceX+i.targetX)/2,y:(i.sourceY+i.targetY)/2}):xN,g=h?function(e,t,r){var n=e.payload;if("node"===t)return[{payload:e,name:rV(n,r,""),value:rV(n,"value")}];if(n.source&&n.target){var a=rV(n.source,r,""),c=rV(n.target,r,"");return[{payload:e,name:"".concat(a," - ").concat(c),value:rV(n,"value")}]}return[]}(h,v,a):[];return o.cloneElement(c,{viewBox:p,active:l,coordinate:u,label:"",payload:g})}},{key:"render",value:function(){if(!th(this))return null;var e=this.props,t=e.width,r=e.height,n=e.className,a=e.style,c=e.children,i=vN(e,sN),s=this.state,l=s.links,h=s.nodes,v=ih(i);return o.createElement("div",{className:Ri("recharts-wrapper",n),style:wN(wN({},a),{},{position:"relative",cursor:"default",width:t,height:r}),role:"region"},o.createElement(gh,pN({},v,{width:t,height:r}),ch(c),this.renderLinks(l,h),this.renderNodes(h)),this.renderTooltip())}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.data,n=e.width,a=e.height,c=e.margin,i=e.iterations,o=e.nodeWidth,s=e.nodePadding,l=e.sort;if(r!==t.prevData||n!==t.prevWidth||a!==t.prevHeight||!kl(c,t.prevMargin)||i!==t.prevIterations||o!==t.prevNodeWidth||s!==t.prevNodePadding||l!==t.sort){var h=n-(c&&c.left||0)-(c&&c.right||0),v=a-(c&&c.top||0)-(c&&c.bottom||0),p=LN({data:r,width:h,height:v,iterations:i,nodeWidth:o,nodePadding:s,sort:l}),u=p.links,g=p.nodes;return wN(wN({},t),{},{nodes:g,links:u,prevData:r,prevWidth:i,prevHeight:a,prevMargin:c,prevNodePadding:s,prevNodeWidth:o,prevIterations:i,prevSort:l})}return null}},{key:"renderLinkItem",value:function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if(_o(e))return e(t);var r=t.sourceX,n=t.sourceY,a=t.sourceControlX,c=t.targetX,i=t.targetY,s=t.targetControlX,l=t.linkWidth,h=vN(t,lN);return o.createElement("path",pN({className:"recharts-sankey-link",d:"\n M".concat(r,",").concat(n,"\n C").concat(a,",").concat(n," ").concat(s,",").concat(i," ").concat(c,",").concat(i,"\n "),fill:"none",stroke:"#333",strokeWidth:l,strokeOpacity:"0.2"},ih(h)))}},{key:"renderNodeItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(KC,pN({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},ih(t),{role:"img"}))}}],r&&uN(t.prototype,r),n&&uN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();bN(zN,"displayName","Sankey"),bN(zN,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5},sort:!0}),uD({chartName:"RadarChart",GraphicalChild:vz,axisComponents:[{axisType:"angleAxis",AxisComp:qA},{axisType:"radiusAxis",AxisComp:RA}],formatAxisMap:IV,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),uD({chartName:"ScatterChart",GraphicalChild:oR,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:sR},{axisType:"yAxis",AxisComp:lR},{axisType:"zAxis",AxisComp:$S}],formatAxisMap:ok}),uD({chartName:"AreaChart",GraphicalChild:QS,axisComponents:[{axisType:"xAxis",AxisComp:sR},{axisType:"yAxis",AxisComp:lR}],formatAxisMap:ok}),uD({chartName:"RadialBarChart",GraphicalChild:Lz,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:qA},{axisType:"radiusAxis",AxisComp:RA}],formatAxisMap:IV,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var BN,kN=uD({chartName:"ComposedChart",GraphicalChild:[jS,QS,ek,oR],axisComponents:[{axisType:"xAxis",AxisComp:sR},{axisType:"yAxis",AxisComp:lR},{axisType:"zAxis",AxisComp:$S}],formatAxisMap:ok});function SN(e){return SN="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},SN(e)}function RN(){return RN=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},RN.apply(this,arguments)}function DN(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 IN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?DN(Object(r),!0).forEach((function(t){TN(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DN(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function TN(e,t,r){return t=function(e){var t=function(e,t){if("object"!==SN(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==SN(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===SN(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NN(e,t){var r="".concat(t.x||e.x),n=parseInt(r,10),a="".concat(t.y||e.y),c=parseInt(a,10),i="".concat((null==t?void 0:t.height)||(null==e?void 0:e.height)),o=parseInt(i,10);return IN(IN(IN({},t),CL(e)),{},{height:o,x:n,y:c})}function FN(e){return o.createElement(AL,RN({shapeType:"trapezoid",propTransformer:NN},e))}function QN(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $N(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 $N(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 $N(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 YN(e){return YN="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},YN(e)}function UN(){return UN=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},UN.apply(this,arguments)}function WN(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 XN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?WN(Object(r),!0).forEach((function(t){tF(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WN(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function KN(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,rF(n.key),n)}}function qN(e,t){return qN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qN(e,t)}function GN(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=eF(e);if(t){var a=eF(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===YN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return JN(e)}(this,r)}}function JN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eF(e){return eF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eF(e)}function tF(e,t,r){return(t=rF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rF(e){var t=function(e,t){if("object"!==YN(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==YN(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===YN(t)?t:String(t)}var nF=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&&qN(e,t)}(c,Z);var t,r,n,a=GN(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return tF(JN(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!1}),tF(JN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),_o(t)&&t()})),tF(JN(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),_o(t)&&t()})),e}return t=c,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderTrapezoidsStatically",value:function(e){var t=this,r=this.props,n=r.shape,a=r.activeShape;return e.map((function(e,r){var c=t.isActiveIndex(r)?a:n,i=XN(XN({},e),{},{isActive:t.isActiveIndex(r),stroke:e.stroke});return o.createElement(_h,UN({className:"recharts-funnel-trapezoid"},Fl(t.props,e,r),{key:"trapezoid-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.name,"-").concat(null==e?void 0:e.value),role:"img"}),o.createElement(FN,UN({option:c},i)))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,t=this.props,r=t.trapezoids,n=t.isAnimationActive,a=t.animationBegin,c=t.animationDuration,i=t.animationEasing,s=t.animationId,l=this.state.prevTrapezoids;return o.createElement(ib,{begin:a,duration:c,isActive:n,easing:i,from:{t:0},to:{t:1},key:"funnel-".concat(s),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var n=t.t,a=r.map((function(e,t){var r=l&&l[t];if(r){var a=zl(r.x,e.x),c=zl(r.y,e.y),i=zl(r.upperWidth,e.upperWidth),o=zl(r.lowerWidth,e.lowerWidth),s=zl(r.height,e.height);return XN(XN({},e),{},{x:a(n),y:c(n),upperWidth:i(n),lowerWidth:o(n),height:s(n)})}var h=zl(e.x+e.upperWidth/2,e.x),v=zl(e.y+e.height/2,e.y),p=zl(0,e.upperWidth),u=zl(0,e.lowerWidth),g=zl(0,e.height);return XN(XN({},e),{},{x:h(n),y:v(n),upperWidth:p(n),lowerWidth:u(n),height:g(n)})}));return o.createElement(_h,null,e.renderTrapezoidsStatically(a))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,r=e.isAnimationActive,n=this.state.prevTrapezoids;return!(r&&t&&t.length)||n&&kP(n,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.trapezoids,n=e.className,a=e.isAnimationActive,c=this.state.isAnimationFinished;if(t||!r||!r.length)return null;var i=Ri("recharts-trapezoids",n);return o.createElement(_h,{className:i},this.renderTrapezoids(),(!a||c)&&wC.renderCallByParent(this.props,r))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}}],r&&KN(t.prototype,r),n&&KN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();BN=nF,tF(nF,"displayName","Funnel"),tF(nF,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!by.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),tF(nF,"getRealFunnelData",(function(e){var t=e.props,r=t.data,n=t.children,a=ih(e.props),c=Jl(n,ix);return r&&r.length?r.map((function(e,t){return XN(XN(XN({payload:e},a),e),c&&c[t]&&c[t].props)})):c&&c.length?c.map((function(e){return XN(XN({},a),e.props)})):[]})),tF(nF,"getRealWidthHeight",(function(e,t){var r=e.props.width,n=t.width,a=t.height,c=t.left,i=t.right,o=t.top,s=t.bottom,l=a,h=n;return Zl(r)?h=r:gl(r)&&(h=h*parseFloat(r)/100),{realWidth:h-c-i-50,realHeight:l-s-o,offsetX:(n-h)/2,offsetY:(a-l)/2}})),tF(nF,"getComposedData",(function(e){var t=e.item,r=e.offset,n=BN.getRealFunnelData(t),a=t.props,c=a.dataKey,i=a.nameKey,o=a.tooltipType,s=a.lastShapeType,l=a.reversed,h=r.left,v=r.top,p=BN.getRealWidthHeight(t,r),u=p.realHeight,g=p.realWidth,m=p.offsetX,d=p.offsetY,f=Math.max.apply(null,n.map((function(e){return rV(e,c,0)}))),_=n.length,w=u/_,b={x:r.left,y:r.top,width:r.width,height:r.height},y=n.map((function(e,t){var r,a=rV(e,c,0),l=rV(e,i,t),p=a;if(t!==_-1)(r=rV(n[t+1],c,0))instanceof Array&&(r=QN(r,1)[0]);else if(a instanceof Array&&2===a.length){var u=QN(a,2);p=u[0],r=u[1]}else r="rectangle"===s?p:0;var y=(f-p)*g/(2*f)+v+25+m,x=w*t+h+d,Z=p/f*g,O=r/f*g,M=[{name:l,value:p,payload:e,dataKey:c,type:o}],E={x:y+Z/2,y:x+w/2};return XN(XN({x:y,y:x,width:Math.max(Z,O),upperWidth:Z,lowerWidth:O,height:w,name:l,val:p,tooltipPayload:M,tooltipPosition:E},BT(e,"width")),{},{payload:e,parentViewBox:b,labelViewBox:{x:y+(Z-O)/4,y:x,width:Math.abs(Z-O)/2+Math.min(Z,O),height:w}})}));return l&&(y=y.map((function(e,t){var r=e.y-t*w+(_-1-t)*w;return XN(XN({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*w+(_-1-t)*w,tooltipPosition:XN(XN({},e.tooltipPosition),{},{y:r+w/2}),labelViewBox:XN(XN({},e.labelViewBox),{},{y:r})})}))),{trapezoids:y,data:n}})),uD({chartName:"FunnelChart",GraphicalChild:nF,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}}),L.red.red50,L.blue.blue700,L.grey.grey400,L.red.red50,L.blue.blue700,L.red.red50,L.blue.blue200,L.red.red50;const aF={fill:`${L.grey.grey500}`,fontFamily:"Poppins",fontSize:12,textAnchor:"middle",x:0,y:0},cF={tick:{fill:`${L.grey.grey500}`,fontFamily:"Poppins",fontSize:12,fontWeight:400},tickLine:!1,axisLine:!1,label:{fill:`${L.grey.grey800}`,fontSize:12,fontFamily:"Poppins",offset:20,position:"inside"}},iF={type:"monotone",strokeWidth:2},oF=n.div`
4257
+ */"production"===process.env.NODE_ENV?ml.exports=function(){if(ul)return dl;ul=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,f=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case l:case n:case c:case a:case v:return e;default:switch(e=e&&e.$$typeof){case o:case h:case g:case u:case i:return e;default:return p}}case r:return p}}}function b(e){return w(e)===l}return dl.AsyncMode=s,dl.ConcurrentMode=l,dl.ContextConsumer=o,dl.ContextProvider=i,dl.Element=t,dl.ForwardRef=h,dl.Fragment=n,dl.Lazy=g,dl.Memo=u,dl.Portal=r,dl.Profiler=c,dl.StrictMode=a,dl.Suspense=v,dl.isAsyncMode=function(e){return b(e)||w(e)===s},dl.isConcurrentMode=b,dl.isContextConsumer=function(e){return w(e)===o},dl.isContextProvider=function(e){return w(e)===i},dl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},dl.isForwardRef=function(e){return w(e)===h},dl.isFragment=function(e){return w(e)===n},dl.isLazy=function(e){return w(e)===g},dl.isMemo=function(e){return w(e)===u},dl.isPortal=function(e){return w(e)===r},dl.isProfiler=function(e){return w(e)===c},dl.isStrictMode=function(e){return w(e)===a},dl.isSuspense=function(e){return w(e)===v},dl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===c||e===a||e===v||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===u||e.$$typeof===i||e.$$typeof===o||e.$$typeof===h||e.$$typeof===d||e.$$typeof===f||e.$$typeof===_||e.$$typeof===m)},dl.typeOf=w,dl}():ml.exports=(fl||(fl=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,f=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case s:case l:case n:case c:case a:case v:return m;default:var d=m&&m.$$typeof;switch(d){case o:case h:case g:case u:case i:return d;default:return p}}case r:return p}}}var b=s,y=l,x=o,Z=i,O=t,M=h,E=n,H=g,P=u,j=r,V=c,C=a,A=v,L=!1;function z(e){return w(e)===l}_l.AsyncMode=b,_l.ConcurrentMode=y,_l.ContextConsumer=x,_l.ContextProvider=Z,_l.Element=O,_l.ForwardRef=M,_l.Fragment=E,_l.Lazy=H,_l.Memo=P,_l.Portal=j,_l.Profiler=V,_l.StrictMode=C,_l.Suspense=A,_l.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(e)||w(e)===s},_l.isConcurrentMode=z,_l.isContextConsumer=function(e){return w(e)===o},_l.isContextProvider=function(e){return w(e)===i},_l.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_l.isForwardRef=function(e){return w(e)===h},_l.isFragment=function(e){return w(e)===n},_l.isLazy=function(e){return w(e)===g},_l.isMemo=function(e){return w(e)===u},_l.isPortal=function(e){return w(e)===r},_l.isProfiler=function(e){return w(e)===c},_l.isStrictMode=function(e){return w(e)===a},_l.isSuspense=function(e){return w(e)===v},_l.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===c||e===a||e===v||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===u||e.$$typeof===i||e.$$typeof===o||e.$$typeof===h||e.$$typeof===d||e.$$typeof===f||e.$$typeof===_||e.$$typeof===m)},_l.typeOf=w}()),_l);var wl=ml.exports,bl=to,yl=ro;var xl=function(e){return"number"==typeof e||yl(e)&&"[object Number]"==bl(e)},Zl=zt(xl),Ol=xl;var Ml=zt((function(e){return Ol(e)&&e!=+e})),El=function(e){return 0===e?0:e>0?1:-1},Hl=function(e){return gl(e)&&e.indexOf("%")===e.length-1},Pl=function(e){return Zl(e)&&!Ml(e)},jl=function(e){return Pl(e)||gl(e)},Vl=0,Cl=function(e){var t=++Vl;return"".concat(e||"").concat(t)},Al=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Pl(e)&&!gl(e))return n;if(Hl(e)){var c=e.indexOf("%");r=t*parseFloat(e.slice(0,c))/100}else r=+e;return Ml(r)&&(r=n),a&&r>t&&(r=t),r},Ll=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},zl=function(e,t){return Pl(e)&&Pl(t)?function(r){return e+r*(t-e)}:function(){return t}};function Bl(e,t,r){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):sl(e,t))===r})):null}function kl(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 Sl(e){return Sl="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},Sl(e)}var Rl=["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"],Dl=["points","pathLength"],Il={svg:["viewBox","children"],polygon:Dl,polyline:Dl},Tl=["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"],Nl=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(y(e)&&(r=e.props),!po(r))return null;var n={};return Object.keys(r).forEach((function(e){Tl.includes(e)&&(n[e]=t||function(t){return r[e](r,t)})})),n},Fl=function(e,t,r){if(!po(e)||"object"!==Sl(e))return null;var n=null;return Object.keys(e).forEach((function(a){var c=e[a];Tl.includes(a)&&"function"==typeof c&&(n||(n={}),n[a]=function(e,t,r){return function(n){return e(t,r,n),null}}(c,t,r))})),n},Ql=["children"],$l=["children"];function Yl(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Ul(e){return Ul="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},Ul(e)}var Wl={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Xl=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},Kl=null,ql=null,Gl=function e(t){if(t===Kl&&Array.isArray(ql))return ql;var r=[];return x.forEach(t,(function(t){ll(t)||(wl.isFragment(t)?r=r.concat(e(t.props.children)):r.push(t))})),ql=r,Kl=t,r};function Jl(e,t){var r=[],n=[];return n=Array.isArray(t)?t.map((function(e){return Xl(e)})):[Xl(t)],Gl(e).forEach((function(e){var t=sl(e,"type.displayName")||sl(e,"type.name");-1!==n.indexOf(t)&&r.push(e)})),r}function eh(e,t){var r=Jl(e,t);return r&&r[0]}var th=function(e){if(!e||!e.props)return!1;var t=e.props,r=t.width,n=t.height;return!(!Pl(r)||r<=0||!Pl(n)||n<=0)},rh=["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"],nh=function(e){return e&&e.type&&gl(e.type)&&rh.indexOf(e.type)>=0},ah=function(e){return e&&"object"===Ul(e)&&"cx"in e&&"cy"in e&&"r"in e},ch=function(e){var t=[];return Gl(e).forEach((function(e){nh(e)&&t.push(e)})),t},ih=function(e,t,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if(y(e)&&(n=e.props),!po(n))return null;var a={};return Object.keys(n).forEach((function(e){var c;(function(e,t,r,n){var a,c=null!==(a=null==Il?void 0:Il[n])&&void 0!==a?a:[];return!_o(e)&&(n&&c.includes(t)||Rl.includes(t))||r&&Tl.includes(t)})(null===(c=n)||void 0===c?void 0:c[e],e,t,r)&&(a[e]=n[e])})),a},oh=function e(t,r){if(t===r)return!0;var n=x.count(t);if(n!==x.count(r))return!1;if(0===n)return!0;if(1===n)return sh(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var c=t[a],i=r[a];if(Array.isArray(c)||Array.isArray(i)){if(!e(c,i))return!1}else if(!sh(c,i))return!1}return!0},sh=function(e,t){if(ll(e)&&ll(t))return!0;if(!ll(e)&&!ll(t)){var r=e.props||{},n=r.children,a=Yl(r,Ql),c=t.props||{},i=c.children,o=Yl(c,$l);return n&&i?kl(a,o)&&oh(n,i):!n&&!i&&kl(a,o)}return!1},lh=function(e,t){var r=[],n={};return Gl(e).forEach((function(e,a){if(nh(e))r.push(e);else if(e){var c=Xl(e.type),i=t[c]||{},o=i.handler,s=i.once;if(o&&(!s||!n[c])){var l=o(e,c,a);r.push(l),n[c]=!0}}})),r},hh=function(e,t){return Gl(t).indexOf(e)},vh=["children","width","height","viewBox","className","style","title","desc"];function ph(){return ph=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},ph.apply(this,arguments)}function uh(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function gh(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,c=e.className,i=e.style,s=e.title,l=e.desc,h=uh(e,vh),v=a||{width:r,height:n,x:0,y:0},p=Ri("recharts-surface",c);return o.createElement("svg",ph({},ih(h,!0,"svg"),{className:p,width:r,height:n,style:i,viewBox:"".concat(v.x," ").concat(v.y," ").concat(v.width," ").concat(v.height)}),o.createElement("title",null,s),o.createElement("desc",null,l),t)}var mh=["children","className"];function dh(){return dh=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},dh.apply(this,arguments)}function fh(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var _h=o.forwardRef((function(e,t){var r=e.children,n=e.className,a=fh(e,mh),c=Ri("recharts-layer",n);return o.createElement("g",dh({className:c},ih(a,!0),{ref:t}),r)})),wh="production"!==process.env.NODE_ENV,bh=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(wh&&"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 c=0;console.warn(t.replace(/%s/g,(function(){return n[c++]})))}};var yh=function(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var c=Array(a);++n<a;)c[n]=e[n+t];return c},xh=yh;var Zh=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:xh(e,t,r)},Oh=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Mh=function(e){return Oh.test(e)};var Eh=function(e){return e.split("")},Hh="\\ud800-\\udfff",Ph="["+Hh+"]",jh="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Vh="\\ud83c[\\udffb-\\udfff]",Ch="[^"+Hh+"]",Ah="(?:\\ud83c[\\udde6-\\uddff]){2}",Lh="[\\ud800-\\udbff][\\udc00-\\udfff]",zh="(?:"+jh+"|"+Vh+")"+"?",Bh="[\\ufe0e\\ufe0f]?",kh=Bh+zh+("(?:\\u200d(?:"+[Ch,Ah,Lh].join("|")+")"+Bh+zh+")*"),Sh="(?:"+[Ch+jh+"?",jh,Ah,Lh,Ph].join("|")+")",Rh=RegExp(Vh+"(?="+Vh+")|"+Sh+kh,"g");var Dh=Eh,Ih=Mh,Th=function(e){return e.match(Rh)||[]};var Nh=Zh,Fh=Mh,Qh=function(e){return Ih(e)?Th(e):Dh(e)},$h=Xs;var Yh=zt(function(e){return function(t){t=$h(t);var r=Fh(t)?Qh(t):void 0,n=r?r[0]:t.charAt(0),a=r?Nh(r,1).join(""):t.slice(1);return n[e]()+a}}("toUpperCase"));function Uh(e){return function(){return e}}const Wh=Math.abs,Xh=Math.atan2,Kh=Math.cos,qh=Math.max,Gh=Math.min,Jh=Math.sin,ev=Math.sqrt,tv=1e-12,rv=Math.PI,nv=rv/2,av=2*rv;function cv(e){return e>=1?nv:e<=-1?-nv:Math.asin(e)}const iv=Math.PI,ov=2*iv,sv=1e-6,lv=ov-sv;function hv(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class vv{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?hv:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return hv;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,a,c){this._append`C${+e},${+t},${+r},${+n},${this._x1=+a},${this._y1=+c}`}arcTo(e,t,r,n,a){if(e=+e,t=+t,r=+r,n=+n,(a=+a)<0)throw new Error(`negative radius: ${a}`);let c=this._x1,i=this._y1,o=r-e,s=n-t,l=c-e,h=i-t,v=l*l+h*h;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(v>sv)if(Math.abs(h*o-s*l)>sv&&a){let p=r-c,u=n-i,g=o*o+s*s,m=p*p+u*u,d=Math.sqrt(g),f=Math.sqrt(v),_=a*Math.tan((iv-Math.acos((g+v-m)/(2*d*f)))/2),w=_/f,b=_/d;Math.abs(w-1)>sv&&this._append`L${e+w*l},${t+w*h}`,this._append`A${a},${a},0,0,${+(h*p>l*u)},${this._x1=e+b*o},${this._y1=t+b*s}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,n,a,c){if(e=+e,t=+t,c=!!c,(r=+r)<0)throw new Error(`negative radius: ${r}`);let i=r*Math.cos(n),o=r*Math.sin(n),s=e+i,l=t+o,h=1^c,v=c?n-a:a-n;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>sv||Math.abs(this._y1-l)>sv)&&this._append`L${s},${l}`,r&&(v<0&&(v=v%ov+ov),v>lv?this._append`A${r},${r},0,1,${h},${e-i},${t-o}A${r},${r},0,1,${h},${this._x1=s},${this._y1=l}`:v>sv&&this._append`A${r},${r},0,${+(v>=iv)},${h},${this._x1=e+r*Math.cos(a)},${this._y1=t+r*Math.sin(a)}`)}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 pv(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 vv(t)}function uv(e){return e.innerRadius}function gv(e){return e.outerRadius}function mv(e){return e.startAngle}function dv(e){return e.endAngle}function fv(e){return e&&e.padAngle}function _v(e,t,r,n,a,c,i){var o=e-r,s=t-n,l=(i?c:-c)/ev(o*o+s*s),h=l*s,v=-l*o,p=e+h,u=t+v,g=r+h,m=n+v,d=(p+g)/2,f=(u+m)/2,_=g-p,w=m-u,b=_*_+w*w,y=a-c,x=p*m-g*u,Z=(w<0?-1:1)*ev(qh(0,y*y*b-x*x)),O=(x*w-_*Z)/b,M=(-x*_-w*Z)/b,E=(x*w+_*Z)/b,H=(-x*_+w*Z)/b,P=O-d,j=M-f,V=E-d,C=H-f;return P*P+j*j>V*V+C*C&&(O=E,M=H),{cx:O,cy:M,x01:-h,y01:-v,x11:O*(a/y-1),y11:M*(a/y-1)}}function wv(){var e=uv,t=gv,r=Uh(0),n=null,a=mv,c=dv,i=fv,o=null,s=pv(l);function l(){var l,h,v=+e.apply(this,arguments),p=+t.apply(this,arguments),u=a.apply(this,arguments)-nv,g=c.apply(this,arguments)-nv,m=Wh(g-u),d=g>u;if(o||(o=l=s()),p<v&&(h=p,p=v,v=h),p>tv)if(m>av-tv)o.moveTo(p*Kh(u),p*Jh(u)),o.arc(0,0,p,u,g,!d),v>tv&&(o.moveTo(v*Kh(g),v*Jh(g)),o.arc(0,0,v,g,u,d));else{var f,_,w=u,b=g,y=u,x=g,Z=m,O=m,M=i.apply(this,arguments)/2,E=M>tv&&(n?+n.apply(this,arguments):ev(v*v+p*p)),H=Gh(Wh(p-v)/2,+r.apply(this,arguments)),P=H,j=H;if(E>tv){var V=cv(E/v*Jh(M)),C=cv(E/p*Jh(M));(Z-=2*V)>tv?(y+=V*=d?1:-1,x-=V):(Z=0,y=x=(u+g)/2),(O-=2*C)>tv?(w+=C*=d?1:-1,b-=C):(O=0,w=b=(u+g)/2)}var A=p*Kh(w),L=p*Jh(w),z=v*Kh(x),B=v*Jh(x);if(H>tv){var k,S=p*Kh(b),R=p*Jh(b),D=v*Kh(y),I=v*Jh(y);if(m<rv)if(k=function(e,t,r,n,a,c,i,o){var s=r-e,l=n-t,h=i-a,v=o-c,p=v*s-h*l;if(!(p*p<tv))return[e+(p=(h*(t-c)-v*(e-a))/p)*s,t+p*l]}(A,L,D,I,S,R,z,B)){var T=A-k[0],N=L-k[1],F=S-k[0],Q=R-k[1],$=1/Jh(function(e){return e>1?0:e<-1?rv:Math.acos(e)}((T*F+N*Q)/(ev(T*T+N*N)*ev(F*F+Q*Q)))/2),Y=ev(k[0]*k[0]+k[1]*k[1]);P=Gh(H,(v-Y)/($-1)),j=Gh(H,(p-Y)/($+1))}else P=j=0}O>tv?j>tv?(f=_v(D,I,A,L,p,j,d),_=_v(S,R,z,B,p,j,d),o.moveTo(f.cx+f.x01,f.cy+f.y01),j<H?o.arc(f.cx,f.cy,j,Xh(f.y01,f.x01),Xh(_.y01,_.x01),!d):(o.arc(f.cx,f.cy,j,Xh(f.y01,f.x01),Xh(f.y11,f.x11),!d),o.arc(0,0,p,Xh(f.cy+f.y11,f.cx+f.x11),Xh(_.cy+_.y11,_.cx+_.x11),!d),o.arc(_.cx,_.cy,j,Xh(_.y11,_.x11),Xh(_.y01,_.x01),!d))):(o.moveTo(A,L),o.arc(0,0,p,w,b,!d)):o.moveTo(A,L),v>tv&&Z>tv?P>tv?(f=_v(z,B,S,R,v,-P,d),_=_v(A,L,D,I,v,-P,d),o.lineTo(f.cx+f.x01,f.cy+f.y01),P<H?o.arc(f.cx,f.cy,P,Xh(f.y01,f.x01),Xh(_.y01,_.x01),!d):(o.arc(f.cx,f.cy,P,Xh(f.y01,f.x01),Xh(f.y11,f.x11),!d),o.arc(0,0,v,Xh(f.cy+f.y11,f.cx+f.x11),Xh(_.cy+_.y11,_.cx+_.x11),d),o.arc(_.cx,_.cy,P,Xh(_.y11,_.x11),Xh(_.y01,_.x01),!d))):o.arc(0,0,v,x,y,d):o.lineTo(z,B)}else o.moveTo(0,0);if(o.closePath(),l)return o=null,l+""||null}return l.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,n=(+a.apply(this,arguments)+ +c.apply(this,arguments))/2-rv/2;return[Kh(n)*r,Jh(n)*r]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Uh(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Uh(+e),l):t},l.cornerRadius=function(e){return arguments.length?(r="function"==typeof e?e:Uh(+e),l):r},l.padRadius=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Uh(+e),l):n},l.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:Uh(+e),l):a},l.endAngle=function(e){return arguments.length?(c="function"==typeof e?e:Uh(+e),l):c},l.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:Uh(+e),l):i},l.context=function(e){return arguments.length?(o=null==e?null:e,l):o},l}function bv(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function yv(e){this._context=e}function xv(e){return new yv(e)}function Zv(e){return e[0]}function Ov(e){return e[1]}function Mv(e,t){var r=Uh(!0),n=null,a=xv,c=null,i=pv(o);function o(o){var s,l,h,v=(o=bv(o)).length,p=!1;for(null==n&&(c=a(h=i())),s=0;s<=v;++s)!(s<v&&r(l=o[s],s,o))===p&&((p=!p)?c.lineStart():c.lineEnd()),p&&c.point(+e(l,s,o),+t(l,s,o));if(h)return c=null,h+""||null}return e="function"==typeof e?e:void 0===e?Zv:Uh(e),t="function"==typeof t?t:void 0===t?Ov:Uh(t),o.x=function(t){return arguments.length?(e="function"==typeof t?t:Uh(+t),o):e},o.y=function(e){return arguments.length?(t="function"==typeof e?e:Uh(+e),o):t},o.defined=function(e){return arguments.length?(r="function"==typeof e?e:Uh(!!e),o):r},o.curve=function(e){return arguments.length?(a=e,null!=n&&(c=a(n)),o):a},o.context=function(e){return arguments.length?(null==e?n=c=null:c=a(n=e),o):n},o}function Ev(e,t,r){var n=null,a=Uh(!0),c=null,i=xv,o=null,s=pv(l);function l(l){var h,v,p,u,g,m=(l=bv(l)).length,d=!1,f=new Array(m),_=new Array(m);for(null==c&&(o=i(g=s())),h=0;h<=m;++h){if(!(h<m&&a(u=l[h],h,l))===d)if(d=!d)v=h,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),p=h-1;p>=v;--p)o.point(f[p],_[p]);o.lineEnd(),o.areaEnd()}d&&(f[h]=+e(u,h,l),_[h]=+t(u,h,l),o.point(n?+n(u,h,l):f[h],r?+r(u,h,l):_[h]))}if(g)return o=null,g+""||null}function h(){return Mv().defined(a).curve(i).context(c)}return e="function"==typeof e?e:void 0===e?Zv:Uh(+e),t="function"==typeof t?t:Uh(void 0===t?0:+t),r="function"==typeof r?r:void 0===r?Ov:Uh(+r),l.x=function(t){return arguments.length?(e="function"==typeof t?t:Uh(+t),n=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Uh(+t),l):e},l.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Uh(+e),l):n},l.y=function(e){return arguments.length?(t="function"==typeof e?e:Uh(+e),r=null,l):t},l.y0=function(e){return arguments.length?(t="function"==typeof e?e:Uh(+e),l):t},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Uh(+e),l):r},l.lineX0=l.lineY0=function(){return h().x(e).y(t)},l.lineY1=function(){return h().x(e).y(r)},l.lineX1=function(){return h().x(n).y(t)},l.defined=function(e){return arguments.length?(a="function"==typeof e?e:Uh(!!e),l):a},l.curve=function(e){return arguments.length?(i=e,null!=c&&(o=i(c)),l):i},l.context=function(e){return arguments.length?(null==e?c=o=null:o=i(c=e),l):c},l}yv.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 Hv{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 Pv={draw(e,t){const r=ev(t/rv);e.moveTo(r,0),e.arc(0,0,r,0,av)}},jv={draw(e,t){const r=ev(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 Vv=ev(1/3),Cv=2*Vv;var Av={draw(e,t){const r=ev(t/Cv),n=r*Vv;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Lv={draw(e,t){const r=ev(t),n=-r/2;e.rect(n,n,r,r)}};const zv=Jh(rv/10)/Jh(7*rv/10),Bv=Jh(av/10)*zv,kv=-Kh(av/10)*zv;var Sv={draw(e,t){const r=ev(.8908130915292852*t),n=Bv*r,a=kv*r;e.moveTo(0,-r),e.lineTo(n,a);for(let t=1;t<5;++t){const c=av*t/5,i=Kh(c),o=Jh(c);e.lineTo(o*r,-i*r),e.lineTo(i*n-o*a,o*n+i*a)}e.closePath()}};const Rv=ev(3);var Dv={draw(e,t){const r=-ev(t/(3*Rv));e.moveTo(0,2*r),e.lineTo(-Rv*r,-r),e.lineTo(Rv*r,-r),e.closePath()}};const Iv=-.5,Tv=ev(3)/2,Nv=1/ev(12),Fv=3*(Nv/2+1);var Qv={draw(e,t){const r=ev(t/Fv),n=r/2,a=r*Nv,c=n,i=r*Nv+r,o=-c,s=i;e.moveTo(n,a),e.lineTo(c,i),e.lineTo(o,s),e.lineTo(Iv*n-Tv*a,Tv*n+Iv*a),e.lineTo(Iv*c-Tv*i,Tv*c+Iv*i),e.lineTo(Iv*o-Tv*s,Tv*o+Iv*s),e.lineTo(Iv*n+Tv*a,Iv*a-Tv*n),e.lineTo(Iv*c+Tv*i,Iv*i-Tv*c),e.lineTo(Iv*o+Tv*s,Iv*s-Tv*o),e.closePath()}};function $v(){}function Yv(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 Uv(e){this._context=e}function Wv(e){this._context=e}function Xv(e){this._context=e}function Kv(e,t){this._basis=new Uv(e),this._beta=t}function qv(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function Gv(e,t){this._context=e,this._k=(1-t)/6}function Jv(e,t){this._context=e,this._k=(1-t)/6}function ep(e,t){this._context=e,this._k=(1-t)/6}function tp(e,t,r){var n=e._x1,a=e._y1,c=e._x2,i=e._y2;if(e._l01_a>tv){var o=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,a=(a*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>tv){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,h=3*e._l23_a*(e._l23_a+e._l12_a);c=(c*l+e._x1*e._l23_2a-t*e._l12_2a)/h,i=(i*l+e._y1*e._l23_2a-r*e._l12_2a)/h}e._context.bezierCurveTo(n,a,c,i,e._x2,e._y2)}function rp(e,t){this._context=e,this._alpha=t}function np(e,t){this._context=e,this._alpha=t}function ap(e,t){this._context=e,this._alpha=t}function cp(e){this._context=e}function ip(e){return e<0?-1:1}function op(e,t,r){var n=e._x1-e._x0,a=t-e._x1,c=(e._y1-e._y0)/(n||a<0&&-0),i=(r-e._y1)/(a||n<0&&-0),o=(c*a+i*n)/(n+a);return(ip(c)+ip(i))*Math.min(Math.abs(c),Math.abs(i),.5*Math.abs(o))||0}function sp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function lp(e,t,r){var n=e._x0,a=e._y0,c=e._x1,i=e._y1,o=(c-n)/3;e._context.bezierCurveTo(n+o,a+o*t,c-o,i-o*r,c,i)}function hp(e){this._context=e}function vp(e){this._context=new pp(e)}function pp(e){this._context=e}function up(e){this._context=e}function gp(e){var t,r,n=e.length-1,a=new Array(n),c=new Array(n),i=new Array(n);for(a[0]=0,c[0]=2,i[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,c[t]=4,i[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,c[n-1]=7,i[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/c[t-1],c[t]-=r,i[t]-=r*i[t-1];for(a[n-1]=i[n-1]/c[n-1],t=n-2;t>=0;--t)a[t]=(i[t]-a[t+1])/c[t];for(c[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)c[t]=2*e[t+1]-a[t+1];return[a,c]}function mp(e,t){this._context=e,this._t=t}function dp(e,t){if((a=e.length)>1)for(var r,n,a,c=1,i=e[t[0]],o=i.length;c<a;++c)for(n=i,i=e[t[c]],r=0;r<o;++r)i[r][1]+=i[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function fp(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function _p(e,t){return e[t]}function wp(e){const t=[];return t.key=e,t}function bp(e){return bp="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},bp(e)}Uv.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:Yv(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:Yv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Wv.prototype={areaStart:$v,areaEnd:$v,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:Yv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Xv.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:Yv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Kv.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n,a=e[0],c=t[0],i=e[r]-a,o=t[r]-c,s=-1;++s<=r;)n=s/r,this._basis.point(this._beta*e[s]+(1-this._beta)*(a+n*i),this._beta*t[s]+(1-this._beta)*(c+n*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},function e(t){function r(e){return 1===t?new Uv(e):new Kv(e,t)}return r.beta=function(t){return e(+t)},r}(.85),Gv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:qv(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:qv(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return new Gv(e,t)}return r.tension=function(t){return e(+t)},r}(0),Jv.prototype={areaStart:$v,areaEnd:$v,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:qv(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return new Jv(e,t)}return r.tension=function(t){return e(+t)},r}(0),ep.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:qv(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return new ep(e,t)}return r.tension=function(t){return e(+t)},r}(0),rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}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;default:tp(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return t?new rp(e,t):new Gv(e,0)}return r.alpha=function(t){return e(+t)},r}(.5),np.prototype={areaStart:$v,areaEnd:$v,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:tp(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return t?new np(e,t):new Jv(e,0)}return r.alpha=function(t){return e(+t)},r}(.5),ap.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tp(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function r(e){return t?new ap(e,t):new ep(e,0)}return r.alpha=function(t){return e(+t)},r}(.5),cp.prototype={areaStart:$v,areaEnd:$v,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))}},hp.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:lp(this,this._t0,sp(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,lp(this,sp(this,r=op(this,e,t)),r);break;default:lp(this,this._t0,r=op(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(vp.prototype=Object.create(hp.prototype)).point=function(e,t){hp.prototype.point.call(this,t,e)},pp.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,c){this._context.bezierCurveTo(t,e,n,r,c,a)}},up.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=gp(e),a=gp(t),c=0,i=1;i<r;++c,++i)this._context.bezierCurveTo(n[0][c],a[0][c],n[1][c],a[1][c],e[i],t[i]);(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)}},mp.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 yp=["type","size","sizeType"];function xp(){return xp=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},xp.apply(this,arguments)}function Zp(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 Op(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zp(Object(r),!0).forEach((function(t){Mp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mp(e,t,r){return t=function(e){var t=function(e,t){if("object"!==bp(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==bp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bp(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ep(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var Hp={symbolCircle:Pv,symbolCross:jv,symbolDiamond:Av,symbolSquare:Lv,symbolStar:Sv,symbolTriangle:Dv,symbolWye:Qv},Pp=Math.PI/180,jp=function(e){var t,r,n=e.type,a=void 0===n?"circle":n,c=e.size,i=void 0===c?64:c,s=e.sizeType,l=void 0===s?"area":s,h=Op(Op({},Ep(e,yp)),{},{type:a,size:i,sizeType:l}),v=h.className,p=h.cx,u=h.cy,g=ih(h,!0);return p===+p&&u===+u&&i===+i?o.createElement("path",xp({},g,{className:Ri("recharts-symbols",v),transform:"translate(".concat(p,", ").concat(u,")"),d:(t=function(e){var t="symbol".concat(Yh(e));return Hp[t]||Pv}(a),r=function(e,t){let r=null,n=pv(a);function a(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return e="function"==typeof e?e:Uh(e||Pv),t="function"==typeof t?t:Uh(void 0===t?64:+t),a.type=function(t){return arguments.length?(e="function"==typeof t?t:Uh(t),a):e},a.size=function(e){return arguments.length?(t="function"==typeof e?e:Uh(+e),a):t},a.context=function(e){return arguments.length?(r=null==e?null:e,a):r},a}().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*Pp;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}}(i,l,a)),r())})):null};function Vp(e){return Vp="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},Vp(e)}function Cp(){return Cp=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},Cp.apply(this,arguments)}function Ap(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 Lp(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 zp(e,t){return zp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zp(e,t)}function Bp(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=kp(e);if(t){var a=kp(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Vp(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)}(this,r)}}function kp(e){return kp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kp(e)}function Sp(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"!==Vp(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Vp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Vp(t)?t:String(t)}jp.registerSymbol=function(e,t){Hp["symbol".concat(Yh(e))]=t};var Dp=32,Ip=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&&zp(e,t)}(c,Z);var t,r,n,a=Bp(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,r=16,n=Dp/6,a=Dp/3,c=e.inactive?t:e.color;if("plainline"===e.type)return o.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:r,x2:Dp,y2:r,className:"recharts-legend-icon"});if("line"===e.type)return o.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(r,"h").concat(a,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*a,",").concat(r,"\n H").concat(Dp,"M").concat(2*a,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(a,",").concat(r),className:"recharts-legend-icon"});if("rect"===e.type)return o.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(4,"h").concat(Dp,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(o.isValidElement(e.legendIcon)){var i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ap(Object(r),!0).forEach((function(t){Sp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ap(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return delete i.legendIcon,o.cloneElement(e.legendIcon,i)}return o.createElement(jp,{fill:c,cx:r,cy:r,size:Dp,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,r=t.payload,n=t.iconSize,a=t.layout,c=t.formatter,i=t.inactiveColor,s={x:0,y:0,width:Dp,height:Dp},l={display:"horizontal"===a?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(t,r){var a,v=t.formatter||c,p=Ri((Sp(a={"recharts-legend-item":!0},"legend-item-".concat(r),!0),Sp(a,"inactive",t.inactive),a));if("none"===t.type)return null;var u=_o(t.value)?null:t.value;bh(!_o(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 g=t.inactive?i:t.color;return o.createElement("li",Cp({className:p,style:l,key:"legend-item-".concat(r)},Fl(e.props,t,r)),o.createElement(gh,{width:n,height:n,viewBox:s,style:h},e.renderIcon(t)),o.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},v?v(u,t,r):u))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,r=e.layout,n=e.align;if(!t||!t.length)return null;var a={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return o.createElement("ul",{className:"recharts-default-legend",style:a},this.renderItems())}}],r&&Lp(t.prototype,r),n&&Lp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();Sp(Ip,"displayName","Legend"),Sp(Ip,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Tp=ds;var Np=ds,Fp=fs,Qp=Ls;var $p=ds,Yp=function(){this.__data__=new Tp,this.size=0},Up=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Wp=function(e){return this.__data__.get(e)},Xp=function(e){return this.__data__.has(e)},Kp=function(e,t){var r=this.__data__;if(r instanceof Np){var n=r.__data__;if(!Fp||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Qp(n)}return r.set(e,t),this.size=r.size,this};function qp(e){var t=this.__data__=new $p(e);this.size=t.size}qp.prototype.clear=Yp,qp.prototype.delete=Up,qp.prototype.get=Wp,qp.prototype.has=Xp,qp.prototype.set=Kp;var Gp=qp;var Jp=Ls,eu=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},tu=function(e){return this.__data__.has(e)};function ru(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Jp;++t<r;)this.add(e[t])}ru.prototype.add=ru.prototype.push=eu,ru.prototype.has=tu;var nu=ru;var au=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};var cu=function(e,t){return e.has(t)},iu=nu,ou=au,su=cu;var lu=function(e,t,r,n,a,c){var i=1&r,o=e.length,s=t.length;if(o!=s&&!(i&&s>o))return!1;var l=c.get(e),h=c.get(t);if(l&&h)return l==t&&h==e;var v=-1,p=!0,u=2&r?new iu:void 0;for(c.set(e,t),c.set(t,e);++v<o;){var g=e[v],m=t[v];if(n)var d=i?n(m,g,v,t,e,c):n(g,m,v,e,t,c);if(void 0!==d){if(d)continue;p=!1;break}if(u){if(!ou(t,(function(e,t){if(!su(u,t)&&(g===e||a(g,e,r,n,c)))return u.push(t)}))){p=!1;break}}else if(g!==m&&!a(g,m,r,n,c)){p=!1;break}}return c.delete(e),c.delete(t),p},hu=Fi.Uint8Array;var vu=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};var pu=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},uu=hu,gu=rs,mu=lu,du=vu,fu=pu,_u=Qi?Qi.prototype:void 0,wu=_u?_u.valueOf:void 0;var bu=function(e,t,r,n,a,c,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!c(new uu(e),new uu(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return gu(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=du;case"[object Set]":var s=1&n;if(o||(o=fu),e.size!=t.size&&!s)return!1;var l=i.get(e);if(l)return l==t;n|=2,i.set(e,t);var h=mu(o(e),o(t),n,a,c,i);return i.delete(e),h;case"[object Symbol]":if(wu)return wu.call(e)==wu.call(t)}return!1};var yu=function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e},xu=yu,Zu=Di;var Ou=function(e,t,r){var n=t(e);return Zu(e)?n:xu(n,r(e))};var Mu=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,c=[];++r<n;){var i=e[r];t(i,r,e)&&(c[a++]=i)}return c};var Eu=function(){return[]},Hu=Mu,Pu=Eu,ju=Object.prototype.propertyIsEnumerable,Vu=Object.getOwnPropertySymbols,Cu=Vu?function(e){return null==e?[]:(e=Object(e),Hu(Vu(e),(function(t){return ju.call(e,t)})))}:Pu,Au=Cu;var Lu=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},zu=to,Bu=ro;var ku=function(e){return Bu(e)&&"[object Arguments]"==zu(e)},Su=ro,Ru=Object.prototype,Du=Ru.hasOwnProperty,Iu=Ru.propertyIsEnumerable,Tu=ku(function(){return arguments}())?ku:function(e){return Su(e)&&Du.call(e,"callee")&&!Iu.call(e,"callee")},Nu={exports:{}};var Fu=function(){return!1};!function(e,t){var r=Fi,n=Fu,a=t&&!t.nodeType&&t,c=a&&e&&!e.nodeType&&e,i=c&&c.exports===a?r.Buffer:void 0,o=(i?i.isBuffer:void 0)||n;e.exports=o}(Nu,Nu.exports);var Qu=Nu.exports,$u=/^(?:0|[1-9]\d*)$/;var Yu=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&$u.test(e))&&e>-1&&e%1==0&&e<t};var Uu=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Wu=to,Xu=Uu,Ku=ro,qu={};qu["[object Float32Array]"]=qu["[object Float64Array]"]=qu["[object Int8Array]"]=qu["[object Int16Array]"]=qu["[object Int32Array]"]=qu["[object Uint8Array]"]=qu["[object Uint8ClampedArray]"]=qu["[object Uint16Array]"]=qu["[object Uint32Array]"]=!0,qu["[object Arguments]"]=qu["[object Array]"]=qu["[object ArrayBuffer]"]=qu["[object Boolean]"]=qu["[object DataView]"]=qu["[object Date]"]=qu["[object Error]"]=qu["[object Function]"]=qu["[object Map]"]=qu["[object Number]"]=qu["[object Object]"]=qu["[object RegExp]"]=qu["[object Set]"]=qu["[object String]"]=qu["[object WeakMap]"]=!1;var Gu=function(e){return Ku(e)&&Xu(e.length)&&!!qu[Wu(e)]};var Ju=function(e){return function(t){return e(t)}},eg={exports:{}};!function(e,t){var r=Ii,n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,c=a&&a.exports===n&&r.process,i=function(){try{var e=a&&a.require&&a.require("util").types;return e||c&&c.binding&&c.binding("util")}catch(e){}}();e.exports=i}(eg,eg.exports);var tg=eg.exports,rg=Gu,ng=Ju,ag=tg&&tg.isTypedArray,cg=ag?ng(ag):rg,ig=Lu,og=Tu,sg=Di,lg=Qu,hg=Yu,vg=cg,pg=Object.prototype.hasOwnProperty;var ug=function(e,t){var r=sg(e),n=!r&&og(e),a=!r&&!n&&lg(e),c=!r&&!n&&!a&&vg(e),i=r||n||a||c,o=i?ig(e.length,String):[],s=o.length;for(var l in e)!t&&!pg.call(e,l)||i&&("length"==l||a&&("offset"==l||"parent"==l)||c&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||hg(l,s))||o.push(l);return o},gg=Object.prototype;var mg=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||gg)};var dg=function(e,t){return function(r){return e(t(r))}},fg=dg(Object.keys,Object),_g=mg,wg=fg,bg=Object.prototype.hasOwnProperty;var yg=function(e){if(!_g(e))return wg(e);var t=[];for(var r in Object(e))bg.call(e,r)&&"constructor"!=r&&t.push(r);return t},xg=fo,Zg=Uu;var Og=function(e){return null!=e&&Zg(e.length)&&!xg(e)},Mg=ug,Eg=yg,Hg=Og;var Pg=function(e){return Hg(e)?Mg(e):Eg(e)},jg=Ou,Vg=Au,Cg=Pg;var Ag=function(e){return jg(e,Cg,Vg)},Lg=Ag,zg=Object.prototype.hasOwnProperty;var Bg=function(e,t,r,n,a,c){var i=1&r,o=Lg(e),s=o.length;if(s!=Lg(t).length&&!i)return!1;for(var l=s;l--;){var h=o[l];if(!(i?h in t:zg.call(t,h)))return!1}var v=c.get(e),p=c.get(t);if(v&&p)return v==t&&p==e;var u=!0;c.set(e,t),c.set(t,e);for(var g=i;++l<s;){var m=e[h=o[l]],d=t[h];if(n)var f=i?n(d,m,h,t,e,c):n(m,d,h,e,t,c);if(!(void 0===f?m===d||a(m,d,r,n,c):f)){u=!1;break}g||(g="constructor"==h)}if(u&&!g){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(u=!1)}return c.delete(e),c.delete(t),u},kg=So(Fi,"DataView"),Sg=So(Fi,"Promise"),Rg=So(Fi,"Set"),Dg=kg,Ig=fs,Tg=Sg,Ng=Rg,Fg=So(Fi,"WeakMap"),Qg=to,$g=Zo,Yg="[object Map]",Ug="[object Promise]",Wg="[object Set]",Xg="[object WeakMap]",Kg="[object DataView]",qg=$g(Dg),Gg=$g(Ig),Jg=$g(Tg),em=$g(Ng),tm=$g(Fg),rm=Qg;(Dg&&rm(new Dg(new ArrayBuffer(1)))!=Kg||Ig&&rm(new Ig)!=Yg||Tg&&rm(Tg.resolve())!=Ug||Ng&&rm(new Ng)!=Wg||Fg&&rm(new Fg)!=Xg)&&(rm=function(e){var t=Qg(e),r="[object Object]"==t?e.constructor:void 0,n=r?$g(r):"";if(n)switch(n){case qg:return Kg;case Gg:return Yg;case Jg:return Ug;case em:return Wg;case tm:return Xg}return t});var nm=rm,am=Gp,cm=lu,im=bu,om=Bg,sm=nm,lm=Di,hm=Qu,vm=cg,pm="[object Arguments]",um="[object Array]",gm="[object Object]",mm=Object.prototype.hasOwnProperty;var dm=function(e,t,r,n,a,c){var i=lm(e),o=lm(t),s=i?um:sm(e),l=o?um:sm(t),h=(s=s==pm?gm:s)==gm,v=(l=l==pm?gm:l)==gm,p=s==l;if(p&&hm(e)){if(!hm(t))return!1;i=!0,h=!1}if(p&&!h)return c||(c=new am),i||vm(e)?cm(e,t,r,n,a,c):im(e,t,s,r,n,a,c);if(!(1&r)){var u=h&&mm.call(e,"__wrapped__"),g=v&&mm.call(t,"__wrapped__");if(u||g){var m=u?e.value():e,d=g?t.value():t;return c||(c=new am),a(m,d,r,n,c)}}return!!p&&(c||(c=new am),om(e,t,r,n,a,c))},fm=dm,_m=ro;var wm=function e(t,r,n,a,c){return t===r||(null==t||null==r||!_m(t)&&!_m(r)?t!=t&&r!=r:fm(t,r,n,a,e,c))},bm=Gp,ym=wm;var xm=function(e,t,r,n){var a=r.length,c=a,i=!n;if(null==e)return!c;for(e=Object(e);a--;){var o=r[a];if(i&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<c;){var s=(o=r[a])[0],l=e[s],h=o[1];if(i&&o[2]){if(void 0===l&&!(s in e))return!1}else{var v=new bm;if(n)var p=n(l,h,s,e,t,v);if(!(void 0===p?ym(h,l,3,n,v):p))return!1}}return!0},Zm=vo;var Om=function(e){return e==e&&!Zm(e)},Mm=Om,Em=Pg;var Hm=function(e){for(var t=Em(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Mm(a)]}return t};var Pm=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},jm=xm,Vm=Hm,Cm=Pm;var Am=function(e){var t=Vm(e);return 1==t.length&&t[0][2]?Cm(t[0][0],t[0][1]):function(r){return r===e||jm(r,e,t)}};var Lm=function(e,t){return null!=e&&t in Object(e)},zm=el,Bm=Tu,km=Di,Sm=Yu,Rm=Uu,Dm=rl;var Im=function(e,t,r){for(var n=-1,a=(t=zm(t,e)).length,c=!1;++n<a;){var i=Dm(t[n]);if(!(c=null!=e&&r(e,i)))break;e=e[i]}return c||++n!=a?c:!!(a=null==e?0:e.length)&&Rm(a)&&Sm(i,a)&&(km(e)||Bm(e))},Tm=Lm,Nm=Im;var Fm=function(e,t){return null!=e&&Nm(e,t,Tm)},Qm=wm,$m=ol,Ym=Fm,Um=ho,Wm=Om,Xm=Pm,Km=rl;var qm=function(e,t){return Um(e)&&Wm(t)?Xm(Km(e),t):function(r){var n=$m(r,e);return void 0===n&&n===t?Ym(r,e):Qm(t,n,3)}};var Gm=function(e){return e};var Jm=function(e){return function(t){return null==t?void 0:t[e]}},ed=cl;var td=function(e){return function(t){return ed(t,e)}},rd=Jm,nd=td,ad=ho,cd=rl;var id=Am,od=qm,sd=Gm,ld=Di,hd=function(e){return ad(e)?rd(cd(e)):nd(e)};var vd=function(e){return"function"==typeof e?e:null==e?sd:"object"==typeof e?ld(e)?od(e[0],e[1]):id(e):hd(e)};var pd=function(e,t,r,n){for(var a=e.length,c=r+(n?1:-1);n?c--:++c<a;)if(t(e[c],c,e))return c;return-1};var ud=function(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1},gd=pd,md=function(e){return e!=e},dd=ud;var fd=function(e,t,r){return t==t?dd(e,t,r):gd(e,md,r)},_d=fd;var wd=function(e,t){return!!(null==e?0:e.length)&&_d(e,t,0)>-1};var bd=function(e,t,r){for(var n=-1,a=null==e?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1};var yd=Rg,xd=function(){},Zd=yd&&1/pu(new yd([,-0]))[1]==1/0?function(e){return new yd(e)}:xd,Od=nu,Md=wd,Ed=bd,Hd=cu,Pd=Zd,jd=pu;var Vd=function(e,t,r){var n=-1,a=Md,c=e.length,i=!0,o=[],s=o;if(r)i=!1,a=Ed;else if(c>=200){var l=t?null:Pd(e);if(l)return jd(l);i=!1,a=Hd,s=new Od}else s=t?[]:o;e:for(;++n<c;){var h=e[n],v=t?t(h):h;if(h=r||0!==h?h:0,i&&v==v){for(var p=s.length;p--;)if(s[p]===v)continue e;t&&s.push(v),o.push(h)}else a(s,v,r)||(s!==o&&s.push(v),o.push(h))}return o},Cd=vd,Ad=Vd;var Ld=function(e,t){return e&&e.length?Ad(e,Cd(t)):[]},zd=zt(Ld);function Bd(e,t,r){return!0===t?zd(e,r):_o(t)?zd(e,t):e}function kd(e){return kd="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},kd(e)}var Sd=["ref"];function Rd(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 Dd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rd(Object(r),!0).forEach((function(t){$d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Id(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,Yd(n.key),n)}}function Td(e,t){return Td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Td(e,t)}function Nd(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=Qd(e);if(t){var a=Qd(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===kd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fd(e)}(this,r)}}function Fd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qd(e){return Qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qd(e)}function $d(e,t,r){return(t=Yd(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yd(e){var t=function(e,t){if("object"!==kd(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==kd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kd(t)?t:String(t)}function Ud(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Wd(e){return e.value}var Xd=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&&Td(e,t)}(c,Z);var t,r,n,a=Nd(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $d(Fd(e=a.call.apply(a,[this].concat(r))),"lastBoundingBox",{width:-1,height:-1}),e}return t=c,r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t))}else-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?Dd({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,r,n=this.props,a=n.layout,c=n.align,i=n.verticalAlign,o=n.margin,s=n.chartWidth,l=n.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===c&&"vertical"===a?{left:((s||0)-this.getBBoxSnapshot().width)/2}:"right"===c?{right:o&&o.right||0}:{left:o&&o.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(r="middle"===i?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===i?{bottom:o&&o.bottom||0}:{top:o&&o.top||0}),Dd(Dd({},t),r)}},{key:"render",value:function(){var e=this,t=this.props,r=t.content,n=t.width,a=t.height,c=t.wrapperStyle,i=t.payloadUniqBy,s=t.payload,l=Dd(Dd({position:"absolute",width:n||"auto",height:a||"auto"},this.getDefaultPosition(c)),c);return o.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if("function"==typeof e)return o.createElement(e,t);t.ref;var r=Ud(t,Sd);return o.createElement(Ip,r)}(r,Dd(Dd({},this.props),{},{payload:Bd(s,i,Wd)})))}}],n=[{key:"getWithHeight",value:function(e,t){var r=e.props.layout;return"vertical"===r&&Pl(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}}],r&&Id(t.prototype,r),n&&Id(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();$d(Xd,"displayName","Legend"),$d(Xd,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Kd=Tu,qd=Di,Gd=Qi?Qi.isConcatSpreadable:void 0;var Jd=yu,ef=function(e){return qd(e)||Kd(e)||!!(Gd&&e&&e[Gd])};var tf=function e(t,r,n,a,c){var i=-1,o=t.length;for(n||(n=ef),c||(c=[]);++i<o;){var s=t[i];r>0&&n(s)?r>1?e(s,r-1,n,a,c):Jd(c,s):a||(c[c.length]=s)}return c};var rf=function(e){return function(t,r,n){for(var a=-1,c=Object(t),i=n(t),o=i.length;o--;){var s=i[e?o:++a];if(!1===r(c[s],s,c))break}return t}},nf=rf(),af=Pg;var cf=function(e,t){return e&&nf(e,t,af)},of=Og;var sf=function(e,t){return function(r,n){if(null==r)return r;if(!of(r))return e(r,n);for(var a=r.length,c=t?a:-1,i=Object(r);(t?c--:++c<a)&&!1!==n(i[c],c,i););return r}}(cf),lf=sf,hf=Og;var vf=function(e,t){var r=-1,n=hf(e)?Array(e.length):[];return lf(e,(function(e,a,c){n[++r]=t(e,a,c)})),n};var pf=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e},uf=co;var gf=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,a=e==e,c=uf(e),i=void 0!==t,o=null===t,s=t==t,l=uf(t);if(!o&&!l&&!c&&e>t||c&&i&&s&&!o&&!l||n&&i&&s||!r&&s||!a)return 1;if(!n&&!c&&!l&&e<t||l&&r&&a&&!n&&!c||o&&r&&a||!i&&a||!s)return-1}return 0};var mf=function(e,t,r){for(var n=-1,a=e.criteria,c=t.criteria,i=a.length,o=r.length;++n<i;){var s=gf(a[n],c[n]);if(s)return n>=o?s:s*("desc"==r[n]?-1:1)}return e.index-t.index},df=Ts,ff=cl,_f=vd,wf=vf,bf=pf,yf=Ju,xf=mf,Zf=Gm,Of=Di;var Mf=function(e,t,r){t=t.length?df(t,(function(e){return Of(e)?function(t){return ff(t,1===e.length?e[0]:e)}:e})):[Zf];var n=-1;t=df(t,yf(_f));var a=wf(e,(function(e,r,a){return{criteria:df(t,(function(t){return t(e)})),index:++n,value:e}}));return bf(a,(function(e,t){return xf(e,t,r)}))};var Ef=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)},Hf=Math.max;var Pf=function(e,t,r){return t=Hf(void 0===t?e.length-1:t,0),function(){for(var n=arguments,a=-1,c=Hf(n.length-t,0),i=Array(c);++a<c;)i[a]=n[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=n[a];return o[t]=r(i),Ef(e,this,o)}};var jf=function(e){return function(){return e}},Vf=So,Cf=function(){try{var e=Vf(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Af=jf,Lf=Cf,zf=Lf?function(e,t){return Lf(e,"toString",{configurable:!0,enumerable:!1,value:Af(t),writable:!0})}:Gm,Bf=Date.now;var kf=function(e){var t=0,r=0;return function(){var n=Bf(),a=16-(n-r);if(r=n,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Sf=kf(zf),Rf=Gm,Df=Pf,If=Sf;var Tf=function(e,t){return If(Df(e,t,Rf),e+"")},Nf=rs,Ff=Og,Qf=Yu,$f=vo;var Yf=function(e,t,r){if(!$f(r))return!1;var n=typeof t;return!!("number"==n?Ff(r)&&Qf(t,r.length):"string"==n&&t in r)&&Nf(r[t],e)},Uf=tf,Wf=Mf,Xf=Yf,Kf=zt(Tf((function(e,t){if(null==e)return[];var r=t.length;return r>1&&Xf(e,t[0],t[1])?t=[]:r>2&&Xf(t[0],t[1],t[2])&&(t=[t[0]]),Wf(e,Uf(t,1),[])})));function qf(e){return qf="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},qf(e)}function Gf(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jf(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 Jf(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 Jf(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 e_(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 t_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?e_(Object(r),!0).forEach((function(t){r_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function r_(e,t,r){return t=function(e){var t=function(e,t){if("object"!==qf(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==qf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qf(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n_(e){return Array.isArray(e)&&jl(e[0])&&jl(e[1])?e.join(" ~ "):e}var a_,c_,i_,o_,s_,l_,h_,v_,p_,u_,g_,m_,d_=function(e){var t=e.separator,r=void 0===t?" : ":t,n=e.contentStyle,a=void 0===n?{}:n,c=e.itemStyle,i=void 0===c?{}:c,s=e.labelStyle,l=void 0===s?{}:s,h=e.payload,v=e.formatter,p=e.itemSorter,u=e.wrapperClassName,g=e.labelClassName,m=e.label,d=e.labelFormatter,f=t_({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),_=t_({margin:0},l),w=!ll(m),b=w?m:"",y=Ri("recharts-default-tooltip",u),x=Ri("recharts-tooltip-label",g);return w&&d&&null!=h&&(b=d(m,h)),o.createElement("div",{className:y,style:f},o.createElement("p",{className:x,style:_},o.isValidElement(b)?b:"".concat(b)),function(){if(h&&h.length){var e=(p?Kf(h,p):h).map((function(e,t){if("none"===e.type)return null;var n=t_({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},i),a=e.formatter||v||n_,c=e.value,s=e.name,l=c,p=s;if(a&&null!=l&&null!=p){var u=a(c,s,e,t,h);if(Array.isArray(u)){var g=Gf(u,2);l=g[0],p=g[1]}else l=u}return o.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:n},jl(p)?o.createElement("span",{className:"recharts-tooltip-item-name"},p):null,jl(p)?o.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,o.createElement("span",{className:"recharts-tooltip-item-value"},l),o.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return o.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())},f_={exports:{}};function __(){if(c_)return a_;c_=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return a_=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;var n=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==n.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(n,a){for(var c,i,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),s=1;s<arguments.length;s++){for(var l in c=Object(arguments[s]))t.call(c,l)&&(o[l]=c[l]);if(e){i=e(c);for(var h=0;h<i.length;h++)r.call(c,i[h])&&(o[i[h]]=c[i[h]])}}return o},a_}function w_(){if(o_)return i_;o_=1;return i_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function b_(){return l_?s_:(l_=1,s_=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var y_=wl;f_.exports=function(){if(u_)return p_;u_=1;var e=wl,t=__(),r=w_(),n=b_(),a=function(){if(v_)return h_;v_=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=w_(),r={},n=b_();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function a(a,c,i,o,s){if("production"!==process.env.NODE_ENV)for(var l in a)if(n(a,l)){var h;try{if("function"!=typeof a[l]){var v=Error((o||"React class")+": "+i+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}h=a[l](c,l,o,i,null,t)}catch(e){h=e}if(!h||h instanceof Error||e((o||"React class")+": type specification of "+i+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var p=s?s():"";e("Failed "+i+" type: "+h.message+(null!=p?p:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},h_=a}(),c=function(){};function i(){return null}return"production"!==process.env.NODE_ENV&&(c=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),p_=function(o,s){var l="function"==typeof Symbol&&Symbol.iterator,h="@@iterator",v="<<anonymous>>",p={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:m(i),arrayOf:function(e){return m((function(t,n,a,c,i){if("function"!=typeof e)return new g("Property `"+i+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var o=t[n];if(!Array.isArray(o))return new g("Invalid "+c+" `"+i+"` of type `"+w(o)+"` supplied to `"+a+"`, expected an array.");for(var s=0;s<o.length;s++){var l=e(o,s,a,c,i+"["+s+"]",r);if(l instanceof Error)return l}return null}))},element:m((function(e,t,r,n,a){var c=e[t];return o(c)?null:new g("Invalid "+n+" `"+a+"` of type `"+w(c)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:m((function(t,r,n,a,c){var i=t[r];return e.isValidElementType(i)?null:new g("Invalid "+a+" `"+c+"` of type `"+w(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,r,n,a,c){if(!(t[r]instanceof e)){var i=e.name||v;return new g("Invalid "+a+" `"+c+"` of type `"+((o=t[r]).constructor&&o.constructor.name?o.constructor.name:v)+"` supplied to `"+n+"`, expected instance of `"+i+"`.")}var o;return null}))},node:m((function(e,t,r,n,a){return _(e[t])?null:new g("Invalid "+n+" `"+a+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,a,c,i,o){if("function"!=typeof e)return new g("Property `"+o+"` of component `"+c+"` has invalid PropType notation inside objectOf.");var s=t[a],l=w(s);if("object"!==l)return new g("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+c+"`, expected an object.");for(var h in s)if(n(s,h)){var v=e(s,h,c,i,o+"."+h,r);if(v instanceof Error)return v}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,r,n,a,c){for(var i=t[r],o=0;o<e.length;o++)if(u(i,e[o]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new g("Invalid "+a+" `"+c+"` of value `"+String(i)+"` supplied to `"+n+"`, expected one of "+s+".")})):("production"!==process.env.NODE_ENV&&c(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."),i)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&c("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var t=0;t<e.length;t++){var a=e[t];if("function"!=typeof a)return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(a)+" at index "+t+"."),i}return m((function(t,a,c,i,o){for(var s=[],l=0;l<e.length;l++){var h=(0,e[l])(t,a,c,i,o,r);if(null==h)return null;h.data&&n(h.data,"expectedType")&&s.push(h.data.expectedType)}return new g("Invalid "+i+" `"+o+"` supplied to `"+c+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,n,a,c,i){var o=t[n],s=w(o);if("object"!==s)return new g("Invalid "+c+" `"+i+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");for(var l in e){var h=e[l];if("function"!=typeof h)return f(a,c,i,l,b(h));var v=h(o,l,a,c,i+"."+l,r);if(v)return v}return null}))},exact:function(e){return m((function(a,c,i,o,s){var l=a[c],h=w(l);if("object"!==h)return new g("Invalid "+o+" `"+s+"` of type `"+h+"` supplied to `"+i+"`, expected `object`.");var v=t({},a[c],e);for(var p in v){var u=e[p];if(n(e,p)&&"function"!=typeof u)return f(i,o,s,p,b(u));if(!u)return new g("Invalid "+o+" `"+s+"` key `"+p+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(a[c],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=u(l,p,i,o,s+"."+p,r);if(m)return m}return null}))}};function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function g(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function a(a,i,o,l,h,p,u){if(l=l||v,p=p||o,u!==r){if(s){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var d=l+":"+o;!t[d]&&n<3&&(c("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[d]=!0,n++)}}return null==i[o]?a?null===i[o]?new g("The "+h+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new g("The "+h+" `"+p+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(i,o,l,h,p)}var i=a.bind(null,!1);return i.isRequired=a.bind(null,!0),i}function d(e){return m((function(t,r,n,a,c,i){var o=t[r];return w(o)!==e?new g("Invalid "+a+" `"+c+"` of type `"+b(o)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function f(e,t,r,n,a){return new g((e||"React class")+": "+t+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function _(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(_);if(null===e||o(e))return!0;var t=function(e){var t=e&&(l&&e[l]||e[h]);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(!_(r.value))return!1}else for(;!(r=n.next()).done;){var a=r.value;if(a&&!_(a[1]))return!1}return!0;default:return!1}}function w(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 b(e){if(null==e)return""+e;var t=w(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return g.prototype=Error.prototype,p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},p_}()(y_.isElement,!0)}else f_.exports=function(){if(m_)return g_;m_=1;var e=w_();function t(){}function r(){}return r.resetWarningCache=t,g_=function(){function n(t,r,n,a,c,i){if(i!==e){var o=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 o.name="Invariant Violation",o}}function a(){return n}n.isRequired=n;var c={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return c.PropTypes=c,c}}()();var x_=f_.exports,Z_=zt(x_),O_=Object.getOwnPropertyNames,M_=Object.getOwnPropertySymbols,E_=Object.prototype.hasOwnProperty;function H_(e,t){return function(r,n,a){return e(r,n,a)&&t(r,n,a)}}function P_(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);var a=n.cache,c=a.get(t),i=a.get(r);if(c&&i)return c===r&&i===t;a.set(t,r),a.set(r,t);var o=e(t,r,n);return a.delete(t),a.delete(r),o}}function j_(e){return O_(e).concat(M_(e))}var V_=Object.hasOwn||function(e,t){return E_.call(e,t)};function C_(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var A_="_owner",L_=Object.getOwnPropertyDescriptor,z_=Object.keys;function B_(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 k_(e,t){return C_(e.getTime(),t.getTime())}function S_(e,t,r){if(e.size!==t.size)return!1;for(var n,a,c={},i=e.entries(),o=0;(n=i.next())&&!n.done;){for(var s=t.entries(),l=!1,h=0;(a=s.next())&&!a.done;){var v=n.value,p=v[0],u=v[1],g=a.value,m=g[0],d=g[1];l||c[h]||!(l=r.equals(p,m,o,h,e,t,r)&&r.equals(u,d,p,m,e,t,r))||(c[h]=!0),h++}if(!l)return!1;o++}return!0}function R_(e,t,r){var n,a=z_(e),c=a.length;if(z_(t).length!==c)return!1;for(;c-- >0;){if((n=a[c])===A_&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!V_(t,n)||!r.equals(e[n],t[n],n,n,e,t,r))return!1}return!0}function D_(e,t,r){var n,a,c,i=j_(e),o=i.length;if(j_(t).length!==o)return!1;for(;o-- >0;){if((n=i[o])===A_&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!V_(t,n))return!1;if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;if(a=L_(e,n),c=L_(t,n),(a||c)&&(!a||!c||a.configurable!==c.configurable||a.enumerable!==c.enumerable||a.writable!==c.writable))return!1}return!0}function I_(e,t){return C_(e.valueOf(),t.valueOf())}function T_(e,t){return e.source===t.source&&e.flags===t.flags}function N_(e,t,r){if(e.size!==t.size)return!1;for(var n,a,c={},i=e.values();(n=i.next())&&!n.done;){for(var o=t.values(),s=!1,l=0;(a=o.next())&&!a.done;)s||c[l]||!(s=r.equals(n.value,a.value,n.value,a.value,e,t,r))||(c[l]=!0),l++;if(!s)return!1}return!0}function F_(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 Q_="[object Arguments]",$_="[object Boolean]",Y_="[object Date]",U_="[object Map]",W_="[object Number]",X_="[object Object]",K_="[object RegExp]",q_="[object Set]",G_="[object String]",J_=Array.isArray,ew="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,tw=Object.assign,rw=Object.prototype.toString.call.bind(Object.prototype.toString);var nw=aw();function aw(e){void 0===e&&(e={});var t=e.circular,r=void 0!==t&&t,n=e.createInternalComparator,a=e.createState,c=e.strict,i=void 0!==c&&c,o=function(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?D_:B_,areDatesEqual:k_,areMapsEqual:n?H_(S_,D_):S_,areObjectsEqual:n?D_:R_,arePrimitiveWrappersEqual:I_,areRegExpsEqual:T_,areSetsEqual:n?H_(N_,D_):N_,areTypedArraysEqual:n?D_:F_};if(r&&(a=tw({},a,r(a))),t){var c=P_(a.areArraysEqual),i=P_(a.areMapsEqual),o=P_(a.areObjectsEqual),s=P_(a.areSetsEqual);a=tw({},a,{areArraysEqual:c,areMapsEqual:i,areObjectsEqual:o,areSetsEqual:s})}return a}(e),s=function(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,a=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,i=e.areRegExpsEqual,o=e.areSetsEqual,s=e.areTypedArraysEqual;return function(e,l,h){if(e===l)return!0;if(null==e||null==l||"object"!=typeof e||"object"!=typeof l)return e!=e&&l!=l;var v=e.constructor;if(v!==l.constructor)return!1;if(v===Object)return a(e,l,h);if(J_(e))return t(e,l,h);if(null!=ew&&ew(e))return s(e,l,h);if(v===Date)return r(e,l,h);if(v===RegExp)return i(e,l,h);if(v===Map)return n(e,l,h);if(v===Set)return o(e,l,h);var p=rw(e);return p===Y_?r(e,l,h):p===K_?i(e,l,h):p===U_?n(e,l,h):p===q_?o(e,l,h):p===X_?"function"!=typeof e.then&&"function"!=typeof l.then&&a(e,l,h):p===Q_?a(e,l,h):(p===$_||p===W_||p===G_)&&c(e,l,h)}}(o),l=n?n(s):function(e){return function(t,r,n,a,c,i,o){return e(t,r,o)}}(s);return function(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,c=e.strict;if(n)return function(e,i){var o=n(),s=o.cache,l=void 0===s?t?new WeakMap:void 0:s,h=o.meta;return r(e,i,{cache:l,equals:a,meta:h,strict:c})};if(t)return function(e,t){return r(e,t,{cache:new WeakMap,equals:a,meta:void 0,strict:c})};var i={cache:void 0,equals:a,meta:void 0,strict:c};return function(e,t){return r(e,t,i)}}({circular:r,comparator:s,createState:a,equals:l,strict:i})}function cw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(a){r<0&&(r=a),a-r>t?(e(a),r=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(n)}))}function iw(e){return iw="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},iw(e)}function ow(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 sw(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 sw(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 sw(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 lw(){var e=function(){return null},t=!1,r=function r(n){if(!t){if(Array.isArray(n)){if(!n.length)return;var a=ow(n),c=a[0],i=a.slice(1);return"number"==typeof c?void cw(r.bind(null,i),c):(r(c),void cw(r.bind(null,i)))}"object"===iw(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 hw(e){return hw="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},hw(e)}function vw(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 pw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vw(Object(r),!0).forEach((function(t){uw(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function uw(e,t,r){return t=function(e){var t=function(e,t){if("object"!==hw(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==hw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hw(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}aw({strict:!0}),aw({circular:!0}),aw({circular:!0,strict:!0}),aw({createInternalComparator:function(){return C_}}),aw({strict:!0,createInternalComparator:function(){return C_}}),aw({circular:!0,createInternalComparator:function(){return C_}}),aw({circular:!0,createInternalComparator:function(){return C_},strict:!0});var gw=["Webkit","Moz","O","ms"],mw=["-webkit-","-moz-","-o-","-ms-"],dw=["transform","transformOrigin","transition"],fw=function(e){return e},_w=function(e,t){return Object.keys(t).reduce((function(r,n){return pw(pw({},r),{},uw({},n,e(n,t[n])))}),{})},ww=function(e){return Object.keys(e).reduce((function(e,t){return pw(pw({},e),function(e,t){if(-1===dw.indexOf(e))return uw({},e,Number.isNaN(t)?0:t);var r="transition"===e,n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),a=t;return gw.reduce((function(e,c,i){return r&&(a=t.replace(/(transform|transform-origin)/gim,"".concat(mw[i],"$1"))),pw(pw({},e),{},uw({},c+n,a))}),{})}(t,e[t]))}),e)},bw=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(",")},yw="production"!==process.env.NODE_ENV,xw=function(e,t,r,n,a,c,i,o){if(yw&&"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 s=[r,n,a,c,i,o],l=0;console.warn(t.replace(/%s/g,(function(){return s[l++]})))}};function Zw(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||Mw(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 Ow(e){return function(e){if(Array.isArray(e))return Ew(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Mw(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 Mw(e,t){if(e){if("string"==typeof e)return Ew(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)?Ew(e,t):void 0}}function Ew(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 Hw=1e-4,Pw=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},jw=function(e,t){return e.map((function(e,r){return e*Math.pow(t,r)})).reduce((function(e,t){return e+t}))},Vw=function(e,t){return function(r){var n=Pw(e,t);return jw(n,r)}},Cw=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=t[1],c=t[2],i=t[3];if(1===t.length)switch(t[0]){case"linear":n=0,a=0,c=1,i=1;break;case"ease":n=.25,a=.1,c=.25,i=1;break;case"ease-in":n=.42,a=0,c=1,i=1;break;case"ease-out":n=.42,a=0,c=.58,i=1;break;case"ease-in-out":n=0,a=0,c=.58,i=1;break;default:var o=t[0].split("(");if("cubic-bezier"===o[0]&&4===o[1].split(")")[0].split(",").length){var s=o[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),l=Zw(s,4);n=l[0],a=l[1],c=l[2],i=l[3]}else xw(!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)}xw([n,c,a,i].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 h,v,p=Vw(n,c),u=Vw(a,i),g=(h=n,v=c,function(e){var t=Pw(h,v),r=[].concat(Ow(t.map((function(e,t){return e*t})).slice(1)),[0]);return jw(r,e)}),m=function(e){for(var t,r=e>1?1:e,n=r,a=0;a<8;++a){var c=p(n)-r,i=g(n);if(Math.abs(c-r)<Hw||i<Hw)return u(n);n=(t=n-c/i)>1?1:t<0?0:t}return u(n)};return m.isStepper=!1,m},Aw=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 Cw(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,a=void 0===n?8:n,c=e.dt,i=void 0===c?17:c,o=function(e,t,n){var c=n+(-(e-t)*r-n*a)*i/1e3,o=n*i/1e3+e;return Math.abs(o-t)<Hw&&Math.abs(c)<Hw?[t,0]:[o,c]};return o.isStepper=!0,o.dt=i,o}();default:if("cubic-bezier"===n.split("(")[0])return Cw(n);xw(!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:(xw(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function Lw(e){return Lw="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},Lw(e)}function zw(e){return function(e){if(Array.isArray(e))return Iw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Dw(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 Bw(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 kw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bw(Object(r),!0).forEach((function(t){Sw(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Sw(e,t,r){return t=function(e){var t=function(e,t){if("object"!==Lw(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Lw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Lw(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rw(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||Dw(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 Dw(e,t){if(e){if("string"==typeof e)return Iw(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)?Iw(e,t):void 0}}function Iw(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 Tw=function(e,t,r){return e+(t-e)*r},Nw=function(e){return e.from!==e.to},Fw=function e(t,r,n){var a=_w((function(e,r){if(Nw(r)){var n=Rw(t(r.from,r.to,r.velocity),2),a=n[0],c=n[1];return kw(kw({},r),{},{from:a,velocity:c})}return r}),r);return n<1?_w((function(e,t){return Nw(t)?kw(kw({},t),{},{velocity:Tw(t.velocity,a[e].velocity,n),from:Tw(t.from,a[e].from,n)}):t}),r):e(t,a,n-1)},Qw=function(e,t,r,n,a){var c,i,o,s,l=(c=e,i=t,[Object.keys(c),Object.keys(i)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),h=l.reduce((function(r,n){return kw(kw({},r),{},Sw({},n,[e[n],t[n]]))}),{}),v=l.reduce((function(r,n){return kw(kw({},r),{},Sw({},n,{from:e[n],velocity:0,to:t[n]}))}),{}),p=-1,u=function(){return null};return u=r.isStepper?function(n){o||(o=n);var c=(n-o)/r.dt;v=Fw(r,v,c),a(kw(kw(kw({},e),t),_w((function(e,t){return t.from}),v))),o=n,Object.values(v).filter(Nw).length&&(p=requestAnimationFrame(u))}:function(c){s||(s=c);var i=(c-s)/n,o=_w((function(e,t){return Tw.apply(void 0,zw(t).concat([r(i)]))}),h);if(a(kw(kw(kw({},e),t),o)),i<1)p=requestAnimationFrame(u);else{var l=_w((function(e,t){return Tw.apply(void 0,zw(t).concat([r(1)]))}),h);a(kw(kw(kw({},e),t),l))}},function(){return requestAnimationFrame(u),function(){cancelAnimationFrame(p)}}};function $w(e){return $w="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},$w(e)}var Yw=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Uw(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Ww(e){return function(e){if(Array.isArray(e))return Xw(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 Xw(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 Xw(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 Xw(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 Kw(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 qw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kw(Object(r),!0).forEach((function(t){Gw(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gw(e,t,r){return(t=eb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jw(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,eb(n.key),n)}}function eb(e){var t=function(e,t){if("object"!==$w(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==$w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$w(t)?t:String(t)}function tb(e,t){return tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tb(e,t)}function rb(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=cb(e);if(t){var a=cb(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return nb(this,r)}}function nb(e,t){if(t&&("object"===$w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ab(e)}function ab(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cb(e){return cb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cb(e)}var ib=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&&tb(e,t)}(c,Z);var t,r,n,a=rb(c);function c(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var n=(r=a.call(this,e,t)).props,i=n.isActive,o=n.attributeName,s=n.from,l=n.to,h=n.steps,v=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(ab(r)),r.changeStyle=r.changeStyle.bind(ab(r)),!i||p<=0)return r.state={style:{}},"function"==typeof v&&(r.state={style:l}),nb(r);if(h&&h.length)r.state={style:h[0].style};else if(s){if("function"==typeof v)return r.state={style:s},nb(r);r.state={style:o?Gw({},o,s):s}}else r.state={style:{}};return r}return t=c,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,a=t.attributeName,c=t.shouldReAnimate,i=t.to,o=t.from,s=this.state.style;if(n)if(r){if(!(nw(e.to,i)&&e.canBegin&&e.isActive)){var l=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var h=l||c?o:e.to;if(this.state&&s){var v={style:a?Gw({},a,h):h};(a&&[a]!==h||!a&&s!==h)&&this.setState(v)}this.runAnimation(qw(qw({},this.props),{},{from:h,begin:0}))}}else{var p={style:a?Gw({},a,i):i};this.state&&s&&(a&&s[a]!==i||!a&&s!==i)&&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,a=e.duration,c=e.easing,i=e.begin,o=e.onAnimationEnd,s=e.onAnimationStart,l=Qw(r,n,Aw(c),a,this.changeStyle);this.manager.start([s,i,function(){t.stopJSAnimation=l()},a,o])}},{key:"runStepAnimation",value:function(e){var t=this,r=e.steps,n=e.begin,a=e.onAnimationStart,c=r[0],i=c.style,o=c.duration,s=void 0===o?0:o;return this.manager.start([a].concat(Ww(r.reduce((function(e,n,a){if(0===a)return e;var c=n.duration,i=n.easing,o=void 0===i?"ease":i,s=n.style,l=n.properties,h=n.onAnimationEnd,v=a>0?r[a-1]:n,p=l||Object.keys(s);if("function"==typeof o||"spring"===o)return[].concat(Ww(e),[t.runJSAnimation.bind(t,{from:v.style,to:s,duration:c,easing:o}),c]);var u=bw(p,c,o),g=qw(qw(qw({},v.style),s),{},{transition:u});return[].concat(Ww(e),[g,c,h]).filter(fw)}),[i,Math.max(s,n)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=lw());var t=e.begin,r=e.duration,n=e.attributeName,a=e.to,c=e.easing,i=e.onAnimationStart,o=e.onAnimationEnd,s=e.steps,l=e.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),"function"!=typeof c&&"function"!=typeof l&&"spring"!==c)if(s.length>1)this.runStepAnimation(e);else{var v=n?Gw({},n,a):a,p=bw(Object.keys(v),r,c);h.start([i,t,qw(qw({},v),{},{transition:p}),r,o])}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 a=Uw(e,Yw),c=x.count(t),i=ww(this.state.style);if("function"==typeof t)return t(i);if(!n||0===c||r<=0)return t;var s=function(e){var t=e.props,r=t.style,n=void 0===r?{}:r,c=t.className;return g(e,qw(qw({},a),{},{style:qw(qw({},n),i),className:c}))};return 1===c?s(x.only(t)):o.createElement("div",null,x.map(t,(function(e){return s(e)})))}}],r&&Jw(t.prototype,r),n&&Jw(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();ib.displayName="Animate",ib.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},ib.propTypes={from:Z_.oneOfType([Z_.object,Z_.string]),to:Z_.oneOfType([Z_.object,Z_.string]),attributeName:Z_.string,duration:Z_.number,begin:Z_.number,easing:Z_.oneOfType([Z_.string,Z_.func]),steps:Z_.arrayOf(Z_.shape({duration:Z_.number.isRequired,style:Z_.object.isRequired,easing:Z_.oneOfType([Z_.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Z_.func]),properties:Z_.arrayOf("string"),onAnimationEnd:Z_.func})),children:Z_.oneOfType([Z_.node,Z_.func]),isActive:Z_.bool,canBegin:Z_.bool,onAnimationEnd:Z_.func,shouldReAnimate:Z_.bool,onAnimationStart:Z_.func,onAnimationReStart:Z_.func};var ob,sb={exports:{}},lb={exports:{}},hb={exports:{}};(ob=hb).exports=function(e){return e&&e.__esModule?e:{default:e}},ob.exports.__esModule=!0,ob.exports.default=ob.exports;var vb,pb=hb.exports,ub={exports:{}};!function(e,t){var r=pb;t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,n.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var n=r((vb||(vb=1,function(e,t){t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default}(ub,ub.exports)),ub.exports));e.exports=t.default}(lb,lb.exports);var gb=lb.exports;function mb(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var db=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=mb(e.className,t):e.setAttribute("class",mb(e.className&&e.className.baseVal||"",t))},fb={};function _b(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function wb(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function bb(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}_b.__suppressDeprecationWarning=!0,wb.__suppressDeprecationWarning=!0,bb.__suppressDeprecationWarning=!0;var yb=Object.freeze({__proto__:null,polyfill:function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,n=null,a=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?n="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(n="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==r||null!==n||null!==a){var c=e.displayName||e.name,i="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+i+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=_b,t.componentWillReceiveProps=wb),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=bb;var o=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;o.call(this,e,t,n)}}return e}}),xb=Bt(yb),Zb={__esModule:!0};Zb.classNamesShape=Zb.timeoutsShape=void 0;var Ob,Mb=(Ob=x_)&&Ob.__esModule?Ob:{default:Ob};var Eb="production"!==process.env.NODE_ENV?Mb.default.oneOfType([Mb.default.number,Mb.default.shape({enter:Mb.default.number,exit:Mb.default.number,appear:Mb.default.number}).isRequired]):null;Zb.timeoutsShape=Eb;var Hb="production"!==process.env.NODE_ENV?Mb.default.oneOfType([Mb.default.string,Mb.default.shape({enter:Mb.default.string,exit:Mb.default.string,active:Mb.default.string}),Mb.default.shape({enter:Mb.default.string,enterDone:Mb.default.string,enterActive:Mb.default.string,exit:Mb.default.string,exitDone:Mb.default.string,exitActive:Mb.default.string})]):null;Zb.classNamesShape=Hb,fb.__esModule=!0,fb.default=fb.EXITING=fb.ENTERED=fb.ENTERING=fb.EXITED=fb.UNMOUNTED=void 0;var Pb=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(x_),jb=Lb(o),Vb=Lb(E),Cb=xb,Ab=Zb;function Lb(e){return e&&e.__esModule?e:{default:e}}var zb="unmounted";fb.UNMOUNTED=zb;var Bb="exited";fb.EXITED=Bb;var kb="entering";fb.ENTERING=kb;var Sb="entered";fb.ENTERED=Sb;var Rb="exiting";fb.EXITING=Rb;var Db=function(e){var t,r;function n(t,r){var n;n=e.call(this,t,r)||this;var a,c=r.transitionGroup,i=c&&!c.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(a=Bb,n.appearStatus=kb):a=Sb:a=t.unmountOnExit||t.mountOnEnter?zb:Bb,n.state={status:a},n.nextCallback=null,n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===zb?{status:Bb}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==kb&&r!==Sb&&(t=kb):r!==kb&&r!==Sb||(t=Rb)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var r=Vb.default.findDOMNode(this);t===kb?this.performEnter(r,e):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===Bb&&this.setState({status:zb})},a.performEnter=function(e,t){var r=this,n=this.props.enter,a=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,c=this.getTimeouts(),i=a?c.appear:c.enter;t||n?(this.props.onEnter(e,a),this.safeSetState({status:kb},(function(){r.props.onEntering(e,a),r.onTransitionEnd(e,i,(function(){r.safeSetState({status:Sb},(function(){r.props.onEntered(e,a)}))}))}))):this.safeSetState({status:Sb},(function(){r.props.onEntered(e)}))},a.performExit=function(e){var t=this,r=this.props.exit,n=this.getTimeouts();r?(this.props.onExit(e),this.safeSetState({status:Rb},(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:Bb},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:Bb},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},a.onTransitionEnd=function(e,t,r){this.setNextCallback(r);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===zb)return null;var t=this.props,r=t.children,n=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(e,n);var a=jb.default.Children.only(r);return jb.default.cloneElement(a,n)},n}(jb.default.Component);function Ib(){}Db.contextTypes={transitionGroup:Pb.object},Db.childContextTypes={transitionGroup:function(){}},Db.propTypes="production"!==process.env.NODE_ENV?{children:Pb.oneOfType([Pb.func.isRequired,Pb.element.isRequired]).isRequired,in:Pb.bool,mountOnEnter:Pb.bool,unmountOnExit:Pb.bool,appear:Pb.bool,enter:Pb.bool,exit:Pb.bool,timeout:function(e){var t=Ab.timeoutsShape;e.addEndListener||(t=t.isRequired);for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return t.apply(void 0,[e].concat(n))},addEndListener:Pb.func,onEnter:Pb.func,onEntering:Pb.func,onEntered:Pb.func,onExit:Pb.func,onExiting:Pb.func,onExited:Pb.func}:{},Db.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ib,onEntering:Ib,onEntered:Ib,onExit:Ib,onExiting:Ib,onExited:Ib},Db.UNMOUNTED=0,Db.EXITED=1,Db.ENTERING=2,Db.ENTERED=3,Db.EXITING=4;var Tb=(0,Cb.polyfill)(Db);fb.default=Tb,function(e,t){t.__esModule=!0,t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(x_),n=l(gb),a=l(db),c=l(o),i=l(fb),s=Zb;function l(e){return e&&e.__esModule?e:{default:e}}function h(){return h=Object.assign||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)}var v=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,n.default)(e,t)}))},p=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,a.default)(e,t)}))},u=function(e){var t,r;function n(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return(t=e.call.apply(e,[this].concat(n))||this).onEnter=function(e,r){var n=t.getClassNames(r?"appear":"enter").className;t.removeClasses(e,"exit"),v(e,n),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.getClassNames(r?"appear":"enter").activeClassName;t.reflowAndAddClass(e,n),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.getClassNames("appear").doneClassName,a=t.getClassNames("enter").doneClassName,c=r?n+" "+a:a;t.removeClasses(e,r?"appear":"enter"),v(e,c),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),v(e,r),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,r),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),v(e,r),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,a=n?(n&&r?r+"-":"")+e:r[e];return{className:a,activeClassName:n?a+"-active":r[e+"Active"],doneClassName:n?a+"-done":r[e+"Done"]}},t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.removeClasses=function(e,t){var r=this.getClassNames(t),n=r.className,a=r.activeClassName,c=r.doneClassName;n&&p(e,n),a&&p(e,a),c&&p(e,c)},a.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,v(e,t))},a.render=function(){var e=h({},this.props);return delete e.classNames,c.default.createElement(i.default,h({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(c.default.Component);u.defaultProps={classNames:""},u.propTypes="production"!==process.env.NODE_ENV?h({},i.default.propTypes,{classNames:s.classNamesShape,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func}):{};var g=u;t.default=g,e.exports=t.default}(sb,sb.exports);var Nb=sb.exports,Fb={exports:{}},Qb={exports:{}},$b={__esModule:!0};$b.getChildMapping=Ub,$b.mergeChildMappings=Wb,$b.getInitialChildMapping=function(e,t){return Ub(e.children,(function(r){return(0,Yb.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:Xb(r,"appear",e),enter:Xb(r,"enter",e),exit:Xb(r,"exit",e)})}))},$b.getNextChildMapping=function(e,t,r){var n=Ub(e.children),a=Wb(t,n);return Object.keys(a).forEach((function(c){var i=a[c];if((0,Yb.isValidElement)(i)){var o=c in t,s=c in n,l=t[c],h=(0,Yb.isValidElement)(l)&&!l.props.in;!s||o&&!h?s||!o||h?s&&o&&(0,Yb.isValidElement)(l)&&(a[c]=(0,Yb.cloneElement)(i,{onExited:r.bind(null,i),in:l.props.in,exit:Xb(i,"exit",e),enter:Xb(i,"enter",e)})):a[c]=(0,Yb.cloneElement)(i,{in:!1}):a[c]=(0,Yb.cloneElement)(i,{onExited:r.bind(null,i),in:!0,exit:Xb(i,"exit",e),enter:Xb(i,"enter",e)})}})),a};var Yb=o;function Ub(e,t){var r=Object.create(null);return e&&Yb.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,Yb.isValidElement)(e)?t(e):e}(e)})),r}function Wb(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,a=Object.create(null),c=[];for(var i in e)i in t?c.length&&(a[i]=c,c=[]):c.push(i);var o={};for(var s in t){if(a[s])for(n=0;n<a[s].length;n++){var l=a[s][n];o[a[s][n]]=r(l)}o[s]=r(s)}for(n=0;n<c.length;n++)o[c[n]]=r(c[n]);return o}function Xb(e,t,r){return null!=r[t]?r[t]:e.props[t]}!function(e,t){t.__esModule=!0,t.default=void 0;var r=i(x_),n=i(o),a=xb,c=$b;function i(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||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},s.apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var h=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},v=function(e){var t,r;function a(t,r){var n,a=(n=e.call(this,t,r)||this).handleExited.bind(l(l(n)));return n.state={handleExited:a,firstRender:!0},n}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=a.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0,this.mounted=!0},i.componentWillUnmount=function(){this.mounted=!1},a.getDerivedStateFromProps=function(e,t){var r=t.children,n=t.handleExited;return{children:t.firstRender?(0,c.getInitialChildMapping)(e,n):(0,c.getNextChildMapping)(e,r,n),firstRender:!1}},i.handleExited=function(e,t){var r=(0,c.getChildMapping)(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=s({},t.children);return delete r[e.key],{children:r}})))},i.render=function(){var e=this.props,t=e.component,r=e.childFactory,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,["component","childFactory"]),c=h(this.state.children).map(r);return delete a.appear,delete a.enter,delete a.exit,null===t?c:n.default.createElement(t,a,c)},a}(n.default.Component);v.childContextTypes={transitionGroup:r.default.object.isRequired},v.propTypes="production"!==process.env.NODE_ENV?{component:r.default.any,children:r.default.node,appear:r.default.bool,enter:r.default.bool,exit:r.default.bool,childFactory:r.default.func}:{},v.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,a.polyfill)(v);t.default=p,e.exports=t.default}(Qb,Qb.exports);var Kb=Qb.exports;!function(e,t){t.__esModule=!0,t.default=void 0;var r=i(x_),n=i(o),a=E,c=i(Kb);function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,r;function i(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return(t=e.call.apply(e,[this].concat(n))||this).handleEnter=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEnter",0,r)},t.handleEntering=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntering",0,r)},t.handleEntered=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntered",0,r)},t.handleExit=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExit",1,r)},t.handleExiting=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExiting",1,r)},t.handleExited=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExited",1,r)},t}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=i.prototype;return o.handleLifecycle=function(e,t,r){var c,i=this.props.children,o=n.default.Children.toArray(i)[t];o.props[e]&&(c=o.props)[e].apply(c,r),this.props[e]&&this.props[e]((0,a.findDOMNode)(this))},o.render=function(){var e=this.props,t=e.children,r=e.in,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,["children","in"]),i=n.default.Children.toArray(t),o=i[0],s=i[1];return delete a.onEnter,delete a.onEntering,delete a.onEntered,delete a.onExit,delete a.onExiting,delete a.onExited,n.default.createElement(c.default,a,r?n.default.cloneElement(o,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):n.default.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},i}(n.default.Component);s.propTypes="production"!==process.env.NODE_ENV?{in:r.default.bool.isRequired,children:function(e,t){return 2!==n.default.Children.count(e[t])?new Error('"'+t+'" must be exactly two transition components.'):null}}:{};var l=s;t.default=l,e.exports=t.default}(Fb,Fb.exports);var qb=Fb.exports,Gb=ty(Nb),Jb=ty(qb),ey=ty(Kb);function ty(e){return e&&e.__esModule?e:{default:e}}function ry(e){return ry="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},ry(e)}function ny(e,t,r){return t=function(e){var t=function(e,t){if("object"!==ry(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ry(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ry(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}ty(fb).default,ey.default,Jb.default,Gb.default,void 0===Number.isFinite&&(Number.isFinite=function(e){return"number"==typeof e&&isFinite(e)}),Z_.object,Z_.object,Z_.object,Z_.element,Z_.object,Z_.object,Z_.object,Z_.oneOfType([Z_.array,Z_.element]),Z_.any;var ay="recharts-tooltip-wrapper",cy={visibility:"hidden"};function iy(e){var t,r=e.coordinate,n=e.translateX,a=e.translateY;return Ri(ay,(ny(t={},"".concat(ay,"-right"),Pl(n)&&r&&Pl(r.x)&&n>=r.x),ny(t,"".concat(ay,"-left"),Pl(n)&&r&&Pl(r.x)&&n<r.x),ny(t,"".concat(ay,"-bottom"),Pl(a)&&r&&Pl(r.y)&&a>=r.y),ny(t,"".concat(ay,"-top"),Pl(a)&&r&&Pl(r.y)&&a<r.y),t))}function oy(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,a=e.offsetTopLeft,c=e.position,i=e.reverseDirection,o=e.tooltipDimension,s=e.viewBox,l=e.viewBoxDimension;if(c&&Pl(c[n]))return c[n];var h=r[n]-o-a,v=r[n]+a;return t[n]?i[n]?h:v:i[n]?h<s[n]?Math.max(v,s[n]):Math.max(h,s[n]):v+o>s[n]+l?Math.max(h,s[n]):Math.max(v,s[n])}function sy(e){var t,r,n,a=e.allowEscapeViewBox,c=e.coordinate,i=e.offsetTopLeft,o=e.position,s=e.reverseDirection,l=e.tooltipBox,h=e.useTranslate3d,v=e.viewBox;return t=l.height>0&&l.width>0&&c?function(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return ww({transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")})}({translateX:r=oy({allowEscapeViewBox:a,coordinate:c,key:"x",offsetTopLeft:i,position:o,reverseDirection:s,tooltipDimension:l.width,viewBox:v,viewBoxDimension:v.width}),translateY:n=oy({allowEscapeViewBox:a,coordinate:c,key:"y",offsetTopLeft:i,position:o,reverseDirection:s,tooltipDimension:l.height,viewBox:v,viewBoxDimension:v.height}),useTranslate3d:h}):cy,{cssProperties:t,cssClasses:iy({translateX:r,translateY:n,coordinate:c})}}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 hy(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 vy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hy(Object(r),!0).forEach((function(t){fy(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function py(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_y(n.key),n)}}function uy(e,t){return uy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uy(e,t)}function gy(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=dy(e);if(t){var a=dy(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ly(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return my(e)}(this,r)}}function my(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dy(e){return dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dy(e)}function fy(e,t,r){return(t=_y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _y(e){var t=function(e,t){if("object"!==ly(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ly(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ly(t)?t:String(t)}var wy=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&&uy(e,t)}(c,Z);var t,r,n,a=gy(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return fy(my(e=a.call.apply(a,[this].concat(r))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),fy(my(e),"lastBoundingBox",{width:-1,height:-1}),fy(my(e),"handleKeyDown",(function(t){var r,n,a,c;"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!==(a=null===(c=e.props.coordinate)||void 0===c?void 0:c.y)&&void 0!==a?a:0}})})),e}return t=c,r=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var 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,a=t.animationDuration,c=t.animationEasing,i=t.children,s=t.coordinate,l=t.hasPayload,h=t.isAnimationActive,v=t.offset,p=t.position,u=t.reverseDirection,g=t.useTranslate3d,m=t.viewBox,d=t.wrapperStyle,f=sy({allowEscapeViewBox:n,coordinate:s,offsetTopLeft:v,position:p,reverseDirection:u,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:g,viewBox:m}),_=f.cssClasses,w=f.cssProperties,b=vy(vy(vy({},h&&r&&ww({transition:"transform ".concat(a,"ms ").concat(c)})),w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&l?"visible":"hidden",position:"absolute",top:0,left:0},d);return o.createElement("div",{tabIndex:-1,role:"dialog",className:_,style:b,ref:function(t){e.wrapperNode=t}},i)}}],r&&py(t.prototype,r),n&&py(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(),by={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return by[e]},set:function(e,t){if("string"==typeof e)by[e]=t;else{var r=Object.keys(e);r&&r.length&&r.forEach((function(t){by[t]=e[t]}))}}};function yy(e){return yy="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},yy(e)}function xy(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 Zy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xy(Object(r),!0).forEach((function(t){Py(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Oy(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,jy(n.key),n)}}function My(e,t){return My=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},My(e,t)}function Ey(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=Hy(e);if(t){var a=Hy(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===yy(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)}(this,r)}}function Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hy(e)}function Py(e,t,r){return(t=jy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jy(e){var t=function(e,t){if("object"!==yy(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==yy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yy(t)?t:String(t)}function Vy(e){return e.dataKey}var Cy=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&&My(e,t)}(c,Z);var t,r,n,a=Ey(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,r=[{key:"render",value:function(){var e=this.props,t=e.active,r=e.allowEscapeViewBox,n=e.animationDuration,a=e.animationEasing,c=e.content,i=e.coordinate,s=e.filterNull,l=e.isAnimationActive,h=e.offset,v=e.payload,p=e.payloadUniqBy,u=e.position,g=e.reverseDirection,m=e.useTranslate3d,d=e.viewBox,f=e.wrapperStyle,_=null!=v?v:[];s&&_.length&&(_=Bd(v.filter((function(e){return null!=e.value})),p,Vy));var w=_.length>0;return o.createElement(wy,{allowEscapeViewBox:r,animationDuration:n,animationEasing:a,isAnimationActive:l,active:t,coordinate:i,hasPayload:w,offset:h,position:u,reverseDirection:g,useTranslate3d:m,viewBox:d,wrapperStyle:f},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):"function"==typeof e?o.createElement(e,t):o.createElement(d_,t)}(c,Zy(Zy({},this.props),{},{payload:_})))}}],r&&Oy(t.prototype,r),n&&Oy(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();Py(Cy,"displayName","Tooltip"),Py(Cy,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!by.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Ay=Fi,Ly=/\s/;var zy=function(e){for(var t=e.length;t--&&Ly.test(e.charAt(t)););return t},By=/^\s+/;var ky=function(e){return e?e.slice(0,zy(e)+1).replace(By,""):e},Sy=vo,Ry=co,Dy=/^[-+]0x[0-9a-f]+$/i,Iy=/^0b[01]+$/i,Ty=/^0o[0-7]+$/i,Ny=parseInt;var Fy=function(e){if("number"==typeof e)return e;if(Ry(e))return NaN;if(Sy(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Sy(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ky(e);var r=Iy.test(e);return r||Ty.test(e)?Ny(e.slice(2),r?2:8):Dy.test(e)?NaN:+e},Qy=vo,$y=function(){return Ay.Date.now()},Yy=Fy,Uy=Math.max,Wy=Math.min;var Xy=function(e,t,r){var n,a,c,i,o,s,l=0,h=!1,v=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function u(t){var r=n,c=a;return n=a=void 0,l=t,i=e.apply(c,r)}function g(e){var r=e-s;return void 0===s||r>=t||r<0||v&&e-l>=c}function m(){var e=$y();if(g(e))return d(e);o=setTimeout(m,function(e){var r=t-(e-s);return v?Wy(r,c-(e-l)):r}(e))}function d(e){return o=void 0,p&&n?u(e):(n=a=void 0,i)}function f(){var e=$y(),r=g(e);if(n=arguments,a=this,s=e,r){if(void 0===o)return function(e){return l=e,o=setTimeout(m,t),h?u(e):i}(s);if(v)return clearTimeout(o),o=setTimeout(m,t),u(s)}return void 0===o&&(o=setTimeout(m,t)),i}return t=Yy(t)||0,Qy(r)&&(h=!!r.leading,c=(v="maxWait"in r)?Uy(Yy(r.maxWait)||0,t):c,p="trailing"in r?!!r.trailing:p),f.cancel=function(){void 0!==o&&clearTimeout(o),l=0,n=s=a=o=void 0},f.flush=function(){return void 0===o?i:d($y())},f},Ky=Xy,qy=vo;var Gy=zt((function(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return qy(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Ky(e,t,{leading:n,maxWait:t,trailing:a})}));function Jy(e){return Jy="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},Jy(e)}function ex(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 tx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ex(Object(r),!0).forEach((function(t){rx(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ex(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rx(e,t,r){return t=function(e){var t=function(e,t){if("object"!==Jy(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Jy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Jy(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nx(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ax(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 ax(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 ax(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 cx=h((function(e,t){var r=e.aspect,n=e.initialDimension,a=void 0===n?{width:-1,height:-1}:n,c=e.width,i=void 0===c?"100%":c,s=e.height,h=void 0===s?"100%":s,v=e.minWidth,m=void 0===v?0:v,d=e.minHeight,_=e.maxHeight,b=e.children,y=e.debounce,x=void 0===y?0:y,Z=e.id,M=e.className,E=e.onResize,H=e.style,P=void 0===H?{}:H,j=u(null),V=u();V.current=E,O(t,(function(){return j}));var C=nx(p({containerWidth:a.width,containerHeight:a.height}),2),A=C[0],L=C[1],z=f((function(e,t){L((function(r){var n=Math.round(e),a=Math.round(t);return r.containerWidth===n&&r.containerHeight===a?r:{containerWidth:n,containerHeight:a}}))}),[]);l((function(){var e=function(e){var t,r=e[0].contentRect,n=r.width,a=r.height;z(n,a),null===(t=V.current)||void 0===t||t.call(V,n,a)};x>0&&(e=Gy(e,x,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),r=j.current.getBoundingClientRect(),n=r.width,a=r.height;return z(n,a),t.observe(j.current),function(){t.disconnect()}}),[z,x]);var B=w((function(){var e=A.containerWidth,t=A.containerHeight;if(e<0||t<0)return null;bh(Hl(i)||Hl(h),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",i,h),bh(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=Hl(i)?e:i,a=Hl(h)?t:h;r&&r>0&&(n?a=n/r:a&&(n=a*r),_&&a>_&&(a=_)),bh(n>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,a,i,h,m,d,r);var c=!Array.isArray(b)&&wl.isElement(b)&&Xl(b.type).endsWith("Chart");return o.Children.map(b,(function(e){return wl.isElement(e)?g(e,tx({width:n,height:a},c?{style:tx({height:"100%",width:"100%",maxHeight:a,maxWidth:n},e.props.style)}:{})):e}))}),[r,b,h,_,d,m,A,i]);return o.createElement("div",{id:Z?"".concat(Z):void 0,className:Ri("recharts-responsive-container",M),style:tx(tx({},P),{},{width:i,height:h,minWidth:m,minHeight:d,maxHeight:_}),ref:j},B)})),ix=function(e){return null};function ox(e){return ox="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},ox(e)}function sx(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 lx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sx(Object(r),!0).forEach((function(t){hx(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sx(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function hx(e,t,r){return t=function(e){var t=function(e,t){if("object"!==ox(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ox(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ox(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}ix.displayName="Cell";var vx={widthCache:{},cacheCount:0},px={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ux="recharts_measurement_span";var gx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||by.isSsr)return{width:0,height:0};var r=function(e){var t=lx({},e);return Object.keys(t).forEach((function(e){t[e]||delete t[e]})),t}(t),n=JSON.stringify({text:e,copyStyle:r});if(vx.widthCache[n])return vx.widthCache[n];try{var a=document.getElementById(ux);a||((a=document.createElement("span")).setAttribute("id",ux),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var c=lx(lx({},px),r);Object.assign(a.style,c),a.textContent="".concat(e);var i=a.getBoundingClientRect(),o={width:i.width,height:i.height};return vx.widthCache[n]=o,++vx.cacheCount>2e3&&(vx.cacheCount=0,vx.widthCache={}),o}catch(e){return{width:0,height:0}}};function mx(e){return mx="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},mx(e)}function dx(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fx(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 fx(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 fx(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 _x(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,c=void 0,c=function(e,t){if("object"!==mx(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==mx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"),"symbol"===mx(c)?c:String(c)),n)}var a,c}var wx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yx=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,xx=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Zx={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Ox=Object.keys(Zx),Mx="NaN";var Ex=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||yx.test(r)||(this.num=NaN,this.unit=""),Ox.includes(r)&&(this.num=function(e,t){return e*Zx[t]}(t,r),this.unit="px")}var t,r,n;return t=e,n=[{key:"parse",value:function(t){var r,n=dx(null!==(r=xx.exec(t))&&void 0!==r?r:[],3),a=n[1],c=n[2];return new e(parseFloat(a),null!=c?c:"")}}],(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)}}])&&_x(t.prototype,r),n&&_x(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Hx(e){if(e.includes(Mx))return Mx;for(var t=e;t.includes("*")||t.includes("/");){var r,n=dx(null!==(r=wx.exec(t))&&void 0!==r?r:[],4),a=n[1],c=n[2],i=n[3],o=Ex.parse(null!=a?a:""),s=Ex.parse(null!=i?i:""),l="*"===c?o.multiply(s):o.divide(s);if(l.isNaN())return Mx;t=t.replace(wx,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,v=dx(null!==(h=bx.exec(t))&&void 0!==h?h:[],4),p=v[1],u=v[2],g=v[3],m=Ex.parse(null!=p?p:""),d=Ex.parse(null!=g?g:""),f="+"===u?m.add(d):m.subtract(d);if(f.isNaN())return Mx;t=t.replace(bx,f.toString())}return t}var Px=/\(([^()]*)\)/;function jx(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var r=dx(Px.exec(t),2)[1];t=t.replace(Px,Hx(r))}return t}(t),t=Hx(t)}function Vx(e){var t=function(e){try{return jx(e)}catch(e){return Mx}}(e.slice(5,-1));return t===Mx?"":t}var Cx=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Ax=["dx","dy","angle","className","breakAll"];function Lx(){return Lx=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},Lx.apply(this,arguments)}function zx(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Bx(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kx(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 kx(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 kx(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 Sx=/[ \f\n\r\t\v\u2028\u2029]+/,Rx=function(e){var t=e.children,r=e.breakAll,n=e.style;try{var a=[];return ll(t)||(a=r?t.toString().split(""):t.toString().split(Sx)),{wordsWithComputedWidth:a.map((function(e){return{word:e,width:gx(e,n).width}})),spaceWidth:r?0:gx(" ",n).width}}catch(e){return null}},Dx=function(e){return[{words:ll(e)?[]:e.toString().split(Sx)}]},Ix=function(e){var t=e.width,r=e.scaleToFit,n=e.children,a=e.style,c=e.breakAll,i=e.maxLines;if((t||r)&&!by.isSsr){var o=Rx({breakAll:c,children:n,style:a});return o?function(e,t,r,n,a){var c=e.maxLines,i=e.children,o=e.style,s=e.breakAll,l=Pl(c),h=i,v=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var c=t.word,i=t.width,o=e[e.length-1];if(o&&(null==n||a||o.width+i+r<Number(n)))o.words.push(c),o.width+=i+r;else{var s={words:[c],width:i};e.push(s)}return e}),[])},p=v(t);if(!l)return p;for(var u,g=function(e){var t=h.slice(0,e),r=Rx({breakAll:s,style:o,children:t+"…"}).wordsWithComputedWidth,a=v(r),i=a.length>c||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(a).width>Number(n);return[i,a]},m=0,d=h.length-1,f=0;m<=d&&f<=h.length-1;){var _=Math.floor((m+d)/2),w=Bx(g(_-1),2),b=w[0],y=w[1],x=Bx(g(_),1)[0];if(b||x||(m=_+1),b&&x&&(d=_-1),!b&&x){u=y;break}f++}return u||p}({breakAll:c,children:n,maxLines:i,style:a},o.wordsWithComputedWidth,o.spaceWidth,t,r):Dx(n)}return Dx(n)},Tx="#808080",Nx=function(e){var t=e.x,r=void 0===t?0:t,n=e.y,a=void 0===n?0:n,c=e.lineHeight,i=void 0===c?"1em":c,s=e.capHeight,l=void 0===s?"0.71em":s,h=e.scaleToFit,v=void 0!==h&&h,p=e.textAnchor,u=void 0===p?"start":p,g=e.verticalAnchor,m=void 0===g?"end":g,d=e.fill,f=void 0===d?Tx:d,_=zx(e,Cx),b=w((function(){return Ix({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:v,style:_.style,width:_.width})}),[_.breakAll,_.children,_.maxLines,v,_.style,_.width]),y=_.dx,x=_.dy,Z=_.angle,O=_.className,M=_.breakAll,E=zx(_,Ax);if(!jl(r)||!jl(a))return null;var H,P=r+(Pl(y)?y:0),j=a+(Pl(x)?x:0);switch(m){case"start":H=Vx("calc(".concat(l,")"));break;case"middle":H=Vx("calc(".concat((b.length-1)/2," * -").concat(i," + (").concat(l," / 2))"));break;default:H=Vx("calc(".concat(b.length-1," * -").concat(i,")"))}var V=[];if(v){var C=b[0].width,A=_.width;V.push("scale(".concat((Pl(A)?A/C:1)/C,")"))}return Z&&V.push("rotate(".concat(Z,", ").concat(P,", ").concat(j,")")),V.length&&(E.transform=V.join(" ")),o.createElement("text",Lx({},ih(E,!0),{x:P,y:j,className:Ri("recharts-text",O),textAnchor:u,fill:f.includes("url")?Tx:f}),b.map((function(e,t){var r=e.words.join(M?"":" ");return o.createElement("tspan",{x:P,dy:0===t?H:i,key:r},r)})))};function Fx(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Qx(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $x(e){let t,r,n;function a(e,n,a=0,c=e.length){if(a<c){if(0!==t(n,n))return c;do{const t=a+c>>>1;r(e[t],n)<0?a=t+1:c=t}while(a<c)}return a}return 2!==e.length?(t=Fx,r=(t,r)=>Fx(e(t),r),n=(t,r)=>e(t)-r):(t=e===Fx||e===Qx?e:Yx,r=e,n=e),{left:a,center:function(e,t,r=0,c=e.length){const i=a(e,t,r,c-1);return i>r&&n(e[i-1],t)>-n(e[i],t)?i-1:i},right:function(e,n,a=0,c=e.length){if(a<c){if(0!==t(n,n))return c;do{const t=a+c>>>1;r(e[t],n)<=0?a=t+1:c=t}while(a<c)}return a}}}function Yx(){return 0}function Ux(e){return null===e?NaN:+e}const Wx=$x(Fx).right;$x(Ux).center;class Xx extends Map{constructor(e,t=qx){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(Kx(this,e))}has(e){return super.has(Kx(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 Kx({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function qx(e){return null!==e&&"object"==typeof e?e.valueOf():e}function Gx(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const Jx=Math.sqrt(50),eZ=Math.sqrt(10),tZ=Math.sqrt(2);function rZ(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),c=n/Math.pow(10,a),i=c>=Jx?10:c>=eZ?5:c>=tZ?2:1;let o,s,l;return a<0?(l=Math.pow(10,-a)/i,o=Math.round(e*l),s=Math.round(t*l),o/l<e&&++o,s/l>t&&--s,l=-l):(l=Math.pow(10,a)*i,o=Math.round(e/l),s=Math.round(t/l),o*l<e&&++o,s*l>t&&--s),s<o&&.5<=r&&r<2?rZ(e,t,2*r):[o,s,l]}function nZ(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[a,c,i]=n?rZ(t,e,r):rZ(e,t,r);if(!(c>=a))return[];const o=c-a+1,s=new Array(o);if(n)if(i<0)for(let e=0;e<o;++e)s[e]=(c-e)/-i;else for(let e=0;e<o;++e)s[e]=(c-e)*i;else if(i<0)for(let e=0;e<o;++e)s[e]=(a+e)/-i;else for(let e=0;e<o;++e)s[e]=(a+e)*i;return s}function aZ(e,t,r){return rZ(e=+e,t=+t,r=+r)[2]}function cZ(e,t,r){r=+r;const n=(t=+t)<(e=+e),a=n?aZ(t,e,r):aZ(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function iZ(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let a of e)null!=(a=t(a,++n,e))&&(r<a||void 0===r&&a>=a)&&(r=a)}return r}function oZ(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let a of e)null!=(a=t(a,++n,e))&&(r>a||void 0===r&&a>=a)&&(r=a)}return r}function sZ(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=void 0===a?Gx:function(e=Fx){if(e===Fx)return Gx;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))}}(a);n>r;){if(n-r>600){const c=n-r+1,i=t-r+1,o=Math.log(c),s=.5*Math.exp(2*o/3),l=.5*Math.sqrt(o*s*(c-s)/c)*(i-c/2<0?-1:1);sZ(e,t,Math.max(r,Math.floor(t-i*s/c+l)),Math.min(n,Math.floor(t+(c-i)*s/c+l)),a)}const c=e[t];let i=r,o=n;for(lZ(e,r,t),a(e[n],c)>0&&lZ(e,r,n);i<o;){for(lZ(e,i,o),++i,--o;a(e[i],c)<0;)++i;for(;a(e[o],c)>0;)--o}0===a(e[r],c)?lZ(e,r,o):(++o,lZ(e,o,n)),o<=t&&(r=o+1),t<=o&&(n=o-1)}return e}function lZ(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function hZ(e,t,r=Ux){if((n=e.length)&&!isNaN(t=+t)){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,c=Math.floor(a),i=+r(e[c],c,e);return i+(+r(e[c+1],c+1,e)-i)*(a-c)}}function vZ(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function pZ(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 uZ=Symbol("implicit");function gZ(){var e=new Xx,t=[],r=[],n=uZ;function a(a){let c=e.get(a);if(void 0===c){if(n!==uZ)return n;e.set(a,c=t.push(a)-1)}return r[c%r.length]}return a.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new Xx;for(const n of r)e.has(n)||e.set(n,t.push(n)-1);return a},a.range=function(e){return arguments.length?(r=Array.from(e),a):r.slice()},a.unknown=function(e){return arguments.length?(n=e,a):n},a.copy=function(){return gZ(t,r).unknown(n)},vZ.apply(a,arguments),a}function mZ(){var e,t,r=gZ().unknown(void 0),n=r.domain,a=r.range,c=0,i=1,o=!1,s=0,l=0,h=.5;function v(){var r=n().length,v=i<c,p=v?i:c,u=v?c:i;e=(u-p)/Math.max(1,r-s+2*l),o&&(e=Math.floor(e)),p+=(u-p-e*(r-s))*h,t=e*(1-s),o&&(p=Math.round(p),t=Math.round(t));var g=function(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=0|Math.max(0,Math.ceil((t-e)/r)),c=new Array(a);++n<a;)c[n]=e+n*r;return c}(r).map((function(t){return p+e*t}));return a(v?g.reverse():g)}return delete r.unknown,r.domain=function(e){return arguments.length?(n(e),v()):n()},r.range=function(e){return arguments.length?([c,i]=e,c=+c,i=+i,v()):[c,i]},r.rangeRound=function(e){return[c,i]=e,c=+c,i=+i,o=!0,v()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(o=!!e,v()):o},r.padding=function(e){return arguments.length?(s=Math.min(1,l=+e),v()):s},r.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),v()):s},r.paddingOuter=function(e){return arguments.length?(l=+e,v()):l},r.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),v()):h},r.copy=function(){return mZ(n(),[c,i]).round(o).paddingInner(s).paddingOuter(l).align(h)},vZ.apply(v(),arguments)}function dZ(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return dZ(t())},e}function fZ(){return dZ(mZ.apply(null,arguments).paddingInner(1))}function _Z(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function wZ(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function bZ(){}var yZ=.7,xZ=1/yZ,ZZ="\\s*([+-]?\\d+)\\s*",OZ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",MZ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",EZ=/^#([0-9a-f]{3,8})$/,HZ=new RegExp(`^rgb\\(${ZZ},${ZZ},${ZZ}\\)$`),PZ=new RegExp(`^rgb\\(${MZ},${MZ},${MZ}\\)$`),jZ=new RegExp(`^rgba\\(${ZZ},${ZZ},${ZZ},${OZ}\\)$`),VZ=new RegExp(`^rgba\\(${MZ},${MZ},${MZ},${OZ}\\)$`),CZ=new RegExp(`^hsl\\(${OZ},${MZ},${MZ}\\)$`),AZ=new RegExp(`^hsla\\(${OZ},${MZ},${MZ},${OZ}\\)$`),LZ={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 zZ(){return this.rgb().formatHex()}function BZ(){return this.rgb().formatRgb()}function kZ(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=EZ.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?SZ(t):3===r?new TZ(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?RZ(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?RZ(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=HZ.exec(e))?new TZ(t[1],t[2],t[3],1):(t=PZ.exec(e))?new TZ(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jZ.exec(e))?RZ(t[1],t[2],t[3],t[4]):(t=VZ.exec(e))?RZ(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=CZ.exec(e))?UZ(t[1],t[2]/100,t[3]/100,1):(t=AZ.exec(e))?UZ(t[1],t[2]/100,t[3]/100,t[4]):LZ.hasOwnProperty(e)?SZ(LZ[e]):"transparent"===e?new TZ(NaN,NaN,NaN,0):null}function SZ(e){return new TZ(e>>16&255,e>>8&255,255&e,1)}function RZ(e,t,r,n){return n<=0&&(e=t=r=NaN),new TZ(e,t,r,n)}function DZ(e){return e instanceof bZ||(e=kZ(e)),e?new TZ((e=e.rgb()).r,e.g,e.b,e.opacity):new TZ}function IZ(e,t,r,n){return 1===arguments.length?DZ(e):new TZ(e,t,r,null==n?1:n)}function TZ(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function NZ(){return`#${YZ(this.r)}${YZ(this.g)}${YZ(this.b)}`}function FZ(){const e=QZ(this.opacity);return`${1===e?"rgb(":"rgba("}${$Z(this.r)}, ${$Z(this.g)}, ${$Z(this.b)}${1===e?")":`, ${e})`}`}function QZ(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function $Z(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function YZ(e){return((e=$Z(e))<16?"0":"")+e.toString(16)}function UZ(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new XZ(e,t,r,n)}function WZ(e){if(e instanceof XZ)return new XZ(e.h,e.s,e.l,e.opacity);if(e instanceof bZ||(e=kZ(e)),!e)return new XZ;if(e instanceof XZ)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),c=Math.max(t,r,n),i=NaN,o=c-a,s=(c+a)/2;return o?(i=t===c?(r-n)/o+6*(r<n):r===c?(n-t)/o+2:(t-r)/o+4,o/=s<.5?c+a:2-c-a,i*=60):o=s>0&&s<1?0:i,new XZ(i,o,s,e.opacity)}function XZ(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function KZ(e){return(e=(e||0)%360)<0?e+360:e}function qZ(e){return Math.max(0,Math.min(1,e||0))}function GZ(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}_Z(bZ,kZ,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zZ,formatHex:zZ,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return WZ(this).formatHsl()},formatRgb:BZ,toString:BZ}),_Z(TZ,IZ,wZ(bZ,{brighter(e){return e=null==e?xZ:Math.pow(xZ,e),new TZ(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?yZ:Math.pow(yZ,e),new TZ(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new TZ($Z(this.r),$Z(this.g),$Z(this.b),QZ(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:NZ,formatHex:NZ,formatHex8:function(){return`#${YZ(this.r)}${YZ(this.g)}${YZ(this.b)}${YZ(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:FZ,toString:FZ})),_Z(XZ,(function(e,t,r,n){return 1===arguments.length?WZ(e):new XZ(e,t,r,null==n?1:n)}),wZ(bZ,{brighter(e){return e=null==e?xZ:Math.pow(xZ,e),new XZ(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?yZ:Math.pow(yZ,e),new XZ(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,a=2*r-n;return new TZ(GZ(e>=240?e-240:e+120,a,n),GZ(e,a,n),GZ(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new XZ(KZ(this.h),qZ(this.s),qZ(this.l),QZ(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=QZ(this.opacity);return`${1===e?"hsl(":"hsla("}${KZ(this.h)}, ${100*qZ(this.s)}%, ${100*qZ(this.l)}%${1===e?")":`, ${e})`}`}}));const JZ=Math.PI/180,eO=180/Math.PI,tO=.96422,rO=1,nO=.82521,aO=4/29,cO=6/29,iO=3*cO*cO,oO=cO*cO*cO;function sO(e){if(e instanceof lO)return new lO(e.l,e.a,e.b,e.opacity);if(e instanceof gO)return mO(e);e instanceof TZ||(e=DZ(e));var t,r,n=uO(e.r),a=uO(e.g),c=uO(e.b),i=hO((.2225045*n+.7168786*a+.0606169*c)/rO);return n===a&&a===c?t=r=i:(t=hO((.4360747*n+.3850649*a+.1430804*c)/tO),r=hO((.0139322*n+.0971045*a+.7141733*c)/nO)),new lO(116*i-16,500*(t-i),200*(i-r),e.opacity)}function lO(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function hO(e){return e>oO?Math.pow(e,1/3):e/iO+aO}function vO(e){return e>cO?e*e*e:iO*(e-aO)}function pO(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function uO(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function gO(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function mO(e){if(isNaN(e.h))return new lO(e.l,0,0,e.opacity);var t=e.h*JZ;return new lO(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}_Z(lO,(function(e,t,r,n){return 1===arguments.length?sO(e):new lO(e,t,r,null==n?1:n)}),wZ(bZ,{brighter(e){return new lO(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new lO(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new TZ(pO(3.1338561*(t=tO*vO(t))-1.6168667*(e=rO*vO(e))-.4906146*(r=nO*vO(r))),pO(-.9787684*t+1.9161415*e+.033454*r),pO(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),_Z(gO,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof gO)return new gO(e.h,e.c,e.l,e.opacity);if(e instanceof lO||(e=sO(e)),0===e.a&&0===e.b)return new gO(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*eO;return new gO(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new gO(e,t,r,null==n?1:n)}),wZ(bZ,{brighter(e){return new gO(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new gO(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return mO(this).rgb()}}));var dO=-.14861,fO=1.78277,_O=-.29227,wO=-.90649,bO=1.97294,yO=bO*wO,xO=bO*fO,ZO=fO*_O-wO*dO;function OO(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof MO)return new MO(e.h,e.s,e.l,e.opacity);e instanceof TZ||(e=DZ(e));var t=e.r/255,r=e.g/255,n=e.b/255,a=(ZO*n+yO*t-xO*r)/(ZO+yO-xO),c=n-a,i=(bO*(r-a)-_O*c)/wO,o=Math.sqrt(i*i+c*c)/(bO*a*(1-a)),s=o?Math.atan2(i,c)*eO-120:NaN;return new MO(s<0?s+360:s,o,a,e.opacity)}(e):new MO(e,t,r,null==n?1:n)}function MO(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}_Z(MO,OO,wZ(bZ,{brighter(e){return e=null==e?xZ:Math.pow(xZ,e),new MO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?yZ:Math.pow(yZ,e),new MO(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*JZ,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),a=Math.sin(e);return new TZ(255*(t+r*(dO*n+fO*a)),255*(t+r*(_O*n+wO*a)),255*(t+r*(bO*n)),this.opacity)}}));var EO=e=>()=>e;function HO(e,t){return function(r){return e+r*t}}function PO(e){return 1==(e=+e)?jO: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):EO(isNaN(t)?r:t)}}function jO(e,t){var r=t-e;return r?HO(e,r):EO(isNaN(e)?t:e)}var VO=function e(t){var r=PO(t);function n(e,t){var n=r((e=IZ(e)).r,(t=IZ(t)).r),a=r(e.g,t.g),c=r(e.b,t.b),i=jO(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=a(t),e.b=c(t),e.opacity=i(t),e+""}}return n.gamma=e,n}(1);var CO,AO=(CO=function(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),a=e[n],c=e[n+1],i=n>0?e[n-1]:2*a-c,o=n<t-1?e[n+2]:2*c-a;return function(e,t,r,n,a){var c=e*e,i=c*e;return((1-3*e+3*c-i)*t+(4-6*c+3*i)*r+(1+3*e+3*c-3*i)*n+i*a)/6}((r-n/t)*t,i,a,c,o)}},function(e){var t,r,n=e.length,a=new Array(n),c=new Array(n),i=new Array(n);for(t=0;t<n;++t)r=IZ(e[t]),a[t]=r.r||0,c[t]=r.g||0,i[t]=r.b||0;return a=CO(a),c=CO(c),i=CO(i),r.opacity=1,function(e){return r.r=a(e),r.g=c(e),r.b=i(e),r+""}});function LO(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,a=t.slice();return function(c){for(r=0;r<n;++r)a[r]=e[r]*(1-c)+t[r]*c;return a}}function zO(e,t){var r,n=t?t.length:0,a=e?Math.min(n,e.length):0,c=new Array(a),i=new Array(n);for(r=0;r<a;++r)c[r]=TO(e[r],t[r]);for(;r<n;++r)i[r]=t[r];return function(e){for(r=0;r<a;++r)i[r]=c[r](e);return i}}function BO(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function kO(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function SO(e,t){var r,n={},a={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?n[r]=TO(e[r],t[r]):a[r]=t[r];return function(e){for(r in n)a[r]=n[r](e);return a}}var RO=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,DO=new RegExp(RO.source,"g");function IO(e,t){var r,n,a,c=RO.lastIndex=DO.lastIndex=0,i=-1,o=[],s=[];for(e+="",t+="";(r=RO.exec(e))&&(n=DO.exec(t));)(a=n.index)>c&&(a=t.slice(c,a),o[i]?o[i]+=a:o[++i]=a),(r=r[0])===(n=n[0])?o[i]?o[i]+=n:o[++i]=n:(o[++i]=null,s.push({i:i,x:kO(r,n)})),c=DO.lastIndex;return c<t.length&&(a=t.slice(c),o[i]?o[i]+=a:o[++i]=a),o.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var r,n=0;n<t;++n)o[(r=s[n]).i]=r.x(e);return o.join("")})}function TO(e,t){var r,n=typeof t;return null==t||"boolean"===n?EO(t):("number"===n?kO:"string"===n?(r=kZ(t))?(t=r,VO):IO:t instanceof kZ?VO:t instanceof Date?BO:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?LO:Array.isArray(t)?zO:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?SO:kO)(e,t)}function NO(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var FO,QO=180/Math.PI,$O={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function YO(e,t,r,n,a,c){var i,o,s;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(o=Math.sqrt(r*r+n*n))&&(r/=o,n/=o,s/=o),e*n<t*r&&(e=-e,t=-t,s=-s,i=-i),{translateX:a,translateY:c,rotate:Math.atan2(t,e)*QO,skewX:Math.atan(s)*QO,scaleX:i,scaleY:o}}function UO(e,t,r,n){function a(e){return e.length?e.pop()+" ":""}return function(c,i){var o=[],s=[];return c=e(c),i=e(i),function(e,n,a,c,i,o){if(e!==a||n!==c){var s=i.push("translate(",null,t,null,r);o.push({i:s-4,x:kO(e,a)},{i:s-2,x:kO(n,c)})}else(a||c)&&i.push("translate("+a+t+c+r)}(c.translateX,c.translateY,i.translateX,i.translateY,o,s),function(e,t,r,c){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),c.push({i:r.push(a(r)+"rotate(",null,n)-2,x:kO(e,t)})):t&&r.push(a(r)+"rotate("+t+n)}(c.rotate,i.rotate,o,s),function(e,t,r,c){e!==t?c.push({i:r.push(a(r)+"skewX(",null,n)-2,x:kO(e,t)}):t&&r.push(a(r)+"skewX("+t+n)}(c.skewX,i.skewX,o,s),function(e,t,r,n,c,i){if(e!==r||t!==n){var o=c.push(a(c)+"scale(",null,",",null,")");i.push({i:o-4,x:kO(e,r)},{i:o-2,x:kO(t,n)})}else 1===r&&1===n||c.push(a(c)+"scale("+r+","+n+")")}(c.scaleX,c.scaleY,i.scaleX,i.scaleY,o,s),c=i=null,function(e){for(var t,r=-1,n=s.length;++r<n;)o[(t=s[r]).i]=t.x(e);return o.join("")}}}var WO=UO((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?$O:YO(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),XO=UO((function(e){return null==e?$O:(FO||(FO=document.createElementNS("http://www.w3.org/2000/svg","g")),FO.setAttribute("transform",e),(e=FO.transform.baseVal.consolidate())?YO((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):$O)}),", ",")",")");function KO(e){return((e=Math.exp(e))+1/e)/2}function qO(e){return function t(r){function n(t,n){var a=e((t=OO(t)).h,(n=OO(n)).h),c=jO(t.s,n.s),i=jO(t.l,n.l),o=jO(t.opacity,n.opacity);return function(e){return t.h=a(e),t.s=c(e),t.l=i(Math.pow(e,r)),t.opacity=o(e),t+""}}return r=+r,n.gamma=t,n}(1)}!function e(t,r,n){function a(e,a){var c,i,o=e[0],s=e[1],l=e[2],h=a[0],v=a[1],p=a[2],u=h-o,g=v-s,m=u*u+g*g;if(m<1e-12)i=Math.log(p/l)/t,c=function(e){return[o+e*u,s+e*g,l*Math.exp(t*e*i)]};else{var d=Math.sqrt(m),f=(p*p-l*l+n*m)/(2*l*r*d),_=(p*p-l*l-n*m)/(2*p*r*d),w=Math.log(Math.sqrt(f*f+1)-f),b=Math.log(Math.sqrt(_*_+1)-_);i=(b-w)/t,c=function(e){var n=e*i,a=KO(w),c=l/(r*d)*(a*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*n+w)-function(e){return((e=Math.exp(e))-1/e)/2}(w));return[o+c*u,s+c*g,l*a/KO(t*n+w)]}}return c.duration=1e3*i*t/Math.SQRT2,c}return a.rho=function(t){var r=Math.max(.001,+t),n=r*r;return e(r,n,n*n)},a}(Math.SQRT2,2,4),qO((function(e,t){var r=t-e;return r?HO(e,r>180||r<-180?r-360*Math.round(r/360):r):EO(isNaN(e)?t:e)}));var GO=qO(jO);function JO(e){return+e}var eM=[0,1];function tM(e){return e}function rM(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function nM(e,t,r){var n=e[0],a=e[1],c=t[0],i=t[1];return a<n?(n=rM(a,n),c=r(i,c)):(n=rM(n,a),c=r(c,i)),function(e){return c(n(e))}}function aM(e,t,r){var n=Math.min(e.length,t.length)-1,a=new Array(n),c=new Array(n),i=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<n;)a[i]=rM(e[i],e[i+1]),c[i]=r(t[i],t[i+1]);return function(t){var r=Wx(e,t,1,n)-1;return c[r](a[r](t))}}function cM(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function iM(){var e,t,r,n,a,c,i=eM,o=eM,s=TO,l=tM;function h(){var e=Math.min(i.length,o.length);return l!==tM&&(l=function(e,t){var r;return e>t&&(r=e,e=t,t=r),function(r){return Math.max(e,Math.min(t,r))}}(i[0],i[e-1])),n=e>2?aM:nM,a=c=null,v}function v(t){return null==t||isNaN(t=+t)?r:(a||(a=n(i.map(e),o,s)))(e(l(t)))}return v.invert=function(r){return l(t((c||(c=n(o,i.map(e),kO)))(r)))},v.domain=function(e){return arguments.length?(i=Array.from(e,JO),h()):i.slice()},v.range=function(e){return arguments.length?(o=Array.from(e),h()):o.slice()},v.rangeRound=function(e){return o=Array.from(e),s=NO,h()},v.clamp=function(e){return arguments.length?(l=!!e||tM,h()):l!==tM},v.interpolate=function(e){return arguments.length?(s=e,h()):s},v.unknown=function(e){return arguments.length?(r=e,v):r},function(r,n){return e=r,t=n,h()}}function oM(){return iM()(tM,tM)}function sM(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 lM(e){return(e=sM(Math.abs(e)))?e[1]:NaN}var hM,vM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pM(e){if(!(t=vM.exec(e)))throw new Error("invalid format: "+e);var t;return new uM({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 uM(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 gM(e,t){var r=sM(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}pM.prototype=uM.prototype,uM.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 mM={"%":(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)=>gM(100*e,t),r:gM,s:function(e,t){var r=sM(e,t);if(!r)return e+"";var n=r[0],a=r[1],c=a-(hM=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,i=n.length;return c===i?n:c>i?n+new Array(c-i+1).join("0"):c>0?n.slice(0,c)+"."+n.slice(c):"0."+new Array(1-c).join("0")+sM(e,Math.max(0,t+c-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function dM(e){return e}var fM,_M,wM,bM=Array.prototype.map,yM=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xM(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?dM:(t=bM.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var a=e.length,c=[],i=0,o=t[0],s=0;a>0&&o>0&&(s+o+1>n&&(o=Math.max(1,n-s)),c.push(e.substring(a-=o,a+o)),!((s+=o+1)>n));)o=t[i=(i+1)%t.length];return c.reverse().join(r)}),a=void 0===e.currency?"":e.currency[0]+"",c=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",o=void 0===e.numerals?dM:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(bM.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"−":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function v(e){var t=(e=pM(e)).fill,r=e.align,v=e.sign,p=e.symbol,u=e.zero,g=e.width,m=e.comma,d=e.precision,f=e.trim,_=e.type;"n"===_?(m=!0,_="g"):mM[_]||(void 0===d&&(d=12),f=!0,_="g"),(u||"0"===t&&"="===r)&&(u=!0,t="0",r="=");var w="$"===p?a:"#"===p&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",b="$"===p?c:/[%p]/.test(_)?s:"",y=mM[_],x=/[defgprs%]/.test(_);function Z(e){var a,c,s,p=w,Z=b;if("c"===_)Z=y(e)+Z,e="";else{var O=(e=+e)<0||1/e<0;if(e=isNaN(e)?h:y(Math.abs(e),d),f&&(e=function(e){e:for(var t,r=e.length,n=1,a=-1;n<r;++n)switch(e[n]){case".":a=t=n;break;case"0":0===a&&(a=n),t=n;break;default:if(!+e[n])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),O&&0==+e&&"+"!==v&&(O=!1),p=(O?"("===v?v:l:"-"===v||"("===v?"":v)+p,Z=("s"===_?yM[8+hM/3]:"")+Z+(O&&"("===v?")":""),x)for(a=-1,c=e.length;++a<c;)if(48>(s=e.charCodeAt(a))||s>57){Z=(46===s?i+e.slice(a+1):e.slice(a))+Z,e=e.slice(0,a);break}}m&&!u&&(e=n(e,1/0));var M=p.length+e.length+Z.length,E=M<g?new Array(g-M+1).join(t):"";switch(m&&u&&(e=n(E+e,E.length?g-Z.length:1/0),E=""),r){case"<":e=p+e+Z+E;break;case"=":e=p+E+e+Z;break;case"^":e=E.slice(0,M=E.length>>1)+p+e+Z+E.slice(M);break;default:e=E+p+e+Z}return o(e)}return d=void 0===d?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),Z.toString=function(){return e+""},Z}return{format:v,formatPrefix:function(e,t){var r=v(((e=pM(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(lM(t)/3))),a=Math.pow(10,-n),c=yM[8+n/3];return function(e){return r(a*e)+c}}}}function ZM(e,t,r,n){var a,c=cZ(e,t,r);switch((n=pM(null==n?",f":n)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(a=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(lM(t)/3)))-lM(Math.abs(e)))}(c,i))||(n.precision=a),wM(n,i);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(a=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,lM(t)-lM(e))+1}(c,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=a-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(a=function(e){return Math.max(0,-lM(Math.abs(e)))}(c))||(n.precision=a-2*("%"===n.type))}return _M(n)}function OM(e){var t=e.domain;return e.ticks=function(e){var r=t();return nZ(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return ZM(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,a,c=t(),i=0,o=c.length-1,s=c[i],l=c[o],h=10;for(l<s&&(a=s,s=l,l=a,a=i,i=o,o=a);h-- >0;){if((a=aZ(s,l,r))===n)return c[i]=s,c[o]=l,t(c);if(a>0)s=Math.floor(s/a)*a,l=Math.ceil(l/a)*a;else{if(!(a<0))break;s=Math.ceil(s*a)/a,l=Math.floor(l*a)/a}n=a}return e},e}function MM(){var e=oM();return e.copy=function(){return cM(e,MM())},vZ.apply(e,arguments),OM(e)}function EM(e,t){var r,n=0,a=(e=e.slice()).length-1,c=e[n],i=e[a];return i<c&&(r=n,n=a,a=r,r=c,c=i,i=r),e[n]=t.floor(c),e[a]=t.ceil(i),e}function HM(e){return Math.log(e)}function PM(e){return Math.exp(e)}function jM(e){return-Math.log(-e)}function VM(e){return-Math.exp(-e)}function CM(e){return isFinite(e)?+("1e"+e):e<0?0:e}function AM(e){return(t,r)=>-e(-t,r)}function LM(e){const t=e(HM,PM),r=t.domain;let n,a,c=10;function i(){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)}(c),a=function(e){return 10===e?CM:e===Math.E?Math.exp:t=>Math.pow(e,t)}(c),r()[0]<0?(n=AM(n),a=AM(a),e(jM,VM)):e(HM,PM),t}return t.base=function(e){return arguments.length?(c=+e,i()):c},t.domain=function(e){return arguments.length?(r(e),i()):r()},t.ticks=e=>{const t=r();let i=t[0],o=t[t.length-1];const s=o<i;s&&([i,o]=[o,i]);let l,h,v=n(i),p=n(o);const u=null==e?10:+e;let g=[];if(!(c%1)&&p-v<u){if(v=Math.floor(v),p=Math.ceil(p),i>0){for(;v<=p;++v)for(l=1;l<c;++l)if(h=v<0?l/a(-v):l*a(v),!(h<i)){if(h>o)break;g.push(h)}}else for(;v<=p;++v)for(l=c-1;l>=1;--l)if(h=v>0?l/a(-v):l*a(v),!(h<i)){if(h>o)break;g.push(h)}2*g.length<u&&(g=nZ(i,o,u))}else g=nZ(v,p,Math.min(p-v,u)).map(a);return s?g.reverse():g},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===c?"s":","),"function"!=typeof r&&(c%1||null!=(r=pM(r)).precision||(r.trim=!0),r=_M(r)),e===1/0)return r;const i=Math.max(1,c*e/t.ticks().length);return e=>{let t=e/a(Math.round(n(e)));return t*c<c-.5&&(t*=c),t<=i?r(e):""}},t.nice=()=>r(EM(r(),{floor:e=>a(Math.floor(n(e))),ceil:e=>a(Math.ceil(n(e)))})),t}function zM(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function BM(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function kM(e){var t=1,r=e(zM(t),BM(t));return r.constant=function(r){return arguments.length?e(zM(t=+r),BM(t)):t},OM(r)}function SM(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function RM(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function DM(e){return e<0?-e*e:e*e}function IM(e){var t=e(tM,tM),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(tM,tM):.5===r?e(RM,DM):e(SM(r),SM(1/r)):r},OM(t)}function TM(){var e=IM(iM());return e.copy=function(){return cM(e,TM()).exponent(e.exponent())},vZ.apply(e,arguments),e}function NM(e){return Math.sign(e)*e*e}fM=xM({thousands:",",grouping:[3],currency:["$",""]}),_M=fM.format,wM=fM.formatPrefix;const FM=new Date,QM=new Date;function $M(e,t,r,n){function a(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return a.floor=t=>(e(t=new Date(+t)),t),a.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),a.round=e=>{const t=a(e),r=a.ceil(e);return e-t<r-e?t:r},a.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),a.range=(r,n,c)=>{const i=[];if(r=a.ceil(r),c=null==c?1:Math.floor(c),!(r<n&&c>0))return i;let o;do{i.push(o=new Date(+r)),t(r,c),e(r)}while(o<r&&r<n);return i},a.filter=r=>$M((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&&(a.count=(t,n)=>(FM.setTime(+t),QM.setTime(+n),e(FM),e(QM),Math.floor(r(FM,QM))),a.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?a.filter(n?t=>n(t)%e==0:t=>a.count(0,t)%e==0):a:null)),a}const YM=$M((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));YM.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?$M((t=>{t.setTime(Math.floor(t/e)*e)}),((t,r)=>{t.setTime(+t+r*e)}),((t,r)=>(r-t)/e)):YM:null),YM.range;const UM=1e3,WM=6e4,XM=36e5,KM=864e5,qM=6048e5,GM=2592e6,JM=31536e6,eE=$M((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*UM)}),((e,t)=>(t-e)/UM),(e=>e.getUTCSeconds()));eE.range;const tE=$M((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*UM)}),((e,t)=>{e.setTime(+e+t*WM)}),((e,t)=>(t-e)/WM),(e=>e.getMinutes()));tE.range;const rE=$M((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*WM)}),((e,t)=>(t-e)/WM),(e=>e.getUTCMinutes()));rE.range;const nE=$M((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*UM-e.getMinutes()*WM)}),((e,t)=>{e.setTime(+e+t*XM)}),((e,t)=>(t-e)/XM),(e=>e.getHours()));nE.range;const aE=$M((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*XM)}),((e,t)=>(t-e)/XM),(e=>e.getUTCHours()));aE.range;const cE=$M((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*WM)/KM),(e=>e.getDate()-1));cE.range;const iE=$M((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/KM),(e=>e.getUTCDate()-1));iE.range;const oE=$M((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/KM),(e=>Math.floor(e/KM)));function sE(e){return $M((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())*WM)/qM))}oE.range;const lE=sE(0),hE=sE(1),vE=sE(2),pE=sE(3),uE=sE(4),gE=sE(5),mE=sE(6);function dE(e){return $M((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)/qM))}lE.range,hE.range,vE.range,pE.range,uE.range,gE.range,mE.range;const fE=dE(0),_E=dE(1),wE=dE(2),bE=dE(3),yE=dE(4),xE=dE(5),ZE=dE(6);fE.range,_E.range,wE.range,bE.range,yE.range,xE.range,ZE.range;const OE=$M((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()));OE.range;const ME=$M((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()));ME.range;const EE=$M((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()));EE.every=e=>isFinite(e=Math.floor(e))&&e>0?$M((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,EE.range;const HE=$M((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 PE(e,t,r,n,a,c){const i=[[eE,1,UM],[eE,5,5e3],[eE,15,15e3],[eE,30,3e4],[c,1,WM],[c,5,3e5],[c,15,9e5],[c,30,18e5],[a,1,XM],[a,3,108e5],[a,6,216e5],[a,12,432e5],[n,1,KM],[n,2,1728e5],[r,1,qM],[t,1,GM],[t,3,7776e6],[e,1,JM]];function o(t,r,n){const a=Math.abs(r-t)/n,c=$x((([,,e])=>e)).right(i,a);if(c===i.length)return e.every(cZ(t/JM,r/JM,n));if(0===c)return YM.every(Math.max(cZ(t,r,n),1));const[o,s]=i[a/i[c-1][2]<i[c][2]/a?c-1:c];return o.every(s)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const a=r&&"function"==typeof r.range?r:o(e,t,r),c=a?a.range(e,+t+1):[];return n?c.reverse():c},o]}HE.every=e=>isFinite(e=Math.floor(e))&&e>0?$M((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,HE.range;const[jE,VE]=PE(HE,ME,fE,oE,aE,rE),[CE,AE]=PE(EE,OE,lE,cE,nE,tE);function LE(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 zE(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 BE(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var kE,SE,RE,DE,IE={"-":"",_:" ",0:"0"},TE=/^\s*\d+/,NE=/^%/,FE=/[\\^$*+?|[\]().{}]/g;function QE(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",c=a.length;return n+(c<r?new Array(r-c+1).join(t)+a:a)}function $E(e){return e.replace(FE,"\\$&")}function YE(e){return new RegExp("^(?:"+e.map($E).join("|")+")","i")}function UE(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function WE(e,t,r){var n=TE.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function XE(e,t,r){var n=TE.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function KE(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function qE(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function GE(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function JE(e,t,r){var n=TE.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function eH(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function tH(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 rH(e,t,r){var n=TE.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function nH(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function aH(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function cH(e,t,r){var n=TE.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function iH(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function oH(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function sH(e,t,r){var n=TE.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function lH(e,t,r){var n=TE.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function hH(e,t,r){var n=TE.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function vH(e,t,r){var n=NE.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function pH(e,t,r){var n=TE.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function uH(e,t,r){var n=TE.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function gH(e,t){return QE(e.getDate(),t,2)}function mH(e,t){return QE(e.getHours(),t,2)}function dH(e,t){return QE(e.getHours()%12||12,t,2)}function fH(e,t){return QE(1+cE.count(EE(e),e),t,3)}function _H(e,t){return QE(e.getMilliseconds(),t,3)}function wH(e,t){return _H(e,t)+"000"}function bH(e,t){return QE(e.getMonth()+1,t,2)}function yH(e,t){return QE(e.getMinutes(),t,2)}function xH(e,t){return QE(e.getSeconds(),t,2)}function ZH(e){var t=e.getDay();return 0===t?7:t}function OH(e,t){return QE(lE.count(EE(e)-1,e),t,2)}function MH(e){var t=e.getDay();return t>=4||0===t?uE(e):uE.ceil(e)}function EH(e,t){return e=MH(e),QE(uE.count(EE(e),e)+(4===EE(e).getDay()),t,2)}function HH(e){return e.getDay()}function PH(e,t){return QE(hE.count(EE(e)-1,e),t,2)}function jH(e,t){return QE(e.getFullYear()%100,t,2)}function VH(e,t){return QE((e=MH(e)).getFullYear()%100,t,2)}function CH(e,t){return QE(e.getFullYear()%1e4,t,4)}function AH(e,t){var r=e.getDay();return QE((e=r>=4||0===r?uE(e):uE.ceil(e)).getFullYear()%1e4,t,4)}function LH(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+QE(t/60|0,"0",2)+QE(t%60,"0",2)}function zH(e,t){return QE(e.getUTCDate(),t,2)}function BH(e,t){return QE(e.getUTCHours(),t,2)}function kH(e,t){return QE(e.getUTCHours()%12||12,t,2)}function SH(e,t){return QE(1+iE.count(HE(e),e),t,3)}function RH(e,t){return QE(e.getUTCMilliseconds(),t,3)}function DH(e,t){return RH(e,t)+"000"}function IH(e,t){return QE(e.getUTCMonth()+1,t,2)}function TH(e,t){return QE(e.getUTCMinutes(),t,2)}function NH(e,t){return QE(e.getUTCSeconds(),t,2)}function FH(e){var t=e.getUTCDay();return 0===t?7:t}function QH(e,t){return QE(fE.count(HE(e)-1,e),t,2)}function $H(e){var t=e.getUTCDay();return t>=4||0===t?yE(e):yE.ceil(e)}function YH(e,t){return e=$H(e),QE(yE.count(HE(e),e)+(4===HE(e).getUTCDay()),t,2)}function UH(e){return e.getUTCDay()}function WH(e,t){return QE(_E.count(HE(e)-1,e),t,2)}function XH(e,t){return QE(e.getUTCFullYear()%100,t,2)}function KH(e,t){return QE((e=$H(e)).getUTCFullYear()%100,t,2)}function qH(e,t){return QE(e.getUTCFullYear()%1e4,t,4)}function GH(e,t){var r=e.getUTCDay();return QE((e=r>=4||0===r?yE(e):yE.ceil(e)).getUTCFullYear()%1e4,t,4)}function JH(){return"+0000"}function eP(){return"%"}function tP(e){return+e}function rP(e){return Math.floor(+e/1e3)}!function(e){kE=function(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,c=e.days,i=e.shortDays,o=e.months,s=e.shortMonths,l=YE(a),h=UE(a),v=YE(c),p=UE(c),u=YE(i),g=UE(i),m=YE(o),d=UE(o),f=YE(s),_=UE(s),w={a:function(e){return i[e.getDay()]},A:function(e){return c[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return o[e.getMonth()]},c:null,d:gH,e:gH,f:wH,g:VH,G:AH,H:mH,I:dH,j:fH,L:_H,m:bH,M:yH,p:function(e){return a[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:tP,s:rP,S:xH,u:ZH,U:OH,V:EH,w:HH,W:PH,x:null,X:null,y:jH,Y:CH,Z:LH,"%":eP},b={a:function(e){return i[e.getUTCDay()]},A:function(e){return c[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return o[e.getUTCMonth()]},c:null,d:zH,e:zH,f:DH,g:KH,G:GH,H:BH,I:kH,j:SH,L:RH,m:IH,M:TH,p:function(e){return a[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:tP,s:rP,S:NH,u:FH,U:QH,V:YH,w:UH,W:WH,x:null,X:null,y:XH,Y:qH,Z:JH,"%":eP},y={a:function(e,t,r){var n=u.exec(t.slice(r));return n?(e.w=g.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=v.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=f.exec(t.slice(r));return n?(e.m=_.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=d.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return O(e,t,r,n)},d:aH,e:aH,f:hH,g:eH,G:JE,H:iH,I:iH,j:cH,L:lH,m:nH,M:oH,p:function(e,t,r){var n=l.exec(t.slice(r));return n?(e.p=h.get(n[0].toLowerCase()),r+n[0].length):-1},q:rH,Q:pH,s:uH,S:sH,u:XE,U:KE,V:qE,w:WE,W:GE,x:function(e,t,n){return O(e,r,t,n)},X:function(e,t,r){return O(e,n,t,r)},y:eH,Y:JE,Z:tH,"%":vH};function x(e,t){return function(r){var n,a,c,i=[],o=-1,s=0,l=e.length;for(r instanceof Date||(r=new Date(+r));++o<l;)37===e.charCodeAt(o)&&(i.push(e.slice(s,o)),null!=(a=IE[n=e.charAt(++o)])?n=e.charAt(++o):a="e"===n?" ":"0",(c=t[n])&&(n=c(r,a)),i.push(n),s=o+1);return i.push(e.slice(s,o)),i.join("")}}function Z(e,t){return function(r){var n,a,c=BE(1900,void 0,1);if(O(c,e,r+="",0)!=r.length)return null;if("Q"in c)return new Date(c.Q);if("s"in c)return new Date(1e3*c.s+("L"in c?c.L:0));if(t&&!("Z"in c)&&(c.Z=0),"p"in c&&(c.H=c.H%12+12*c.p),void 0===c.m&&(c.m="q"in c?c.q:0),"V"in c){if(c.V<1||c.V>53)return null;"w"in c||(c.w=1),"Z"in c?(a=(n=zE(BE(c.y,0,1))).getUTCDay(),n=a>4||0===a?_E.ceil(n):_E(n),n=iE.offset(n,7*(c.V-1)),c.y=n.getUTCFullYear(),c.m=n.getUTCMonth(),c.d=n.getUTCDate()+(c.w+6)%7):(a=(n=LE(BE(c.y,0,1))).getDay(),n=a>4||0===a?hE.ceil(n):hE(n),n=cE.offset(n,7*(c.V-1)),c.y=n.getFullYear(),c.m=n.getMonth(),c.d=n.getDate()+(c.w+6)%7)}else("W"in c||"U"in c)&&("w"in c||(c.w="u"in c?c.u%7:"W"in c?1:0),a="Z"in c?zE(BE(c.y,0,1)).getUTCDay():LE(BE(c.y,0,1)).getDay(),c.m=0,c.d="W"in c?(c.w+6)%7+7*c.W-(a+5)%7:c.w+7*c.U-(a+6)%7);return"Z"in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,zE(c)):LE(c)}}function O(e,t,r,n){for(var a,c,i=0,o=t.length,s=r.length;i<o;){if(n>=s)return-1;if(37===(a=t.charCodeAt(i++))){if(a=t.charAt(i++),!(c=y[a in IE?t.charAt(i++):a])||(n=c(e,r,n))<0)return-1}else if(a!=r.charCodeAt(n++))return-1}return n}return w.x=x(r,w),w.X=x(n,w),w.c=x(t,w),b.x=x(r,b),b.X=x(n,b),b.c=x(t,b),{format:function(e){var t=x(e+="",w);return t.toString=function(){return e},t},parse:function(e){var t=Z(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",b);return t.toString=function(){return e},t},utcParse:function(e){var t=Z(e+="",!0);return t.toString=function(){return e},t}}}(e),SE=kE.format,kE.parse,RE=kE.utcFormat,DE=kE.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 nP="%Y-%m-%dT%H:%M:%S.%LZ";function aP(e){return new Date(e)}function cP(e){return e instanceof Date?+e:+new Date(+e)}function iP(e,t,r,n,a,c,i,o,s,l){var h=oM(),v=h.invert,p=h.domain,u=l(".%L"),g=l(":%S"),m=l("%I:%M"),d=l("%I %p"),f=l("%a %d"),_=l("%b %d"),w=l("%B"),b=l("%Y");function y(e){return(s(e)<e?u:o(e)<e?g:i(e)<e?m:c(e)<e?d:n(e)<e?a(e)<e?f:_:r(e)<e?w:b)(e)}return h.invert=function(e){return new Date(v(e))},h.domain=function(e){return arguments.length?p(Array.from(e,cP)):p().map(aP)},h.ticks=function(t){var r=p();return e(r[0],r[r.length-1],null==t?10:t)},h.tickFormat=function(e,t){return null==t?y:l(t)},h.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(EM(r,e)):h},h.copy=function(){return cM(h,iP(e,t,r,n,a,c,i,o,s,l))},h}function oP(){var e,t,r,n,a,c=0,i=1,o=tM,s=!1;function l(t){return null==t||isNaN(t=+t)?a:o(0===r?.5:(t=(n(t)-e)*r,s?Math.max(0,Math.min(1,t)):t))}function h(e){return function(t){var r,n;return arguments.length?([r,n]=t,o=e(r,n),l):[o(0),o(1)]}}return l.domain=function(a){return arguments.length?([c,i]=a,e=n(c=+c),t=n(i=+i),r=e===t?0:1/(t-e),l):[c,i]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(o=e,l):o},l.range=h(TO),l.rangeRound=h(NO),l.unknown=function(e){return arguments.length?(a=e,l):a},function(a){return n=a,e=a(c),t=a(i),r=e===t?0:1/(t-e),l}}function sP(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function lP(){var e=IM(oP());return e.copy=function(){return sP(e,lP()).exponent(e.exponent())},pZ.apply(e,arguments)}function hP(){var e,t,r,n,a,c,i,o=0,s=.5,l=1,h=1,v=tM,p=!1;function u(e){return isNaN(e=+e)?i:(e=.5+((e=+c(e))-t)*(h*e<h*t?n:a),v(p?Math.max(0,Math.min(1,e)):e))}function g(e){return function(t){var r,n,a;return arguments.length?([r,n,a]=t,v=function(e,t){void 0===t&&(t=e,e=TO);for(var r=0,n=t.length-1,a=t[0],c=new Array(n<0?0:n);r<n;)c[r]=e(a,a=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return c[t](e-t)}}(e,[r,n,a]),u):[v(0),v(.5),v(1)]}}return u.domain=function(i){return arguments.length?([o,s,l]=i,e=c(o=+o),t=c(s=+s),r=c(l=+l),n=e===t?0:.5/(t-e),a=t===r?0:.5/(r-t),h=t<e?-1:1,u):[o,s,l]},u.clamp=function(e){return arguments.length?(p=!!e,u):p},u.interpolator=function(e){return arguments.length?(v=e,u):v},u.range=g(TO),u.rangeRound=g(NO),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return c=i,e=i(o),t=i(s),r=i(l),n=e===t?0:.5/(t-e),a=t===r?0:.5/(r-t),h=t<e?-1:1,u}}function vP(){var e=IM(hP());return e.copy=function(){return sP(e,vP()).exponent(e.exponent())},pZ.apply(e,arguments)}Date.prototype.toISOString||RE(nP),+new Date("2000-01-01T00:00:00.000Z")||DE(nP);var pP=Object.freeze({__proto__:null,scaleBand:mZ,scaleDiverging:function e(){var t=OM(hP()(tM));return t.copy=function(){return sP(t,e())},pZ.apply(t,arguments)},scaleDivergingLog:function e(){var t=LM(hP()).domain([.1,1,10]);return t.copy=function(){return sP(t,e()).base(t.base())},pZ.apply(t,arguments)},scaleDivergingPow:vP,scaleDivergingSqrt:function(){return vP.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=kM(hP());return t.copy=function(){return sP(t,e()).constant(t.constant())},pZ.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,JO),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,JO):[0,1],OM(n)},scaleImplicit:uZ,scaleLinear:MM,scaleLog:function e(){const t=LM(iM()).domain([1,10]);return t.copy=()=>cM(t,e()).base(t.base()),vZ.apply(t,arguments),t},scaleOrdinal:gZ,scalePoint:fZ,scalePow:TM,scaleQuantile:function e(){var t,r=[],n=[],a=[];function c(){var e=0,t=Math.max(1,n.length);for(a=new Array(t-1);++e<t;)a[e-1]=hZ(r,e/t);return i}function i(e){return null==e||isNaN(e=+e)?t:n[Wx(a,e)]}return i.invertExtent=function(e){var t=n.indexOf(e);return t<0?[NaN,NaN]:[t>0?a[t-1]:r[0],t<a.length?a[t]:r[r.length-1]]},i.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(Fx),c()},i.range=function(e){return arguments.length?(n=Array.from(e),c()):n.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return a.slice()},i.copy=function(){return e().domain(r).range(n).unknown(t)},vZ.apply(i,arguments)},scaleQuantize:function e(){var t,r=0,n=1,a=1,c=[.5],i=[0,1];function o(e){return null!=e&&e<=e?i[Wx(c,e,0,a)]:t}function s(){var e=-1;for(c=new Array(a);++e<a;)c[e]=((e+1)*n-(e-a)*r)/(a+1);return o}return o.domain=function(e){return arguments.length?([r,n]=e,r=+r,n=+n,s()):[r,n]},o.range=function(e){return arguments.length?(a=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(e){var t=i.indexOf(e);return t<0?[NaN,NaN]:t<1?[r,c[0]]:t>=a?[c[a-1],n]:[c[t-1],c[t]]},o.unknown=function(e){return arguments.length?(t=e,o):o},o.thresholds=function(){return c.slice()},o.copy=function(){return e().domain([r,n]).range(i).unknown(t)},vZ.apply(OM(o),arguments)},scaleRadial:function e(){var t,r=oM(),n=[0,1],a=!1;function c(e){var n=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(r(e));return isNaN(n)?t:a?Math.round(n):n}return c.invert=function(e){return r.invert(NM(e))},c.domain=function(e){return arguments.length?(r.domain(e),c):r.domain()},c.range=function(e){return arguments.length?(r.range((n=Array.from(e,JO)).map(NM)),c):n.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(a=!!e,c):a},c.clamp=function(e){return arguments.length?(r.clamp(e),c):r.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(r.domain(),n).round(a).clamp(r.clamp()).unknown(t)},vZ.apply(c,arguments),OM(c)},scaleSequential:function e(){var t=OM(oP()(tM));return t.copy=function(){return sP(t,e())},pZ.apply(t,arguments)},scaleSequentialLog:function e(){var t=LM(oP()).domain([1,10]);return t.copy=function(){return sP(t,e()).base(t.base())},pZ.apply(t,arguments)},scaleSequentialPow:lP,scaleSequentialQuantile:function e(){var t=[],r=tM;function n(e){if(null!=e&&!isNaN(e=+e))return r((Wx(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(Fx),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(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n=+n)>=n&&(yield n)}}(e,r)),(n=e.length)&&!isNaN(t=+t)){if(t<=0||n<2)return oZ(e);if(t>=1)return iZ(e);var n,a=(n-1)*t,c=Math.floor(a),i=iZ(sZ(e,c).subarray(0,c+1));return i+(oZ(e.subarray(c+1))-i)*(a-c)}}(t,n/e)))},n.copy=function(){return e(r).domain(t)},pZ.apply(n,arguments)},scaleSequentialSqrt:function(){return lP.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=kM(oP());return t.copy=function(){return sP(t,e()).constant(t.constant())},pZ.apply(t,arguments)},scaleSqrt:function(){return TM.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=kM(iM());return t.copy=function(){return cM(t,e()).constant(t.constant())},vZ.apply(t,arguments)},scaleThreshold:function e(){var t,r=[.5],n=[0,1],a=1;function c(e){return null!=e&&e<=e?n[Wx(r,e,0,a)]:t}return c.domain=function(e){return arguments.length?(r=Array.from(e),a=Math.min(r.length,n.length-1),c):r.slice()},c.range=function(e){return arguments.length?(n=Array.from(e),a=Math.min(r.length,n.length-1),c):n.slice()},c.invertExtent=function(e){var t=n.indexOf(e);return[r[t-1],r[t]]},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e().domain(r).range(n).unknown(t)},vZ.apply(c,arguments)},scaleTime:function(){return vZ.apply(iP(CE,AE,EE,OE,lE,cE,nE,tE,eE,SE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return vZ.apply(iP(jE,VE,HE,ME,fE,iE,aE,rE,eE,RE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:ZM}),uP=co;var gP=function(e,t,r){for(var n=-1,a=e.length;++n<a;){var c=e[n],i=t(c);if(null!=i&&(void 0===o?i==i&&!uP(i):r(i,o)))var o=i,s=c}return s};var mP=function(e,t){return e>t},dP=gP,fP=mP,_P=Gm;var wP=function(e){return e&&e.length?dP(e,_P,fP):void 0},bP=zt(wP);var yP=function(e,t){return e<t},xP=gP,ZP=yP,OP=Gm;var MP=function(e){return e&&e.length?xP(e,OP,ZP):void 0},EP=zt(MP),HP=Ts,PP=vd,jP=vf,VP=Di;var CP=tf,AP=function(e,t){return(VP(e)?HP:jP)(e,PP(t))};var LP=zt((function(e,t){return CP(AP(e,t),1)})),zP=wm;var BP,kP=zt((function(e,t){return zP(e,t)})),SP=1e9,RP=!0,DP="[DecimalError] ",IP=DP+"Invalid argument: ",TP=DP+"Exponent out of range: ",NP=Math.floor,FP=Math.pow,QP=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$P=1e7,YP=7,UP=9007199254740991,WP=NP(UP/YP),XP={};function KP(e,t){var r,n,a,c,i,o,s,l,h=e.constructor,v=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),RP?ij(t,v):t;if(s=e.d,l=t.d,i=e.e,a=t.e,s=s.slice(),c=i-a){for(c<0?(n=s,c=-c,o=l.length):(n=l,a=i,o=s.length),c>(o=(i=Math.ceil(v/YP))>o?i+1:o+1)&&(c=o,n.length=1),n.reverse();c--;)n.push(0);n.reverse()}for((o=s.length)-(c=l.length)<0&&(c=o,n=l,l=s,s=n),r=0;c;)r=(s[--c]=s[c]+l[c]+r)/$P|0,s[c]%=$P;for(r&&(s.unshift(r),++a),o=s.length;0==s[--o];)s.pop();return t.d=s,t.e=a,RP?ij(t,v):t}function qP(e,t,r){if(e!==~~e||e<t||e>r)throw Error(IP+e)}function GP(e){var t,r,n,a=e.length-1,c="",i=e[0];if(a>0){for(c+=i,t=1;t<a;t++)n=e[t]+"",(r=YP-n.length)&&(c+=nj(r)),c+=n;i=e[t],(r=YP-(n=i+"").length)&&(c+=nj(r))}else if(0===i)return"0";for(;i%10==0;)i/=10;return c+i}XP.absoluteValue=XP.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},XP.comparedTo=XP.cmp=function(e){var t,r,n,a,c=this;if(e=new c.constructor(e),c.s!==e.s)return c.s||-e.s;if(c.e!==e.e)return c.e>e.e^c.s<0?1:-1;for(t=0,r=(n=c.d.length)<(a=e.d.length)?n:a;t<r;++t)if(c.d[t]!==e.d[t])return c.d[t]>e.d[t]^c.s<0?1:-1;return n===a?0:n>a^c.s<0?1:-1},XP.decimalPlaces=XP.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*YP;if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},XP.dividedBy=XP.div=function(e){return JP(this,new this.constructor(e))},XP.dividedToIntegerBy=XP.idiv=function(e){var t=this.constructor;return ij(JP(this,new t(e),0,1),t.precision)},XP.equals=XP.eq=function(e){return!this.cmp(e)},XP.exponent=function(){return tj(this)},XP.greaterThan=XP.gt=function(e){return this.cmp(e)>0},XP.greaterThanOrEqualTo=XP.gte=function(e){return this.cmp(e)>=0},XP.isInteger=XP.isint=function(){return this.e>this.d.length-2},XP.isNegative=XP.isneg=function(){return this.s<0},XP.isPositive=XP.ispos=function(){return this.s>0},XP.isZero=function(){return 0===this.s},XP.lessThan=XP.lt=function(e){return this.cmp(e)<0},XP.lessThanOrEqualTo=XP.lte=function(e){return this.cmp(e)<1},XP.logarithm=XP.log=function(e){var t,r=this,n=r.constructor,a=n.precision,c=a+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(BP))throw Error(DP+"NaN");if(r.s<1)throw Error(DP+(r.s?"NaN":"-Infinity"));return r.eq(BP)?new n(0):(RP=!1,t=JP(aj(r,c),aj(e,c),c),RP=!0,ij(t,a))},XP.minus=XP.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oj(t,e):KP(t,(e.s=-e.s,e))},XP.modulo=XP.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(!(e=new n(e)).s)throw Error(DP+"NaN");return r.s?(RP=!1,t=JP(r,e,0,1).times(e),RP=!0,r.minus(t)):ij(new n(r),a)},XP.naturalExponential=XP.exp=function(){return ej(this)},XP.naturalLogarithm=XP.ln=function(){return aj(this)},XP.negated=XP.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},XP.plus=XP.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?KP(t,e):oj(t,(e.s=-e.s,e))},XP.precision=XP.sd=function(e){var t,r,n,a=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(IP+e);if(t=tj(a)+1,r=(n=a.d.length-1)*YP+1,n=a.d[n]){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},XP.squareRoot=XP.sqrt=function(){var e,t,r,n,a,c,i,o=this,s=o.constructor;if(o.s<1){if(!o.s)return new s(0);throw Error(DP+"NaN")}for(e=tj(o),RP=!1,0==(a=Math.sqrt(+o))||a==1/0?(((t=GP(o.d)).length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=NP((e+1)/2)-(e<0||e%2),n=new s(t=a==1/0?"5e"+e:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new s(a.toString()),a=i=(r=s.precision)+3;;)if(n=(c=n).plus(JP(o,c,i+2)).times(.5),GP(c.d).slice(0,i)===(t=GP(n.d)).slice(0,i)){if(t=t.slice(i-3,i+1),a==i&&"4999"==t){if(ij(c,r+1,0),c.times(c).eq(o)){n=c;break}}else if("9999"!=t)break;i+=4}return RP=!0,ij(n,r)},XP.times=XP.mul=function(e){var t,r,n,a,c,i,o,s,l,h=this,v=h.constructor,p=h.d,u=(e=new v(e)).d;if(!h.s||!e.s)return new v(0);for(e.s*=h.s,r=h.e+e.e,(s=p.length)<(l=u.length)&&(c=p,p=u,u=c,i=s,s=l,l=i),c=[],n=i=s+l;n--;)c.push(0);for(n=l;--n>=0;){for(t=0,a=s+n;a>n;)o=c[a]+u[n]*p[a-n-1]+t,c[a--]=o%$P|0,t=o/$P|0;c[a]=(c[a]+t)%$P|0}for(;!c[--i];)c.pop();return t?++r:c.shift(),e.d=c,e.e=r,RP?ij(e,v.precision):e},XP.toDecimalPlaces=XP.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(qP(e,0,SP),void 0===t?t=n.rounding:qP(t,0,8),ij(r,e+tj(r)+1,t))},XP.toExponential=function(e,t){var r,n=this,a=n.constructor;return void 0===e?r=sj(n,!0):(qP(e,0,SP),void 0===t?t=a.rounding:qP(t,0,8),r=sj(n=ij(new a(n),e+1,t),!0,e+1)),r},XP.toFixed=function(e,t){var r,n,a=this,c=a.constructor;return void 0===e?sj(a):(qP(e,0,SP),void 0===t?t=c.rounding:qP(t,0,8),r=sj((n=ij(new c(a),e+tj(a)+1,t)).abs(),!1,e+tj(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)},XP.toInteger=XP.toint=function(){var e=this,t=e.constructor;return ij(new t(e),tj(e)+1,t.rounding)},XP.toNumber=function(){return+this},XP.toPower=XP.pow=function(e){var t,r,n,a,c,i,o=this,s=o.constructor,l=+(e=new s(e));if(!e.s)return new s(BP);if(!(o=new s(o)).s){if(e.s<1)throw Error(DP+"Infinity");return o}if(o.eq(BP))return o;if(n=s.precision,e.eq(BP))return ij(o,n);if(i=(t=e.e)>=(r=e.d.length-1),c=o.s,i){if((r=l<0?-l:l)<=UP){for(a=new s(BP),t=Math.ceil(n/YP+4),RP=!1;r%2&&lj((a=a.times(o)).d,t),0!==(r=NP(r/2));)lj((o=o.times(o)).d,t);return RP=!0,e.s<0?new s(BP).div(a):ij(a,n)}}else if(c<0)throw Error(DP+"NaN");return c=c<0&&1&e.d[Math.max(t,r)]?-1:1,o.s=1,RP=!1,a=e.times(aj(o,n+12)),RP=!0,(a=ej(a)).s=c,a},XP.toPrecision=function(e,t){var r,n,a=this,c=a.constructor;return void 0===e?n=sj(a,(r=tj(a))<=c.toExpNeg||r>=c.toExpPos):(qP(e,1,SP),void 0===t?t=c.rounding:qP(t,0,8),n=sj(a=ij(new c(a),e,t),e<=(r=tj(a))||r<=c.toExpNeg,e)),n},XP.toSignificantDigits=XP.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(qP(e,1,SP),void 0===t?t=r.rounding:qP(t,0,8)),ij(new r(this),e,t)},XP.toString=XP.valueOf=XP.val=XP.toJSON=XP[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=tj(e),r=e.constructor;return sj(e,t<=r.toExpNeg||t>=r.toExpPos)};var JP=function(){function e(e,t){var r,n=0,a=e.length;for(e=e.slice();a--;)r=e[a]*t+n,e[a]=r%$P|0,n=r/$P|0;return n&&e.unshift(n),e}function t(e,t,r,n){var a,c;if(r!=n)c=r>n?1:-1;else for(a=c=0;a<r;a++)if(e[a]!=t[a]){c=e[a]>t[a]?1:-1;break}return c}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]<t[r]?1:0,e[r]=n*$P+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,a,c,i){var o,s,l,h,v,p,u,g,m,d,f,_,w,b,y,x,Z,O,M=n.constructor,E=n.s==a.s?1:-1,H=n.d,P=a.d;if(!n.s)return new M(n);if(!a.s)throw Error(DP+"Division by zero");for(s=n.e-a.e,Z=P.length,y=H.length,g=(u=new M(E)).d=[],l=0;P[l]==(H[l]||0);)++l;if(P[l]>(H[l]||0)&&--s,(_=null==c?c=M.precision:i?c+(tj(n)-tj(a))+1:c)<0)return new M(0);if(_=_/YP+2|0,l=0,1==Z)for(h=0,P=P[0],_++;(l<y||h)&&_--;l++)w=h*$P+(H[l]||0),g[l]=w/P|0,h=w%P|0;else{for((h=$P/(P[0]+1)|0)>1&&(P=e(P,h),H=e(H,h),Z=P.length,y=H.length),b=Z,d=(m=H.slice(0,Z)).length;d<Z;)m[d++]=0;(O=P.slice()).unshift(0),x=P[0],P[1]>=$P/2&&++x;do{h=0,(o=t(P,m,Z,d))<0?(f=m[0],Z!=d&&(f=f*$P+(m[1]||0)),(h=f/x|0)>1?(h>=$P&&(h=$P-1),1==(o=t(v=e(P,h),m,p=v.length,d=m.length))&&(h--,r(v,Z<p?O:P,p))):(0==h&&(o=h=1),v=P.slice()),(p=v.length)<d&&v.unshift(0),r(m,v,d),-1==o&&(o=t(P,m,Z,d=m.length))<1&&(h++,r(m,Z<d?O:P,d)),d=m.length):0===o&&(h++,m=[0]),g[l++]=h,o&&m[0]?m[d++]=H[b]||0:(m=[H[b]],d=1)}while((b++<y||void 0!==m[0])&&_--)}return g[0]||g.shift(),u.e=s,ij(u,i?c+tj(u)+1:c)}}();function ej(e,t){var r,n,a,c,i,o=0,s=0,l=e.constructor,h=l.precision;if(tj(e)>16)throw Error(TP+tj(e));if(!e.s)return new l(BP);for(null==t?(RP=!1,i=h):i=t,c=new l(.03125);e.abs().gte(.1);)e=e.times(c),s+=5;for(i+=Math.log(FP(2,s))/Math.LN10*2+5|0,r=n=a=new l(BP),l.precision=i;;){if(n=ij(n.times(e),i),r=r.times(++o),GP((c=a.plus(JP(n,r,i))).d).slice(0,i)===GP(a.d).slice(0,i)){for(;s--;)a=ij(a.times(a),i);return l.precision=h,null==t?(RP=!0,ij(a,h)):a}a=c}}function tj(e){for(var t=e.e*YP,r=e.d[0];r>=10;r/=10)t++;return t}function rj(e,t,r){if(t>e.LN10.sd())throw RP=!0,r&&(e.precision=r),Error(DP+"LN10 precision limit exceeded");return ij(new e(e.LN10),t)}function nj(e){for(var t="";e--;)t+="0";return t}function aj(e,t){var r,n,a,c,i,o,s,l,h,v=1,p=e,u=p.d,g=p.constructor,m=g.precision;if(p.s<1)throw Error(DP+(p.s?"NaN":"-Infinity"));if(p.eq(BP))return new g(0);if(null==t?(RP=!1,l=m):l=t,p.eq(10))return null==t&&(RP=!0),rj(g,l);if(l+=10,g.precision=l,n=(r=GP(u)).charAt(0),c=tj(p),!(Math.abs(c)<15e14))return s=rj(g,l+2,m).times(c+""),p=aj(new g(n+"."+r.slice(1)),l-10).plus(s),g.precision=m,null==t?(RP=!0,ij(p,m)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=GP((p=p.times(e)).d)).charAt(0),v++;for(c=tj(p),n>1?(p=new g("0."+r),c++):p=new g(n+"."+r.slice(1)),o=i=p=JP(p.minus(BP),p.plus(BP),l),h=ij(p.times(p),l),a=3;;){if(i=ij(i.times(h),l),GP((s=o.plus(JP(i,new g(a),l))).d).slice(0,l)===GP(o.d).slice(0,l))return o=o.times(2),0!==c&&(o=o.plus(rj(g,l+2,m).times(c+""))),o=JP(o,new g(v),l),g.precision=m,null==t?(RP=!0,ij(o,m)):o;o=s,a+=2}}function cj(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(a=t.length;48===t.charCodeAt(a-1);)--a;if(t=t.slice(n,a)){if(a-=n,r=r-n-1,e.e=NP(r/YP),e.d=[],n=(r+1)%YP,r<0&&(n+=YP),n<a){for(n&&e.d.push(+t.slice(0,n)),a-=YP;n<a;)e.d.push(+t.slice(n,n+=YP));t=t.slice(n),n=YP-t.length}else n-=a;for(;n--;)t+="0";if(e.d.push(+t),RP&&(e.e>WP||e.e<-WP))throw Error(TP+r)}else e.s=0,e.e=0,e.d=[0];return e}function ij(e,t,r){var n,a,c,i,o,s,l,h,v=e.d;for(i=1,c=v[0];c>=10;c/=10)i++;if((n=t-i)<0)n+=YP,a=t,l=v[h=0];else{if((h=Math.ceil((n+1)/YP))>=(c=v.length))return e;for(l=c=v[h],i=1;c>=10;c/=10)i++;a=(n%=YP)-YP+i}if(void 0!==r&&(o=l/(c=FP(10,i-a-1))%10|0,s=t<0||void 0!==v[h+1]||l%c,s=r<4?(o||s)&&(0==r||r==(e.s<0?3:2)):o>5||5==o&&(4==r||s||6==r&&(n>0?a>0?l/FP(10,i-a):0:v[h-1])%10&1||r==(e.s<0?8:7))),t<1||!v[0])return s?(c=tj(e),v.length=1,t=t-c-1,v[0]=FP(10,(YP-t%YP)%YP),e.e=NP(-t/YP)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(0==n?(v.length=h,c=1,h--):(v.length=h+1,c=FP(10,YP-n),v[h]=a>0?(l/FP(10,i-a)%FP(10,a)|0)*c:0),s)for(;;){if(0==h){(v[0]+=c)==$P&&(v[0]=1,++e.e);break}if(v[h]+=c,v[h]!=$P)break;v[h--]=0,c=1}for(n=v.length;0===v[--n];)v.pop();if(RP&&(e.e>WP||e.e<-WP))throw Error(TP+tj(e));return e}function oj(e,t){var r,n,a,c,i,o,s,l,h,v,p=e.constructor,u=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),RP?ij(t,u):t;if(s=e.d,v=t.d,n=t.e,l=e.e,s=s.slice(),i=l-n){for((h=i<0)?(r=s,i=-i,o=v.length):(r=v,n=l,o=s.length),i>(a=Math.max(Math.ceil(u/YP),o)+2)&&(i=a,r.length=1),r.reverse(),a=i;a--;)r.push(0);r.reverse()}else{for((h=(a=s.length)<(o=v.length))&&(o=a),a=0;a<o;a++)if(s[a]!=v[a]){h=s[a]<v[a];break}i=0}for(h&&(r=s,s=v,v=r,t.s=-t.s),o=s.length,a=v.length-o;a>0;--a)s[o++]=0;for(a=v.length;a>i;){if(s[--a]<v[a]){for(c=a;c&&0===s[--c];)s[c]=$P-1;--s[c],s[a]+=$P}s[a]-=v[a]}for(;0===s[--o];)s.pop();for(;0===s[0];s.shift())--n;return s[0]?(t.d=s,t.e=n,RP?ij(t,u):t):new p(0)}function sj(e,t,r){var n,a=tj(e),c=GP(e.d),i=c.length;return t?(r&&(n=r-i)>0?c=c.charAt(0)+"."+c.slice(1)+nj(n):i>1&&(c=c.charAt(0)+"."+c.slice(1)),c=c+(a<0?"e":"e+")+a):a<0?(c="0."+nj(-a-1)+c,r&&(n=r-i)>0&&(c+=nj(n))):a>=i?(c+=nj(a+1-i),r&&(n=r-a-1)>0&&(c=c+"."+nj(n))):((n=a+1)<i&&(c=c.slice(0,n)+"."+c.slice(n)),r&&(n=r-i)>0&&(a+1===i&&(c+="."),c+=nj(n))),e.s<0?"-"+c:c}function lj(e,t){if(e.length>t)return e.length=t,!0}function hj(e){if(!e||"object"!=typeof e)throw Error(DP+"Object expected");var t,r,n,a=["precision",1,SP,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if(void 0!==(n=e[r=a[t]])){if(!(NP(n)===n&&n>=a[t+1]&&n<=a[t+2]))throw Error(IP+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(IP+r+": "+n);this[r]=new this(n)}return this}var vj=function e(t){var r,n,a;function c(e){var t=this;if(!(t instanceof c))return new c(e);if(t.constructor=c,e instanceof c)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(IP+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])):cj(t,e.toString())}if("string"!=typeof e)throw Error(IP+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!QP.test(e))throw Error(IP+e);cj(t,e)}if(c.prototype=XP,c.ROUND_UP=0,c.ROUND_DOWN=1,c.ROUND_CEIL=2,c.ROUND_FLOOR=3,c.ROUND_HALF_UP=4,c.ROUND_HALF_DOWN=5,c.ROUND_HALF_EVEN=6,c.ROUND_HALF_CEIL=7,c.ROUND_HALF_FLOOR=8,c.clone=e,c.config=c.set=hj,void 0===t&&(t={}),t)for(a=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<a.length;)t.hasOwnProperty(n=a[r++])||(t[n]=this[n]);return c.config(t),c}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});BP=new vj(1);var pj=vj;function uj(e){return function(e){if(Array.isArray(e))return gj(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 gj(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 gj(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 gj(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 mj=function(e){return e},dj={"@@functional/placeholder":!0},fj=function(e){return e===dj},_j=function(e){return function t(){return 0===arguments.length||1===arguments.length&&fj(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},wj=function e(t,r){return 1===t?r:_j((function(){for(var n=arguments.length,a=new Array(n),c=0;c<n;c++)a[c]=arguments[c];var i=a.filter((function(e){return e!==dj})).length;return i>=t?r.apply(void 0,a):e(t-i,_j((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var c=a.map((function(e){return fj(e)?t.shift():e}));return r.apply(void 0,uj(c).concat(t))})))}))},bj=function(e){return wj(e.length,e)},yj=function(e,t){for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},xj=bj((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),Zj=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.length)return mj;var n=t.reverse(),a=n[0],c=n.slice(1);return function(){return c.reduce((function(e,t){return t(e)}),a.apply(void 0,arguments))}},Oj=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},Mj=function(e){var t=null,r=null;return function(){for(var n=arguments.length,a=new Array(n),c=0;c<n;c++)a[c]=arguments[c];return t&&a.every((function(e,r){return e===t[r]}))?r:(t=a,r=e.apply(void 0,a))}};var Ej=bj((function(e,t,r){var n=+e;return n+r*(+t-n)})),Hj=bj((function(e,t,r){var n=t-+e;return(r-e)/(n=n||1/0)})),Pj=bj((function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))})),jj={rangeStep:function(e,t,r){for(var n=new pj(e),a=0,c=[];n.lt(t)&&a<1e5;)c.push(n.toNumber()),n=n.add(r),a++;return c},getDigitCount:function(e){return 0===e?1:Math.floor(new pj(e).abs().log(10).toNumber())+1},interpolateNumber:Ej,uninterpolateNumber:Hj,uninterpolateTruncation:Pj};function Vj(e){return function(e){if(Array.isArray(e))return Lj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Aj(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 Cj(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,a=!1,c=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,c=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw c}}return r}(e,t)||Aj(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 Aj(e,t){if(e){if("string"==typeof e)return Lj(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)?Lj(e,t):void 0}}function Lj(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 zj(e){var t=Cj(e,2),r=t[0],n=t[1],a=r,c=n;return r>n&&(a=n,c=r),[a,c]}function Bj(e,t,r){if(e.lte(0))return new pj(0);var n=jj.getDigitCount(e.toNumber()),a=new pj(10).pow(n),c=e.div(a),i=1!==n?.05:.1,o=new pj(Math.ceil(c.div(i).toNumber())).add(r).mul(i).mul(a);return t?o:new pj(Math.ceil(o))}function kj(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new pj(0),tickMin:new pj(0),tickMax:new pj(0)};var c,i=Bj(new pj(t).sub(e).div(r-1),n,a);c=e<=0&&t>=0?new pj(0):(c=new pj(e).add(t).div(2)).sub(new pj(c).mod(i));var o=Math.ceil(c.sub(e).div(i).toNumber()),s=Math.ceil(new pj(t).sub(c).div(i).toNumber()),l=o+s+1;return l>r?kj(e,t,r,n,a+1):(l<r&&(s=t>0?s+(r-l):s,o=t>0?o:o+(r-l)),{step:i,tickMin:c.sub(new pj(o).mul(i)),tickMax:c.add(new pj(s).mul(i))})}var Sj=Mj((function(e){var t=Cj(e,2),r=t[0],n=t[1],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Math.max(a,2),o=Cj(zj([r,n]),2),s=o[0],l=o[1];if(s===-1/0||l===1/0){var h=l===1/0?[s].concat(Vj(yj(0,a-1).map((function(){return 1/0})))):[].concat(Vj(yj(0,a-1).map((function(){return-1/0}))),[l]);return r>n?Oj(h):h}if(s===l)return function(e,t,r){var n=1,a=new pj(e);if(!a.isint()&&r){var c=Math.abs(e);c<1?(n=new pj(10).pow(jj.getDigitCount(e)-1),a=new pj(Math.floor(a.div(n).toNumber())).mul(n)):c>1&&(a=new pj(Math.floor(e)))}else 0===e?a=new pj(Math.floor((t-1)/2)):r||(a=new pj(Math.floor(e)));var i=Math.floor((t-1)/2),o=Zj(xj((function(e){return a.add(new pj(e-i).mul(n)).toNumber()})),yj);return o(0,t)}(s,a,c);var v=kj(s,l,i,c),p=v.step,u=v.tickMin,g=v.tickMax,m=jj.rangeStep(u,g.add(new pj(.1).mul(p)),p);return r>n?Oj(m):m})),Rj=Mj((function(e,t){var r=Cj(e,2),n=r[0],a=r[1],c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Cj(zj([n,a]),2),o=i[0],s=i[1];if(o===-1/0||s===1/0)return[n,a];if(o===s)return[o];var l=Math.max(t,2),h=Bj(new pj(s).sub(o).div(l-1),c,0),v=[].concat(Vj(jj.rangeStep(new pj(o),new pj(s).sub(new pj(.99).mul(h)),h)),[s]);return n>a?Oj(v):v})),Dj=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ij(){return Ij=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},Ij.apply(this,arguments)}function Tj(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nj(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 Nj(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 Nj(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 Fj(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Qj(e){var t=e.offset,r=e.layout,n=e.width,a=e.dataKey,c=e.data,i=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,h=Fj(e,Dj),v=ih(h),p=c.map((function(e){var c=i(e,a),h=c.x,p=c.y,u=c.value,g=c.errorVal;if(!g)return null;var m,d,f=[];if(Array.isArray(g)){var _=Tj(g,2);m=_[0],d=_[1]}else m=d=g;if("vertical"===r){var w=s.scale,b=p+t,y=b+n,x=b-n,Z=w(u-m),O=w(u+d);f.push({x1:O,y1:y,x2:O,y2:x}),f.push({x1:Z,y1:b,x2:O,y2:b}),f.push({x1:Z,y1:y,x2:Z,y2:x})}else if("horizontal"===r){var M=l.scale,E=h+t,H=E-n,P=E+n,j=M(u-m),V=M(u+d);f.push({x1:H,y1:V,x2:P,y2:V}),f.push({x1:E,y1:j,x2:E,y2:V}),f.push({x1:H,y1:j,x2:P,y2:j})}return o.createElement(_h,Ij({className:"recharts-errorBar",key:"bar-".concat(f.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},v),f.map((function(e){return o.createElement("line",Ij({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return o.createElement(_h,{className:"recharts-errorBars"},p)}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 Yj(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 Uj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yj(Object(r),!0).forEach((function(t){Wj(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yj(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wj(e,t,r){return t=function(e){var t=function(e,t){if("object"!==$j(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==$j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$j(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Qj.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Qj.displayName="ErrorBar";var Xj=function(e){var t,r=e.children,n=e.formattedGraphicalItems,a=e.legendWidth,c=e.legendContent,i=eh(r,Xd);return i?(t=i.props&&i.props.payload?i.props&&i.props.payload:"children"===c?(n||[]).reduce((function(e,t){var r=t.item,n=t.props,a=n.sectors||n.data||[];return e.concat(a.map((function(e){return{type:i.props.iconType||r.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(n||[]).map((function(e){var t=e.item,r=t.props,n=r.dataKey,a=r.name,c=r.legendType;return{inactive:r.hide,dataKey:n,type:i.props.iconType||c||"square",color:aV(t),value:a||n,payload:t.props}})),Uj(Uj(Uj({},i.props),Xd.getWithHeight(i,a)),{},{payload:t,item:i})):null};function Kj(e){return Kj="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},Kj(e)}function qj(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 Gj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qj(Object(r),!0).forEach((function(t){Jj(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qj(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Jj(e,t,r){return t=function(e){var t=function(e,t){if("object"!==Kj(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Kj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Kj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eV(e){return function(e){if(Array.isArray(e))return tV(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 tV(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 tV(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 tV(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 rV(e,t,r){return ll(e)||ll(t)?r:jl(t)?sl(e,t,r):_o(t)?t(e):r}function nV(e,t,r,n){var a=LP(e,(function(e){return rV(e,t)}));if("number"===r){var c=a.filter((function(e){return Pl(e)||parseFloat(e)}));return c.length?[EP(c),bP(c)]:[1/0,-1/0]}return(n?a.filter((function(e){return!ll(e)})):a).map((function(e){return jl(e)||e instanceof Date?e:""}))}var aV=function(e){var t,r=e.type.displayName,n=e.props,a=n.stroke,c=n.fill;switch(r){case"Line":t=a;break;case"Area":case"Radar":t=a&&"none"!==a?a:c;break;default:t=c}return t},cV=function(e,t,r,n,a){var c=Jl(t.props.children,Qj).filter((function(e){return function(e,t,r){return!!ll(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===r?"xAxis"===t:"y"!==r||"yAxis"===t)}(n,a,e.props.direction)}));if(c&&c.length){var i=c.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var n=rV(t,r,0),a=Array.isArray(n)?[EP(n),bP(n)]:[n,n],c=i.reduce((function(e,r){var n=rV(t,r,0),c=a[0]-Math.abs(Array.isArray(n)?n[0]:n),i=a[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(c,e[0]),Math.max(i,e[1])]}),[1/0,-1/0]);return[Math.min(c[0],e[0]),Math.max(c[1],e[1])]}),[1/0,-1/0])}return null},iV=function(e,t,r,n,a){var c=t.map((function(t){var c=t.props.dataKey;return"number"===r&&c&&cV(e,t,c,n)||nV(e,c,r,a)}));if("number"===r)return c.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var i={};return c.reduce((function(e,t){for(var r=0,n=t.length;r<n;r++)i[t[r]]||(i[t[r]]=!0,e.push(t[r]));return e}),[])},oV=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},sV=function(e,t,r,n){if(n)return e.map((function(e){return e.coordinate}));var a,c,i=e.map((function(e){return e.coordinate===t&&(a=!0),e.coordinate===r&&(c=!0),e.coordinate}));return a||i.push(t),c||i.push(r),i},lV=function(e,t,r){if(!e)return null;var n=e.scale,a=e.duplicateDomain,c=e.type,i=e.range,o="scaleBand"===e.realScaleType?n.bandwidth()/2:2,s=(t||r)&&"category"===c&&n.bandwidth?n.bandwidth()/o:0;return s="angleAxis"===e.axisType&&(null==i?void 0:i.length)>=2?2*El(i[0]-i[1])*s:s,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=a?a.indexOf(e):e;return{coordinate:n(t)+s,value:e,offset:s}})).filter((function(e){return!Ml(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:n(e)+s,value:e,index:t,offset:s}})):n.ticks&&!r?n.ticks(e.tickCount).map((function(e){return{coordinate:n(e)+s,value:e,offset:s}})):n.domain().map((function(e,t){return{coordinate:n(e)+s,value:a?a[e]:e,index:t,offset:s}}))},hV=new WeakMap,vV=function(e,t){if("function"!=typeof t)return e;hV.has(e)||hV.set(e,new WeakMap);var r=hV.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},pV=function(e,t,r){var n=e.scale,a=e.type,c=e.layout,i=e.axisType;if("auto"===n)return"radial"===c&&"radiusAxis"===i?{scale:mZ(),realScaleType:"band"}:"radial"===c&&"angleAxis"===i?{scale:MM(),realScaleType:"linear"}:"category"===a&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!r)?{scale:fZ(),realScaleType:"point"}:"category"===a?{scale:mZ(),realScaleType:"band"}:{scale:MM(),realScaleType:"linear"};if(gl(n)){var o="scale".concat(Yh(n));return{scale:(pP[o]||fZ)(),realScaleType:pP[o]?o:"point"}}return _o(n)?{scale:n}:{scale:fZ(),realScaleType:"point"}},uV=1e-4,gV=function(e){var t=e.domain();if(t&&!(t.length<=2)){var r=t.length,n=e.range(),a=Math.min(n[0],n[1])-uV,c=Math.max(n[0],n[1])+uV,i=e(t[0]),o=e(t[r-1]);(i<a||i>c||o<a||o>c)&&e.domain([t[0],t[r-1]])}},mV=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},dV=function(e,t){if(!t||2!==t.length||!Pl(t[0])||!Pl(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),a=[e[0],e[1]];return(!Pl(e[0])||e[0]<r)&&(a[0]=r),(!Pl(e[1])||e[1]>n)&&(a[1]=n),a[0]>n&&(a[0]=n),a[1]<r&&(a[1]=r),a},fV={sign:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var a=0,c=0,i=0;i<t;++i){var o=Ml(e[i][r][1])?e[i][r][0]:e[i][r][1];o>=0?(e[i][r][0]=a,e[i][r][1]=a+o,a=e[i][r][1]):(e[i][r][0]=c,e[i][r][1]=c+o,c=e[i][r][1])}},expand:function(e,t){if((n=e.length)>0){for(var r,n,a,c=0,i=e[0].length;c<i;++c){for(a=r=0;r<n;++r)a+=e[r][c][1]||0;if(a)for(r=0;r<n;++r)e[r][c][1]/=a}dp(e,t)}},none:dp,silhouette:function(e,t){if((r=e.length)>0){for(var r,n=0,a=e[t[0]],c=a.length;n<c;++n){for(var i=0,o=0;i<r;++i)o+=e[i][n][1]||0;a[n][1]+=a[n][0]=-o/2}dp(e,t)}},wiggle:function(e,t){if((a=e.length)>0&&(n=(r=e[t[0]]).length)>0){for(var r,n,a,c=0,i=1;i<n;++i){for(var o=0,s=0,l=0;o<a;++o){for(var h=e[t[o]],v=h[i][1]||0,p=(v-(h[i-1][1]||0))/2,u=0;u<o;++u){var g=e[t[u]];p+=(g[i][1]||0)-(g[i-1][1]||0)}s+=v,l+=p*v}r[i-1][1]+=r[i-1][0]=c,s&&(c-=l/s)}r[i-1][1]+=r[i-1][0]=c,dp(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 a=0,c=0;c<t;++c){var i=Ml(e[c][r][1])?e[c][r][0]:e[c][r][1];i>=0?(e[c][r][0]=a,e[c][r][1]=a+i,a=e[c][r][1]):(e[c][r][0]=0,e[c][r][1]=0)}}},_V=function(e,t,r){var n=t.map((function(e){return e.props.dataKey})),a=fV[r],c=function(){var e=Uh([]),t=fp,r=dp,n=_p;function a(a){var c,i,o=Array.from(e.apply(this,arguments),wp),s=o.length,l=-1;for(const e of a)for(c=0,++l;c<s;++c)(o[c][l]=[0,+n(e,o[c].key,l,a)]).data=e;for(c=0,i=bv(t(o));c<s;++c)o[i[c]].index=c;return r(o,i),o}return a.keys=function(t){return arguments.length?(e="function"==typeof t?t:Uh(Array.from(t)),a):e},a.value=function(e){return arguments.length?(n="function"==typeof e?e:Uh(+e),a):n},a.order=function(e){return arguments.length?(t=null==e?fp:"function"==typeof e?e:Uh(Array.from(e)),a):t},a.offset=function(e){return arguments.length?(r=null==e?dp:e,a):r},a}().keys(n).value((function(e,t){return+rV(e,t,0)})).order(fp).offset(a);return c(e)},wV=function(e,t){var r=t.realScaleType,n=t.type,a=t.tickCount,c=t.originalDomain,i=t.allowDecimals,o=r||t.scale;if("auto"!==o&&"linear"!==o)return null;if(a&&"number"===n&&c&&("auto"===c[0]||"auto"===c[1])){var s=e.domain();if(!s.length)return null;var l=Sj(s,a,i);return e.domain([EP(l),bP(l)]),{niceTicks:l}}if(a&&"number"===n){var h=e.domain();return{niceTicks:Rj(h,a,i)}}return null},bV=function(e){var t=e.axis,r=e.ticks,n=e.bandSize,a=e.entry,c=e.index,i=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!ll(a[t.dataKey])){var o=Bl(r,"value",a[t.dataKey]);if(o)return o.coordinate+n/2}return r[c]?r[c].coordinate+n/2:null}var s=rV(a,ll(i)?t.dataKey:i);return ll(s)?null:t.scale(s)},yV=function(e){var t=e.axis,r=e.ticks,n=e.offset,a=e.bandSize,c=e.entry,i=e.index;if("category"===t.type)return r[i]?r[i].coordinate+n:null;var o=rV(c,t.dataKey,t.domain[i]);return ll(o)?null:t.scale(o)-a/2+n},xV=function(e){var t=e.numericAxis,r=t.scale.domain();if("number"===t.type){var n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return n<=0&&a>=0?0:a<0?a:n}return r[0]},ZV=function(e,t,r){return Object.keys(e).reduce((function(n,a){var c=e[a].stackedData.reduce((function(e,n){var a=n.slice(t,r+1).reduce((function(e,t){return[EP(t.concat([e[0]]).filter(Pl)),bP(t.concat([e[1]]).filter(Pl))]}),[1/0,-1/0]);return[Math.min(e[0],a[0]),Math.max(e[1],a[1])]}),[1/0,-1/0]);return[Math.min(c[0],n[0]),Math.max(c[1],n[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},OV=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,MV=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,EV=function(e,t,r){if(_o(e))return e(t,r);if(!Array.isArray(e))return t;var n=[];if(Pl(e[0]))n[0]=r?e[0]:Math.min(e[0],t[0]);else if(OV.test(e[0])){var a=+OV.exec(e[0])[1];n[0]=t[0]-a}else _o(e[0])?n[0]=e[0](t[0]):n[0]=t[0];if(Pl(e[1]))n[1]=r?e[1]:Math.max(e[1],t[1]);else if(MV.test(e[1])){var c=+MV.exec(e[1])[1];n[1]=t[1]+c}else _o(e[1])?n[1]=e[1](t[1]):n[1]=t[1];return n},HV=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 a=Kf(t,(function(e){return e.coordinate})),c=1/0,i=1,o=a.length;i<o;i++){var s=a[i],l=a[i-1];c=Math.min((s.coordinate||0)-(l.coordinate||0),c)}return c===1/0?0:c}return r?void 0:0},PV=function(e,t,r){return e&&e.length?kP(e,sl(r,"type.defaultProps.domain"))?t:e:t},jV=function(e,t){var r=e.props,n=r.dataKey,a=r.name,c=r.unit,i=r.formatter,o=r.tooltipType,s=r.chartType;return Gj(Gj({},ih(e)),{},{dataKey:n,unit:c,formatter:i,name:a||n,color:aV(e),value:rV(t,n),type:o,payload:t,chartType:s})};function VV(e){return VV="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},VV(e)}function CV(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 AV(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?CV(Object(r),!0).forEach((function(t){LV(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CV(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function LV(e,t,r){return t=function(e){var t=function(e,t){if("object"!==VV(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==VV(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VV(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zV(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return BV(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 BV(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 BV(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 kV=Math.PI/180,SV=function(e){return 180*e/Math.PI},RV=function(e,t,r,n){return{x:e+Math.cos(-kV*n)*r,y:t+Math.sin(-kV*n)*r}},DV=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(r.left||0)-(r.right||0)),Math.abs(t-(r.top||0)-(r.bottom||0)))/2},IV=function(e,t,r,n,a){var c=e.width,i=e.height,o=e.startAngle,s=e.endAngle,l=Al(e.cx,c,c/2),h=Al(e.cy,i,i/2),v=DV(c,i,r),p=Al(e.innerRadius,v,0),u=Al(e.outerRadius,v,.8*v);return Object.keys(t).reduce((function(e,r){var c,i=t[r],v=i.domain,g=i.reversed;if(ll(i.range))"angleAxis"===n?c=[o,s]:"radiusAxis"===n&&(c=[p,u]),g&&(c=[c[1],c[0]]);else{var m=zV(c=i.range,2);o=m[0],s=m[1]}var d=pV(i,a),f=d.realScaleType,_=d.scale;_.domain(v).range(c),gV(_);var w=wV(_,AV(AV({},i),{},{realScaleType:f})),b=AV(AV(AV({},i),w),{},{range:c,radius:u,realScaleType:f,scale:_,cx:l,cy:h,innerRadius:p,outerRadius:u,startAngle:o,endAngle:s});return AV(AV({},e),{},LV({},r,b))}),{})},TV=function(e,t){var r=e.x,n=e.y,a=t.cx,c=t.cy,i=function(e,t){var r=e.x,n=e.y,a=t.x,c=t.y;return Math.sqrt(Math.pow(r-a,2)+Math.pow(n-c,2))}({x:r,y:n},{x:a,y:c});if(i<=0)return{radius:i};var o=(r-a)/i,s=Math.acos(o);return n>c&&(s=2*Math.PI-s),{radius:i,angle:SV(s),angleInRadian:s}},NV=function(e,t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),c=Math.floor(n/360);return e+360*Math.min(a,c)},FV=function(e,t){var r=e.x,n=e.y,a=TV({x:r,y:n},t),c=a.radius,i=a.angle,o=t.innerRadius,s=t.outerRadius;if(c<o||c>s)return!1;if(0===c)return!0;var l,h=function(e){var t=e.startAngle,r=e.endAngle,n=Math.floor(t/360),a=Math.floor(r/360),c=Math.min(n,a);return{startAngle:t-360*c,endAngle:r-360*c}}(t),v=h.startAngle,p=h.endAngle,u=i;if(v<=p){for(;u>p;)u-=360;for(;u<v;)u+=360;l=u>=v&&u<=p}else{for(;u>v;)u-=360;for(;u<p;)u+=360;l=u>=p&&u<=v}return l?AV(AV({},t),{},{radius:c,angle:NV(u,t)}):null};function QV(e){return QV="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},QV(e)}var $V=["offset"];function YV(e){return function(e){if(Array.isArray(e))return UV(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 UV(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 UV(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 UV(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 WV(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function XV(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 KV(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?XV(Object(r),!0).forEach((function(t){qV(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XV(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qV(e,t,r){return t=function(e){var t=function(e,t){if("object"!==QV(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==QV(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QV(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GV(){return GV=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},GV.apply(this,arguments)}var JV=function(e){var t=e.value,r=e.formatter,n=ll(e.children)?t:e.children;return _o(r)?r(n):n},eC=function(e,t,r){var n,a,c=e.position,i=e.viewBox,s=e.offset,l=e.className,h=i,v=h.cx,p=h.cy,u=h.innerRadius,g=h.outerRadius,m=h.startAngle,d=h.endAngle,f=h.clockWise,_=(u+g)/2,w=function(e,t){return El(t-e)*Math.min(Math.abs(t-e),360)}(m,d),b=w>=0?1:-1;"insideStart"===c?(n=m+b*s,a=f):"insideEnd"===c?(n=d-b*s,a=!f):"end"===c&&(n=d+b*s,a=f),a=w<=0?a:!a;var y=RV(v,p,_,n),x=RV(v,p,_,n+359*(a?1:-1)),Z="M".concat(y.x,",").concat(y.y,"\n A").concat(_,",").concat(_,",0,1,").concat(a?0:1,",\n ").concat(x.x,",").concat(x.y),O=ll(e.id)?Cl("recharts-radial-line-"):e.id;return o.createElement("text",GV({},r,{dominantBaseline:"central",className:Ri("recharts-radial-bar-label",l)}),o.createElement("defs",null,o.createElement("path",{id:O,d:Z})),o.createElement("textPath",{xlinkHref:"#".concat(O)},t))},tC=function(e){var t=e.viewBox,r=e.offset,n=e.position,a=t,c=a.cx,i=a.cy,o=a.innerRadius,s=a.outerRadius,l=(a.startAngle+a.endAngle)/2;if("outside"===n){var h=RV(c,i,s+r,l),v=h.x;return{x:v,y:h.y,textAnchor:v>=c?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:c,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:c,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:c,y:i,textAnchor:"middle",verticalAnchor:"end"};var p=RV(c,i,(o+s)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},rC=function(e){var t=e.viewBox,r=e.parentViewBox,n=e.offset,a=e.position,c=t,i=c.x,o=c.y,s=c.width,l=c.height,h=l>=0?1:-1,v=h*n,p=h>0?"end":"start",u=h>0?"start":"end",g=s>=0?1:-1,m=g*n,d=g>0?"end":"start",f=g>0?"start":"end";if("top"===a)return KV(KV({},{x:i+s/2,y:o-h*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(o-r.y,0),width:s}:{});if("bottom"===a)return KV(KV({},{x:i+s/2,y:o+l+v,textAnchor:"middle",verticalAnchor:u}),r?{height:Math.max(r.y+r.height-(o+l),0),width:s}:{});if("left"===a){var _={x:i-m,y:o+l/2,textAnchor:d,verticalAnchor:"middle"};return KV(KV({},_),r?{width:Math.max(_.x-r.x,0),height:l}:{})}if("right"===a){var w={x:i+s+m,y:o+l/2,textAnchor:f,verticalAnchor:"middle"};return KV(KV({},w),r?{width:Math.max(r.x+r.width-w.x,0),height:l}:{})}var b=r?{width:s,height:l}:{};return"insideLeft"===a?KV({x:i+m,y:o+l/2,textAnchor:f,verticalAnchor:"middle"},b):"insideRight"===a?KV({x:i+s-m,y:o+l/2,textAnchor:d,verticalAnchor:"middle"},b):"insideTop"===a?KV({x:i+s/2,y:o+v,textAnchor:"middle",verticalAnchor:u},b):"insideBottom"===a?KV({x:i+s/2,y:o+l-v,textAnchor:"middle",verticalAnchor:p},b):"insideTopLeft"===a?KV({x:i+m,y:o+v,textAnchor:f,verticalAnchor:u},b):"insideTopRight"===a?KV({x:i+s-m,y:o+v,textAnchor:d,verticalAnchor:u},b):"insideBottomLeft"===a?KV({x:i+m,y:o+l-v,textAnchor:f,verticalAnchor:p},b):"insideBottomRight"===a?KV({x:i+s-m,y:o+l-v,textAnchor:d,verticalAnchor:p},b):po(a)&&(Pl(a.x)||Hl(a.x))&&(Pl(a.y)||Hl(a.y))?KV({x:i+Al(a.x,s),y:o+Al(a.y,l),textAnchor:"end",verticalAnchor:"end"},b):KV({x:i+s/2,y:o+l/2,textAnchor:"middle",verticalAnchor:"middle"},b)},nC=function(e){return"cx"in e&&Pl(e.cx)};function aC(e){var t,r=e.offset,n=KV({offset:void 0===r?5:r},WV(e,$V)),a=n.viewBox,c=n.position,i=n.value,s=n.children,l=n.content,h=n.className,v=void 0===h?"":h,p=n.textBreakAll;if(!a||ll(i)&&ll(s)&&!y(l)&&!_o(l))return null;if(y(l))return g(l,n);if(_o(l)){if(y(t=b(l,n)))return t}else t=JV(n);var u=nC(a),m=ih(n,!0);if(u&&("insideStart"===c||"insideEnd"===c||"end"===c))return eC(n,t,m);var d=u?tC(n):rC(n);return o.createElement(Nx,GV({className:Ri("recharts-label",v)},m,d,{breakAll:p}),t)}aC.displayName="Label";var cC=function(e){var t=e.cx,r=e.cy,n=e.angle,a=e.startAngle,c=e.endAngle,i=e.r,o=e.radius,s=e.innerRadius,l=e.outerRadius,h=e.x,v=e.y,p=e.top,u=e.left,g=e.width,m=e.height,d=e.clockWise,f=e.labelViewBox;if(f)return f;if(Pl(g)&&Pl(m)){if(Pl(h)&&Pl(v))return{x:h,y:v,width:g,height:m};if(Pl(p)&&Pl(u))return{x:p,y:u,width:g,height:m}}return Pl(h)&&Pl(v)?{x:h,y:v,width:0,height:0}:Pl(t)&&Pl(r)?{cx:t,cy:r,startAngle:a||n||0,endAngle:c||n||0,innerRadius:s||0,outerRadius:l||o||i||0,clockWise:d}:e.viewBox?e.viewBox:{}};aC.parseViewBox=cC,aC.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,a=cC(e),c=Jl(n,aC).map((function(e,r){return g(e,{viewBox:t||a,key:"label-".concat(r)})}));if(!r)return c;var i=function(e,t){return e?!0===e?o.createElement(aC,{key:"label-implicit",viewBox:t}):jl(e)?o.createElement(aC,{key:"label-implicit",viewBox:t,value:e}):y(e)?e.type===aC?g(e,{key:"label-implicit",viewBox:t}):o.createElement(aC,{key:"label-implicit",content:e,viewBox:t}):_o(e)?o.createElement(aC,{key:"label-implicit",content:e,viewBox:t}):po(e)?o.createElement(aC,GV({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||a);return[i].concat(YV(c))};var iC=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},oC=zt(iC);function sC(e){return sC="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},sC(e)}var lC=["valueAccessor"],hC=["data","dataKey","clockWise","id","textBreakAll"];function vC(e){return function(e){if(Array.isArray(e))return pC(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 pC(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 pC(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 pC(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 uC(){return uC=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},uC.apply(this,arguments)}function gC(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 mC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gC(Object(r),!0).forEach((function(t){dC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dC(e,t,r){return t=function(e){var t=function(e,t){if("object"!==sC(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==sC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sC(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fC(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var _C=function(e){return Array.isArray(e.value)?oC(e.value):e.value};function wC(e){var t=e.valueAccessor,r=void 0===t?_C:t,n=fC(e,lC),a=n.data,c=n.dataKey,i=n.clockWise,s=n.id,l=n.textBreakAll,h=fC(n,hC);return a&&a.length?o.createElement(_h,{className:"recharts-label-list"},a.map((function(e,t){var n=ll(c)?r(e,t):rV(e&&e.payload,c),a=ll(s)?{}:{id:"".concat(s,"-").concat(t)};return o.createElement(aC,uC({},ih(e,!0),h,a,{parentViewBox:e.parentViewBox,value:n,textBreakAll:l,viewBox:aC.parseViewBox(ll(i)?e:mC(mC({},e),{},{clockWise:i})),key:"label-".concat(t),index:t}))}))):null}function bC(e){return bC="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},bC(e)}function yC(){return yC=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},yC.apply(this,arguments)}function xC(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?xC(Object(r),!0).forEach((function(t){OC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function OC(e,t,r){return t=function(e){var t=function(e,t){if("object"!==bC(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==bC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bC(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}wC.displayName="LabelList",wC.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=Jl(e.children,wC).map((function(e,r){return g(e,{data:t,key:"labelList-".concat(r)})}));if(!r)return n;var a=function(e,t){return e?!0===e?o.createElement(wC,{key:"labelList-implicit",data:t}):o.isValidElement(e)||_o(e)?o.createElement(wC,{key:"labelList-implicit",data:t,content:e}):po(e)?o.createElement(wC,uC({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t);return[a].concat(vC(n))};var MC=function(e){var t=e.cx,r=e.cy,n=e.radius,a=e.angle,c=e.sign,i=e.isExternal,o=e.cornerRadius,s=e.cornerIsExternal,l=o*(i?1:-1)+n,h=Math.asin(o/l)/kV,v=s?a:a+c*h,p=s?a-c*h:a;return{center:RV(t,r,l,v),circleTangency:RV(t,r,n,v),lineTangency:RV(t,r,l*Math.cos(h*kV),p),theta:h}},EC=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,a=e.outerRadius,c=e.startAngle,i=function(e,t){return El(t-e)*Math.min(Math.abs(t-e),359.999)}(c,e.endAngle),o=c+i,s=RV(t,r,a,c),l=RV(t,r,a,o),h="M ".concat(s.x,",").concat(s.y,"\n A ").concat(a,",").concat(a,",0,\n ").concat(+(Math.abs(i)>180),",").concat(+(c>o),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var v=RV(t,r,n,c),p=RV(t,r,n,o);h+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(i)>180),",").concat(+(c<=o),",\n ").concat(v.x,",").concat(v.y," Z")}else h+="L ".concat(t,",").concat(r," Z");return h},HC={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},PC=function(e){var t=ZC(ZC({},HC),e),r=t.cx,n=t.cy,a=t.innerRadius,c=t.outerRadius,i=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,h=t.startAngle,v=t.endAngle,p=t.className;if(c<a||h===v)return null;var u,g=Ri("recharts-sector",p),m=c-a,d=Al(i,m,0,!0);return u=d>0&&Math.abs(h-v)<360?function(e){var t=e.cx,r=e.cy,n=e.innerRadius,a=e.outerRadius,c=e.cornerRadius,i=e.forceCornerRadius,o=e.cornerIsExternal,s=e.startAngle,l=e.endAngle,h=El(l-s),v=MC({cx:t,cy:r,radius:a,angle:s,sign:h,cornerRadius:c,cornerIsExternal:o}),p=v.circleTangency,u=v.lineTangency,g=v.theta,m=MC({cx:t,cy:r,radius:a,angle:l,sign:-h,cornerRadius:c,cornerIsExternal:o}),d=m.circleTangency,f=m.lineTangency,_=m.theta,w=o?Math.abs(s-l):Math.abs(s-l)-g-_;if(w<0)return i?"M ".concat(u.x,",").concat(u.y,"\n a").concat(c,",").concat(c,",0,0,1,").concat(2*c,",0\n a").concat(c,",").concat(c,",0,0,1,").concat(2*-c,",0\n "):EC({cx:t,cy:r,innerRadius:n,outerRadius:a,startAngle:s,endAngle:l});var b="M ".concat(u.x,",").concat(u.y,"\n A").concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(p.x,",").concat(p.y,"\n A").concat(a,",").concat(a,",0,").concat(+(w>180),",").concat(+(h<0),",").concat(d.x,",").concat(d.y,"\n A").concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(f.x,",").concat(f.y,"\n ");if(n>0){var y=MC({cx:t,cy:r,radius:n,angle:s,sign:h,isExternal:!0,cornerRadius:c,cornerIsExternal:o}),x=y.circleTangency,Z=y.lineTangency,O=y.theta,M=MC({cx:t,cy:r,radius:n,angle:l,sign:-h,isExternal:!0,cornerRadius:c,cornerIsExternal:o}),E=M.circleTangency,H=M.lineTangency,P=M.theta,j=o?Math.abs(s-l):Math.abs(s-l)-O-P;if(j<0&&0===c)return"".concat(b,"L").concat(t,",").concat(r,"Z");b+="L".concat(H.x,",").concat(H.y,"\n A").concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(E.x,",").concat(E.y,"\n A").concat(n,",").concat(n,",0,").concat(+(j>180),",").concat(+(h>0),",").concat(x.x,",").concat(x.y,"\n A").concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(Z.x,",").concat(Z.y,"Z")}else b+="L".concat(t,",").concat(r,"Z");return b}({cx:r,cy:n,innerRadius:a,outerRadius:c,cornerRadius:Math.min(d,m/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:h,endAngle:v}):EC({cx:r,cy:n,innerRadius:a,outerRadius:c,startAngle:h,endAngle:v}),o.createElement("path",yC({},ih(t,!0),{className:g,d:u,role:"img"}))};function jC(e){return jC="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},jC(e)}function VC(){return VC=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},VC.apply(this,arguments)}function CC(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 AC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?CC(Object(r),!0).forEach((function(t){LC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function LC(e,t,r){return t=function(e){var t=function(e,t){if("object"!==jC(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==jC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jC(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var zC={curveBasisClosed:function(e){return new Wv(e)},curveBasisOpen:function(e){return new Xv(e)},curveBasis:function(e){return new Uv(e)},curveBumpX:function(e){return new Hv(e,!0)},curveBumpY:function(e){return new Hv(e,!1)},curveLinearClosed:function(e){return new cp(e)},curveLinear:xv,curveMonotoneX:function(e){return new hp(e)},curveMonotoneY:function(e){return new vp(e)},curveNatural:function(e){return new up(e)},curveStep:function(e){return new mp(e,.5)},curveStepAfter:function(e){return new mp(e,1)},curveStepBefore:function(e){return new mp(e,0)}},BC=function(e){return e.x===+e.x&&e.y===+e.y},kC=function(e){return e.x},SC=function(e){return e.y},RC=function(e){var t,r=e.type,n=void 0===r?"linear":r,a=e.points,c=void 0===a?[]:a,i=e.baseLine,o=e.layout,s=e.connectNulls,l=void 0!==s&&s,h=function(e,t){if(_o(e))return e;var r="curve".concat(Yh(e));return"curveMonotone"!==r&&"curveBump"!==r||!t?zC[r]||xv:zC["".concat(r).concat("vertical"===t?"Y":"X")]}(n,o),v=l?c.filter((function(e){return BC(e)})):c;if(Array.isArray(i)){var p=l?i.filter((function(e){return BC(e)})):i,u=v.map((function(e,t){return AC(AC({},e),{},{base:p[t]})}));return t="vertical"===o?Ev().y(SC).x1(kC).x0((function(e){return e.base.x})):Ev().x(kC).y1(SC).y0((function(e){return e.base.y})),t.defined(BC).curve(h),t(u)}return(t="vertical"===o&&Pl(i)?Ev().y(SC).x1(kC).x0(i):Pl(i)?Ev().x(kC).y1(SC).y0(i):Mv().x(kC).y(SC)).defined(BC).curve(h),t(v)},DC=function(e){var t=e.className,r=e.points,n=e.path,a=e.pathRef;if(!(r&&r.length||n))return null;var c=r&&r.length?RC(e):n;return o.createElement("path",VC({},ih(e),Nl(e),{className:Ri("recharts-curve",t),d:c,ref:a}))};function IC(e){return IC="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},IC(e)}function TC(){return TC=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},TC.apply(this,arguments)}function NC(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return FC(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 FC(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 FC(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 QC(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 $C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?QC(Object(r),!0).forEach((function(t){YC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function YC(e,t,r){return t=function(e){var t=function(e,t){if("object"!==IC(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==IC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===IC(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var UC=function(e,t,r,n,a){var c,i=Math.min(Math.abs(r)/2,Math.abs(n)/2),o=n>=0?1:-1,s=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(i>0&&a instanceof Array){for(var h=[0,0,0,0],v=0;v<4;v++)h[v]=a[v]>i?i:a[v];c="M".concat(e,",").concat(t+o*h[0]),h[0]>0&&(c+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(l,",").concat(e+s*h[0],",").concat(t)),c+="L ".concat(e+r-s*h[1],",").concat(t),h[1]>0&&(c+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(l,",\n ").concat(e+r,",").concat(t+o*h[1])),c+="L ".concat(e+r,",").concat(t+n-o*h[2]),h[2]>0&&(c+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(l,",\n ").concat(e+r-s*h[2],",").concat(t+n)),c+="L ".concat(e+s*h[3],",").concat(t+n),h[3]>0&&(c+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+n-o*h[3])),c+="Z"}else if(i>0&&a===+a&&a>0){var p=Math.min(i,a);c="M ".concat(e,",").concat(t+o*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+s*p,",").concat(t,"\n L ").concat(e+r-s*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+r,",").concat(t+o*p,"\n L ").concat(e+r,",").concat(t+n-o*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+r-s*p,",").concat(t+n,"\n L ").concat(e+s*p,",").concat(t+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e,",").concat(t+n-o*p," Z")}else c="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return c},WC=function(e,t){if(!e||!t)return!1;var r=e.x,n=e.y,a=t.x,c=t.y,i=t.width,o=t.height;if(Math.abs(i)>0&&Math.abs(o)>0){var s=Math.min(a,a+i),l=Math.max(a,a+i),h=Math.min(c,c+o),v=Math.max(c,c+o);return r>=s&&r<=l&&n>=h&&n<=v}return!1},XC={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},KC=function(e){var t=$C($C({},XC),e),r=u(),n=NC(p(-1),2),a=n[0],c=n[1];l((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&c(e)}catch(e){}}),[]);var i=t.x,s=t.y,h=t.width,v=t.height,g=t.radius,m=t.className,d=t.animationEasing,f=t.animationDuration,_=t.animationBegin,w=t.isAnimationActive,b=t.isUpdateAnimationActive;if(i!==+i||s!==+s||h!==+h||v!==+v||0===h||0===v)return null;var y=Ri("recharts-rectangle",m);return b?o.createElement(ib,{canBegin:a>0,from:{width:h,height:v,x:i,y:s},to:{width:h,height:v,x:i,y:s},duration:f,animationEasing:d,isActive:b},(function(e){var n=e.width,c=e.height,i=e.x,s=e.y;return o.createElement(ib,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:_,duration:f,isActive:w,easing:d},o.createElement("path",TC({},ih(t,!0),{className:y,d:UC(i,s,n,c,g),ref:r})))})):o.createElement("path",TC({},ih(t,!0),{className:y,d:UC(i,s,h,v,g)}))},qC=["points","className","baseLinePoints","connectNulls"];function GC(){return GC=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},GC.apply(this,arguments)}function JC(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function eA(e){return function(e){if(Array.isArray(e))return tA(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 tA(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 tA(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 tA(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 rA=function(e){return e&&e.x===+e.x&&e.y===+e.y},nA=function(e,t){var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){rA(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),rA(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(r=[r.reduce((function(e,t){return[].concat(eA(e),eA(t))}),[])]);var n=r.map((function(e){return e.reduce((function(e,t,r){return"".concat(e).concat(0===r?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===r.length?"".concat(n,"Z"):n},aA=function(e){var t=e.points,r=e.className,n=e.baseLinePoints,a=e.connectNulls,c=JC(e,qC);if(!t||!t.length)return null;var i=Ri("recharts-polygon",r);if(n&&n.length){var s=c.stroke&&"none"!==c.stroke,l=function(e,t,r){var n=nA(e,r);return"".concat("Z"===n.slice(-1)?n.slice(0,-1):n,"L").concat(nA(t.reverse(),r).slice(1))}(t,n,a);return o.createElement("g",{className:i},o.createElement("path",GC({},ih(c,!0),{fill:"Z"===l.slice(-1)?c.fill:"none",stroke:"none",d:l})),s?o.createElement("path",GC({},ih(c,!0),{fill:"none",d:nA(t,a)})):null,s?o.createElement("path",GC({},ih(c,!0),{fill:"none",d:nA(n,a)})):null)}var h=nA(t,a);return o.createElement("path",GC({},ih(c,!0),{fill:"Z"===h.slice(-1)?c.fill:"none",className:i,d:h}))};function cA(){return cA=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},cA.apply(this,arguments)}var iA=function(e){var t=e.cx,r=e.cy,n=e.r,a=Ri("recharts-dot",e.className);return t===+t&&r===+r&&n===+n?o.createElement("circle",cA({},ih(e),Nl(e),{className:a,cx:t,cy:r,r:n})):null};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)}var sA=["x","y","top","left","width","height","className"];function lA(){return lA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lA.apply(this,arguments)}function hA(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 vA(e,t,r){return t=function(e){var t=function(e,t){if("object"!==oA(e)||null===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:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pA(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var uA=function(e,t,r,n,a,c){return"M".concat(e,",").concat(a,"v").concat(n,"M").concat(c,",").concat(t,"h").concat(r)},gA=function(e){var t=e.x,r=void 0===t?0:t,n=e.y,a=void 0===n?0:n,c=e.top,i=void 0===c?0:c,s=e.left,l=void 0===s?0:s,h=e.width,v=void 0===h?0:h,p=e.height,u=void 0===p?0:p,g=e.className,m=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hA(Object(r),!0).forEach((function(t){vA(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hA(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({x:r,y:a,top:i,left:l,width:v,height:u},pA(e,sA));return Pl(r)&&Pl(a)&&Pl(v)&&Pl(u)&&Pl(i)&&Pl(l)?o.createElement("path",lA({},ih(m,!0),{className:Ri("recharts-cross",g),d:uA(r,a,v,u,i,l)})):null},mA=gP,dA=mP,fA=vd;var _A=function(e,t){return e&&e.length?mA(e,fA(t),dA):void 0},wA=zt(_A),bA=gP,yA=vd,xA=yP;var ZA=function(e,t){return e&&e.length?bA(e,yA(t),xA):void 0},OA=zt(ZA),MA=["cx","cy","angle","ticks","axisLine"],EA=["ticks","tick","angle","tickFormatter","stroke"];function HA(e){return HA="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},HA(e)}function PA(){return PA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},PA.apply(this,arguments)}function 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 VA(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){kA(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 CA(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function AA(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,SA(n.key),n)}}function LA(e,t){return LA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LA(e,t)}function zA(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=BA(e);if(t){var a=BA(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===HA(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)}(this,r)}}function BA(e){return BA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BA(e)}function kA(e,t,r){return(t=SA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SA(e){var t=function(e,t){if("object"!==HA(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==HA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HA(t)?t:String(t)}var RA=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&&LA(e,t)}(c,Z);var t,r,n,a=zA(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,r=this.props,n=r.angle,a=r.cx,c=r.cy;return RV(a,c,t,n)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.angle,a=e.ticks,c=wA(a,(function(e){return e.coordinate||0}));return{cx:t,cy:r,startAngle:n,endAngle:n,innerRadius:OA(a,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.angle,a=e.ticks,c=e.axisLine,i=CA(e,MA),s=a.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=RV(t,r,s[0],n),h=RV(t,r,s[1],n),v=VA(VA(VA({},ih(i)),{},{fill:"none"},ih(c)),{},{x1:l.x,y1:l.y,x2:h.x,y2:h.y});return o.createElement("line",PA({className:"recharts-polar-radius-axis-line"},v))}},{key:"renderTicks",value:function(){var e=this,t=this.props,r=t.ticks,n=t.tick,a=t.angle,i=t.tickFormatter,s=t.stroke,l=CA(t,EA),h=this.getTickTextAnchor(),v=ih(l),p=ih(n),u=r.map((function(t,r){var l=e.getTickValueCoord(t),u=VA(VA(VA(VA({textAnchor:h,transform:"rotate(".concat(90-a,", ").concat(l.x,", ").concat(l.y,")")},v),{},{stroke:"none",fill:s},p),{},{index:r},l),{},{payload:t});return o.createElement(_h,PA({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(t.coordinate)},Fl(e.props,t,r)),c.renderTickItem(n,u,i?i(t.value,r):t.value))}));return o.createElement(_h,{className:"recharts-polar-radius-axis-ticks"},u)}},{key:"render",value:function(){var e=this.props,t=e.ticks,r=e.axisLine,n=e.tick;return t&&t.length?o.createElement(_h,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),n&&this.renderTicks(),aC.renderCallByParent(this.props,this.getViewBox())):null}}],n=[{key:"renderTickItem",value:function(e,t,r){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(Nx,PA({},t,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&AA(t.prototype,r),n&&AA(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();function DA(e){return DA="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},DA(e)}function IA(){return IA=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},IA.apply(this,arguments)}function TA(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 NA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?TA(Object(r),!0).forEach((function(t){UA(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TA(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function FA(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,WA(n.key),n)}}function QA(e,t){return QA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QA(e,t)}function $A(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=YA(e);if(t){var a=YA(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===DA(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)}(this,r)}}function YA(e){return YA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YA(e)}function UA(e,t,r){return(t=WA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WA(e){var t=function(e,t){if("object"!==DA(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==DA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DA(t)?t:String(t)}kA(RA,"displayName","PolarRadiusAxis"),kA(RA,"axisType","radiusAxis"),kA(RA,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var XA=Math.PI/180,KA=1e-5,qA=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&&QA(e,t)}(c,Z);var t,r,n,a=$A(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,r=t.cx,n=t.cy,a=t.radius,c=t.orientation,i=t.tickSize||8,o=RV(r,n,a,e.coordinate),s=RV(r,n,a+("inner"===c?-1:1)*i,e.coordinate);return{x1:o.x,y1:o.y,x2:s.x,y2:s.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,r=Math.cos(-e.coordinate*XA);return r>KA?"outer"===t?"start":"end":r<-KA?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.radius,a=e.axisLine,c=e.axisLineType,i=NA(NA({},ih(this.props)),{},{fill:"none"},ih(a));if("circle"===c)return o.createElement(iA,IA({className:"recharts-polar-angle-axis-line"},i,{cx:t,cy:r,r:n}));var s=this.props.ticks.map((function(e){return RV(t,r,n,e.coordinate)}));return o.createElement(aA,IA({className:"recharts-polar-angle-axis-line"},i,{points:s}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,r=t.ticks,n=t.tick,a=t.tickLine,i=t.tickFormatter,s=t.stroke,l=ih(this.props),h=ih(n),v=NA(NA({},l),{},{fill:"none"},ih(a)),p=r.map((function(t,r){var p=e.getTickLineCoord(t),u=NA(NA(NA({textAnchor:e.getTickTextAnchor(t)},l),{},{stroke:"none",fill:s},h),{},{index:r,payload:t,x:p.x2,y:p.y2});return o.createElement(_h,IA({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(t.coordinate)},Fl(e.props,t,r)),a&&o.createElement("line",IA({className:"recharts-polar-angle-axis-tick-line"},v,p)),n&&c.renderTickItem(n,u,i?i(t.value,r):t.value))}));return o.createElement(_h,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,r=e.radius,n=e.axisLine;return r<=0||!t||!t.length?null:o.createElement(_h,{className:"recharts-polar-angle-axis"},n&&this.renderAxisLine(),this.renderTicks())}}],n=[{key:"renderTickItem",value:function(e,t,r){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(Nx,IA({},t,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&FA(t.prototype,r),n&&FA(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();UA(qA,"displayName","PolarAngleAxis"),UA(qA,"axisType","angleAxis"),UA(qA,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var GA=dg(Object.getPrototypeOf,Object),JA=to,eL=GA,tL=ro,rL=Function.prototype,nL=Object.prototype,aL=rL.toString,cL=nL.hasOwnProperty,iL=aL.call(Object);var oL=function(e){if(!tL(e)||"[object Object]"!=JA(e))return!1;var t=eL(e);if(null===t)return!0;var r=cL.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&aL.call(r)==iL},sL=zt(oL),lL=to,hL=ro;var vL=zt((function(e){return!0===e||!1===e||hL(e)&&"[object Boolean]"==lL(e)}));function pL(e){return pL="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},pL(e)}function uL(){return uL=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},uL.apply(this,arguments)}function gL(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mL(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 mL(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 mL(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 dL(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 fL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dL(Object(r),!0).forEach((function(t){_L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _L(e,t,r){return t=function(e){var t=function(e,t){if("object"!==pL(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==pL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pL(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wL,bL=function(e,t,r,n,a){var c,i=r-n;return c="M ".concat(e,",").concat(t),c+="L ".concat(e+r,",").concat(t),c+="L ".concat(e+r-i/2,",").concat(t+a),c+="L ".concat(e+r-i/2-n,",").concat(t+a),c+="L ".concat(e,",").concat(t," Z")},yL={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},xL=function(e){var t=fL(fL({},yL),e),r=u(),n=gL(p(-1),2),a=n[0],c=n[1];l((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&c(e)}catch(e){}}),[]);var i=t.x,s=t.y,h=t.upperWidth,v=t.lowerWidth,g=t.height,m=t.className,d=t.animationEasing,f=t.animationDuration,_=t.animationBegin,w=t.isUpdateAnimationActive;if(i!==+i||s!==+s||h!==+h||v!==+v||g!==+g||0===h&&0===v||0===g)return null;var b=Ri("recharts-trapezoid",m);return w?o.createElement(ib,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:g,x:i,y:s},to:{upperWidth:h,lowerWidth:v,height:g,x:i,y:s},duration:f,animationEasing:d,isActive:w},(function(e){var n=e.upperWidth,c=e.lowerWidth,i=e.height,s=e.x,l=e.y;return o.createElement(ib,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:_,duration:f,easing:d},o.createElement("path",uL({},ih(t,!0),{className:b,d:bL(s,l,n,c,i),ref:r})))})):o.createElement("g",null,o.createElement("path",uL({},ih(t,!0),{className:b,d:bL(i,s,h,v,g)})))},ZL=["option","shapeType","propTransformer","activeClassName","isActive"];function OL(e){return OL="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},OL(e)}function ML(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function EL(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 HL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?EL(Object(r),!0).forEach((function(t){PL(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function PL(e,t,r){return t=function(e){var t=function(e,t){if("object"!==OL(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==OL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===OL(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jL(e,t){return HL(HL({},t),e)}function VL(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return o.createElement(KC,r);case"trapezoid":return o.createElement(xL,r);case"sector":return o.createElement(PC,r);case"symbols":if(function(e,t){return"symbols"===e}(t))return o.createElement(jp,r);break;default:return null}}function CL(e){return y(e)?e.props:e}function AL(e){var t,r=e.option,n=e.shapeType,a=e.propTransformer,c=void 0===a?jL:a,i=e.activeClassName,s=void 0===i?"recharts-active-shape":i,l=e.isActive,h=ML(e,ZL);if(y(r))t=g(r,HL(HL({},h),CL(r)));else if(_o(r))t=r(h);else if(sL(r)&&!vL(r)){var v=c(r,h);t=o.createElement(VL,{shapeType:n,elementProps:v})}else{var p=h;t=o.createElement(VL,{shapeType:n,elementProps:p})}return l?o.createElement(_h,{className:s},t):t}function LL(e,t){return null!=t&&"trapezoids"in e.props}function zL(e,t){return null!=t&&"sectors"in e.props}function BL(e,t){return null!=t&&"points"in e.props}function kL(e,t){var r,n,a=e.x===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.x)||e.x===t.x,c=e.y===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.y)||e.y===t.y;return a&&c}function SL(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function RL(e,t){var r=e.x===t.x,n=e.y===t.y,a=e.z===t.z;return r&&n&&a}function DL(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,a=function(e,t){var r;return LL(e,t)?r="trapezoids":zL(e,t)?r="sectors":BL(e,t)&&(r="points"),r}(r,t),c=function(e,t){var r,n;return LL(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:zL(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:BL(e,t)?t.payload:{}}(r,t),i=n.filter((function(e,n){var i=kP(c,e),o=r.props[a].filter((function(e){var n=function(e,t){var r;return LL(e,t)?r=kL:zL(e,t)?r=SL:BL(e,t)&&(r=RL),r}(r,t);return n(e,t)})),s=r.props[a].indexOf(o[o.length-1]);return i&&n===s}));return n.indexOf(i[i.length-1])}function IL(e){return IL="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},IL(e)}function TL(){return TL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},TL.apply(this,arguments)}function NL(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 FL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?NL(Object(r),!0).forEach((function(t){XL(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function QL(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,KL(n.key),n)}}function $L(e,t){return $L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$L(e,t)}function YL(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=WL(e);if(t){var a=WL(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===IL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return UL(e)}(this,r)}}function UL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WL(e){return WL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WL(e)}function XL(e,t,r){return(t=KL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KL(e){var t=function(e,t){if("object"!==IL(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==IL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===IL(t)?t:String(t)}var qL=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&&$L(e,t)}(c,Z);var t,r,n,a=YL(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),XL(UL(t=a.call(this,e)),"pieRef",null),XL(UL(t),"sectorRefs",[]),XL(UL(t),"id",Cl("recharts-pie-")),XL(UL(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),_o(e)&&e()})),XL(UL(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),_o(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return t=c,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,r=t.label,n=t.labelLine,a=t.dataKey,i=t.valueKey,s=ih(this.props),l=ih(r),h=ih(n),v=r&&r.offsetRadius||20,p=e.map((function(e,t){var p=(e.startAngle+e.endAngle)/2,u=RV(e.cx,e.cy,e.outerRadius+v,p),g=FL(FL(FL(FL({},s),e),{},{stroke:"none"},l),{},{index:t,textAnchor:c.getTextAnchor(u.x,e.cx)},u),m=FL(FL(FL(FL({},s),e),{},{fill:"none",stroke:e.fill},h),{},{index:t,points:[RV(e.cx,e.cy,e.outerRadius,p),u],key:"line"}),d=a;return ll(a)&&ll(i)?d="value":ll(a)&&(d=i),o.createElement(_h,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle)},n&&c.renderLabelLineItem(n,m),c.renderLabelItem(r,g,rV(e,d)))}));return o.createElement(_h,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var t=this,r=this.props,n=r.activeShape,a=r.blendStroke,c=r.inactiveShape;return e.map((function(e,r){var i=t.isActiveIndex(r),s=c&&t.hasActiveIndex()?c:null,l=i?n:s,h=FL(FL({},e),{},{stroke:a?e.fill:e.stroke,tabIndex:-1});return o.createElement(_h,TL({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},Fl(t.props,e,r),{key:"sector-".concat(r)}),o.createElement(AL,TL({option:l,isActive:i,shapeType:"sector"},h)))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,r=t.sectors,n=t.isAnimationActive,a=t.animationBegin,c=t.animationDuration,i=t.animationEasing,s=t.animationId,l=this.state,h=l.prevSectors,v=l.prevIsAnimationActive;return o.createElement(ib,{begin:a,duration:c,isActive:n,easing:i,from:{t:0},to:{t:1},key:"pie-".concat(s,"-").concat(v),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var n=t.t,a=[],c=(r&&r[0]).startAngle;return r.forEach((function(e,t){var r=h&&h[t],i=t>0?sl(e,"paddingAngle",0):0;if(r){var o=zl(r.endAngle-r.startAngle,e.endAngle-e.startAngle),s=FL(FL({},e),{},{startAngle:c+i,endAngle:c+o(n)+i});a.push(s),c=s.endAngle}else{var l=e.endAngle,v=e.startAngle,p=zl(0,l-v)(n),u=FL(FL({},e),{},{startAngle:c+i,endAngle:c+p+i});a.push(u),c=u.endAngle}})),o.createElement(_h,null,e.renderSectorsStatically(a))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var r=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"ArrowRight":var n=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,r=e.isAnimationActive,n=this.state.prevSectors;return!(r&&t&&t.length)||n&&kP(n,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,t=this.props,r=t.hide,n=t.sectors,a=t.className,c=t.label,i=t.cx,s=t.cy,l=t.innerRadius,h=t.outerRadius,v=t.isAnimationActive,p=this.state.isAnimationFinished;if(r||!n||!n.length||!Pl(i)||!Pl(s)||!Pl(l)||!Pl(h))return null;var u=Ri("recharts-pie",a);return o.createElement(_h,{tabIndex:this.props.rootTabIndex,className:u,ref:function(t){e.pieRef=t}},this.renderSectors(),c&&this.renderLabels(n),aC.renderCallByParent(this.props,null,!1),(!v||p)&&wC.renderCallByParent(this.props,n,!1))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(DC,TL({},t,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,t,r){if(o.isValidElement(e))return o.cloneElement(e,t);var n=r;return _o(e)&&(n=e(t),o.isValidElement(n))?n:o.createElement(Nx,TL({},t,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),n)}}],r&&QL(t.prototype,r),n&&QL(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();wL=qL,XL(qL,"displayName","Pie"),XL(qL,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!by.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),XL(qL,"parseDeltaAngle",(function(e,t){return El(t-e)*Math.min(Math.abs(t-e),360)})),XL(qL,"getRealPieData",(function(e){var t=e.props,r=t.data,n=t.children,a=ih(e.props),c=Jl(n,ix);return r&&r.length?r.map((function(e,t){return FL(FL(FL({payload:e},a),e),c&&c[t]&&c[t].props)})):c&&c.length?c.map((function(e){return FL(FL({},a),e.props)})):[]})),XL(qL,"parseCoordinateOfPie",(function(e,t){var r=t.top,n=t.left,a=t.width,c=t.height,i=DV(a,c);return{cx:n+Al(e.props.cx,a,a/2),cy:r+Al(e.props.cy,c,c/2),innerRadius:Al(e.props.innerRadius,i,0),outerRadius:Al(e.props.outerRadius,i,.8*i),maxRadius:e.props.maxRadius||Math.sqrt(a*a+c*c)/2}})),XL(qL,"getComposedData",(function(e){var t=e.item,r=e.offset,n=wL.getRealPieData(t);if(!n||!n.length)return null;var a=t.props,c=a.cornerRadius,i=a.startAngle,o=a.endAngle,s=a.paddingAngle,l=a.dataKey,h=a.nameKey,v=a.valueKey,p=a.tooltipType,u=Math.abs(t.props.minAngle),g=wL.parseCoordinateOfPie(t,r),m=wL.parseDeltaAngle(i,o),d=Math.abs(m),f=l;ll(l)&&ll(v)?(bh(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),f="value"):ll(l)&&(bh(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),f=v);var _,w,b=n.filter((function(e){return 0!==rV(e,f,0)})).length,y=d-b*u-(d>=360?b:b-1)*s,x=n.reduce((function(e,t){var r=rV(t,f,0);return e+(Pl(r)?r:0)}),0);x>0&&(_=n.map((function(e,t){var r,n=rV(e,f,0),a=rV(e,h,t),o=(Pl(n)?n:0)/x,l=(r=t?w.endAngle+El(m)*s*(0!==n?1:0):i)+El(m)*((0!==n?u:0)+o*y),v=(r+l)/2,d=(g.innerRadius+g.outerRadius)/2,_=[{name:a,value:n,payload:e,dataKey:f,type:p}],b=RV(g.cx,g.cy,d,v);return w=FL(FL(FL({percent:o,cornerRadius:c,name:a,tooltipPayload:_,midAngle:v,middleRadius:d,tooltipPosition:b},e),g),{},{value:rV(e,f),startAngle:r,endAngle:l,payload:e,paddingAngle:El(m)*s})})));return FL(FL({},g),{},{sectors:_,data:n})}));var GL=function(e){return e&&e.length?e[0]:void 0},JL=zt(GL);function ez(e){return ez="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},ez(e)}function tz(){return tz=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},tz.apply(this,arguments)}function rz(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 nz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rz(Object(r),!0).forEach((function(t){lz(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rz(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function az(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,hz(n.key),n)}}function cz(e,t){return cz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cz(e,t)}function iz(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=sz(e);if(t){var a=sz(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ez(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oz(e)}(this,r)}}function oz(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sz(e){return sz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sz(e)}function lz(e,t,r){return(t=hz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hz(e){var t=function(e,t){if("object"!==ez(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ez(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ez(t)?t:String(t)}var vz=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&&cz(e,t)}(c,Z);var t,r,n,a=iz(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return lz(oz(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!1}),lz(oz(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),_o(t)&&t()})),lz(oz(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),_o(t)&&t()})),lz(oz(e),"handleMouseEnter",(function(t){var r=e.props.onMouseEnter;r&&r(e.props,t)})),lz(oz(e),"handleMouseLeave",(function(t){var r=e.props.onMouseLeave;r&&r(e.props,t)})),e}return t=c,r=[{key:"renderDots",value:function(e){var t=this.props,r=t.dot,n=t.dataKey,a=ih(this.props),i=ih(r),s=e.map((function(e,t){var o=nz(nz(nz({key:"dot-".concat(t),r:3},a),i),{},{dataKey:n,cx:e.x,cy:e.y,index:t,payload:e});return c.renderDotItem(r,o)}));return o.createElement(_h,{className:"recharts-radar-dots"},s)}},{key:"renderPolygonStatically",value:function(e){var t,r=this.props,n=r.shape,a=r.dot,c=r.isRange,i=r.baseLinePoints,s=r.connectNulls;return t=o.isValidElement(n)?o.cloneElement(n,nz(nz({},this.props),{},{points:e})):_o(n)?n(nz(nz({},this.props),{},{points:e})):o.createElement(aA,tz({},ih(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:c?i:null,connectNulls:s})),o.createElement(_h,{className:"recharts-radar-polygon"},t,a?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,t=this.props,r=t.points,n=t.isAnimationActive,a=t.animationBegin,c=t.animationDuration,i=t.animationEasing,s=t.animationId,l=this.state.prevPoints;return o.createElement(ib,{begin:a,duration:c,isActive:n,easing:i,from:{t:0},to:{t:1},key:"radar-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var n=t.t,a=l&&l.length/r.length,c=r.map((function(e,t){var r=l&&l[Math.floor(t*a)];if(r){var c=zl(r.x,e.x),i=zl(r.y,e.y);return nz(nz({},e),{},{x:c(n),y:i(n)})}var o=zl(e.cx,e.x),s=zl(e.cy,e.y);return nz(nz({},e),{},{x:o(n),y:s(n)})}));return e.renderPolygonStatically(c)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,r=e.isAnimationActive,n=e.isRange,a=this.state.prevPoints;return!(r&&t&&t.length)||n||a&&kP(a,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.className,n=e.points,a=e.isAnimationActive;if(t||!n||!n.length)return null;var c=this.state.isAnimationFinished,i=Ri("recharts-radar",r);return o.createElement(_h,{className:i},this.renderPolygon(),(!a||c)&&wC.renderCallByParent(this.props,n))}}],n=[{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:"renderDotItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(iA,tz({},t,{className:"recharts-radar-dot"}))}}],r&&az(t.prototype,r),n&&az(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();function pz(e){return pz="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},pz(e)}function uz(){return uz=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},uz.apply(this,arguments)}function gz(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 mz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gz(Object(r),!0).forEach((function(t){dz(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gz(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dz(e,t,r){return t=function(e){var t=function(e,t){if("object"!==pz(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==pz(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pz(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fz(e){return"string"==typeof e?parseInt(e,10):e}function _z(e,t){var r="".concat(t.cx||e.cx),n=parseInt(r,10),a="".concat(t.cy||e.cy),c=parseInt(a,10);return mz(mz(mz({},t),e),{},{cx:n,cy:c})}function wz(e){return o.createElement(AL,uz({shapeType:"sector",propTransformer:_z},e))}lz(vz,"displayName","Radar"),lz(vz,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!by.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),lz(vz,"getComposedData",(function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,a=e.dataKey,c=e.bandSize,i=r.cx,o=r.cy,s=!1,l=[],h="number"!==r.type&&null!=c?c:0;n.forEach((function(e,n){var c=rV(e,r.dataKey,n),v=rV(e,a),p=r.scale(c)+h,u=Array.isArray(v)?oC(v):v,g=ll(u)?void 0:t.scale(u);Array.isArray(v)&&v.length>=2&&(s=!0),l.push(nz(nz({},RV(i,o,g,p)),{},{name:c,value:v,cx:i,cy:o,radius:g,angle:p,payload:e}))}));var v=[];return s&&l.forEach((function(e){if(Array.isArray(e.value)){var r=JL(e.value),n=ll(r)?void 0:t.scale(r);v.push(nz(nz({},e),{},{radius:n},RV(i,o,n,e.angle)))}else v.push(e)})),{points:l,isRange:s,baseLinePoints:v}}));var bz=["shape","activeShape","activeIndex","cornerRadius"],yz=["value","background"];function xz(e){return xz="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},xz(e)}function Zz(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 Oz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zz(Object(r),!0).forEach((function(t){Cz(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zz(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mz(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Ez(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,Az(n.key),n)}}function Hz(e,t){return Hz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hz(e,t)}function Pz(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=Vz(e);if(t){var a=Vz(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===xz(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jz(e)}(this,r)}}function jz(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vz(e){return Vz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vz(e)}function Cz(e,t,r){return(t=Az(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Az(e){var t=function(e,t){if("object"!==xz(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==xz(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xz(t)?t:String(t)}var Lz=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&&Hz(e,t)}(c,Z);var t,r,n,a=Pz(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Cz(jz(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!1}),Cz(jz(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),_o(t)&&t()})),Cz(jz(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),_o(t)&&t()})),e}return t=c,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,r=e.endAngle;return El(r-t)*Math.min(Math.abs(r-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,r=this.props,n=r.shape,a=r.activeShape,c=r.activeIndex,i=r.cornerRadius,s=Mz(r,bz),l=ih(s);return e.map((function(e,r){var h=r===c,v=Oz(Oz(Oz(Oz({},l),{},{cornerRadius:fz(i)},e),Fl(t.props,e,r)),{},{key:"sector-".concat(r),className:"recharts-radial-bar-sector ".concat(e.className),forceCornerRadius:s.forceCornerRadius,cornerIsExternal:s.cornerIsExternal,isActive:h,option:h?a:n});return o.createElement(wz,v)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,r=t.data,n=t.isAnimationActive,a=t.animationBegin,c=t.animationDuration,i=t.animationEasing,s=t.animationId,l=this.state.prevData;return o.createElement(ib,{begin:a,duration:c,isActive:n,easing:i,from:{t:0},to:{t:1},key:"radialBar-".concat(s),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var n=t.t,a=r.map((function(e,t){var r=l&&l[t];if(r){var a=zl(r.startAngle,e.startAngle),c=zl(r.endAngle,e.endAngle);return Oz(Oz({},e),{},{startAngle:a(n),endAngle:c(n)})}var i=e.endAngle,o=e.startAngle,s=zl(o,i);return Oz(Oz({},e),{},{endAngle:s(n)})}));return o.createElement(_h,null,e.renderSectorsStatically(a))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,r=e.isAnimationActive,n=this.state.prevData;return!(r&&t&&t.length)||n&&kP(n,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,r=this.props.cornerRadius,n=ih(this.props.background);return e.map((function(e,a){e.value;var c=e.background,i=Mz(e,yz);if(!c)return null;var s=Oz(Oz(Oz(Oz(Oz({cornerRadius:fz(r)},i),{},{fill:"#eee"},c),n),Fl(t.props,e,a)),{},{index:a,key:"sector-".concat(a),className:"recharts-radial-bar-background-sector",option:c,isActive:!1});return o.createElement(wz,s)}))}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.data,n=e.className,a=e.background,c=e.isAnimationActive;if(t||!r||!r.length)return null;var i=this.state.isAnimationFinished,s=Ri("recharts-area",n);return o.createElement(_h,{className:s},a&&o.createElement(_h,{className:"recharts-radial-bar-background"},this.renderBackground(r)),o.createElement(_h,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!c||i)&&wC.renderCallByParent(Oz({},this.props),r))}}],n=[{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}}],r&&Ez(t.prototype,r),n&&Ez(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();Cz(Lz,"displayName","RadialBar"),Cz(Lz,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!by.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),Cz(Lz,"getComposedData",(function(e){var t=e.item,r=e.props,n=e.radiusAxis,a=e.radiusAxisTicks,c=e.angleAxis,i=e.angleAxisTicks,o=e.displayedData,s=e.dataKey,l=e.stackedData,h=e.barPosition,v=e.bandSize,p=e.dataStartIndex,u=mV(h,t);if(!u)return null;var g=c.cx,m=c.cy,d=r.layout,f=t.props,_=f.children,w=f.minPointSize,b="radial"===d?c:n,y=l?b.scale.domain():null,x=xV({numericAxis:b}),Z=Jl(_,ix);return{data:o.map((function(e,o){var h,f,_,b,O,M;if(l?h=dV(l[p+o],y):(h=rV(e,s),Array.isArray(h)||(h=[x,h])),"radial"===d){f=yV({axis:n,ticks:a,bandSize:v,offset:u.offset,entry:e,index:o}),O=c.scale(h[1]),b=c.scale(h[0]),_=f+u.size;var E=O-b;if(Math.abs(w)>0&&Math.abs(E)<Math.abs(w))O+=El(E||w)*(Math.abs(w)-Math.abs(E));M={background:{cx:g,cy:m,innerRadius:f,outerRadius:_,startAngle:r.startAngle,endAngle:r.endAngle}}}else{f=n.scale(h[0]),_=n.scale(h[1]),O=(b=yV({axis:c,ticks:i,bandSize:v,offset:u.offset,entry:e,index:o}))+u.size;var H=_-f;if(Math.abs(w)>0&&Math.abs(H)<Math.abs(w))_+=El(H||w)*(Math.abs(w)-Math.abs(H))}return Oz(Oz(Oz(Oz({},e),M),{},{payload:e,value:l?h:h[1],cx:g,cy:m,innerRadius:f,outerRadius:_,startAngle:b,endAngle:O},Z&&Z[o]&&Z[o].props),{},{tooltipPayload:[jV(t,e)],tooltipPosition:RV(g,m,(f+_)/2,(b+O)/2)})})),layout:d}}));var zz=Math.ceil,Bz=Math.max;var kz=function(e,t,r,n){for(var a=-1,c=Bz(zz((t-e)/(r||1)),0),i=Array(c);c--;)i[n?c:++a]=e,e+=r;return i},Sz=Fy,Rz=1/0;var Dz=function(e){return e?(e=Sz(e))===Rz||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},Iz=kz,Tz=Yf,Nz=Dz;var Fz=function(e){return function(t,r,n){return n&&"number"!=typeof n&&Tz(t,r,n)&&(r=n=void 0),t=Nz(t),void 0===r?(r=t,t=0):r=Nz(r),n=void 0===n?t<r?1:-1:Nz(n),Iz(t,r,n,e)}},Qz=zt(Fz());function $z(e){return $z="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},$z(e)}function Yz(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 Uz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yz(Object(r),!0).forEach((function(t){Wz(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yz(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wz(e,t,r){return t=function(e){var t=function(e,t){if("object"!==$z(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==$z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$z(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xz=["Webkit","Moz","O","ms"];function Kz(e){return Kz="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},Kz(e)}function qz(){return qz=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},qz.apply(this,arguments)}function Gz(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 Jz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gz(Object(r),!0).forEach((function(t){cB(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gz(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function eB(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,iB(n.key),n)}}function tB(e,t){return tB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tB(e,t)}function rB(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=aB(e);if(t){var a=aB(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Kz(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nB(e)}(this,r)}}function nB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aB(e){return aB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aB(e)}function cB(e,t,r){return(t=iB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iB(e){var t=function(e,t){if("object"!==Kz(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Kz(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Kz(t)?t:String(t)}var oB=function(e){return e.changedTouches&&!!e.changedTouches.length},sB=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&&tB(e,t)}(c,Z);var t,r,n,a=rB(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),cB(nB(t=a.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),cB(nB(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),cB(nB(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=t.props,r=e.endIndex,n=e.onDragEnd,a=e.startIndex;null==n||n({endIndex:r,startIndex:a})})),t.detachDragEndListener()})),cB(nB(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),cB(nB(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),cB(nB(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),cB(nB(t),"handleSlideDragStart",(function(e){var r=oB(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(nB(t),"startX"),endX:t.handleTravellerDragStart.bind(nB(t),"endX")},t.state={},t}return t=c,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,r=e.endX,n=this.state.scaleValues,a=this.props,i=a.gap,o=a.data.length-1,s=Math.min(t,r),l=Math.max(t,r),h=c.getIndexInRange(n,s),v=c.getIndexInRange(n,l);return{startIndex:h-h%i,endIndex:v===o?o:v-v%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,r=t.data,n=t.tickFormatter,a=t.dataKey,c=rV(r[e],a,e);return _o(n)?n(c,e):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,r=t.slideMoveStartX,n=t.startX,a=t.endX,c=this.props,i=c.x,o=c.width,s=c.travellerWidth,l=c.startIndex,h=c.endIndex,v=c.onChange,p=e.pageX-r;p>0?p=Math.min(p,i+o-s-a,i+o-s-n):p<0&&(p=Math.max(p,i-n,i-a));var u=this.getIndex({startX:n+p,endX:a+p});u.startIndex===l&&u.endIndex===h||!v||v(u),this.setState({startX:n+p,endX:a+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var r=oB(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,r=this.state,n=r.brushMoveStartX,a=r.movingTravellerId,c=r.endX,i=r.startX,o=this.state[a],s=this.props,l=s.x,h=s.width,v=s.travellerWidth,p=s.onChange,u=s.gap,g=s.data,m={startX:this.state.startX,endX:this.state.endX},d=e.pageX-n;d>0?d=Math.min(d,l+h-v-o):d<0&&(d=Math.max(d,l-o)),m[a]=o+d;var f=this.getIndex(m),_=f.startIndex,w=f.endIndex;this.setState((cB(t={},a,o+d),cB(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=g.length-1,("startX"===a&&(c>i?_%u==0:w%u==0)||c<i&&w===e||"endX"===a&&(c>i?w%u==0:_%u==0)||c>i&&w===e)&&p(f))}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var r=this,n=this.state,a=n.scaleValues,c=n.startX,i=n.endX,o=this.state[t],s=a.indexOf(o);if(-1!==s){var l=s+e;if(!(-1===l||l>=a.length)){var h=a[l];"startX"===t&&h>=i||"endX"===t&&h<=c||this.setState(cB({},t,h),(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,a=e.height,c=e.fill,i=e.stroke;return o.createElement("rect",{stroke:i,fill:c,x:t,y:r,width:n,height:a})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,a=e.height,c=e.data,i=e.children,s=e.padding,l=x.only(i);return l?o.cloneElement(l,{x:t,y:r,width:n,height:a,margin:s,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(e,t){var r=this,n=this.props,a=n.y,i=n.travellerWidth,s=n.height,l=n.traveller,h=n.ariaLabel,v=n.data,p=n.startIndex,u=n.endIndex,g=Math.max(e,this.props.x),m=Jz(Jz({},ih(this.props)),{},{x:g,y:a,width:i,height:s}),d=h||"Min value: ".concat(v[p].name,", Max value: ").concat(v[u].name);return o.createElement(_h,{tabIndex:0,role:"slider","aria-label":d,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),r.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){r.setState({isTravellerFocused:!0})},onBlur:function(){r.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},c.renderTraveller(l,m))}},{key:"renderSlide",value:function(e,t){var r=this.props,n=r.y,a=r.height,c=r.stroke,i=r.travellerWidth,s=Math.min(e,t)+i,l=Math.max(Math.abs(t-e)-i,0);return o.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:s,y:n,width:l,height:a})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,r=e.endIndex,n=e.y,a=e.height,c=e.travellerWidth,i=e.stroke,s=this.state,l=s.startX,h=s.endX,v={pointerEvents:"none",fill:i};return o.createElement(_h,{className:"recharts-brush-texts"},o.createElement(Nx,qz({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-5,y:n+a/2},v),this.getTextOfTick(t)),o.createElement(Nx,qz({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+c+5,y:n+a/2},v),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,t=e.data,r=e.className,n=e.children,a=e.x,c=e.y,i=e.width,s=e.height,l=e.alwaysShowText,h=this.state,v=h.startX,p=h.endX,u=h.isTextActive,g=h.isSlideMoving,m=h.isTravellerMoving,d=h.isTravellerFocused;if(!t||!t.length||!Pl(a)||!Pl(c)||!Pl(i)||!Pl(s)||i<=0||s<=0)return null;var f=Ri("recharts-brush",r),_=1===o.Children.count(n),w=function(e,t){if(!e)return null;var r=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),n=Xz.reduce((function(e,n){return Uz(Uz({},e),{},Wz({},n+r,t))}),{});return n[e]=t,n}("userSelect","none");return o.createElement(_h,{className:f,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(v,p),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(p,"endX"),(u||g||m||d||l)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,r=e.y,n=e.width,a=e.height,c=e.stroke,i=Math.floor(r+a/2)-1;return o.createElement(o.Fragment,null,o.createElement("rect",{x:t,y:r,width:n,height:a,fill:c,stroke:"none"}),o.createElement("line",{x1:t+1,y1:i,x2:t+n-1,y2:i,fill:"none",stroke:"#fff"}),o.createElement("line",{x1:t+1,y1:i+2,x2:t+n-1,y2:i+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):c.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var r=e.data,n=e.width,a=e.x,c=e.travellerWidth,i=e.updateId,o=e.startIndex,s=e.endIndex;if(r!==t.prevData||i!==t.prevUpdateId)return Jz({prevData:r,prevTravellerWidth:c,prevUpdateId:i,prevX:a,prevWidth:n},r&&r.length?function(e){var t=e.data,r=e.startIndex,n=e.endIndex,a=e.x,c=e.width,i=e.travellerWidth;if(!t||!t.length)return{};var o=t.length,s=fZ().domain(Qz(0,o)).range([a,a+c-i]),l=s.domain().map((function(e){return s(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(r),endX:s(n),scale:s,scaleValues:l}}({data:r,width:n,x:a,travellerWidth:c,startIndex:o,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(n!==t.prevWidth||a!==t.prevX||c!==t.prevTravellerWidth)){t.scale.range([a,a+n-c]);var l=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:r,prevTravellerWidth:c,prevUpdateId:i,prevX:a,prevWidth:n,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(e,t){for(var r=0,n=e.length-1;n-r>1;){var a=Math.floor((r+n)/2);e[a]>t?n=a:r=a}return t>=e[n]?n:r}}],r&&eB(t.prototype,r),n&&eB(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();cB(sB,"displayName","Brush"),cB(sB,"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 lB=sf;var hB=au,vB=vd,pB=function(e,t){var r;return lB(e,(function(e,n,a){return!(r=t(e,n,a))})),!!r},uB=Di,gB=Yf;var mB=zt((function(e,t,r){var n=uB(e)?hB:pB;return r&&gB(e,t,r)&&(t=void 0),n(e,vB(t))})),dB=function(e,t){var r=e.alwaysShow,n=e.ifOverflow;return r&&(n="extendDomain"),n===t},fB=Cf;var _B=function(e,t,r){"__proto__"==t&&fB?fB(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},wB=_B,bB=cf,yB=vd;var xB=function(e,t){var r={};return t=yB(t),bB(e,(function(e,n,a){wB(r,n,t(e,n,a))})),r},ZB=zt(xB);var OB=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},MB=sf;var EB=OB,HB=function(e,t){var r=!0;return MB(e,(function(e,n,a){return r=!!t(e,n,a)})),r},PB=vd,jB=Di,VB=Yf;var CB=zt((function(e,t,r){var n=jB(e)?EB:HB;return r&&VB(e,t,r)&&(t=void 0),n(e,PB(t))}));function AB(e){return AB="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},AB(e)}var LB=["x","y"];function zB(){return zB=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},zB.apply(this,arguments)}function BB(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 kB(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?BB(Object(r),!0).forEach((function(t){SB(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BB(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function SB(e,t,r){return t=function(e){var t=function(e,t){if("object"!==AB(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==AB(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===AB(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RB(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function DB(e,t){var r=e.x,n=e.y,a=RB(e,LB),c="".concat(r),i=parseInt(c,10),o="".concat(n),s=parseInt(o,10),l="".concat(t.height||a.height),h=parseInt(l,10),v="".concat(t.width||a.width),p=parseInt(v,10);return kB(kB(kB(kB(kB({},t),a),i?{x:i}:{}),s?{y:s}:{}),{},{height:h,width:p,name:t.name,radius:t.radius})}function IB(e){return o.createElement(AL,zB({shapeType:"rectangle",propTransformer:DB,activeClassName:"recharts-active-bar"},e))}var TB=["value","background"];function NB(e){return NB="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},NB(e)}function FB(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function QB(){return QB=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},QB.apply(this,arguments)}function $B(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 YB(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$B(Object(r),!0).forEach((function(t){GB(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function UB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JB(n.key),n)}}function WB(e,t){return WB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WB(e,t)}function XB(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=qB(e);if(t){var a=qB(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===NB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return KB(e)}(this,r)}}function KB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qB(e){return qB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qB(e)}function GB(e,t,r){return(t=JB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JB(e){var t=function(e,t){if("object"!==NB(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==NB(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===NB(t)?t:String(t)}var ek=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&&WB(e,t)}(c,Z);var t,r,n,a=XB(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return GB(KB(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!1}),GB(KB(e),"id",Cl("recharts-bar-")),GB(KB(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),GB(KB(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return t=c,r=[{key:"renderRectanglesStatically",value:function(e){var t=this,r=this.props,n=r.shape,a=r.dataKey,c=r.activeIndex,i=r.activeBar,s=ih(this.props);return e&&e.map((function(e,r){var l=r===c,h=l?i:n,v=YB(YB(YB({},s),e),{},{isActive:l,option:h,index:r,dataKey:a,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return o.createElement(_h,QB({className:"recharts-bar-rectangle"},Fl(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)}),o.createElement(IB,v))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,r=t.data,n=t.layout,a=t.isAnimationActive,c=t.animationBegin,i=t.animationDuration,s=t.animationEasing,l=t.animationId,h=this.state.prevData;return o.createElement(ib,{begin:c,duration:i,isActive:a,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var a=t.t,c=r.map((function(e,t){var r=h&&h[t];if(r){var c=zl(r.x,e.x),i=zl(r.y,e.y),o=zl(r.width,e.width),s=zl(r.height,e.height);return YB(YB({},e),{},{x:c(a),y:i(a),width:o(a),height:s(a)})}if("horizontal"===n){var l=zl(0,e.height)(a);return YB(YB({},e),{},{y:e.y+e.height-l,height:l})}var v=zl(0,e.width)(a);return YB(YB({},e),{},{width:v})}));return o.createElement(_h,null,e.renderRectanglesStatically(c))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,r=e.isAnimationActive,n=this.state.prevData;return!(r&&t&&t.length)||n&&kP(n,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props,r=t.data,n=t.dataKey,a=t.activeIndex,c=ih(this.props.background);return r.map((function(t,r){t.value;var i=t.background,s=FB(t,TB);if(!i)return null;var l=YB(YB(YB(YB(YB({},s),{},{fill:"#eee"},i),c),Fl(e.props,t,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:n,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return o.createElement(IB,QB({option:e.props.background,isActive:r===a},l))}))}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,a=r.xAxis,c=r.yAxis,i=r.layout,s=Jl(r.children,Qj);if(!s)return null;var l="vertical"===i?n[0].height/2:n[0].width/2,h=function(e,t){var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:rV(e,t)}},v={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(_h,v,s.map((function(e){return o.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:n,xAxis:a,yAxis:c,layout:i,offset:l,dataPointFormatter:h})})))}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.data,n=e.className,a=e.xAxis,c=e.yAxis,i=e.left,s=e.top,l=e.width,h=e.height,v=e.isAnimationActive,p=e.background,u=e.id;if(t||!r||!r.length)return null;var g=this.state.isAnimationFinished,m=Ri("recharts-bar",n),d=a&&a.allowDataOverflow,f=c&&c.allowDataOverflow,_=d||f,w=ll(u)?this.id:u;return o.createElement(_h,{className:m},d||f?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(w)},o.createElement("rect",{x:d?i:i-l/2,y:f?s:s-h/2,width:d?l:2*l,height:f?h:2*h}))):null,o.createElement(_h,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(w,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,w),(!v||g)&&wC.renderCallByParent(this.props,r))}}],n=[{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}}],r&&UB(t.prototype,r),n&&UB(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();function tk(e){return tk="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},tk(e)}function rk(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,ik(n.key),n)}}function nk(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?nk(Object(r),!0).forEach((function(t){ck(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ck(e,t,r){return(t=ik(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ik(e){var t=function(e,t){if("object"!==tk(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==tk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tk(t)?t:String(t)}GB(ek,"displayName","Bar"),GB(ek,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!by.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),GB(ek,"getComposedData",(function(e){var t=e.props,r=e.item,n=e.barPosition,a=e.bandSize,c=e.xAxis,i=e.yAxis,o=e.xAxisTicks,s=e.yAxisTicks,l=e.stackedData,h=e.dataStartIndex,v=e.displayedData,p=e.offset,u=mV(n,r);if(!u)return null;var g=t.layout,m=r.props,d=m.dataKey,f=m.children,_=m.minPointSize,w="horizontal"===g?i:c,b=l?w.scale.domain():null,y=xV({numericAxis:w}),x=Jl(f,ix),Z=v.map((function(e,t){var n,v,p,m,f,w;if(l?n=dV(l[h+t],b):(n=rV(e,d),Array.isArray(n)||(n=[y,n])),"horizontal"===g){var Z,O=[i.scale(n[0]),i.scale(n[1])],M=O[0],E=O[1];v=yV({axis:c,ticks:o,bandSize:a,offset:u.offset,entry:e,index:t}),p=null!==(Z=null!=E?E:M)&&void 0!==Z?Z:void 0,m=u.size;var H=M-E;if(f=Number.isNaN(H)?0:H,w={x:v,y:i.y,width:m,height:i.height},Math.abs(_)>0&&Math.abs(f)<Math.abs(_)){var P=El(f||_)*(Math.abs(_)-Math.abs(f));p-=P,f+=P}}else{var j=[c.scale(n[0]),c.scale(n[1])],V=j[0],C=j[1];if(v=V,p=yV({axis:i,ticks:s,bandSize:a,offset:u.offset,entry:e,index:t}),m=C-V,f=u.size,w={x:c.x,y:p,width:c.width,height:f},Math.abs(_)>0&&Math.abs(m)<Math.abs(_))m+=El(m||_)*(Math.abs(_)-Math.abs(m))}return YB(YB(YB({},e),{},{x:v,y:p,width:m,height:f,value:l?n:n[1],payload:e,background:w},x&&x[t]&&x[t].props),{},{tooltipPayload:[jV(r,e)],tooltipPosition:{x:v+m/2,y:p+f/2}})}));return YB({data:Z,layout:g},p)}));var ok=function(e,t,r,n,a){var c=e.width,i=e.height,o=e.layout,s=e.children,l=Object.keys(t),h={left:r.left,leftMirror:r.left,right:c-r.right,rightMirror:c-r.right,top:r.top,topMirror:r.top,bottom:i-r.bottom,bottomMirror:i-r.bottom},v=!!eh(s,ek);return l.reduce((function(c,i){var s,l,p,u,g,m=t[i],d=m.orientation,f=m.domain,_=m.padding,w=void 0===_?{}:_,b=m.mirror,y=m.reversed,x="".concat(d).concat(b?"Mirror":"");if("number"===m.type&&("gap"===m.padding||"no-gap"===m.padding)){var Z=f[1]-f[0],O=1/0,M=m.categoricalDomain.sort();M.forEach((function(e,t){t>0&&(O=Math.min((e||0)-(M[t-1]||0),O))}));var E=O/Z,H="vertical"===m.layout?r.height:r.width;if("gap"===m.padding&&(s=E*H/2),"no-gap"===m.padding){var P=Al(e.barCategoryGap,E*H),j=E*H/2;s=j-P-(j-P)/H*P}}l="xAxis"===n?[r.left+(w.left||0)+(s||0),r.left+r.width-(w.right||0)-(s||0)]:"yAxis"===n?"horizontal"===o?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(s||0),r.top+r.height-(w.bottom||0)-(s||0)]:m.range,y&&(l=[l[1],l[0]]);var V=pV(m,a,v),C=V.scale,A=V.realScaleType;C.domain(f).range(l),gV(C);var L=wV(C,ak(ak({},m),{},{realScaleType:A}));"xAxis"===n?(g="top"===d&&!b||"bottom"===d&&b,p=r.left,u=h[x]-g*m.height):"yAxis"===n&&(g="left"===d&&!b||"right"===d&&b,p=h[x]-g*m.width,u=r.top);var z=ak(ak(ak({},m),L),{},{realScaleType:A,x:p,y:u,scale:C,width:"xAxis"===n?r.width:m.width,height:"yAxis"===n?r.height:m.height});return z.bandSize=HV(z,L),m.hide||"xAxis"!==n?m.hide||(h[x]+=(g?-1:1)*z.width):h[x]+=(g?-1:1)*z.height,ak(ak({},c),{},ck({},i,z))}),{})},sk=function(e,t){var r=e.x,n=e.y,a=t.x,c=t.y;return{x:Math.min(r,a),y:Math.min(n,c),width:Math.abs(a-r),height:Math.abs(c-n)}},lk=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}var t,r,n;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 a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a;case"end":var c=this.bandwidth?this.bandwidth():0;return this.scale(e)+c}if(r){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}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&&rk(t.prototype,r),n&&rk(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();ck(lk,"EPS",1e-4);var hk=function(e){var t=Object.keys(e).reduce((function(t,r){return ak(ak({},t),{},ck({},r,lk.create(e[r])))}),{});return ak(ak({},t),{},{apply:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,a=r.position;return ZB(e,(function(e,r){return t[r].apply(e,{bandAware:n,position:a})}))},isInRange:function(e){return CB(e,(function(e,r){return t[r].isInRange(e)}))}})};var vk=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),a=n*Math.PI/180,c=Math.atan(r/t),i=a>c&&a<Math.PI-c?r/Math.sin(a):t/Math.cos(a);return Math.abs(i)};function pk(e){return pk="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},pk(e)}function uk(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 gk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uk(Object(r),!0).forEach((function(t){mk(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function mk(e,t,r){return t=function(e){var t=function(e,t){if("object"!==pk(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==pk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pk(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dk(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fk(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 fk(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 fk(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 _k(){return _k=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},_k.apply(this,arguments)}function wk(e){var t=e.x,r=e.y,n=e.segment,a=e.xAxis,c=e.yAxis,i=e.shape,s=e.className,l=e.alwaysShow,h=e.clipPathId;bh(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=function(e,t,r,n,a){var c=a.viewBox,i=c.x,o=c.y,s=c.width,l=c.height,h=a.position;if(r){var v=a.y,p=a.yAxis.orientation,u=e.y.apply(v,{position:h});if(dB(a,"discard")&&!e.y.isInRange(u))return null;var g=[{x:i+s,y:u},{x:i,y:u}];return"left"===p?g.reverse():g}if(t){var m=a.x,d=a.xAxis.orientation,f=e.x.apply(m,{position:h});if(dB(a,"discard")&&!e.x.isInRange(f))return null;var _=[{x:f,y:o+l},{x:f,y:o}];return"top"===d?_.reverse():_}if(n){var w=a.segment.map((function(t){return e.apply(t,{position:h})}));return dB(a,"discard")&&mB(w,(function(t){return!e.isInRange(t)}))?null:w}return null}(hk({x:a.scale,y:c.scale}),jl(t),jl(r),n&&2===n.length,e);if(!v)return null;var p=dk(v,2),u=p[0],g=u.x,m=u.y,d=p[1],f=d.x,_=d.y,w=gk(gk({clipPath:dB(e,"hidden")?"url(#".concat(h,")"):void 0},ih(e,!0)),{},{x1:g,y1:m,x2:f,y2:_});return o.createElement(_h,{className:Ri("recharts-reference-line",s)},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement("line",_k({},t,{className:"recharts-reference-line-line"}))}(i,w),aC.renderCallByParent(e,function(e){var t=e.x1,r=e.y1,n=e.x2,a=e.y2;return sk({x:t,y:r},{x:n,y:a})}({x1:g,y1:m,x2:f,y2:_})))}function bk(e){return bk="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},bk(e)}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 xk(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 Zk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xk(Object(r),!0).forEach((function(t){Ok(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ok(e,t,r){return t=function(e){var t=function(e,t){if("object"!==bk(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==bk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bk(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}wk.displayName="ReferenceLine",wk.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function Mk(e){var t=e.x,r=e.y,n=e.r,a=e.alwaysShow,c=e.clipPathId,i=jl(t),s=jl(r);if(bh(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!i||!s)return null;var l=function(e){var t=e.x,r=e.y,n=e.xAxis,a=e.yAxis,c=hk({x:n.scale,y:a.scale}),i=c.apply({x:t,y:r},{bandAware:!0});return dB(e,"discard")&&!c.isInRange(i)?null:i}(e);if(!l)return null;var h=l.x,v=l.y,p=e.shape,u=e.className,g=Zk(Zk({clipPath:dB(e,"hidden")?"url(#".concat(c,")"):void 0},ih(e,!0)),{},{cx:h,cy:v});return o.createElement(_h,{className:Ri("recharts-reference-dot",u)},Mk.renderDot(p,g),aC.renderCallByParent(e,{x:h-n,y:v-n,width:2*n,height:2*n}))}function Ek(e){return Ek="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},Ek(e)}function Hk(){return Hk=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},Hk.apply(this,arguments)}function Pk(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 jk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pk(Object(r),!0).forEach((function(t){Vk(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vk(e,t,r){return t=function(e){var t=function(e,t){if("object"!==Ek(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ek(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ek(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Mk.displayName="ReferenceDot",Mk.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},Mk.renderDot=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(iA,yk({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};function Ck(e){var t=e.x1,r=e.x2,n=e.y1,a=e.y2,c=e.className,i=e.alwaysShow,s=e.clipPathId;bh(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=jl(t),h=jl(r),v=jl(n),p=jl(a),u=e.shape;if(!(l||h||v||p||u))return null;var g=function(e,t,r,n,a){var c=a.x1,i=a.x2,o=a.y1,s=a.y2,l=a.xAxis,h=a.yAxis;if(!l||!h)return null;var v=hk({x:l.scale,y:h.scale}),p={x:e?v.x.apply(c,{position:"start"}):v.x.rangeMin,y:r?v.y.apply(o,{position:"start"}):v.y.rangeMin},u={x:t?v.x.apply(i,{position:"end"}):v.x.rangeMax,y:n?v.y.apply(s,{position:"end"}):v.y.rangeMax};return!dB(a,"discard")||v.isInRange(p)&&v.isInRange(u)?sk(p,u):null}(l,h,v,p,e);if(!g&&!u)return null;var m=dB(e,"hidden")?"url(#".concat(s,")"):void 0;return o.createElement(_h,{className:Ri("recharts-reference-area",c)},Ck.renderRect(u,jk(jk({clipPath:m},ih(e,!0)),g)),aC.renderCallByParent(e,g))}function Ak(e,t,r){if(t<1)return[];if(1===t&&void 0===r)return e;for(var n=[],a=0;a<e.length;a+=t){if(void 0!==r&&!0!==r(e[a]))return;n.push(e[a])}return n}function Lk(e,t,r,n,a){if(e*t<e*n||e*t>e*a)return!1;var c=r();return e*(t-e*c/2-n)>=0&&e*(t+e*c/2-a)<=0}function zk(e){return zk="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},zk(e)}function Bk(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 kk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bk(Object(r),!0).forEach((function(t){Sk(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Sk(e,t,r){return t=function(e){var t=function(e,t){if("object"!==zk(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==zk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zk(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rk(e,t,r){var n=e.tick,a=e.ticks,c=e.viewBox,i=e.minTickGap,o=e.orientation,s=e.interval,l=e.tickFormatter,h=e.unit,v=e.angle;if(!a||!a.length||!n)return[];if(Pl(s)||by.isSsr)return function(e,t){return Ak(e,t+1)}(a,"number"==typeof s&&Pl(s)?s:0);var p=[],u="top"===o||"bottom"===o?"width":"height",g=h&&"width"===u?gx(h,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(e,n){var a=_o(l)?l(e.value,n):e.value;return"width"===u?function(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return vk(n,r)}(gx(a,{fontSize:t,letterSpacing:r}),g,v):gx(a,{fontSize:t,letterSpacing:r})[u]},d=a.length>=2?El(a[1].coordinate-a[0].coordinate):1,f=function(e,t,r){var n="width"===r,a=e.x,c=e.y,i=e.width,o=e.height;return 1===t?{start:n?a:c,end:n?a+i:c+o}:{start:n?a+i:c+o,end:n?a:c}}(c,d,u);return"equidistantPreserveStart"===s?function(e,t,r,n,a){for(var c,i=(n||[]).slice(),o=t.start,s=t.end,l=0,h=1,v=o,p=function(){var t=null==n?void 0:n[l];if(void 0===t)return{v:Ak(n,h)};var c,i=l,p=function(){return void 0===c&&(c=r(t,i)),c},u=t.coordinate,g=0===l||Lk(e,u,p,v,s);g||(l=0,v=o,h+=1),g&&(v=u+e*(p()/2+a),l+=h)};h<=i.length;)if(c=p())return c.v;return[]}(d,f,m,a,i):(p="preserveStart"===s||"preserveStartEnd"===s?function(e,t,r,n,a,c){var i=(n||[]).slice(),o=i.length,s=t.start,l=t.end;if(c){var h=n[o-1],v=r(h,o-1),p=e*(h.coordinate+e*v/2-l);i[o-1]=h=kk(kk({},h),{},{tickCoord:p>0?h.coordinate-p*e:h.coordinate}),Lk(e,h.tickCoord,(function(){return v}),s,l)&&(l=h.tickCoord-e*(v/2+a),i[o-1]=kk(kk({},h),{},{isShow:!0}))}for(var u=c?o-1:o,g=function(t){var n,c=i[t],o=function(){return void 0===n&&(n=r(c,t)),n};if(0===t){var h=e*(c.coordinate-e*o()/2-s);i[t]=c=kk(kk({},c),{},{tickCoord:h<0?c.coordinate-h*e:c.coordinate})}else i[t]=c=kk(kk({},c),{},{tickCoord:c.coordinate});Lk(e,c.tickCoord,o,s,l)&&(s=c.tickCoord+e*(o()/2+a),i[t]=kk(kk({},c),{},{isShow:!0}))},m=0;m<u;m++)g(m);return i}(d,f,m,a,i,"preserveStartEnd"===s):function(e,t,r,n,a){for(var c=(n||[]).slice(),i=c.length,o=t.start,s=t.end,l=function(t){var n,l=c[t],h=function(){return void 0===n&&(n=r(l,t)),n};if(t===i-1){var v=e*(l.coordinate+e*h()/2-s);c[t]=l=kk(kk({},l),{},{tickCoord:v>0?l.coordinate-v*e:l.coordinate})}else c[t]=l=kk(kk({},l),{},{tickCoord:l.coordinate});Lk(e,l.tickCoord,h,o,s)&&(s=l.tickCoord-e*(h()/2+a),c[t]=kk(kk({},l),{},{isShow:!0}))},h=i-1;h>=0;h--)l(h);return c}(d,f,m,a,i),p.filter((function(e){return e.isShow})))}Ck.displayName="ReferenceArea",Ck.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},Ck.renderRect=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(KC,Hk({},t,{className:"recharts-reference-area-rect"}))};var Dk=["viewBox"],Ik=["viewBox"],Tk=["ticks"];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 Fk(){return Fk=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},Fk.apply(this,arguments)}function Qk(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?Qk(Object(r),!0).forEach((function(t){qk(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qk(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yk(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Uk(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,Gk(n.key),n)}}function Wk(e,t){return Wk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wk(e,t)}function Xk(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=Kk(e);if(t){var a=Kk(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Nk(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)}(this,r)}}function Kk(e){return Kk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kk(e)}function qk(e,t,r){return(t=Gk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gk(e){var t=function(e,t){if("object"!==Nk(e)||null===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:String(t)}var Jk=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&&Wk(e,t)}(c,M);var t,r,n,a=Xk(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).state={fontSize:"",letterSpacing:""},t}return t=c,r=[{key:"shouldComponentUpdate",value:function(e,t){var r=e.viewBox,n=Yk(e,Dk),a=this.props,c=a.viewBox,i=Yk(a,Ik);return!kl(r,c)||!kl(n,i)||!kl(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,a,c,i,o=this.props,s=o.x,l=o.y,h=o.width,v=o.height,p=o.orientation,u=o.tickSize,g=o.mirror,m=o.tickMargin,d=g?-1:1,f=e.tickSize||u,_=Pl(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=r=e.coordinate,i=(n=(a=l+ +!g*v)-d*f)-d*m,c=_;break;case"left":n=a=e.coordinate,c=(t=(r=s+ +!g*h)-d*f)-d*m,i=_;break;case"right":n=a=e.coordinate,c=(t=(r=s+ +g*h)+d*f)+d*m,i=_;break;default:t=r=e.coordinate,i=(n=(a=l+ +g*v)+d*f)+d*m,c=_}return{line:{x1:t,y1:n,x2:r,y2:a},tick:{x:c,y:i}}}},{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,a=e.height,c=e.orientation,i=e.mirror,s=e.axisLine,l=$k($k($k({},ih(this.props)),ih(s)),{},{fill:"none"});if("top"===c||"bottom"===c){var h=+("top"===c&&!i||"bottom"===c&&i);l=$k($k({},l),{},{x1:t,y1:r+h*a,x2:t+n,y2:r+h*a})}else{var v=+("left"===c&&!i||"right"===c&&i);l=$k($k({},l),{},{x1:t+v*n,y1:r,x2:t+v*n,y2:r+a})}return o.createElement("line",Fk({},l,{className:Ri("recharts-cartesian-axis-line",sl(s,"className"))}))}},{key:"renderTicks",value:function(e,t,r){var n=this,a=this.props,i=a.tickLine,s=a.stroke,l=a.tick,h=a.tickFormatter,v=a.unit,p=Rk($k($k({},this.props),{},{ticks:e}),t,r),u=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),m=ih(this.props),d=ih(l),f=$k($k({},m),{},{fill:"none"},ih(i)),_=p.map((function(e,t){var r=n.getTickLineCoord(e),a=r.line,_=r.tick,w=$k($k($k($k({textAnchor:u,verticalAnchor:g},m),{},{stroke:"none",fill:s},d),_),{},{index:t,payload:e,visibleTicksCount:p.length,tickFormatter:h});return o.createElement(_h,Fk({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},Fl(n.props,e,t)),i&&o.createElement("line",Fk({},f,a,{className:Ri("recharts-cartesian-axis-tick-line",sl(i,"className"))})),l&&c.renderTickItem(l,w,"".concat(_o(h)?h(e.value,t):e.value).concat(v||"")))}));return o.createElement("g",{className:"recharts-cartesian-axis-ticks"},_)}},{key:"render",value:function(){var e=this,t=this.props,r=t.axisLine,n=t.width,a=t.height,c=t.ticksGenerator,i=t.className;if(t.hide)return null;var s=this.props,l=s.ticks,h=Yk(s,Tk),v=l;return _o(c)&&(v=l&&l.length>0?c(this.props):c(h)),n<=0||a<=0||!v||!v.length?null:o.createElement(_h,{className:Ri("recharts-cartesian-axis",i),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),aC.renderCallByParent(this.props))}}],n=[{key:"renderTickItem",value:function(e,t,r){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(Nx,Fk({},t,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&Uk(t.prototype,r),n&&Uk(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();qk(Jk,"displayName","CartesianAxis"),qk(Jk,"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 eS=["x1","y1","x2","y2","key"],tS=["offset"];function rS(e){return rS="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},rS(e)}function nS(){return nS=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},nS.apply(this,arguments)}function aS(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function cS(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 iS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cS(Object(r),!0).forEach((function(t){vS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cS(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oS(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,pS(n.key),n)}}function sS(e,t){return sS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sS(e,t)}function lS(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=hS(e);if(t){var a=hS(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===rS(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)}(this,r)}}function hS(e){return hS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hS(e)}function vS(e,t,r){return(t=pS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pS(e){var t=function(e,t){if("object"!==rS(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==rS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rS(t)?t:String(t)}var uS=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&&sS(e,t)}(c,Z);var t,r,n,a=lS(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,r=[{key:"renderHorizontal",value:function(e){var t=this,r=this.props,n=r.x,a=r.width,i=r.horizontal;if(!e||!e.length)return null;var s=e.map((function(e,r){var o=iS(iS({},t.props),{},{x1:n,y1:e,x2:n+a,y2:e,key:"line-".concat(r),index:r});return c.renderLineItem(i,o)}));return o.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}},{key:"renderVertical",value:function(e){var t=this,r=this.props,n=r.y,a=r.height,i=r.vertical;if(!e||!e.length)return null;var s=e.map((function(e,r){var o=iS(iS({},t.props),{},{x1:e,y1:n,x2:e,y2:n+a,key:"line-".concat(r),index:r});return c.renderLineItem(i,o)}));return o.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var r=this.props,n=r.fillOpacity,a=r.x,c=r.y,i=r.width,s=r.height,l=e.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==l[0]&&l.unshift(0);var h=l.map((function(e,r){var h=l[r+1]?l[r+1]-e:a+i-e;if(h<=0)return null;var v=r%t.length;return o.createElement("rect",{key:"react-".concat(r),x:e,y:c,width:h,height:s,stroke:"none",fill:t[v],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var r=this.props,n=r.fillOpacity,a=r.x,c=r.y,i=r.width,s=r.height,l=e.map((function(e){return Math.round(e+c-c)})).sort((function(e,t){return e-t}));c!==l[0]&&l.unshift(0);var h=l.map((function(e,r){var h=l[r+1]?l[r+1]-e:c+s-e;if(h<=0)return null;var v=r%t.length;return o.createElement("rect",{key:"react-".concat(r),y:e,x:a,height:h,width:i,stroke:"none",fill:t[v],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,r=t.fillOpacity,n=t.x,a=t.y,c=t.width,i=t.height;return o.createElement("rect",{x:n,y:a,width:c,height:i,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,a=e.height,c=e.horizontal,i=e.vertical,s=e.horizontalCoordinatesGenerator,l=e.verticalCoordinatesGenerator,h=e.xAxis,v=e.yAxis,p=e.offset,u=e.chartWidth,g=e.chartHeight,m=e.syncWithTicks,d=e.horizontalValues,f=e.verticalValues;if(!Pl(n)||n<=0||!Pl(a)||a<=0||!Pl(t)||t!==+t||!Pl(r)||r!==+r)return null;var _=this.props,w=_.horizontalPoints,b=_.verticalPoints;if((!w||!w.length)&&_o(s)){var y=d&&d.length;w=s({yAxis:v?iS(iS({},v),{},{ticks:y?d:v.ticks}):void 0,width:u,height:g,offset:p},!!y||m)}if((!b||!b.length)&&_o(l)){var x=f&&f.length;b=l({xAxis:h?iS(iS({},h),{},{ticks:x?f:h.ticks}):void 0,width:u,height:g,offset:p},!!x||m)}return o.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),c&&this.renderHorizontal(w),i&&this.renderVertical(b),c&&this.renderHorizontalStripes(w),i&&this.renderVerticalStripes(b))}}],n=[{key:"renderLineItem",value:function(e,t){var r;if(o.isValidElement(e))r=o.cloneElement(e,t);else if(_o(e))r=e(t);else{var n=t.x1,a=t.y1,c=t.x2,i=t.y2,s=t.key,l=aS(t,eS),h=ih(l);h.offset;var v=aS(h,tS);r=o.createElement("line",nS({},v,{x1:n,y1:a,x2:c,y2:i,fill:"none",key:s}))}return r}}],r&&oS(t.prototype,r),n&&oS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();vS(uS,"displayName","CartesianGrid"),vS(uS,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var gS=["type","layout","connectNulls","ref"];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)}function dS(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function fS(){return fS=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},fS.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 wS(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){HS(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 bS(e){return function(e){if(Array.isArray(e))return yS(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 yS(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 yS(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 yS(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 xS(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,PS(n.key),n)}}function ZS(e,t){return ZS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZS(e,t)}function OS(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=ES(e);if(t){var a=ES(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===mS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return MS(e)}(this,r)}}function MS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ES(e){return ES=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ES(e)}function HS(e,t,r){return(t=PS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PS(e){var t=function(e,t){if("object"!==mS(e)||null===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:String(t)}var jS=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&&ZS(e,t)}(c,Z);var t,r,n,a=OS(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return HS(MS(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!0,totalLength:0}),HS(MS(e),"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),HS(MS(e),"getStrokeDasharray",(function(t,r,n){var a=n.reduce((function(e,t){return e+t}));if(!a)return e.generateSimpleStrokeDasharray(r,t);for(var i=Math.floor(t/a),o=t%a,s=r-t,l=[],h=0,v=0;h<n.length;v+=n[h],++h)if(v+n[h]>o){l=[].concat(bS(n.slice(0,h)),[o-v]);break}var p=l.length%2==0?[0,s]:[s];return[].concat(bS(c.repeat(n,i)),bS(l),p).map((function(e){return"".concat(e,"px")})).join(", ")})),HS(MS(e),"id",Cl("recharts-line-")),HS(MS(e),"pathRef",(function(t){e.mainCurve=t})),HS(MS(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),HS(MS(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return t=c,r=[{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,a=r.xAxis,c=r.yAxis,i=r.layout,s=Jl(r.children,Qj);if(!s)return null;var l=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:rV(e.payload,t)}},h={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(_h,h,s.map((function(e){return o.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:n,xAxis:a,yAxis:c,layout:i,dataPointFormatter:l})})))}},{key:"renderDots",value:function(e,t,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,a=n.dot,i=n.points,s=n.dataKey,l=ih(this.props),h=ih(a,!0),v=i.map((function(e,t){var r=wS(wS(wS({key:"dot-".concat(t),r:3},l),h),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:t,payload:e.payload});return c.renderDotItem(a,r)})),p={clipPath:e?"url(#clipPath-".concat(t?"":"dots-").concat(r,")"):null};return o.createElement(_h,fS({className:"recharts-line-dots",key:"dots"},p),v)}},{key:"renderCurveStatically",value:function(e,t,r,n){var a=this.props,c=a.type,i=a.layout,s=a.connectNulls;a.ref;var l=dS(a,gS),h=wS(wS(wS({},ih(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(r,")"):null,points:e},n),{},{type:c,layout:i,connectNulls:s});return o.createElement(DC,fS({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var r=this,n=this.props,a=n.points,c=n.strokeDasharray,i=n.isAnimationActive,s=n.animationBegin,l=n.animationDuration,h=n.animationEasing,v=n.animationId,p=n.animateNewValues,u=n.width,g=n.height,m=this.state,d=m.prevPoints,f=m.totalLength;return o.createElement(ib,{begin:s,duration:l,isActive:i,easing:h,from:{t:0},to:{t:1},key:"line-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t;if(d){var o=d.length/a.length,s=a.map((function(e,t){var r=Math.floor(t*o);if(d[r]){var n=d[r],a=zl(n.x,e.x),c=zl(n.y,e.y);return wS(wS({},e),{},{x:a(i),y:c(i)})}if(p){var s=zl(2*u,e.x),l=zl(g/2,e.y);return wS(wS({},e),{},{x:s(i),y:l(i)})}return wS(wS({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(s,e,t)}var l,h=zl(0,f)(i);if(c){var v="".concat(c).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=r.getStrokeDasharray(h,f,v)}else l=r.generateSimpleStrokeDasharray(f,h);return r.renderCurveStatically(a,e,t,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(e,t){var r=this.props,n=r.points,a=r.isAnimationActive,c=this.state,i=c.prevPoints,o=c.totalLength;return a&&n&&n.length&&(!i&&o>0||!kP(i,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,a=t.points,c=t.className,i=t.xAxis,s=t.yAxis,l=t.top,h=t.left,v=t.width,p=t.height,u=t.isAnimationActive,g=t.id;if(r||!a||!a.length)return null;var m=this.state.isAnimationFinished,d=1===a.length,f=Ri("recharts-line",c),_=i&&i.allowDataOverflow,w=s&&s.allowDataOverflow,b=_||w,y=ll(g)?this.id:g,x=null!==(e=ih(n))&&void 0!==e?e:{r:3,strokeWidth:2},Z=x.r,O=void 0===Z?3:Z,M=x.strokeWidth,E=void 0===M?2:M,H=(ah(n)?n:{}).clipDot,P=void 0===H||H,j=2*O+E;return o.createElement(_h,{className:f},_||w?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(y)},o.createElement("rect",{x:_?h:h-v/2,y:w?l:l-p/2,width:_?v:2*v,height:w?p:2*p})),!P&&o.createElement("clipPath",{id:"clipPath-dots-".concat(y)},o.createElement("rect",{x:h-j/2,y:l-j/2,width:v+j,height:p+j}))):null,!d&&this.renderCurve(b,y),this.renderErrorBar(b,y),(d||n)&&this.renderDots(b,P,y),(!u||m)&&wC.renderCallByParent(this.props,a))}}],n=[{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(bS(e),[0]):e,n=[],a=0;a<t;++a)n=[].concat(bS(n),bS(r));return n}},{key:"renderDotItem",value:function(e,t){var r;if(o.isValidElement(e))r=o.cloneElement(e,t);else if(_o(e))r=e(t);else{var n=Ri("recharts-line-dot",e?e.className:"");r=o.createElement(iA,fS({},t,{className:n}))}return r}}],r&&xS(t.prototype,r),n&&xS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();HS(jS,"displayName","Line"),HS(jS,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!by.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),HS(jS,"getComposedData",(function(e){var t=e.props,r=e.xAxis,n=e.yAxis,a=e.xAxisTicks,c=e.yAxisTicks,i=e.dataKey,o=e.bandSize,s=e.displayedData,l=e.offset,h=t.layout;return wS({points:s.map((function(e,t){var s=rV(e,i);return"horizontal"===h?{x:bV({axis:r,ticks:a,bandSize:o,entry:e,index:t}),y:ll(s)?null:n.scale(s),value:s,payload:e}:{x:ll(s)?null:r.scale(s),y:bV({axis:n,ticks:c,bandSize:o,entry:e,index:t}),value:s,payload:e}})),layout:h},l)}));var VS,CS=["layout","type","stroke","connectNulls","isRange","ref"];function AS(e){return AS="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},AS(e)}function LS(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}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 BS(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 kS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?BS(Object(r),!0).forEach((function(t){NS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BS(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function SS(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,FS(n.key),n)}}function RS(e,t){return RS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RS(e,t)}function DS(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=TS(e);if(t){var a=TS(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===AS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return IS(e)}(this,r)}}function IS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TS(e){return TS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},TS(e)}function NS(e,t,r){return(t=FS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FS(e){var t=function(e,t){if("object"!==AS(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==AS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===AS(t)?t:String(t)}var QS=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&&RS(e,t)}(c,Z);var t,r,n,a=DS(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return NS(IS(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!0}),NS(IS(e),"id",Cl("recharts-area-")),NS(IS(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),_o(t)&&t()})),NS(IS(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),_o(t)&&t()})),e}return t=c,r=[{key:"renderDots",value:function(e,t,r){var n=this.props.isAnimationActive,a=this.state.isAnimationFinished;if(n&&!a)return null;var i=this.props,s=i.dot,l=i.points,h=i.dataKey,v=ih(this.props),p=ih(s,!0),u=l.map((function(e,t){var r=kS(kS(kS({key:"dot-".concat(t),r:3},v),p),{},{dataKey:h,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return c.renderDotItem(s,r)})),g={clipPath:e?"url(#clipPath-".concat(t?"":"dots-").concat(r,")"):null};return o.createElement(_h,zS({className:"recharts-area-dots"},g),u)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,r=t.baseLine,n=t.points,a=t.strokeWidth,c=n[0].x,i=n[n.length-1].x,s=e*Math.abs(c-i),l=bP(n.map((function(e){return e.y||0})));return Pl(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(bP(r.map((function(e){return e.y||0}))),l)),Pl(l)?o.createElement("rect",{x:c<i?c:c-s,y:0,width:s,height:Math.floor(l+(a?parseInt("".concat(a),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,r=t.baseLine,n=t.points,a=t.strokeWidth,c=n[0].y,i=n[n.length-1].y,s=e*Math.abs(c-i),l=bP(n.map((function(e){return e.x||0})));return Pl(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(bP(r.map((function(e){return e.x||0}))),l)),Pl(l)?o.createElement("rect",{x:0,y:c<i?c:c-s,width:l+(a?parseInt("".concat(a),10):1),height:Math.floor(s)}):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 a=this.props,c=a.layout,i=a.type,s=a.stroke,l=a.connectNulls,h=a.isRange;a.ref;var v=LS(a,CS);return o.createElement(_h,{clipPath:r?"url(#clipPath-".concat(n,")"):null},o.createElement(DC,zS({},ih(v,!0),{points:e,connectNulls:l,type:i,baseLine:t,layout:c,stroke:"none",className:"recharts-area-area"})),"none"!==s&&o.createElement(DC,zS({},ih(this.props),{className:"recharts-area-curve",layout:c,type:i,connectNulls:l,fill:"none",points:e})),"none"!==s&&h&&o.createElement(DC,zS({},ih(this.props),{className:"recharts-area-curve",layout:c,type:i,connectNulls:l,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var r=this,n=this.props,a=n.points,c=n.baseLine,i=n.isAnimationActive,s=n.animationBegin,l=n.animationDuration,h=n.animationEasing,v=n.animationId,p=this.state,u=p.prevPoints,g=p.prevBaseLine;return o.createElement(ib,{begin:s,duration:l,isActive:i,easing:h,from:{t:0},to:{t:1},key:"area-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t;if(u){var s,l=u.length/a.length,h=a.map((function(e,t){var r=Math.floor(t*l);if(u[r]){var n=u[r],a=zl(n.x,e.x),c=zl(n.y,e.y);return kS(kS({},e),{},{x:a(i),y:c(i)})}return e}));return s=Pl(c)&&"number"==typeof c?zl(g,c)(i):ll(c)||Ml(c)?zl(g,0)(i):c.map((function(e,t){var r=Math.floor(t*l);if(g[r]){var n=g[r],a=zl(n.x,e.x),c=zl(n.y,e.y);return kS(kS({},e),{},{x:a(i),y:c(i)})}return e})),r.renderAreaStatically(h,s,e,t)}return o.createElement(_h,null,o.createElement("defs",null,o.createElement("clipPath",{id:"animationClipPath-".concat(t)},r.renderClipRect(i))),o.createElement(_h,{clipPath:"url(#animationClipPath-".concat(t,")")},r.renderAreaStatically(a,c,e,t)))}))}},{key:"renderArea",value:function(e,t){var r=this.props,n=r.points,a=r.baseLine,c=r.isAnimationActive,i=this.state,o=i.prevPoints,s=i.prevBaseLine,l=i.totalLength;return c&&n&&n.length&&(!o&&l>0||!kP(o,n)||!kP(s,a))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(n,a,e,t)}},{key:"render",value:function(){var e,t=this.props,r=t.hide,n=t.dot,a=t.points,c=t.className,i=t.top,s=t.left,l=t.xAxis,h=t.yAxis,v=t.width,p=t.height,u=t.isAnimationActive,g=t.id;if(r||!a||!a.length)return null;var m=this.state.isAnimationFinished,d=1===a.length,f=Ri("recharts-area",c),_=l&&l.allowDataOverflow,w=h&&h.allowDataOverflow,b=_||w,y=ll(g)?this.id:g,x=null!==(e=ih(n))&&void 0!==e?e:{r:3,strokeWidth:2},Z=x.r,O=void 0===Z?3:Z,M=x.strokeWidth,E=void 0===M?2:M,H=(ah(n)?n:{}).clipDot,P=void 0===H||H,j=2*O+E;return o.createElement(_h,{className:f},_||w?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(y)},o.createElement("rect",{x:_?s:s-v/2,y:w?i:i-p/2,width:_?v:2*v,height:w?p:2*p})),!P&&o.createElement("clipPath",{id:"clipPath-dots-".concat(y)},o.createElement("rect",{x:s-j/2,y:i-j/2,width:v+j,height:p+j}))):null,d?null:this.renderArea(b,y),(n||d)&&this.renderDots(b,P,y),(!u||m)&&wC.renderCallByParent(this.props,a))}}],n=[{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}}],r&&SS(t.prototype,r),n&&SS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();VS=QS,NS(QS,"displayName","Area"),NS(QS,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!by.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),NS(QS,"getBaseValue",(function(e,t,r,n){var a=e.layout,c=e.baseValue,i=t.props.baseValue,o=null!=i?i:c;if(Pl(o)&&"number"==typeof o)return o;var s="horizontal"===a?n:r,l=s.scale.domain();if("number"===s.type){var h=Math.max(l[0],l[1]),v=Math.min(l[0],l[1]);return"dataMin"===o?v:"dataMax"===o||h<0?h:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===o?l[0]:"dataMax"===o?l[1]:l[0]})),NS(QS,"getComposedData",(function(e){var t,r=e.props,n=e.item,a=e.xAxis,c=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,h=e.stackedData,v=e.dataStartIndex,p=e.displayedData,u=e.offset,g=r.layout,m=h&&h.length,d=VS.getBaseValue(r,n,a,c),f="horizontal"===g,_=!1,w=p.map((function(e,t){var r;m?r=h[v+t]:(r=rV(e,l),Array.isArray(r)?_=!0:r=[d,r]);var n=null==r[1]||m&&null==rV(e,l);return f?{x:bV({axis:a,ticks:i,bandSize:s,entry:e,index:t}),y:n?null:c.scale(r[1]),value:r,payload:e}:{x:n?null:a.scale(r[1]),y:bV({axis:c,ticks:o,bandSize:s,entry:e,index:t}),value:r,payload:e}}));return t=m||_?w.map((function(e){var t=Array.isArray(e.value)?e.value[0]:null;return f?{x:e.x,y:null!=t&&null!=e.y?c.scale(t):null}:{x:null!=t?a.scale(t):null,y:e.y}})):f?c.scale(d):a.scale(d),kS({points:w,baseLine:t,layout:g,isRange:_},u)})),NS(QS,"renderDotItem",(function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(iA,zS({},t,{className:"recharts-area-dot"}))}));var $S=function(){return null};$S.displayName="ZAxis",$S.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var YS=["option","isActive"];function US(){return US=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},US.apply(this,arguments)}function WS(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function XS(e){var t=e.option,r=e.isActive,n=WS(e,YS);return"string"==typeof t?o.createElement(AL,US({option:o.createElement(jp,US({type:t},n)),isActive:r,shapeType:"symbols"},n)):o.createElement(AL,US({option:t,isActive:r,shapeType:"symbols"},n))}function KS(e){return KS="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},KS(e)}function qS(){return qS=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},qS.apply(this,arguments)}function GS(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?GS(Object(r),!0).forEach((function(t){cR(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GS(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function eR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iR(n.key),n)}}function tR(e,t){return tR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tR(e,t)}function rR(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=aR(e);if(t){var a=aR(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===KS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nR(e)}(this,r)}}function nR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aR(e){return aR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aR(e)}function cR(e,t,r){return(t=iR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iR(e){var t=function(e,t){if("object"!==KS(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==KS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===KS(t)?t:String(t)}var oR=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&&tR(e,t)}(c,Z);var t,r,n,a=rR(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return cR(nR(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!1}),cR(nR(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0})})),cR(nR(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1})})),cR(nR(e),"id",Cl("recharts-scatter-")),e}return t=c,r=[{key:"renderSymbolsStatically",value:function(e){var t=this,r=this.props,n=r.shape,a=r.activeShape,c=r.activeIndex,i=ih(this.props);return e.map((function(e,r){var s=c===r,l=s?a:n,h=JS(JS({key:"symbol-".concat(r)},i),e);return o.createElement(_h,qS({className:"recharts-scatter-symbol"},Fl(t.props,e,r),{key:"symbol-".concat(null==e?void 0:e.cx,"-").concat(null==e?void 0:e.cy,"-").concat(null==e?void 0:e.size),role:"img"}),o.createElement(XS,qS({option:l,isActive:s},h)))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,t=this.props,r=t.points,n=t.isAnimationActive,a=t.animationBegin,c=t.animationDuration,i=t.animationEasing,s=t.animationId,l=this.state.prevPoints;return o.createElement(ib,{begin:a,duration:c,isActive:n,easing:i,from:{t:0},to:{t:1},key:"pie-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var n=t.t,a=r.map((function(e,t){var r=l&&l[t];if(r){var a=zl(r.cx,e.cx),c=zl(r.cy,e.cy),i=zl(r.size,e.size);return JS(JS({},e),{},{cx:a(n),cy:c(n),size:i(n)})}var o=zl(0,e.size);return JS(JS({},e),{},{size:o(n)})}));return o.createElement(_h,null,e.renderSymbolsStatically(a))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,r=e.isAnimationActive,n=this.state.prevPoints;return!(r&&t&&t.length)||n&&kP(n,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,r=e.xAxis,n=e.yAxis,a=Jl(e.children,Qj);return a?a.map((function(e,a){var c=e.props,i=c.direction,s=c.dataKey;return o.cloneElement(e,{key:"".concat(i,"-").concat(s,"-").concat(t[a]),data:t,xAxis:r,yAxis:n,layout:"x"===i?"vertical":"horizontal",dataPointFormatter:function(e,t){return{x:e.cx,y:e.cy,value:"x"===i?+e.node.x:+e.node.y,errorVal:rV(e,t)}}})})):null}},{key:"renderLine",value:function(){var e,t,r=this.props,n=r.points,a=r.line,c=r.lineType,i=r.lineJointType,s=ih(this.props),l=ih(a);if("joint"===c)e=n.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===c){var h=function(e){if(!e||!e.length)return null;for(var t=e.length,r=0,n=0,a=0,c=0,i=1/0,o=-1/0,s=0,l=0,h=0;h<t;h++)r+=s=e[h].cx||0,n+=l=e[h].cy||0,a+=s*l,c+=s*s,i=Math.min(i,s),o=Math.max(o,s);var v=t*c!=r*r?(t*a-r*n)/(t*c-r*r):0;return{xmin:i,xmax:o,a:v,b:(n-v*r)/t}}(n),v=h.xmin,p=h.xmax,u=h.a,g=h.b,m=function(e){return u*e+g};e=[{x:v,y:m(v)},{x:p,y:m(p)}]}var d=JS(JS(JS({},s),{},{fill:"none",stroke:s&&s.fill},l),{},{points:e});return t=o.isValidElement(a)?o.cloneElement(a,d):_o(a)?a(d):o.createElement(DC,qS({},d,{type:i})),o.createElement(_h,{className:"recharts-scatter-line",key:"recharts-scatter-line"},t)}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.points,n=e.line,a=e.className,c=e.xAxis,i=e.yAxis,s=e.left,l=e.top,h=e.width,v=e.height,p=e.id,u=e.isAnimationActive;if(t||!r||!r.length)return null;var g=this.state.isAnimationFinished,m=Ri("recharts-scatter",a),d=c&&c.allowDataOverflow,f=i&&i.allowDataOverflow,_=d||f,w=ll(p)?this.id:p;return o.createElement(_h,{className:m,clipPath:_?"url(#clipPath-".concat(w,")"):null},d||f?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(w)},o.createElement("rect",{x:d?s:s-h/2,y:f?l:l-v/2,width:d?h:2*h,height:f?v:2*v}))):null,n&&this.renderLine(),this.renderErrorBar(),o.createElement(_h,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!u||g)&&wC.renderCallByParent(this.props,r))}}],n=[{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}}],r&&eR(t.prototype,r),n&&eR(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();cR(oR,"displayName","Scatter"),cR(oR,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!by.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),cR(oR,"getComposedData",(function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,a=e.item,c=e.displayedData,i=e.xAxisTicks,o=e.yAxisTicks,s=e.offset,l=a.props.tooltipType,h=Jl(a.props.children,ix),v=ll(t.dataKey)?a.props.dataKey:t.dataKey,p=ll(r.dataKey)?a.props.dataKey:r.dataKey,u=n&&n.dataKey,g=n?n.range:$S.defaultProps.range,m=g&&g[0],d=t.scale.bandwidth?t.scale.bandwidth():0,f=r.scale.bandwidth?r.scale.bandwidth():0,_=c.map((function(e,c){var s=rV(e,v),g=rV(e,p),_=!ll(u)&&rV(e,u)||"-",w=[{name:ll(t.dataKey)?a.props.name:t.name||t.dataKey,unit:t.unit||"",value:s,payload:e,dataKey:v,type:l},{name:ll(r.dataKey)?a.props.name:r.name||r.dataKey,unit:r.unit||"",value:g,payload:e,dataKey:p,type:l}];"-"!==_&&w.push({name:n.name||n.dataKey,unit:n.unit||"",value:_,payload:e,dataKey:u,type:l});var b=bV({axis:t,ticks:i,bandSize:d,entry:e,index:c,dataKey:v}),y=bV({axis:r,ticks:o,bandSize:f,entry:e,index:c,dataKey:p}),x="-"!==_?n.scale(_):m,Z=Math.sqrt(Math.max(x,0)/Math.PI);return JS(JS({},e),{},{cx:b,cy:y,x:b-Z,y:y-Z,xAxis:t,yAxis:r,zAxis:n,width:2*Z,height:2*Z,size:x,node:{x:s,y:g,z:_},tooltipPayload:w,tooltipPosition:{x:b,y:y},payload:e},h&&h[c]&&h[c].props)}));return JS({points:_},s)}));var sR=function(){return null};sR.displayName="XAxis",sR.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 lR=function(){return null};lR.displayName="YAxis",lR.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 hR=vd,vR=Og,pR=Pg;var uR=function(e){return function(t,r,n){var a=Object(t);if(!vR(t)){var c=hR(r);t=pR(t),r=function(e){return c(a[e],e,a)}}var i=e(t,r,n);return i>-1?a[c?t[i]:i]:void 0}},gR=Dz;var mR=pd,dR=vd,fR=function(e){var t=gR(e),r=t%1;return t==t?r?t-r:t:0},_R=Math.max;var wR=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:fR(r);return a<0&&(a=_R(n+a,0)),mR(e,dR(t),a)},bR=zt(uR(wR)),yR="production"===process.env.NODE_ENV,xR="Invariant failed";function ZR(e,t){if(!e){if(yR)throw new Error(xR);var r="function"==typeof t?t():t,n=r?"".concat(xR,": ").concat(r):xR;throw new Error(n)}}function OR(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,c=e.endAngle;return{points:[RV(t,r,n,a),RV(t,r,n,c)],cx:t,cy:r,radius:n,startAngle:a,endAngle:c}}function MR(e){return function(e){if(Array.isArray(e))return ER(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 ER(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 ER(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 ER(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 HR=function(e,t,r,n,a){var c=Jl(e,wk),i=Jl(e,Mk),o=[].concat(MR(c),MR(i)),s=Jl(e,Ck),l="".concat(n,"Id"),h=n[0],v=t;if(o.length&&(v=o.reduce((function(e,t){if(t.props[l]===r&&dB(t.props,"extendDomain")&&Pl(t.props[h])){var n=t.props[h];return[Math.min(e[0],n),Math.max(e[1],n)]}return e}),v)),s.length){var p="".concat(h,"1"),u="".concat(h,"2");v=s.reduce((function(e,t){if(t.props[l]===r&&dB(t.props,"extendDomain")&&Pl(t.props[p])&&Pl(t.props[u])){var n=t.props[p],a=t.props[u];return[Math.min(e[0],n,a),Math.max(e[1],n,a)]}return e}),v)}return a&&a.length&&(v=a.reduce((function(e,t){return Pl(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),v)),v},PR={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function a(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function c(e,t,n,c,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");var o=new a(n,c||e,i),s=r?r+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],o]:e._events[s].push(o):(e._events[s]=o,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function o(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),o.prototype.eventNames=function(){var e,n,a=[];if(0===this._eventsCount)return a;for(n in e=this._events)t.call(e,n)&&a.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},o.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 a=0,c=n.length,i=new Array(c);a<c;a++)i[a]=n[a].fn;return i},o.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},o.prototype.emit=function(e,t,n,a,c,i){var o=r?r+e:e;if(!this._events[o])return!1;var s,l,h=this._events[o],v=arguments.length;if(h.fn){switch(h.once&&this.removeListener(e,h.fn,void 0,!0),v){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,t),!0;case 3:return h.fn.call(h.context,t,n),!0;case 4:return h.fn.call(h.context,t,n,a),!0;case 5:return h.fn.call(h.context,t,n,a,c),!0;case 6:return h.fn.call(h.context,t,n,a,c,i),!0}for(l=1,s=new Array(v-1);l<v;l++)s[l-1]=arguments[l];h.fn.apply(h.context,s)}else{var p,u=h.length;for(l=0;l<u;l++)switch(h[l].once&&this.removeListener(e,h[l].fn,void 0,!0),v){case 1:h[l].fn.call(h[l].context);break;case 2:h[l].fn.call(h[l].context,t);break;case 3:h[l].fn.call(h[l].context,t,n);break;case 4:h[l].fn.call(h[l].context,t,n,a);break;default:if(!s)for(p=1,s=new Array(v-1);p<v;p++)s[p-1]=arguments[p];h[l].fn.apply(h[l].context,s)}}return!0},o.prototype.on=function(e,t,r){return c(this,e,t,r,!1)},o.prototype.once=function(e,t,r){return c(this,e,t,r,!0)},o.prototype.removeListener=function(e,t,n,a){var c=r?r+e:e;if(!this._events[c])return this;if(!t)return i(this,c),this;var o=this._events[c];if(o.fn)o.fn!==t||a&&!o.once||n&&o.context!==n||i(this,c);else{for(var s=0,l=[],h=o.length;s<h;s++)(o[s].fn!==t||a&&!o[s].once||n&&o[s].context!==n)&&l.push(o[s]);l.length?this._events[c]=1===l.length?l[0]:l:i(this,c)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&i(this,t)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,e.exports=o}(PR);var jR=new(zt(PR.exports)),VR="recharts.syncMouseEvents";function CR(e){return CR="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},CR(e)}function AR(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,zR(n.key),n)}}function LR(e,t,r){return(t=zR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zR(e){var t=function(e,t){if("object"!==CR(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==CR(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CR(t)?t:String(t)}var BR=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),LR(this,"activeIndex",0),LR(this,"coordinateList",[]),LR(this,"layout","horizontal")}var t,r,n;return t=e,r=[{key:"setDetails",value:function(e){var t=e.coordinateList,r=void 0===t?[]:t,n=e.container,a=void 0===n?null:n,c=e.layout,i=void 0===c?null:c,o=e.offset,s=void 0===o?null:o,l=e.mouseHandlerCallback,h=void 0===l?null:l;this.coordinateList=null!=r?r:this.coordinateList,this.container=null!=a?a:this.container,this.layout=null!=i?i:this.layout,this.offset=null!=s?s:this.offset,this.mouseHandlerCallback=null!=h?h:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(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:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,a=r.y,c=r.height,i=this.coordinateList[this.activeIndex].coordinate,o=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,s=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,l=n+i+o,h=a+this.offset.top+c/2+s;this.mouseHandlerCallback({pageX:l,pageY:h})}}}],r&&AR(t.prototype,r),n&&AR(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function kR(e,t,r){var n,a,c,i;if("horizontal"===e)c=n=t.x,a=r.top,i=r.top+r.height;else if("vertical"===e)i=a=t.y,n=r.left,c=r.left+r.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return OR(t);var o=t.cx,s=t.cy,l=t.innerRadius,h=t.outerRadius,v=t.angle,p=RV(o,s,l,v),u=RV(o,s,h,v);n=p.x,a=p.y,c=u.x,i=u.y}return[{x:n,y:a},{x:c,y:i}]}var SR=["item"],RR=["children","className","width","height","style","compact","title","desc"];function DR(e){return DR="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},DR(e)}function IR(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||XR(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 TR(){return TR=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},TR.apply(this,arguments)}function NR(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function FR(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,eD(n.key),n)}}function QR(e,t){return QR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QR(e,t)}function $R(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=UR(e);if(t){var a=UR(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===DR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YR(e)}(this,r)}}function YR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UR(e){return UR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},UR(e)}function WR(e){return function(e){if(Array.isArray(e))return KR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||XR(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 XR(e,t){if(e){if("string"==typeof e)return KR(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)?KR(e,t):void 0}}function KR(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 qR(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 GR(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qR(Object(r),!0).forEach((function(t){JR(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qR(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function JR(e,t,r){return(t=eD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eD(e){var t=function(e,t){if("object"!==DR(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==DR(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DR(t)?t:String(t)}var tD={xAxis:["bottom","top"],yAxis:["left","right"]},rD={width:"100%",height:"100%"},nD={x:0,y:0},aD=function(e,t){var r=t.graphicalItems,n=t.dataStartIndex,a=t.dataEndIndex,c=(null!=r?r:[]).reduce((function(e,t){var r=t.props.data;return r&&r.length?[].concat(WR(e),WR(r)):e}),[]);return c.length>0?c:e&&e.length&&Pl(n)&&Pl(a)?e.slice(n,a+1):[]};function cD(e){return"number"===e?[0,"auto"]:void 0}var iD=function(e,t,r,n){var a=e.graphicalItems,c=e.tooltipAxis,i=aD(t,e);return r<0||!a||!a.length||r>=i.length?null:a.reduce((function(a,o){var s;if(o.props.hide)return a;var l,h=null!==(s=o.props.data)&&void 0!==s?s:t;(h&&e.dataStartIndex+e.dataEndIndex!==0&&(h=h.slice(e.dataStartIndex,e.dataEndIndex+1)),c.dataKey&&!c.allowDuplicatedCategory)?l=Bl(void 0===h?i:h,c.dataKey,n):l=h&&h[r]||i[r];return l?[].concat(WR(a),[jV(o,l)]):a}),[])},oD=function(e,t,r,n){var a=n||{x:e.chartX,y:e.chartY},c=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(a,r),i=e.orderedTooltipTicks,o=e.tooltipAxis,s=e.tooltipTicks,l=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,c=-1,i=null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0;if(i<=1)return 0;if(a&&"angleAxis"===a.axisType&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var o=a.range,s=0;s<i;s++){var l=s>0?n[s-1].coordinate:n[i-1].coordinate,h=n[s].coordinate,v=s>=i-1?n[0].coordinate:n[s+1].coordinate,p=void 0;if(El(h-l)!==El(v-h)){var u=[];if(El(v-h)===El(o[1]-o[0])){p=v;var g=h+o[1]-o[0];u[0]=Math.min(g,(g+l)/2),u[1]=Math.max(g,(g+l)/2)}else{p=l;var m=v+o[1]-o[0];u[0]=Math.min(h,(m+h)/2),u[1]=Math.max(h,(m+h)/2)}var d=[Math.min(h,(p+h)/2),Math.max(h,(p+h)/2)];if(e>d[0]&&e<=d[1]||e>=u[0]&&e<=u[1]){c=n[s].index;break}}else{var f=Math.min(l,v),_=Math.max(l,v);if(e>(f+h)/2&&e<=(_+h)/2){c=n[s].index;break}}}else for(var w=0;w<i;w++)if(0===w&&e<=(r[w].coordinate+r[w+1].coordinate)/2||w>0&&w<i-1&&e>(r[w].coordinate+r[w-1].coordinate)/2&&e<=(r[w].coordinate+r[w+1].coordinate)/2||w===i-1&&e>(r[w].coordinate+r[w-1].coordinate)/2){c=r[w].index;break}return c}(c,i,s,o);if(l>=0&&s){var h=s[l]&&s[l].value,v=iD(e,t,l,h),p=function(e,t,r,n){var a=t.find((function(e){return e&&e.index===r}));if(a){if("horizontal"===e)return{x:a.coordinate,y:n.y};if("vertical"===e)return{x:n.x,y:a.coordinate};if("centric"===e){var c=a.coordinate,i=n.radius;return GR(GR(GR({},n),RV(n.cx,n.cy,i,c)),{},{angle:c,radius:i})}var o=a.coordinate,s=n.angle;return GR(GR(GR({},n),RV(n.cx,n.cy,o,s)),{},{angle:s,radius:o})}return nD}(r,i,l,a);return{activeTooltipIndex:l,activeLabel:h,activePayload:v,activeCoordinate:p}}return null},sD=function(e,t){var r=t.axes,n=t.graphicalItems,a=t.axisType,c=t.axisIdKey,i=t.stackGroups,o=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,h=e.children,v=e.stackOffset,p=oV(l,a);return r.reduce((function(t,r){var u,g=r.props,m=g.type,d=g.dataKey,f=g.allowDataOverflow,_=g.allowDuplicatedCategory,w=g.scale,b=g.ticks,y=g.includeHidden,x=r.props[c];if(t[x])return t;var Z,O,M,E=aD(e.data,{graphicalItems:n.filter((function(e){return e.props[c]===x})),dataStartIndex:o,dataEndIndex:s}),H=E.length;(function(e,t,r){if("number"===r&&!0===t&&Array.isArray(e)){var n=null==e?void 0:e[0],a=null==e?void 0:e[1];if(n&&a&&Pl(n)&&Pl(a))return!0}return!1})(r.props.domain,f,m)&&(Z=EV(r.props.domain,null,f),!p||"number"!==m&&"auto"===w||(M=nV(E,d,"category")));var P=cD(m);if(!Z||0===Z.length){var j,V=null!==(j=r.props.domain)&&void 0!==j?j:P;if(d){if(Z=nV(E,d,m),"category"===m&&p){var C=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}(Z);_&&C?(O=Z,Z=Qz(0,H)):_||(Z=PV(V,Z,r).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(WR(e),[t])}),[]))}else if("category"===m)Z=_?Z.filter((function(e){return""!==e&&!ll(e)})):PV(V,Z,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||ll(t)?e:[].concat(WR(e),[t])}),[]);else if("number"===m){var A=function(e,t,r,n,a){var c=t.map((function(t){return cV(e,t,r,a,n)})).filter((function(e){return!ll(e)}));return c&&c.length?c.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(E,n.filter((function(e){return e.props[c]===x&&(y||!e.props.hide)})),d,a,l);A&&(Z=A)}!p||"number"!==m&&"auto"===w||(M=nV(E,d,"category"))}else Z=p?Qz(0,H):i&&i[x]&&i[x].hasStack&&"number"===m?"expand"===v?[0,1]:ZV(i[x].stackGroups,o,s):iV(E,n.filter((function(e){return e.props[c]===x&&(y||!e.props.hide)})),m,l,!0);if("number"===m)Z=HR(h,Z,x,a,b),V&&(Z=EV(V,Z,f));else if("category"===m&&V){var L=V;Z.every((function(e){return L.indexOf(e)>=0}))&&(Z=L)}}return GR(GR({},t),{},JR({},x,GR(GR({},r.props),{},{axisType:a,domain:Z,categoricalDomain:M,duplicateDomain:O,originalDomain:null!==(u=r.props.domain)&&void 0!==u?u:P,isCategorical:p,layout:l})))}),{})},lD=function(e,t){var r=t.axisType,n=void 0===r?"xAxis":r,a=t.AxisComp,c=t.graphicalItems,i=t.stackGroups,o=t.dataStartIndex,s=t.dataEndIndex,l=e.children,h="".concat(n,"Id"),v=Jl(l,a),p={};return v&&v.length?p=sD(e,{axes:v,graphicalItems:c,axisType:n,axisIdKey:h,stackGroups:i,dataStartIndex:o,dataEndIndex:s}):c&&c.length&&(p=function(e,t){var r=t.graphicalItems,n=t.Axis,a=t.axisType,c=t.axisIdKey,i=t.stackGroups,o=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,h=e.children,v=aD(e.data,{graphicalItems:r,dataStartIndex:o,dataEndIndex:s}),p=v.length,u=oV(l,a),g=-1;return r.reduce((function(e,t){var m,d=t.props[c],f=cD("number");return e[d]?e:(g++,u?m=Qz(0,p):i&&i[d]&&i[d].hasStack?(m=ZV(i[d].stackGroups,o,s),m=HR(h,m,d,a)):(m=EV(f,iV(v,r.filter((function(e){return e.props[c]===d&&!e.props.hide})),"number",l),n.defaultProps.allowDataOverflow),m=HR(h,m,d,a)),GR(GR({},e),{},JR({},d,GR(GR({axisType:a},n.defaultProps),{},{hide:!0,orientation:sl(tD,"".concat(a,".").concat(g%2),null),domain:m,originalDomain:f,isCategorical:u,layout:l}))))}),{})}(e,{Axis:a,graphicalItems:c,axisType:n,axisIdKey:h,stackGroups:i,dataStartIndex:o,dataEndIndex:s})),p},hD=function(e){var t=e.children,r=e.defaultShowTooltip,n=eh(t,sB),a=0,c=0;return e.data&&0!==e.data.length&&(c=e.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(a=n.props.startIndex),n.props.endIndex>=0&&(c=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:c,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},vD=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"}},pD=function(e,t){var r=e.props,n=(e.graphicalItems,e.xAxisMap),a=void 0===n?{}:n,c=e.yAxisMap,i=void 0===c?{}:c,o=r.width,s=r.height,l=r.children,h=r.margin||{},v=eh(l,sB),p=eh(l,Xd),u=Object.keys(i).reduce((function(e,t){var r=i[t],n=r.orientation;return r.mirror||r.hide?e:GR(GR({},e),{},JR({},n,e[n]+r.width))}),{left:h.left||0,right:h.right||0}),g=Object.keys(a).reduce((function(e,t){var r=a[t],n=r.orientation;return r.mirror||r.hide?e:GR(GR({},e),{},JR({},n,sl(e,"".concat(n))+r.height))}),{top:h.top||0,bottom:h.bottom||0}),m=GR(GR({},g),u),d=m.bottom;v&&(m.bottom+=v.props.height||sB.defaultProps.height),p&&t&&(m=function(e,t,r,n){var a=r.children,c=r.width,i=r.margin,o=c-(i.left||0)-(i.right||0),s=Xj({children:a,legendWidth:o});if(s){var l=n||{},h=l.width,v=l.height,p=s.align,u=s.verticalAlign,g=s.layout;if(("vertical"===g||"horizontal"===g&&"middle"===u)&&"center"!==p&&Pl(e[p]))return Gj(Gj({},e),{},Jj({},p,e[p]+(h||0)));if(("horizontal"===g||"vertical"===g&&"center"===p)&&"middle"!==u&&Pl(e[u]))return Gj(Gj({},e),{},Jj({},u,e[u]+(v||0)))}return e}(m,0,r,t));var f=o-m.left-m.right,_=s-m.top-m.bottom;return GR(GR({brushBottom:d},m),{},{width:Math.max(f,0),height:Math.max(_,0)})},uD=function(e){var t,r=e.chartName,n=e.GraphicalChild,a=e.defaultTooltipEventType,c=void 0===a?"axis":a,i=e.validateTooltipEventTypes,s=void 0===i?["axis"]:i,l=e.axisComponents,h=e.legendContent,v=e.formatAxisMap,p=e.defaultProps,u=function(e,t){var r=t.graphicalItems,n=t.stackGroups,a=t.offset,c=t.updateId,i=t.dataStartIndex,o=t.dataEndIndex,s=e.barSize,h=e.layout,v=e.barGap,p=e.barCategoryGap,u=e.maxBarSize,g=vD(h),m=g.numericAxisName,d=g.cateAxisName,f=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Xl(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(r),_=f&&function(e){var t=e.barSize,r=e.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var a={},c=Object.keys(n),i=0,o=c.length;i<o;i++)for(var s=n[c[i]].stackGroups,l=Object.keys(s),h=0,v=l.length;h<v;h++){var p=s[l[h]],u=p.items,g=p.cateAxisId,m=u.filter((function(e){return Xl(e.type).indexOf("Bar")>=0}));if(m&&m.length){var d=m[0].props.barSize,f=m[0].props[g];a[f]||(a[f]=[]),a[f].push({item:m[0],stackList:m.slice(1),barSize:ll(d)?t:d})}}return a}({barSize:s,stackGroups:n}),w=[];return r.forEach((function(r,s){var g=aD(e.data,{graphicalItems:[r],dataStartIndex:i,dataEndIndex:o}),f=r.props,b=f.dataKey,y=f.maxBarSize,x=r.props["".concat(m,"Id")],Z=r.props["".concat(d,"Id")],O=l.reduce((function(e,n){var a,c,i,o=t["".concat(n.axisType,"Map")],s=r.props["".concat(n.axisType,"Id")];o&&o[s]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?ZR(!1,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(a=null==r||null===(c=r.type)||void 0===c?void 0:c.displayName)&&void 0!==a?a:"")):ZR(!1));var l=o[s];return GR(GR({},e),{},(JR(i={},n.axisType,l),JR(i,"".concat(n.axisType,"Ticks"),lV(l)),i))}),{}),M=O[d],E=O["".concat(d,"Ticks")],H=n&&n[x]&&n[x].hasStack&&function(e,t){var r=e.props.stackId;if(jl(r)){var n=t[r];if(n){var a=n.items.indexOf(e);return a>=0?n.stackedData[a]:null}}return null}(r,n[x].stackGroups),P=Xl(r.type).indexOf("Bar")>=0,j=HV(M,E),V=[];if(P){var C,A,L=ll(y)?u:y,z=null!==(C=null!==(A=HV(M,E,!0))&&void 0!==A?A:L)&&void 0!==C?C:0;V=function(e){var t=e.barGap,r=e.barCategoryGap,n=e.bandSize,a=e.sizeList,c=void 0===a?[]:a,i=e.maxBarSize,o=c.length;if(o<1)return null;var s,l=Al(t,n,0,!0),h=[];if(c[0].barSize===+c[0].barSize){var v=!1,p=n/o,u=c.reduce((function(e,t){return e+t.barSize||0}),0);(u+=(o-1)*l)>=n&&(u-=(o-1)*l,l=0),u>=n&&p>0&&(v=!0,u=o*(p*=.9));var g={offset:((n-u)/2>>0)-l,size:0};s=c.reduce((function(e,t){var r={item:t.item,position:{offset:g.offset+g.size+l,size:v?p:t.barSize}},n=[].concat(eV(e),[r]);return g=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:g})})),n}),h)}else{var m=Al(r,n,0,!0);n-2*m-(o-1)*l<=0&&(l=0);var d=(n-2*m-(o-1)*l)/o;d>1&&(d>>=0);var f=i===+i?Math.min(d,i):d;s=c.reduce((function(e,t,r){var n=[].concat(eV(e),[{item:t.item,position:{offset:m+(d+l)*r+(d-f)/2,size:f}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:n[n.length-1].position})})),n}),h)}return s}({barGap:v,barCategoryGap:p,bandSize:z!==j?z:j,sizeList:_[Z],maxBarSize:L}),z!==j&&(V=V.map((function(e){return GR(GR({},e),{},{position:GR(GR({},e.position),{},{offset:e.position.offset-z/2})})})))}var B,k=r&&r.type&&r.type.getComposedData;k&&w.push({props:GR(GR({},k(GR(GR({},O),{},{displayedData:g,props:e,dataKey:b,item:r,bandSize:j,barPosition:V,offset:a,stackedData:H,layout:h,dataStartIndex:i,dataEndIndex:o}))),{},(B={key:r.key||"item-".concat(s)},JR(B,m,O[m]),JR(B,d,O[d]),JR(B,"animationId",c),B)),childIndex:hh(r,e.children),item:r})})),w},m=function(e,t){var a=e.props,c=e.dataStartIndex,i=e.dataEndIndex,o=e.updateId;if(!th({props:a}))return null;var s=a.children,h=a.layout,p=a.stackOffset,g=a.data,m=a.reverseStackOrder,d=vD(h),f=d.numericAxisName,_=d.cateAxisName,w=Jl(s,n),b=function(e,t,r,n,a,c){if(!e)return null;var i=(c?t.reverse():t).reduce((function(e,t){var a=t.props,c=a.stackId;if(a.hide)return e;var i=t.props[r],o=e[i]||{hasStack:!1,stackGroups:{}};if(jl(c)){var s=o.stackGroups[c]||{numericAxisId:r,cateAxisId:n,items:[]};s.items.push(t),o.hasStack=!0,o.stackGroups[c]=s}else o.stackGroups[Cl("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[t]};return Gj(Gj({},e),{},Jj({},i,o))}),{});return Object.keys(i).reduce((function(t,c){var o=i[c];return o.hasStack&&(o.stackGroups=Object.keys(o.stackGroups).reduce((function(t,c){var i=o.stackGroups[c];return Gj(Gj({},t),{},Jj({},c,{numericAxisId:r,cateAxisId:n,items:i.items,stackedData:_V(e,i.items,a)}))}),{})),Gj(Gj({},t),{},Jj({},c,o))}),{})}(g,w,"".concat(f,"Id"),"".concat(_,"Id"),p,m),y=l.reduce((function(e,t){var r="".concat(t.axisType,"Map");return GR(GR({},e),{},JR({},r,lD(a,GR(GR({},t),{},{graphicalItems:w,stackGroups:t.axisType===f&&b,dataStartIndex:c,dataEndIndex:i}))))}),{}),x=pD(GR(GR({},y),{},{props:a,graphicalItems:w}),null==t?void 0:t.legendBBox);Object.keys(y).forEach((function(e){y[e]=v(a,y[e],x,e.replace("Map",""),r)}));var Z,O,M=y["".concat(_,"Map")],E=(Z=Ll(M),{tooltipTicks:O=lV(Z,!1,!0),orderedTooltipTicks:Kf(O,(function(e){return e.coordinate})),tooltipAxis:Z,tooltipAxisBandSize:HV(Z,O)}),H=u(a,GR(GR({},y),{},{dataStartIndex:c,dataEndIndex:i,updateId:o,graphicalItems:w,stackGroups:b,offset:x}));return GR(GR({formattedGraphicalItems:H,graphicalItems:w,offset:x,stackGroups:b},E),y)};return t=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&&QR(e,t)}(l,M);var t,n,a,i=$R(l);function l(e){var t,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),JR(YR(a=i.call(this,e)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),JR(YR(a),"accessibilityManager",new BR),JR(YR(a),"handleLegendBBoxUpdate",(function(e){if(e){var t=a.state,r=t.dataStartIndex,n=t.dataEndIndex,c=t.updateId;a.setState(GR({legendBBox:e},m({props:a.props,dataStartIndex:r,dataEndIndex:n,updateId:c},GR(GR({},a.state),{},{legendBBox:e}))))}})),JR(YR(a),"handleReceiveSyncEvent",(function(e,t,r){if(a.props.syncId===e){if(r===a.eventEmitterSymbol&&"function"!=typeof a.props.syncMethod)return;a.applySyncEvent(t)}})),JR(YR(a),"handleBrushChange",(function(e){var t=e.startIndex,r=e.endIndex;if(t!==a.state.dataStartIndex||r!==a.state.dataEndIndex){var n=a.state.updateId;a.setState((function(){return GR({dataStartIndex:t,dataEndIndex:r},m({props:a.props,dataStartIndex:t,dataEndIndex:r,updateId:n},a.state))})),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}})),JR(YR(a),"handleMouseEnter",(function(e){var t=a.getMouseInfo(e);if(t){var r=GR(GR({},t),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseEnter;_o(n)&&n(r,e)}})),JR(YR(a),"triggeredAfterMouseMove",(function(e){var t=a.getMouseInfo(e),r=t?GR(GR({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseMove;_o(n)&&n(r,e)})),JR(YR(a),"handleItemMouseEnter",(function(e){a.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),JR(YR(a),"handleItemMouseLeave",(function(){a.setState((function(){return{isTooltipActive:!1}}))})),JR(YR(a),"handleMouseMove",(function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)})),JR(YR(a),"handleMouseLeave",(function(e){var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var r=a.props.onMouseLeave;_o(r)&&r(t,e)})),JR(YR(a),"handleOuterEvent",(function(e){var t,r=function(e){var t=e&&e.type;return t&&Wl[t]?Wl[t]:null}(e),n=sl(a.props,"".concat(r));r&&_o(n)&&n(null!==(t=/.*touch.*/i.test(r)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))&&void 0!==t?t:{},e)})),JR(YR(a),"handleClick",(function(e){var t=a.getMouseInfo(e);if(t){var r=GR(GR({},t),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onClick;_o(n)&&n(r,e)}})),JR(YR(a),"handleMouseDown",(function(e){var t=a.props.onMouseDown;_o(t)&&t(a.getMouseInfo(e),e)})),JR(YR(a),"handleMouseUp",(function(e){var t=a.props.onMouseUp;_o(t)&&t(a.getMouseInfo(e),e)})),JR(YR(a),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),JR(YR(a),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])})),JR(YR(a),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])})),JR(YR(a),"triggerSyncEvent",(function(e){void 0!==a.props.syncId&&jR.emit(VR,a.props.syncId,e,a.eventEmitterSymbol)})),JR(YR(a),"applySyncEvent",(function(e){var t=a.props,r=t.layout,n=t.syncMethod,c=a.state.updateId,i=e.dataStartIndex,o=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)a.setState(GR({dataStartIndex:i,dataEndIndex:o},m({props:a.props,dataStartIndex:i,dataEndIndex:o,updateId:c},a.state)));else if(void 0!==e.activeTooltipIndex){var s=e.chartX,l=e.chartY,h=e.activeTooltipIndex,v=a.state,p=v.offset,u=v.tooltipTicks;if(!p)return;if("function"==typeof n)h=n(u,e);else if("value"===n){h=-1;for(var g=0;g<u.length;g++)if(u[g].value===e.activeLabel){h=g;break}}var d=GR(GR({},p),{},{x:p.left,y:p.top}),f=Math.min(s,d.x+d.width),_=Math.min(l,d.y+d.height),w=u[h]&&u[h].value,b=iD(a.state,a.props.data,h),y=u[h]?{x:"horizontal"===r?u[h].coordinate:f,y:"horizontal"===r?_:u[h].coordinate}:nD;a.setState(GR(GR({},e),{},{activeLabel:w,activeCoordinate:y,activePayload:b,activeTooltipIndex:h}))}else a.setState(e)})),JR(YR(a),"verticalCoordinatesGenerator",(function(e,t){var r=e.xAxis,n=e.width,a=e.height,c=e.offset;return sV(Rk(GR(GR(GR({},Jk.defaultProps),r),{},{ticks:lV(r,!0),viewBox:{x:0,y:0,width:n,height:a}})),c.left,c.left+c.width,t)})),JR(YR(a),"horizontalCoordinatesGenerator",(function(e,t){var r=e.yAxis,n=e.width,a=e.height,c=e.offset;return sV(Rk(GR(GR(GR({},Jk.defaultProps),r),{},{ticks:lV(r,!0),viewBox:{x:0,y:0,width:n,height:a}})),c.top,c.top+c.height,t)})),JR(YR(a),"axesTicksGenerator",(function(e){return lV(e,!0)})),JR(YR(a),"renderCursor",(function(e){var t,n=a.state,c=n.isTooltipActive,i=n.activeCoordinate,o=n.activePayload,s=n.offset,l=n.activeTooltipIndex,h=n.tooltipAxisBandSize,v=a.getTooltipEventType(),p=null!==(t=e.props.active)&&void 0!==t?t:c;if(!e||!e.props.cursor||!p||!i||"ScatterChart"!==r&&"axis"!==v)return null;var u,m=a.props.layout,d=DC;if("ScatterChart"===r)u=i,d=gA;else if("BarChart"===r)u=function(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-a:r.left+.5,y:"horizontal"===e?r.top+.5:t.y-a,width:"horizontal"===e?n:r.width-1,height:"horizontal"===e?r.height-1:n}}(m,i,s,h),d=KC;else if("radial"===m){var f=OR(i),_=f.cx,w=f.cy,x=f.radius;u={cx:_,cy:w,startAngle:f.startAngle,endAngle:f.endAngle,innerRadius:x,outerRadius:x},d=PC}else u={points:kR(m,i,s)},d=DC;var Z=e.key||"_recharts-cursor",O=GR(GR(GR(GR({stroke:"#ccc",pointerEvents:"none"},s),u),ih(e.props.cursor)),{},{payload:o,payloadIndex:l,key:Z,className:"recharts-tooltip-cursor"});return y(e.props.cursor)?g(e.props.cursor,O):b(d,O)})),JR(YR(a),"renderPolarAxis",(function(e,t,r){var n=sl(e,"type.axisType"),c=sl(a.state,"".concat(n,"Map")),i=c&&c[e.props["".concat(n,"Id")]];return g(e,GR(GR({},i),{},{className:n,key:e.key||"".concat(t,"-").concat(r),ticks:lV(i,!0)}))})),JR(YR(a),"renderXAxis",(function(e,t,r){var n=a.state.xAxisMap[e.props.xAxisId];return a.renderAxis(n,e,t,r)})),JR(YR(a),"renderYAxis",(function(e,t,r){var n=a.state.yAxisMap[e.props.yAxisId];return a.renderAxis(n,e,t,r)})),JR(YR(a),"renderGrid",(function(e){var t=a.state,r=t.xAxisMap,n=t.yAxisMap,c=t.offset,i=a.props,o=i.width,s=i.height,l=Ll(r),h=bR(n,(function(e){return CB(e.domain,Number.isFinite)}))||Ll(n),v=e.props||{};return g(e,{key:e.key||"grid",x:Pl(v.x)?v.x:c.left,y:Pl(v.y)?v.y:c.top,width:Pl(v.width)?v.width:c.width,height:Pl(v.height)?v.height:c.height,xAxis:l,yAxis:h,offset:c,chartWidth:o,chartHeight:s,verticalCoordinatesGenerator:v.verticalCoordinatesGenerator||a.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:v.horizontalCoordinatesGenerator||a.horizontalCoordinatesGenerator})})),JR(YR(a),"renderPolarGrid",(function(e){var t=e.props,r=t.radialLines,n=t.polarAngles,c=t.polarRadius,i=a.state,o=i.radiusAxisMap,s=i.angleAxisMap,l=Ll(o),h=Ll(s),v=h.cx,p=h.cy,u=h.innerRadius,m=h.outerRadius;return g(e,{polarAngles:Array.isArray(n)?n:lV(h,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(c)?c:lV(l,!0).map((function(e){return e.coordinate})),cx:v,cy:p,innerRadius:u,outerRadius:m,key:e.key||"polar-grid",radialLines:r})})),JR(YR(a),"renderLegend",(function(){var e=a.state.formattedGraphicalItems,t=a.props,r=t.children,n=t.width,c=t.height,i=a.props.margin||{},o=n-(i.left||0)-(i.right||0),s=Xj({children:r,formattedGraphicalItems:e,legendWidth:o,legendContent:h});if(!s)return null;var l=s.item,v=NR(s,SR);return g(l,GR(GR({},v),{},{chartWidth:n,chartHeight:c,margin:i,onBBoxUpdate:a.handleLegendBBoxUpdate}))})),JR(YR(a),"renderTooltip",(function(){var e,t=eh(a.props.children,Cy);if(!t)return null;var r=a.state,n=r.isTooltipActive,c=r.activeCoordinate,i=r.activePayload,o=r.activeLabel,s=r.offset,l=null!==(e=t.props.active)&&void 0!==e?e:n;return g(t,{viewBox:GR(GR({},s),{},{x:s.left,y:s.top}),active:l,label:o,payload:l?i:[],coordinate:c})})),JR(YR(a),"renderBrush",(function(e){var t=a.props,r=t.margin,n=t.data,c=a.state,i=c.offset,o=c.dataStartIndex,s=c.dataEndIndex,l=c.updateId;return g(e,{key:e.key||"_recharts-brush",onChange:vV(a.handleBrushChange,e.props.onChange),data:n,x:Pl(e.props.x)?e.props.x:i.left,y:Pl(e.props.y)?e.props.y:i.top+i.height+i.brushBottom-(r.bottom||0),width:Pl(e.props.width)?e.props.width:i.width,startIndex:o,endIndex:s,updateId:"brush-".concat(l)})})),JR(YR(a),"renderReferenceElement",(function(e,t,r){if(!e)return null;var n=YR(a).clipPathId,c=a.state,i=c.xAxisMap,o=c.yAxisMap,s=c.offset,l=e.props,h=l.xAxisId,v=l.yAxisId;return g(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:i[h],yAxis:o[v],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:n})})),JR(YR(a),"renderActivePoints",(function(e){var t=e.item,r=e.activePoint,n=e.basePoint,a=e.childIndex,c=e.isRange,i=[],o=t.props.key,s=t.item.props,h=s.activeDot,v=GR(GR({index:a,dataKey:s.dataKey,cx:r.x,cy:r.y,r:4,fill:aV(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(o,"-activePoint-").concat(a)},ih(h)),Nl(h));return i.push(l.renderActiveDot(h,v)),n?i.push(l.renderActiveDot(h,GR(GR({},v),{},{cx:n.x,cy:n.y,key:"".concat(o,"-basePoint-").concat(a)}))):c&&i.push(null),i})),JR(YR(a),"renderGraphicChild",(function(e,t,r){var n=a.filterFormatItem(e,t,r);if(!n)return null;var c=a.getTooltipEventType(),i=a.state,o=i.isTooltipActive,s=i.tooltipAxis,l=i.activeTooltipIndex,h=i.activeLabel,v=eh(a.props.children,Cy),p=n.props,u=p.points,m=p.isRange,d=p.baseLine,f=n.item.props,_=f.activeDot,w=f.hide,b=f.activeBar,y=f.activeShape,x=Boolean(!w&&o&&v&&(_||b||y)),Z={};"axis"!==c&&v&&"click"===v.props.trigger?Z={onClick:vV(a.handleItemMouseEnter,e.props.onClick)}:"axis"!==c&&(Z={onMouseLeave:vV(a.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:vV(a.handleItemMouseEnter,e.props.onMouseEnter)});var O=g(e,GR(GR({},n.props),Z));if(x){if(!(l>=0)){var M,E=(null!==(M=a.getItemByXY(a.state.activeCoordinate))&&void 0!==M?M:{graphicalItem:O}).graphicalItem,H=E.item,P=void 0===H?e:H,j=E.childIndex,V=GR(GR(GR({},n.props),Z),{},{activeIndex:j});return[g(P,V),null,null]}var C,A;if(s.dataKey&&!s.allowDuplicatedCategory){var L="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());C=Bl(u,L,h),A=m&&d&&Bl(d,L,h)}else C=null==u?void 0:u[l],A=m&&d&&d[l];if(y||b){var z=void 0!==e.props.activeIndex?e.props.activeIndex:l;return[g(e,GR(GR(GR({},n.props),Z),{},{activeIndex:z})),null,null]}if(!ll(C))return[O].concat(WR(a.renderActivePoints({item:n,activePoint:C,basePoint:A,childIndex:l,isRange:m})))}return m?[O,null,null]:[O,null]})),JR(YR(a),"renderCustomized",(function(e,t,r){return g(e,GR(GR({key:"recharts-customized-".concat(r)},a.props),a.state))})),JR(YR(a),"renderMap",{CartesianGrid:{handler:a.renderGrid,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:a.renderReferenceElement},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:a.renderXAxis},YAxis:{handler:a.renderYAxis},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(t=e.id)&&void 0!==t?t:Cl("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=Gy(a.triggeredAfterMouseMove,null!==(n=e.throttleDelay)&&void 0!==n?n:1e3/60),a.state={},a}return t=l,n=[{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})}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(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}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=eh(this.props.children,Cy);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return s.indexOf(t)>=0?t:c}return c}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,r=this.container,n=r.getBoundingClientRect(),a={top:(t=n).top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft},c={chartX:Math.round(e.pageX-a.left),chartY:Math.round(e.pageY-a.top)},i=n.width/r.offsetWidth||1,o=this.inRange(c.chartX,c.chartY,i);if(!o)return null;var s=this.state,l=s.xAxisMap,h=s.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&h){var v=Ll(l).scale,p=Ll(h).scale,u=v&&v.invert?v.invert(c.chartX):null,g=p&&p.invert?p.invert(c.chartY):null;return GR(GR({},c),{},{xValue:u,yValue:g})}var m=oD(this.state,this.props.data,this.props.layout,o);return m?GR(GR({},c),m):null}},{key:"inRange",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,a=e/r,c=t/r;if("horizontal"===n||"vertical"===n){var i=this.state.offset;return a>=i.left&&a<=i.left+i.width&&c>=i.top&&c<=i.top+i.height?{x:a,y:c}:null}var o=this.state,s=o.angleAxisMap,l=o.radiusAxisMap;if(s&&l){var h=Ll(s);return FV({x:a,y:c},h)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),r=eh(e,Cy),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}),GR(GR({},Nl(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){jR.on(VR,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){jR.removeListener(VR,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,r){for(var n=this.state.formattedGraphicalItems,a=0,c=n.length;a<c;a++){var i=n[a];if(i.item===e||i.props.key===e.key||t===Xl(i.item.type)&&r===i.childIndex)return i}return null}},{key:"renderAxis",value:function(e,t,r,n){var a=this.props,c=a.width,i=a.height;return o.createElement(Jk,TR({},e,{className:Ri("recharts-".concat(e.axisType," ").concat(e.axisType),e.className),key:t.key||"".concat(r,"-").concat(n),viewBox:{x:0,y:0,width:c,height:i},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,r=t.left,n=t.top,a=t.height,c=t.width;return o.createElement("defs",null,o.createElement("clipPath",{id:e},o.createElement("rect",{x:r,y:n,height:a,width:c})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=IR(t,2),n=r[0],a=r[1];return GR(GR({},e),{},JR({},n,a.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=IR(t,2),n=r[0],a=r[1];return GR(GR({},e),{},JR({},n,a.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 a=0,c=r.length;a<c;a++){var i=r[a],o=i.props,s=i.item,l=Xl(s.type);if("Bar"===l){var h=(o.data||[]).find((function(t){return WC(e,t)}));if(h)return{graphicalItem:i,payload:h}}else if("RadialBar"===l){var v=(o.data||[]).find((function(t){return FV(e,t)}));if(v)return{graphicalItem:i,payload:v}}else if(LL(i,n)||zL(i,n)||BL(i,n)){var p=DL({graphicalItem:i,activeTooltipItem:n,itemData:s.props.data}),u=void 0===s.props.activeIndex?p:s.props.activeIndex;return{graphicalItem:GR(GR({},i),{},{childIndex:u}),payload:BL(i,n)?s.props.data[p]:i.props.data[p]}}}return null}},{key:"render",value:function(){var e=this;if(!th(this))return null;var t,r,n=this.props,a=n.children,c=n.className,i=n.width,s=n.height,l=n.style,h=n.compact,v=n.title,p=n.desc,u=NR(n,RR),g=ih(u);if(h)return o.createElement(gh,TR({},g,{width:i,height:s,title:v,desc:p}),this.renderClipPath(),lh(a,this.renderMap));this.props.accessibilityLayer&&(g.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,g.role=null!==(r=this.props.role)&&void 0!==r?r:"img",g.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},g.onFocus=function(){e.accessibilityManager.focus()});var m=this.parseEventsOfWrapper();return o.createElement("div",TR({className:Ri("recharts-wrapper",c),style:GR({position:"relative",cursor:"default",width:i,height:s},l)},m,{ref:function(t){e.container=t},role:"region"}),o.createElement(gh,TR({},g,{width:i,height:s,title:v,desc:p,style:rD}),this.renderClipPath(),lh(a,this.renderMap)),this.renderLegend(),this.renderTooltip())}}],n&&FR(t.prototype,n),a&&FR(t,a),Object.defineProperty(t,"prototype",{writable:!1}),l}(),JR(t,"displayName",r),JR(t,"defaultProps",GR({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),JR(t,"getDerivedStateFromProps",(function(e,t){var r=e.dataKey,n=e.data,a=e.children,c=e.width,i=e.height,o=e.layout,s=e.stackOffset,l=e.margin;if(void 0===t.updateId){var h=hD(e);return GR(GR(GR({},h),{},{updateId:0},m(GR(GR({props:e},h),{},{updateId:0}),t)),{},{prevDataKey:r,prevData:n,prevWidth:c,prevHeight:i,prevLayout:o,prevStackOffset:s,prevMargin:l,prevChildren:a})}if(r!==t.prevDataKey||n!==t.prevData||c!==t.prevWidth||i!==t.prevHeight||o!==t.prevLayout||s!==t.prevStackOffset||!kl(l,t.prevMargin)){var v=hD(e),p={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},u=GR(GR({},oD(t,n,o)),{},{updateId:t.updateId+1}),g=GR(GR(GR({},v),p),u);return GR(GR(GR({},g),m(GR({props:e},g),t)),{},{prevDataKey:r,prevData:n,prevWidth:c,prevHeight:i,prevLayout:o,prevStackOffset:s,prevMargin:l,prevChildren:a})}if(!oh(a,t.prevChildren)){var d=!ll(n)?t.updateId:t.updateId+1;return GR(GR({updateId:d},m(GR(GR({props:e},t),{},{updateId:d}),t)),{},{prevChildren:a})}return null})),JR(t,"renderActiveDot",(function(e,t){var r;return r=y(e)?g(e,t):_o(e)?e(t):o.createElement(iA,t),o.createElement(_h,{className:"recharts-active-dot",key:t.key},r)})),t},gD=uD({chartName:"LineChart",GraphicalChild:jS,axisComponents:[{axisType:"xAxis",AxisComp:sR},{axisType:"yAxis",AxisComp:lR}],formatAxisMap:ok}),mD=uD({chartName:"BarChart",GraphicalChild:ek,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:sR},{axisType:"yAxis",AxisComp:lR}],formatAxisMap:ok});uD({chartName:"PieChart",GraphicalChild:qL,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:qA},{axisType:"radiusAxis",AxisComp:RA}],formatAxisMap:IV,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var dD=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},fD=_B,_D=rs,wD=Object.prototype.hasOwnProperty;var bD=function(e,t,r){var n=e[t];wD.call(e,t)&&_D(n,r)&&(void 0!==r||t in e)||fD(e,t,r)},yD=bD,xD=_B;var ZD=function(e,t,r,n){var a=!r;r||(r={});for(var c=-1,i=t.length;++c<i;){var o=t[c],s=n?n(r[o],e[o],o,r,e):void 0;void 0===s&&(s=e[o]),a?xD(r,o,s):yD(r,o,s)}return r},OD=ZD,MD=Pg;var ED=function(e,t){return e&&OD(t,MD(t),e)};var HD=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},PD=vo,jD=mg,VD=HD,CD=Object.prototype.hasOwnProperty;var AD=function(e){if(!PD(e))return VD(e);var t=jD(e),r=[];for(var n in e)("constructor"!=n||!t&&CD.call(e,n))&&r.push(n);return r},LD=ug,zD=AD,BD=Og;var kD=function(e){return BD(e)?LD(e,!0):zD(e)},SD=ZD,RD=kD;var DD=function(e,t){return e&&SD(t,RD(t),e)},ID={exports:{}};!function(e,t){var r=Fi,n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,c=a&&a.exports===n?r.Buffer:void 0,i=c?c.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}}(ID,ID.exports);var TD=ID.exports;var ND=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},FD=ZD,QD=Au;var $D=function(e,t){return FD(e,QD(e),t)},YD=yu,UD=GA,WD=Au,XD=Eu,KD=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)YD(t,WD(e)),e=UD(e);return t}:XD,qD=ZD,GD=KD;var JD=function(e,t){return qD(e,GD(e),t)},eI=Ou,tI=KD,rI=kD;var nI=function(e){return eI(e,rI,tI)},aI=Object.prototype.hasOwnProperty;var cI=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&aI.call(e,"index")&&(r.index=e.index,r.input=e.input),r},iI=hu;var oI=function(e){var t=new e.constructor(e.byteLength);return new iI(t).set(new iI(e)),t},sI=oI;var lI=function(e,t){var r=t?sI(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},hI=/\w*$/;var vI=function(e){var t=new e.constructor(e.source,hI.exec(e));return t.lastIndex=e.lastIndex,t},pI=Qi?Qi.prototype:void 0,uI=pI?pI.valueOf:void 0;var gI=oI;var mI=oI,dI=lI,fI=vI,_I=function(e){return uI?Object(uI.call(e)):{}},wI=function(e,t){var r=t?gI(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};var bI=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return mI(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return dI(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return wI(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return fI(e);case"[object Symbol]":return _I(e)}},yI=vo,xI=Object.create,ZI=function(){function e(){}return function(t){if(!yI(t))return{};if(xI)return xI(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),OI=ZI,MI=GA,EI=mg;var HI=function(e){return"function"!=typeof e.constructor||EI(e)?{}:OI(MI(e))},PI=nm,jI=ro;var VI=function(e){return jI(e)&&"[object Map]"==PI(e)},CI=Ju,AI=tg&&tg.isMap,LI=AI?CI(AI):VI,zI=nm,BI=ro;var kI=function(e){return BI(e)&&"[object Set]"==zI(e)},SI=Ju,RI=tg&&tg.isSet,DI=RI?SI(RI):kI,II=Gp,TI=dD,NI=bD,FI=ED,QI=DD,$I=TD,YI=ND,UI=$D,WI=JD,XI=Ag,KI=nI,qI=nm,GI=cI,JI=bI,eT=HI,tT=Di,rT=Qu,nT=LI,aT=vo,cT=DI,iT=Pg,oT=kD,sT="[object Arguments]",lT="[object Function]",hT="[object Object]",vT={};vT[sT]=vT["[object Array]"]=vT["[object ArrayBuffer]"]=vT["[object DataView]"]=vT["[object Boolean]"]=vT["[object Date]"]=vT["[object Float32Array]"]=vT["[object Float64Array]"]=vT["[object Int8Array]"]=vT["[object Int16Array]"]=vT["[object Int32Array]"]=vT["[object Map]"]=vT["[object Number]"]=vT[hT]=vT["[object RegExp]"]=vT["[object Set]"]=vT["[object String]"]=vT["[object Symbol]"]=vT["[object Uint8Array]"]=vT["[object Uint8ClampedArray]"]=vT["[object Uint16Array]"]=vT["[object Uint32Array]"]=!0,vT["[object Error]"]=vT[lT]=vT["[object WeakMap]"]=!1;var pT=function e(t,r,n,a,c,i){var o,s=1&r,l=2&r,h=4&r;if(n&&(o=c?n(t,a,c,i):n(t)),void 0!==o)return o;if(!aT(t))return t;var v=tT(t);if(v){if(o=GI(t),!s)return YI(t,o)}else{var p=qI(t),u=p==lT||"[object GeneratorFunction]"==p;if(rT(t))return $I(t,s);if(p==hT||p==sT||u&&!c){if(o=l||u?{}:eT(t),!s)return l?WI(t,QI(o,t)):UI(t,FI(o,t))}else{if(!vT[p])return c?t:{};o=JI(t,p,s)}}i||(i=new II);var g=i.get(t);if(g)return g;i.set(t,o),cT(t)?t.forEach((function(a){o.add(e(a,r,n,a,t,i))})):nT(t)&&t.forEach((function(a,c){o.set(c,e(a,r,n,c,t,i))}));var m=v?void 0:(h?l?KI:XI:l?oT:iT)(t);return TI(m||t,(function(a,c){m&&(a=t[c=a]),NI(o,c,e(a,r,n,c,t,i))})),o},uT=cl,gT=yh;var mT=function(e,t){return t.length<2?e:uT(e,gT(t,0,-1))},dT=el,fT=iC,_T=mT,wT=rl;var bT=function(e,t){return t=dT(t,e),null==(e=_T(e,t))||delete e[wT(fT(t))]},yT=oL;var xT=tf;var ZT=function(e){return(null==e?0:e.length)?xT(e,1):[]},OT=ZT,MT=Pf,ET=Sf;var HT=Ts,PT=pT,jT=bT,VT=el,CT=ZD,AT=function(e){return yT(e)?void 0:e},LT=nI,zT=function(e){return ET(MT(e,void 0,OT),e+"")}((function(e,t){var r={};if(null==e)return r;var n=!1;t=HT(t,(function(t){return t=VT(t,e),n||(n=t.length>1),t})),CT(e,LT(e),r),n&&(r=PT(r,7,AT));for(var a=t.length;a--;)jT(r,t[a]);return r})),BT=zt(zT),kT=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],ST=["width","height","className","style","children","type"];function RT(e){return RT="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},RT(e)}function DT(){return DT=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},DT.apply(this,arguments)}function IT(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function TT(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,XT(n.key),n)}}function NT(e,t){return NT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NT(e,t)}function FT(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=$T(e);if(t){var a=$T(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===RT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return QT(e)}(this,r)}}function QT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $T(e){return $T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$T(e)}function YT(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 UT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?YT(Object(r),!0).forEach((function(t){WT(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YT(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function WT(e,t,r){return(t=XT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XT(e){var t=function(e,t){if("object"!==RT(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==RT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RT(t)?t:String(t)}var KT="value",qT=function e(t){var r,n,a=t.depth,c=t.node,i=t.index,o=t.valueKey,s=c.children,l=a+1,h=s&&s.length?s.map((function(t,r){return e({depth:l,node:t,index:r,valueKey:o})})):null;return n=s&&s.length?h.reduce((function(e,t){return e+t[KT]}),0):Ml(c[o])||c[o]<=0?0:c[o],UT(UT({},c),{},(WT(r={children:h},KT,n),WT(r,"depth",a),WT(r,"index",i),r))},GT=function(e,t,r){var n=t*t,a=e.area*e.area,c=e.reduce((function(e,t){return{min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}}),{min:1/0,max:0}),i=c.min,o=c.max;return a?Math.max(n*o*r/a,a/(n*i*r)):1/0},JT=function(e,t,r,n){return t===r.width?function(e,t,r,n){var a=t?Math.round(e.area/t):0;(n||a>r.height)&&(a=r.height);for(var c,i=r.x,o=0,s=e.length;o<s;o++)(c=e[o]).x=i,c.y=r.y,c.height=a,c.width=Math.min(a?Math.round(c.area/a):0,r.x+r.width-i),i+=c.width;return c.width+=r.x+r.width-i,UT(UT({},r),{},{y:r.y+a,height:r.height-a})}(e,t,r,n):function(e,t,r,n){var a=t?Math.round(e.area/t):0;(n||a>r.width)&&(a=r.width);for(var c,i=r.y,o=0,s=e.length;o<s;o++)(c=e[o]).x=r.x,c.y=i,c.width=a,c.height=Math.min(a?Math.round(c.area/a):0,r.y+r.height-i),i+=c.height;return c&&(c.height+=r.y+r.height-i),UT(UT({},r),{},{x:r.x+a,width:r.width-a})}(e,t,r,n)},eN=function e(t,r){var n=t.children;if(n&&n.length){var a,c,i=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}(t),o=[],s=1/0,l=Math.min(i.width,i.height),h=function(e,t){var r=t<0?0:t;return e.map((function(e){var t=e[KT]*r;return UT(UT({},e),{},{area:Ml(t)||t<=0?0:t})}))}(n,i.width*i.height/t[KT]),v=h.slice();for(o.area=0;v.length>0;)o.push(a=v[0]),o.area+=a.area,(c=GT(o,l,r))<=s?(v.shift(),s=c):(o.area-=o.pop().area,i=JT(o,l,i,!1),l=Math.min(i.width,i.height),o.length=o.area=0,s=1/0);return o.length&&(i=JT(o,l,i,!0),o.length=o.area=0),UT(UT({},t),{},{children:h.map((function(t){return e(t,r)}))})}return t},tN={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},rN=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&&NT(e,t)}(c,Z);var t,r,n,a=FT(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return WT(QT(e=a.call.apply(a,[this].concat(r))),"state",UT({},tN)),WT(QT(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),_o(t)&&t()})),WT(QT(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),_o(t)&&t()})),e}return t=c,r=[{key:"handleMouseEnter",value:function(e,t){t.persist();var r=this.props,n=r.onMouseEnter;eh(r.children,Cy)?this.setState({isTooltipActive:!0,activeNode:e},(function(){n&&n(e,t)})):n&&n(e,t)}},{key:"handleMouseLeave",value:function(e,t){t.persist();var r=this.props,n=r.onMouseLeave;eh(r.children,Cy)?this.setState({isTooltipActive:!1,activeNode:null},(function(){n&&n(e,t)})):n&&n(e,t)}},{key:"handleClick",value:function(e){var t=this.props,r=t.onClick;if("nest"===t.type&&e.children){var n=this.props,a=n.width,c=n.height,i=n.dataKey,o=n.aspectRatio,s=qT({depth:0,node:UT(UT({},e),{},{x:0,y:0,width:a,height:c}),index:0,valueKey:i}),l=eN(s,o),h=this.state.nestIndex;h.push(e),this.setState({formatRoot:l,currentRoot:s,nestIndex:h})}r&&r(e)}},{key:"handleNestIndex",value:function(e,t){var r=this.state.nestIndex,n=this.props,a=n.width,c=n.height,i=n.dataKey,o=n.aspectRatio,s=qT({depth:0,node:UT(UT({},e),{},{x:0,y:0,width:a,height:c}),index:0,valueKey:i}),l=eN(s,o);r=r.slice(0,t+1),this.setState({formatRoot:l,currentRoot:e,nestIndex:r})}},{key:"renderItem",value:function(e,t,r){var n=this,a=this.props,c=a.isAnimationActive,i=a.animationBegin,s=a.animationDuration,l=a.animationEasing,h=a.isUpdateAnimationActive,v=a.type,p=a.animationId,u=a.colorPanel,g=this.state.isAnimationFinished,m=t.width,d=t.height,f=t.x,_=t.y,w=t.depth,b=parseInt("".concat((2*Math.random()-1)*m),10),y={};return(r||"nest"===v)&&(y={onMouseEnter:this.handleMouseEnter.bind(this,t),onMouseLeave:this.handleMouseLeave.bind(this,t),onClick:this.handleClick.bind(this,t)}),c?o.createElement(ib,{begin:i,duration:s,isActive:c,easing:l,key:"treemap-".concat(p),from:{x:f,y:_,width:m,height:d},to:{x:f,y:_,width:m,height:d},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var a=r.x,p=r.y,m=r.width,d=r.height;return o.createElement(ib,{from:"translate(".concat(b,"px, ").concat(b,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:i,easing:l,isActive:c,duration:s},o.createElement(_h,y,w>2&&!g?null:n.constructor.renderContentItem(e,UT(UT({},t),{},{isAnimationActive:c,isUpdateAnimationActive:!h,width:m,height:d,x:a,y:p}),v,u)))})):o.createElement(_h,y,this.constructor.renderContentItem(e,UT(UT({},t),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:m,height:d,x:f,y:_}),v,u))}},{key:"renderNode",value:function(e,t){var r=this,n=this.props,a=n.content,c=n.type,i=UT(UT(UT({},ih(this.props)),t),{},{root:e}),s=!t.children||!t.children.length;return!(this.state.currentRoot.children||[]).filter((function(e){return e.depth===t.depth&&e.name===t.name})).length&&e.depth&&"nest"===c?null:o.createElement(_h,{key:"recharts-treemap-node-".concat(i.x,"-").concat(i.y,"-").concat(i.name),className:"recharts-treemap-depth-".concat(t.depth)},this.renderItem(a,i,s),t.children&&t.children.length?t.children.map((function(e){return r.renderNode(t,e)})):null)}},{key:"renderAllNodes",value:function(){var e=this.state.formatRoot;return e?this.renderNode(e,e):null}},{key:"renderTooltip",value:function(){var e=this.props,t=e.children,r=e.nameKey,n=eh(t,Cy);if(!n)return null;var a=this.props,c=a.width,i=a.height,s=this.state,l=s.isTooltipActive,h=s.activeNode,v={x:0,y:0,width:c,height:i},p=h?{x:h.x+h.width/2,y:h.y+h.height/2}:null,u=l&&h?[{payload:h,name:rV(h,r,""),value:rV(h,KT)}]:[];return o.cloneElement(n,{viewBox:v,active:l,coordinate:p,label:"",payload:u})}},{key:"renderNestIndex",value:function(){var e=this,t=this.props,r=t.nameKey,n=t.nestIndexContent,a=this.state.nestIndex;return o.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},a.map((function(t,a){var c=sl(t,r,"root"),i=null;return o.isValidElement(n)&&(i=o.cloneElement(n,t,a)),i=_o(n)?n(t,a):c,o.createElement("div",{onClick:e.handleNestIndex.bind(e,t,a),key:"nest-index-".concat(Cl()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},i)})))}},{key:"render",value:function(){if(!th(this))return null;var e=this.props,t=e.width,r=e.height,n=e.className,a=e.style,c=e.children,i=e.type,s=IT(e,ST),l=ih(s);return o.createElement("div",{className:Ri("recharts-wrapper",n),style:UT(UT({},a),{},{position:"relative",cursor:"default",width:t,height:r}),role:"region"},o.createElement(gh,DT({},l,{width:t,height:"nest"===i?r-30:r}),this.renderAllNodes(),ch(c)),this.renderTooltip(),"nest"===i&&this.renderNestIndex())}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.data!==t.prevData||e.type!==t.prevType||e.width!==t.prevWidth||e.height!==t.prevHeight||e.dataKey!==t.prevDataKey||e.aspectRatio!==t.prevAspectRatio){var r=qT({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,valueKey:e.dataKey}),n=eN(r,e.aspectRatio);return UT(UT({},t),{},{formatRoot:n,currentRoot:r,nestIndex:[r],prevAspectRatio:e.aspectRatio,prevData:e.data,prevWidth:e.width,prevHeight:e.height,prevDataKey:e.dataKey,prevType:e.type})}return null}},{key:"renderContentItem",value:function(e,t,r,n){if(o.isValidElement(e))return o.cloneElement(e,t);if(_o(e))return e(t);var a=t.x,c=t.y,i=t.width,s=t.height,l=t.index,h=null;i>10&&s>10&&t.children&&"nest"===r&&(h=o.createElement(aA,{points:[{x:a+2,y:c+s/2},{x:a+6,y:c+s/2+3},{x:a+2,y:c+s/2+6}]}));var v=null,p=gx(t.name);i>20&&s>20&&p.width<i&&p.height<s&&(v=o.createElement("text",{x:a+8,y:c+s/2+7,fontSize:14},t.name));var u=n||kT;return o.createElement("g",null,o.createElement(KC,DT({fill:t.depth<2?u[l%u.length]:"rgba(255,255,255,0)",stroke:"#fff"},BT(t,"children"),{role:"img"})),h,v)}}],r&&TT(t.prototype,r),n&&TT(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();WT(rN,"displayName","Treemap"),WT(rN,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!by.isSsr,isUpdateAnimationActive:!by.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var nN=function(e,t){for(var r,n=-1,a=e.length;++n<a;){var c=t(e[n]);void 0!==c&&(r=void 0===r?c:r+c)}return r},aN=vd,cN=nN;var iN=function(e,t){return e&&e.length?cN(e,aN(t)):0},oN=zt(iN),sN=["width","height","className","style","children"],lN=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function hN(e){return hN="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},hN(e)}function vN(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function pN(){return pN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pN.apply(this,arguments)}function uN(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,yN(n.key),n)}}function gN(e,t){return gN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gN(e,t)}function mN(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=fN(e);if(t){var a=fN(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===hN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dN(e)}(this,r)}}function dN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fN(e){return fN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fN(e)}function _N(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 wN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_N(Object(r),!0).forEach((function(t){bN(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bN(e,t,r){return(t=yN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yN(e){var t=function(e,t){if("object"!==hN(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==hN(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hN(t)?t:String(t)}var xN={x:0,y:0},ZN=function(e){return e.y+e.dy/2},ON=function(e){return e&&e.value||0},MN=function(e,t){return t.reduce((function(t,r){return t+ON(e[r])}),0)},EN=function(e,t,r){return r.reduce((function(r,n){var a=t[n],c=e[a.source];return r+ZN(c)*ON(t[n])}),0)},HN=function(e,t,r){return r.reduce((function(r,n){var a=t[n],c=e[a.target];return r+ZN(c)*ON(t[n])}),0)},PN=function(e,t){return e.y-t.y},jN=function e(t,r){for(var n=r.targetNodes,a=0,c=n.length;a<c;a++){var i=t[n[a]];i&&(i.depth=Math.max(r.depth+1,i.depth),e(t,i))}},VN=function(e,t,r){for(var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=0,c=e.length;a<c;a++){var i=e[a],o=i.length;n&&i.sort(PN);for(var s=0,l=0;l<o;l++){var h=i[l],v=s-h.y;v>0&&(h.y+=v),s=h.y+h.dy+r}s=t+r;for(var p=o-1;p>=0;p--){var u=i[p],g=u.y+u.dy+r-s;if(!(g>0))break;u.y-=g,s=u.y}}},CN=function(e,t,r,n){for(var a=0,c=t.length;a<c;a++)for(var i=t[a],o=0,s=i.length;o<s;o++){var l=i[o];if(l.sourceLinks.length){var h=MN(r,l.sourceLinks),v=EN(e,r,l.sourceLinks)/h;l.y+=(v-ZN(l))*n}}},AN=function(e,t,r,n){for(var a=t.length-1;a>=0;a--)for(var c=t[a],i=0,o=c.length;i<o;i++){var s=c[i];if(s.targetLinks.length){var l=MN(r,s.targetLinks),h=HN(e,r,s.targetLinks)/l;s.y+=(h-ZN(s))*n}}},LN=function(e){var t=e.data,r=e.width,n=e.height,a=e.iterations,c=e.nodeWidth,i=e.nodePadding,o=e.sort,s=t.links,l=function(e,t,r){for(var n=e.nodes,a=e.links,c=n.map((function(e,t){var r=function(e,t){for(var r=[],n=[],a=[],c=[],i=0,o=e.length;i<o;i++){var s=e[i];s.source===t&&(a.push(s.target),c.push(i)),s.target===t&&(r.push(s.source),n.push(i))}return{sourceNodes:r,sourceLinks:n,targetLinks:c,targetNodes:a}}(a,t);return wN(wN(wN({},e),r),{},{value:Math.max(MN(a,r.sourceLinks),MN(a,r.targetLinks)),depth:0})})),i=0,o=c.length;i<o;i++){var s=c[i];s.sourceNodes.length||jN(c,s)}var l=wA(c,(function(e){return e.depth})).depth;if(l>=1)for(var h=(t-r)/l,v=0,p=c.length;v<p;v++){var u=c[v];u.targetNodes.length||(u.depth=l),u.x=u.depth*h,u.dx=r}return{tree:c,maxDepth:l}}(t,r,c),h=l.tree,v=function(e){for(var t=[],r=0,n=e.length;r<n;r++){var a=e[r];t[a.depth]||(t[a.depth]=[]),t[a.depth].push(a)}return t}(h),p=function(e,t,r,n){for(var a=EP(e.map((function(e){return(t-(e.length-1)*r)/oN(e,ON)}))),c=0,i=e.length;c<i;c++)for(var o=0,s=e[c].length;o<s;o++){var l=e[c][o];l.y=o,l.dy=l.value*a}return n.map((function(e){return wN(wN({},e),{},{dy:ON(e)*a})}))}(v,n,i,s);VN(v,n,i,o);for(var u=1,g=1;g<=a;g++)AN(h,v,p,u*=.99),VN(v,n,i,o),CN(h,v,p,u),VN(v,n,i,o);return function(e,t){for(var r=0,n=e.length;r<n;r++){var a=e[r],c=0,i=0;a.targetLinks.sort((function(r,n){return e[t[r].target].y-e[t[n].target].y})),a.sourceLinks.sort((function(r,n){return e[t[r].source].y-e[t[n].source].y}));for(var o=0,s=a.targetLinks.length;o<s;o++){var l=t[a.targetLinks[o]];l&&(l.sy=c,c+=l.dy)}for(var h=0,v=a.sourceLinks.length;h<v;h++){var p=t[a.sourceLinks[h]];p&&(p.ty=i,i+=p.dy)}}}(h,p),{nodes:h,links:p}},zN=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&&gN(e,t)}(c,Z);var t,r,n,a=mN(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return bN(dN(e=a.call.apply(a,[this].concat(r))),"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),e}return t=c,r=[{key:"handleMouseEnter",value:function(e,t,r){var n=this.props,a=n.onMouseEnter,c=eh(n.children,Cy);c?this.setState((function(r){return"hover"===c.props.trigger?wN(wN({},r),{},{activeElement:e,activeElementType:t,isTooltipActive:!0}):r}),(function(){a&&a(e,t,r)})):a&&a(e,t,r)}},{key:"handleMouseLeave",value:function(e,t,r){var n=this.props,a=n.onMouseLeave,c=eh(n.children,Cy);c?this.setState((function(e){return"hover"===c.props.trigger?wN(wN({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):e}),(function(){a&&a(e,t,r)})):a&&a(e,t,r)}},{key:"handleClick",value:function(e,t,r){var n=this.props,a=n.onClick,c=eh(n.children,Cy);c&&"click"===c.props.trigger&&(this.state.isTooltipActive?this.setState((function(e){return wN(wN({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(r){return wN(wN({},r),{},{activeElement:e,activeElementType:t,isTooltipActive:!0})}))),a&&a(e,t,r)}},{key:"renderLinks",value:function(e,t){var r=this,n=this.props,a=n.linkCurvature,c=n.link,i=n.margin,s=sl(i,"top")||0,l=sl(i,"left")||0;return o.createElement(_h,{className:"recharts-sankey-links",key:"recharts-sankey-links"},e.map((function(e,n){var i=e.sy,h=e.ty,v=e.dy,p=t[e.source],u=t[e.target],g=p.x+p.dx+l,m=u.x+l,d=function(e,t){var r=+e,n=t-r;return function(e){return r+n*e}}(g,m),f=d(a),_=d(1-a),w=wN({sourceX:g,targetX:m,sourceY:p.y+i+v/2+s,targetY:u.y+h+v/2+s,sourceControlX:f,targetControlX:_,sourceRelativeY:i,targetRelativeY:h,linkWidth:v,index:n,payload:wN(wN({},e),{},{source:p,target:u})},ih(c)),b={onMouseEnter:r.handleMouseEnter.bind(r,w,"link"),onMouseLeave:r.handleMouseLeave.bind(r,w,"link"),onClick:r.handleClick.bind(r,w,"link")};return o.createElement(_h,pN({key:"link-".concat(e.source,"-").concat(e.target,"-").concat(e.value)},b),r.constructor.renderLinkItem(c,w))})))}},{key:"renderNodes",value:function(e){var t=this,r=this.props,n=r.node,a=r.margin,c=sl(a,"top")||0,i=sl(a,"left")||0;return o.createElement(_h,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},e.map((function(e,r){var a=e.x,s=e.y,l=e.dx,h=e.dy,v=wN(wN({},ih(n)),{},{x:a+i,y:s+c,width:l,height:h,index:r,payload:e}),p={onMouseEnter:t.handleMouseEnter.bind(t,v,"node"),onMouseLeave:t.handleMouseLeave.bind(t,v,"node"),onClick:t.handleClick.bind(t,v,"node")};return o.createElement(_h,pN({key:"node-".concat(e.x,"-").concat(e.y,"-").concat(e.value)},p),t.constructor.renderNodeItem(n,v))})))}},{key:"renderTooltip",value:function(){var e=this.props,t=e.children,r=e.width,n=e.height,a=e.nameKey,c=eh(t,Cy);if(!c)return null;var i,s=this.state,l=s.isTooltipActive,h=s.activeElement,v=s.activeElementType,p={x:0,y:0,width:r,height:n},u=h?(i=h,"node"===v?{x:i.x+i.width/2,y:i.y+i.height/2}:{x:(i.sourceX+i.targetX)/2,y:(i.sourceY+i.targetY)/2}):xN,g=h?function(e,t,r){var n=e.payload;if("node"===t)return[{payload:e,name:rV(n,r,""),value:rV(n,"value")}];if(n.source&&n.target){var a=rV(n.source,r,""),c=rV(n.target,r,"");return[{payload:e,name:"".concat(a," - ").concat(c),value:rV(n,"value")}]}return[]}(h,v,a):[];return o.cloneElement(c,{viewBox:p,active:l,coordinate:u,label:"",payload:g})}},{key:"render",value:function(){if(!th(this))return null;var e=this.props,t=e.width,r=e.height,n=e.className,a=e.style,c=e.children,i=vN(e,sN),s=this.state,l=s.links,h=s.nodes,v=ih(i);return o.createElement("div",{className:Ri("recharts-wrapper",n),style:wN(wN({},a),{},{position:"relative",cursor:"default",width:t,height:r}),role:"region"},o.createElement(gh,pN({},v,{width:t,height:r}),ch(c),this.renderLinks(l,h),this.renderNodes(h)),this.renderTooltip())}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.data,n=e.width,a=e.height,c=e.margin,i=e.iterations,o=e.nodeWidth,s=e.nodePadding,l=e.sort;if(r!==t.prevData||n!==t.prevWidth||a!==t.prevHeight||!kl(c,t.prevMargin)||i!==t.prevIterations||o!==t.prevNodeWidth||s!==t.prevNodePadding||l!==t.sort){var h=n-(c&&c.left||0)-(c&&c.right||0),v=a-(c&&c.top||0)-(c&&c.bottom||0),p=LN({data:r,width:h,height:v,iterations:i,nodeWidth:o,nodePadding:s,sort:l}),u=p.links,g=p.nodes;return wN(wN({},t),{},{nodes:g,links:u,prevData:r,prevWidth:i,prevHeight:a,prevMargin:c,prevNodePadding:s,prevNodeWidth:o,prevIterations:i,prevSort:l})}return null}},{key:"renderLinkItem",value:function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if(_o(e))return e(t);var r=t.sourceX,n=t.sourceY,a=t.sourceControlX,c=t.targetX,i=t.targetY,s=t.targetControlX,l=t.linkWidth,h=vN(t,lN);return o.createElement("path",pN({className:"recharts-sankey-link",d:"\n M".concat(r,",").concat(n,"\n C").concat(a,",").concat(n," ").concat(s,",").concat(i," ").concat(c,",").concat(i,"\n "),fill:"none",stroke:"#333",strokeWidth:l,strokeOpacity:"0.2"},ih(h)))}},{key:"renderNodeItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):_o(e)?e(t):o.createElement(KC,pN({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},ih(t),{role:"img"}))}}],r&&uN(t.prototype,r),n&&uN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();bN(zN,"displayName","Sankey"),bN(zN,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5},sort:!0}),uD({chartName:"RadarChart",GraphicalChild:vz,axisComponents:[{axisType:"angleAxis",AxisComp:qA},{axisType:"radiusAxis",AxisComp:RA}],formatAxisMap:IV,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),uD({chartName:"ScatterChart",GraphicalChild:oR,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:sR},{axisType:"yAxis",AxisComp:lR},{axisType:"zAxis",AxisComp:$S}],formatAxisMap:ok}),uD({chartName:"AreaChart",GraphicalChild:QS,axisComponents:[{axisType:"xAxis",AxisComp:sR},{axisType:"yAxis",AxisComp:lR}],formatAxisMap:ok}),uD({chartName:"RadialBarChart",GraphicalChild:Lz,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:qA},{axisType:"radiusAxis",AxisComp:RA}],formatAxisMap:IV,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var BN,kN=uD({chartName:"ComposedChart",GraphicalChild:[jS,QS,ek,oR],axisComponents:[{axisType:"xAxis",AxisComp:sR},{axisType:"yAxis",AxisComp:lR},{axisType:"zAxis",AxisComp:$S}],formatAxisMap:ok});function SN(e){return SN="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},SN(e)}function RN(){return RN=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},RN.apply(this,arguments)}function DN(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 IN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?DN(Object(r),!0).forEach((function(t){TN(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DN(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function TN(e,t,r){return t=function(e){var t=function(e,t){if("object"!==SN(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==SN(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===SN(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NN(e,t){var r="".concat(t.x||e.x),n=parseInt(r,10),a="".concat(t.y||e.y),c=parseInt(a,10),i="".concat((null==t?void 0:t.height)||(null==e?void 0:e.height)),o=parseInt(i,10);return IN(IN(IN({},t),CL(e)),{},{height:o,x:n,y:c})}function FN(e){return o.createElement(AL,RN({shapeType:"trapezoid",propTransformer:NN},e))}function QN(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,a,c,i,o=[],s=!0,l=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $N(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 $N(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 $N(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 YN(e){return YN="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},YN(e)}function UN(){return UN=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},UN.apply(this,arguments)}function WN(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 XN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?WN(Object(r),!0).forEach((function(t){tF(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WN(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function KN(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,rF(n.key),n)}}function qN(e,t){return qN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qN(e,t)}function GN(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=eF(e);if(t){var a=eF(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===YN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return JN(e)}(this,r)}}function JN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eF(e){return eF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eF(e)}function tF(e,t,r){return(t=rF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rF(e){var t=function(e,t){if("object"!==YN(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==YN(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===YN(t)?t:String(t)}var nF=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&&qN(e,t)}(c,Z);var t,r,n,a=GN(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return tF(JN(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!1}),tF(JN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),_o(t)&&t()})),tF(JN(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),_o(t)&&t()})),e}return t=c,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderTrapezoidsStatically",value:function(e){var t=this,r=this.props,n=r.shape,a=r.activeShape;return e.map((function(e,r){var c=t.isActiveIndex(r)?a:n,i=XN(XN({},e),{},{isActive:t.isActiveIndex(r),stroke:e.stroke});return o.createElement(_h,UN({className:"recharts-funnel-trapezoid"},Fl(t.props,e,r),{key:"trapezoid-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.name,"-").concat(null==e?void 0:e.value),role:"img"}),o.createElement(FN,UN({option:c},i)))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,t=this.props,r=t.trapezoids,n=t.isAnimationActive,a=t.animationBegin,c=t.animationDuration,i=t.animationEasing,s=t.animationId,l=this.state.prevTrapezoids;return o.createElement(ib,{begin:a,duration:c,isActive:n,easing:i,from:{t:0},to:{t:1},key:"funnel-".concat(s),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var n=t.t,a=r.map((function(e,t){var r=l&&l[t];if(r){var a=zl(r.x,e.x),c=zl(r.y,e.y),i=zl(r.upperWidth,e.upperWidth),o=zl(r.lowerWidth,e.lowerWidth),s=zl(r.height,e.height);return XN(XN({},e),{},{x:a(n),y:c(n),upperWidth:i(n),lowerWidth:o(n),height:s(n)})}var h=zl(e.x+e.upperWidth/2,e.x),v=zl(e.y+e.height/2,e.y),p=zl(0,e.upperWidth),u=zl(0,e.lowerWidth),g=zl(0,e.height);return XN(XN({},e),{},{x:h(n),y:v(n),upperWidth:p(n),lowerWidth:u(n),height:g(n)})}));return o.createElement(_h,null,e.renderTrapezoidsStatically(a))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,r=e.isAnimationActive,n=this.state.prevTrapezoids;return!(r&&t&&t.length)||n&&kP(n,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.trapezoids,n=e.className,a=e.isAnimationActive,c=this.state.isAnimationFinished;if(t||!r||!r.length)return null;var i=Ri("recharts-trapezoids",n);return o.createElement(_h,{className:i},this.renderTrapezoids(),(!a||c)&&wC.renderCallByParent(this.props,r))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}}],r&&KN(t.prototype,r),n&&KN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}();BN=nF,tF(nF,"displayName","Funnel"),tF(nF,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!by.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),tF(nF,"getRealFunnelData",(function(e){var t=e.props,r=t.data,n=t.children,a=ih(e.props),c=Jl(n,ix);return r&&r.length?r.map((function(e,t){return XN(XN(XN({payload:e},a),e),c&&c[t]&&c[t].props)})):c&&c.length?c.map((function(e){return XN(XN({},a),e.props)})):[]})),tF(nF,"getRealWidthHeight",(function(e,t){var r=e.props.width,n=t.width,a=t.height,c=t.left,i=t.right,o=t.top,s=t.bottom,l=a,h=n;return Zl(r)?h=r:gl(r)&&(h=h*parseFloat(r)/100),{realWidth:h-c-i-50,realHeight:l-s-o,offsetX:(n-h)/2,offsetY:(a-l)/2}})),tF(nF,"getComposedData",(function(e){var t=e.item,r=e.offset,n=BN.getRealFunnelData(t),a=t.props,c=a.dataKey,i=a.nameKey,o=a.tooltipType,s=a.lastShapeType,l=a.reversed,h=r.left,v=r.top,p=BN.getRealWidthHeight(t,r),u=p.realHeight,g=p.realWidth,m=p.offsetX,d=p.offsetY,f=Math.max.apply(null,n.map((function(e){return rV(e,c,0)}))),_=n.length,w=u/_,b={x:r.left,y:r.top,width:r.width,height:r.height},y=n.map((function(e,t){var r,a=rV(e,c,0),l=rV(e,i,t),p=a;if(t!==_-1)(r=rV(n[t+1],c,0))instanceof Array&&(r=QN(r,1)[0]);else if(a instanceof Array&&2===a.length){var u=QN(a,2);p=u[0],r=u[1]}else r="rectangle"===s?p:0;var y=(f-p)*g/(2*f)+v+25+m,x=w*t+h+d,Z=p/f*g,O=r/f*g,M=[{name:l,value:p,payload:e,dataKey:c,type:o}],E={x:y+Z/2,y:x+w/2};return XN(XN({x:y,y:x,width:Math.max(Z,O),upperWidth:Z,lowerWidth:O,height:w,name:l,val:p,tooltipPayload:M,tooltipPosition:E},BT(e,"width")),{},{payload:e,parentViewBox:b,labelViewBox:{x:y+(Z-O)/4,y:x,width:Math.abs(Z-O)/2+Math.min(Z,O),height:w}})}));return l&&(y=y.map((function(e,t){var r=e.y-t*w+(_-1-t)*w;return XN(XN({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*w+(_-1-t)*w,tooltipPosition:XN(XN({},e.tooltipPosition),{},{y:r+w/2}),labelViewBox:XN(XN({},e.labelViewBox),{},{y:r})})}))),{trapezoids:y,data:n}})),uD({chartName:"FunnelChart",GraphicalChild:nF,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}}),L.red.red50,L.blue.blue700,L.grey.grey400,L.red.red50,L.blue.blue700,L.red.red50,L.blue.blue200,L.red.red50;const aF={fill:`${L.grey.grey500}`,fontFamily:"Poppins",fontSize:12,textAnchor:"middle",x:0,y:0},cF={tick:{fill:`${L.grey.grey500}`,fontFamily:"Poppins",fontSize:12,fontWeight:400},tickLine:!1,axisLine:!1,label:{fill:`${L.grey.grey800}`,fontSize:12,fontFamily:"Poppins",offset:20,position:"inside"}},iF={type:"monotone",strokeWidth:2},oF=n.div`
4258
4258
  display: flex;
4259
4259
  justify-content: center;
4260
4260
  align-items: center;
@@ -4366,7 +4366,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
4366
4366
  svg {
4367
4367
  cursor: pointer;
4368
4368
  }
4369
- `,xF=(e,t)=>{if(e&&"DD/MM/YYYY"===t&&!t.includes("-")){const t=e.split("/");return`${t[2]}-${t[1]}-${t[0]}`}return e},ZF="Actual Workforce overlay",OF="Workforce Variance",MF=`${L.red.red50}`,EF="transparent",HF=r=>{const{payload:n}=r;return e(oF,{children:n?.map((({color:r,type:n,value:a,payload:c,shape:i})=>{if("none"===n)return null;if(a===ZF)return null;return t(sF,{children:[i??e(lF,{children:e(hF,{color:(a===OF?MF:r===EF?c?.fill:r||EF)||EF})}),e(vF,{children:a})]},a)}))})},PF=t=>{const{value:r,dy:n}=t;return e(uF,{dy:n,...aF,children:r})},jF=r=>{const{x:n,y:a,payload:c,rotate:i=0,dateFormat:o}=r,s=St(xF(c.value,o)).format("ddd"),l=St(xF(c.value,o)).format(o);return t(pF,{transform:`translate(${n},${a}), rotate(${i})`,children:[e(PF,{value:s,dy:16}),e(PF,{value:l,dy:36})]})},VF=(e,t)=>St(xF(e,t)).format("ddd, DD MMM YYYY"),CF=({color:r,name:n,value:a,shape:c})=>n===ZF?null:t(dF,{children:[t(fF,{children:[c,r&&e(_F,{color:n===OF?MF:r||EF}),e(wF,{children:n})]}),e(bF,{children:a})]}),AF=r=>{const{label:n,payload:a,labelFormatter:c}=r,i=c?c(n,a||[]):n;return t(gF,{style:{transform:"translateY(-50%)"},children:[e(mF,{children:i}),a?.map((t=>{return e(CF,{color:t.color,name:t.name,value:(r=t.value,isNaN(Number(r))?r:Number(r).toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:2}))});var r}))]})},LF=e=>{const[t,r]=p(!1);return l((()=>{document.addEventListener("fullscreenchange",(function(){document.fullscreenElement?r(!0):r(!1)}))}),[]),{fullScreenEnterExitRequest:()=>{if(e.current){const t=e.current.current.parentElement;if(t)if(document.fullscreenElement)document.exitFullscreen&&(document.exitFullscreen(),r(!1));else try{t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()}catch(e){console.log({error:e})}finally{r((e=>!e))}}},fullScreen:t}},zF=n=>{const{width:a,height:c=600,margin:i={right:30,bottom:20},data:o,areas:s,areasYAxisRight:l,xAxisDataKey:h,showTooltip:v,xAxisLabel:g,yAxisLeftLabel:m,showLegends:d,showRightYAxis:f,isGradient:_=!1,yAxisRightLabel:b,gradientColor:y,gradientStart:x=0,gradientStop:Z=.3,customTooltip:O=e(AF,{}),areaProps:M={},cartesianGridProps:E={},legendProps:H={},tooltipProps:P={},xAxisProps:j={},yAxisProps:V={},yAxisRightProps:C={},areaYAxisRightProps:A={},showAverageLine:z=!0,averageLineValue:B,averageLineColor:k=`${L.green.green400}`,customTooltipLabelFormatter:S=VF,hideXAxis:R=!1,hideYAxis:D=!1,hideCartesianGrid:I=!1,fullScreenFeature:T=!1,dateFormat:N}=n,[F,Q]=p({x:0,y:0}),$=u(null),Y=$?.current?.current?.parentElement,{fullScreen:U,fullScreenEnterExitRequest:W}=LF($);return t(r,{children:[T&&e(yF,{fullScreen:U,children:e(at,{width:24,height:24,icon:U?"fullscreen_exit":"fullscreen",onClick:W})}),e(cx,{width:a,height:c,ref:$,children:t(kN,{data:o,margin:i,onMouseMove:e=>Q({x:e.chartX,y:e.chartY<=60?70:e.chartY}),children:[e("defs",{children:_&&t("linearGradient",{id:"custom_linear_gradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:y,stopOpacity:Z}),e("stop",{offset:"95%",stopColor:y,stopOpacity:x})]})}),v&&e(Cy,{content:O,labelFormatter:e=>S(e,N),coordinate:{...F},position:{y:F.y},reverseDirection:{x:F.x>Y?.getBoundingClientRect().width/2},...P}),d&&e(Xd,{dy:80,verticalAlign:"bottom",height:100,layout:"horizontal",content:e(HF,{}),wrapperStyle:{paddingTop:60},...H}),!R&&e(sR,{dataKey:h,includeHidden:!0,interval:o.length>10?"equidistantPreserveStart":1,minTickGap:o.length>10?40:5,tick:e(jF,{dateFormat:N}),axisLine:{stroke:`${L.grey.grey200}`},tickLine:!1,label:{value:g,position:"insideBottom",fill:`${L.grey.grey700}`,fontSize:12,fontFamily:"Poppins",offset:-45},padding:{right:10},...j}),!D&&e(lR,{yAxisId:"left",...cF,label:{value:m,angle:-90,dx:-30,...cF.label},...V}),f&&t(r,{children:[e(lR,{...cF,yAxisId:"right",hide:!f,orientation:"right",tickCount:3,tickFormatter:e=>`${e}%`,interval:0,minTickGap:20,domain:[0,100],label:{value:b,angle:90,dx:20,...cF.label},...V,...C}),l?.map((e=>w(QS,{...e,...iF,key:e.dataKey,dataKey:e.dataKey,fillOpacity:e.fillOpacity,stroke:e.stroke||"transparent",fill:_?"url(#custom_linear_gradient)":e.color||"transparent",yAxisId:e.yAxisId||"left",name:e.name,...M,...A})))]}),s?.map((e=>w(QS,{...e,...iF,key:e.dataKey,dataKey:e.dataKey,fillOpacity:e.fillOpacity,stroke:e.stroke||"transparent",fill:_?"url(#custom_linear_gradient)":e.color||"transparent",yAxisId:e.yAxisId||"left",name:e.name,...M,...A}))),!I&&e(uS,{...E,strokeDasharray:"4 4",vertical:!1,stroke:L.grey.grey200}),z&&e(wk,{y:B,yAxisId:"left",stroke:k,strokeDasharray:"4 4"})]})})]})},BF=t=>{const{x:r,y:n,payload:a,rotate:c=0,dateFormat:i}=t,[o,s]=a.value.split(" - "),l=i.replace(/\/yyyy/gi,""),h=St(o,i).format(l),v=St(s,i).format(i);return e(pF,{transform:`translate(${r},${n}), rotate(${c})`,children:e(PF,{value:`${h} - ${v}`,dy:16})})},kF=t=>{const{x:r,y:n,width:a,height:c}=t;return e("svg",{style:{pointerEvents:"none"},children:e("line",{x1:+r+ +a/2,y1:0,x2:+r+ +a/2,y2:+n+ +c+10,stroke:L.grey.grey400,strokeWidth:1,opacity:.1})})},SF=r=>{const n=r.dateFormat,a=r.payload[0]?.dataKey,[c]="string"==typeof a&&a?.split(".")||[],i=r.payload[0]?.payload[c],o=St(i?.date,n).format(`ddd, ${n}`);return t(gF,{style:{transform:"translateY(-50%)"},children:[e(mF,{children:o}),e(CF,{name:"Work Phase Time:",value:i?.workPhaseTimeHour||"N/A",color:L.blue.blue600}),e(CF,{name:"Slack Time:",value:i?.slackTimeHour||"N/A",color:L.grey.grey300})]})},RF={},DF=[1,2,3,4,5,6,7],IF=e=>`${e}h`,TF=r=>{const{legends:n,data:a,width:c,height:i,labelX:s,labelY:l,workPhaseTimeHourLabel:h,slackTimeHourLabel:v,dataKeyX:u,dataKeyY:g,workPhaseTimeHourDataKey:m,slackTimeHourDataKey:d,margin:f,showLegends:_,showTooltip:w,customXAxisTickFormatter:b,customYAxisTickFormatter:y=IF,dateFormat:x="MM/DD/YYYY"}=r,[Z,O]=p(!1),[M,E]=p({chartX:0}),H=a.length>4?-10:0,P=e=>{const{x:t}=e||{};"number"==typeof t&&(E({chartX:t+18}),O(!0))},j=()=>{O(!1)};return e(cx,{width:c,height:i,children:t(mD,{data:a,barSize:18,barGap:6,margin:f,children:[e(uS,{vertical:!1,strokeDasharray:"4 4",stroke:L.grey.grey200}),w&&e(Cy,{shared:!1,content:e(SF,{dateFormat:x})}),_&&e(Xd,{dy:80,verticalAlign:"bottom",height:100,layout:"horizontal",content:e(HF,{}),wrapperStyle:{paddingTop:60},payload:n}),e(sR,{dataKey:u,tickLine:!1,xAxisId:"xAxis",tick:e(BF,{dateFormat:x,rotate:H}),tickFormatter:b,interval:0,axisLine:{stroke:`${L.grey.grey200}`},padding:{left:0,right:0},label:{value:s,fill:`${L.grey.grey700}`,fontSize:12,fontFamily:"Poppins",dy:40}}),e(lR,{...cF,tickFormatter:y,dataKey:g,label:{...cF.label,value:l,angle:-90,dx:-30}}),DF.map((r=>t(o.Fragment,{children:[e(ek,{dataKey:`day${r}.${m}`,stackId:r,xAxisId:"xAxis",fill:Z?`${L.blue.blue400}`:`${L.blue.blue600}`,...RF,className:"productive",name:h,activeBar:!1,onMouseOver:P,onMouseLeave:j,background:{fill:"#ffffff00"},children:Z&&e(wC,{dataKey:`day${r}.${m}`,content:kF,x:M.chartX-18})}),e(ek,{dataKey:`day${r}.${d}`,stackId:r,xAxisId:"xAxis",fill:Z?`${L.grey.grey300}`:`${L.grey.grey200}`,...RF,radius:[4,4,0,0],className:"unproductive",name:v,activeBar:!1,onMouseOver:P,onMouseLeave:j})]},r)))]})})};L.blue.blue700,L.blue.blue700,L.grey.grey400,L.grey.grey400;const NF={fill:`${L.grey.grey400}`,fontFamily:"Poppins",fontSize:12,textAnchor:"middle",x:0,y:0},FF={tick:{fill:`${L.grey.grey400}`,fontFamily:"Poppins",fontSize:12,fontWeight:400},tickLine:!1,axisLine:!1,label:{position:"inside",fill:`${L.grey.grey600}`,fontSize:12,fontFamily:"Poppins",offset:20}},QF=n.div`
4369
+ `,xF=(e,t)=>{if(e&&"DD/MM/YYYY"===t&&!t.includes("-")){const t=e.split("/");return`${t[2]}-${t[1]}-${t[0]}`}return e},ZF="Actual Workforce overlay",OF="Workforce Variance",MF=`${L.red.red50}`,EF="transparent",HF=r=>{const{payload:n}=r;return e(oF,{children:n?.map((({color:r,type:n,value:a,payload:c,shape:i})=>{if("none"===n)return null;if(a===ZF)return null;return t(sF,{children:[i??e(lF,{children:e(hF,{color:(a===OF?MF:r===EF?c?.fill:r||EF)||EF})}),e(vF,{children:a})]},a)}))})},PF=t=>{const{value:r,dy:n}=t;return e(uF,{dy:n,...aF,children:r})},jF=r=>{const{x:n,y:a,payload:c,rotate:i=0,dateFormat:o}=r,s=St(xF(c.value,o)).format("ddd"),l=St(xF(c.value,o)).format(o);return t(pF,{transform:`translate(${n},${a}), rotate(${i})`,children:[e(PF,{value:s,dy:16}),e(PF,{value:l,dy:36})]})},VF=(e,t)=>St(xF(e,t)).format("ddd, DD MMM YYYY"),CF=({color:r,name:n,value:a,shape:c})=>n===ZF?null:t(dF,{children:[t(fF,{children:[c,r&&e(_F,{color:n===OF?MF:r||EF}),e(wF,{children:n})]}),e(bF,{children:a})]}),AF=r=>{const{label:n,payload:a,labelFormatter:c}=r,i=c?c(n,a||[]):n;return t(gF,{style:{transform:"translateY(-50%)"},children:[e(mF,{children:i}),a?.map((t=>{return e(CF,{color:t.color,name:t.name,value:(r=t.value,isNaN(Number(r))?r:Number(r).toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:2}))});var r}))]})},LF=e=>{const[t,r]=p(!1);return l((()=>{document.addEventListener("fullscreenchange",(function(){document.fullscreenElement?r(!0):r(!1)}))}),[]),{fullScreenEnterExitRequest:()=>{if(e.current){const t=e.current.current.parentElement;if(t)if(document.fullscreenElement)document.exitFullscreen&&(document.exitFullscreen(),r(!1));else try{t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()}catch(e){console.log({error:e})}finally{r((e=>!e))}}},fullScreen:t}},zF=n=>{const{width:a,height:c=600,margin:i={right:30,bottom:20},data:o,areas:s,areasYAxisRight:l,xAxisDataKey:h,showTooltip:v,xAxisLabel:g,yAxisLeftLabel:m,showLegends:d,showRightYAxis:f,isGradient:_=!1,yAxisRightLabel:w,gradientColor:y,gradientStart:x=0,gradientStop:Z=.3,customTooltip:O=e(AF,{}),areaProps:M={},cartesianGridProps:E={},legendProps:H={},tooltipProps:P={},xAxisProps:j={},yAxisProps:V={},yAxisRightProps:C={},areaYAxisRightProps:A={},showAverageLine:z=!0,averageLineValue:B,averageLineColor:k=`${L.green.green400}`,customTooltipLabelFormatter:S=VF,hideXAxis:R=!1,hideYAxis:D=!1,hideCartesianGrid:I=!1,fullScreenFeature:T=!1,dateFormat:N}=n,[F,Q]=p({x:0,y:0}),$=u(null),Y=$?.current?.current?.parentElement,{fullScreen:U,fullScreenEnterExitRequest:W}=LF($);return t(r,{children:[T&&e(yF,{fullScreen:U,children:e(at,{width:24,height:24,icon:U?"fullscreen_exit":"fullscreen",onClick:W})}),e(cx,{width:a,height:c,ref:$,children:t(kN,{data:o,margin:i,onMouseMove:e=>Q({x:e.chartX,y:e.chartY<=60?70:e.chartY}),children:[e("defs",{children:_&&t("linearGradient",{id:"custom_linear_gradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:y,stopOpacity:Z}),e("stop",{offset:"95%",stopColor:y,stopOpacity:x})]})}),v&&e(Cy,{content:O,labelFormatter:e=>S(e,N),coordinate:{...F},position:{y:F.y},reverseDirection:{x:F.x>Y?.getBoundingClientRect().width/2},...P}),d&&e(Xd,{dy:80,verticalAlign:"bottom",height:100,layout:"horizontal",content:e(HF,{}),wrapperStyle:{paddingTop:60},...H}),!R&&e(sR,{dataKey:h,includeHidden:!0,interval:o.length>10?"equidistantPreserveStart":1,minTickGap:o.length>10?40:5,tick:e(jF,{dateFormat:N}),axisLine:{stroke:`${L.grey.grey200}`},tickLine:!1,label:{value:g,position:"insideBottom",fill:`${L.grey.grey700}`,fontSize:12,fontFamily:"Poppins",offset:-45},padding:{right:10},...j}),!D&&e(lR,{yAxisId:"left",...cF,label:{value:m,angle:-90,dx:-30,...cF.label},...V}),f&&t(r,{children:[e(lR,{...cF,yAxisId:"right",hide:!f,orientation:"right",tickCount:3,tickFormatter:e=>`${e}%`,interval:0,minTickGap:20,domain:[0,100],label:{value:w,angle:90,dx:20,...cF.label},...V,...C}),l?.map((e=>b(QS,{...e,...iF,key:e.dataKey,dataKey:e.dataKey,fillOpacity:e.fillOpacity,stroke:e.stroke||"transparent",fill:_?"url(#custom_linear_gradient)":e.color||"transparent",yAxisId:e.yAxisId||"left",name:e.name,...M,...A})))]}),s?.map((e=>b(QS,{...e,...iF,key:e.dataKey,dataKey:e.dataKey,fillOpacity:e.fillOpacity,stroke:e.stroke||"transparent",fill:_?"url(#custom_linear_gradient)":e.color||"transparent",yAxisId:e.yAxisId||"left",name:e.name,...M,...A}))),!I&&e(uS,{...E,strokeDasharray:"4 4",vertical:!1,stroke:L.grey.grey200}),z&&e(wk,{y:B,yAxisId:"left",stroke:k,strokeDasharray:"4 4"})]})})]})},BF=t=>{const{x:r,y:n,payload:a,rotate:c=0,dateFormat:i}=t,[o,s]=a.value.split(" - "),l=i.replace(/\/yyyy/gi,""),h=St(o,i).format(l),v=St(s,i).format(i);return e(pF,{transform:`translate(${r},${n}), rotate(${c})`,children:e(PF,{value:`${h} - ${v}`,dy:16})})},kF=t=>{const{x:r,y:n,width:a,height:c}=t;return e("svg",{style:{pointerEvents:"none"},children:e("line",{x1:+r+ +a/2,y1:0,x2:+r+ +a/2,y2:+n+ +c+10,stroke:L.grey.grey400,strokeWidth:1,opacity:.1})})},SF=r=>{const n=r.dateFormat,a=r.payload[0]?.dataKey,[c]="string"==typeof a&&a?.split(".")||[],i=r.payload[0]?.payload[c],o=St(i?.date,n).format(`ddd, ${n}`);return t(gF,{style:{transform:"translateY(-50%)"},children:[e(mF,{children:o}),e(CF,{name:"Work Phase Time:",value:i?.workPhaseTimeHour||"N/A",color:L.blue.blue600}),e(CF,{name:"Slack Time:",value:i?.slackTimeHour||"N/A",color:L.grey.grey300})]})},RF={},DF=[1,2,3,4,5,6,7],IF=e=>`${e}h`,TF=r=>{const{legends:n,data:a,width:c,height:i,labelX:s,labelY:l,workPhaseTimeHourLabel:h,slackTimeHourLabel:v,dataKeyX:u,dataKeyY:g,workPhaseTimeHourDataKey:m,slackTimeHourDataKey:d,margin:f,showLegends:_,showTooltip:w,customXAxisTickFormatter:b,customYAxisTickFormatter:y=IF,dateFormat:x="MM/DD/YYYY"}=r,[Z,O]=p(!1),[M,E]=p({chartX:0}),H=a.length>4?-10:0,P=e=>{const{x:t}=e||{};"number"==typeof t&&(E({chartX:t+18}),O(!0))},j=()=>{O(!1)};return e(cx,{width:c,height:i,children:t(mD,{data:a,barSize:18,barGap:6,margin:f,children:[e(uS,{vertical:!1,strokeDasharray:"4 4",stroke:L.grey.grey200}),w&&e(Cy,{shared:!1,content:e(SF,{dateFormat:x})}),_&&e(Xd,{dy:80,verticalAlign:"bottom",height:100,layout:"horizontal",content:e(HF,{}),wrapperStyle:{paddingTop:60},payload:n}),e(sR,{dataKey:u,tickLine:!1,xAxisId:"xAxis",tick:e(BF,{dateFormat:x,rotate:H}),tickFormatter:b,interval:0,axisLine:{stroke:`${L.grey.grey200}`},padding:{left:0,right:0},label:{value:s,fill:`${L.grey.grey700}`,fontSize:12,fontFamily:"Poppins",dy:40}}),e(lR,{...cF,tickFormatter:y,dataKey:g,label:{...cF.label,value:l,angle:-90,dx:-30}}),DF.map((r=>t(o.Fragment,{children:[e(ek,{dataKey:`day${r}.${m}`,stackId:r,xAxisId:"xAxis",fill:Z?`${L.blue.blue400}`:`${L.blue.blue600}`,...RF,className:"productive",name:h,activeBar:!1,onMouseOver:P,onMouseLeave:j,background:{fill:"#ffffff00"},children:Z&&e(wC,{dataKey:`day${r}.${m}`,content:kF,x:M.chartX-18})}),e(ek,{dataKey:`day${r}.${d}`,stackId:r,xAxisId:"xAxis",fill:Z?`${L.grey.grey300}`:`${L.grey.grey200}`,...RF,radius:[4,4,0,0],className:"unproductive",name:v,activeBar:!1,onMouseOver:P,onMouseLeave:j})]},r)))]})})};L.blue.blue700,L.blue.blue700,L.grey.grey400,L.grey.grey400;const NF={fill:`${L.grey.grey400}`,fontFamily:"Poppins",fontSize:12,textAnchor:"middle",x:0,y:0},FF={tick:{fill:`${L.grey.grey400}`,fontFamily:"Poppins",fontSize:12,fontWeight:400},tickLine:!1,axisLine:!1,label:{position:"inside",fill:`${L.grey.grey600}`,fontSize:12,fontFamily:"Poppins",offset:20}},QF=n.div`
4370
4370
  display: flex;
4371
4371
  justify-content: center;
4372
4372
  align-items: center;
@@ -4653,7 +4653,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
4653
4653
  font-style: normal;
4654
4654
  font-weight: 500;
4655
4655
  line-height: 16px; /* 133.333% */
4656
- `,pW=r=>{const{payload:n}=r;return e(GU,{children:n?.map((r=>t(JU,{children:[e(eW,{children:e(tW,{color:r.payload?.fill||"transparent"})}),e(rW,{children:r.value})]},r.payload?.value)))})},uW=t=>{const{value:r,dy:n}=t;return e(aW,{dy:n,...XU,children:r})},gW=t=>{const{x:r,y:n,payload:a,dateFormat:c}=t,i=St(xF(a.value,c)).format(c);return e(nW,{transform:`translate(${r},${n})`,children:e(uW,{value:i,dy:16})})},mW=(e,t)=>St(xF(e,t)).format("ddd, DD MMM YYYY"),dW=({color:r,name:n,value:a})=>t(oW,{children:[t(sW,{children:[e(lW,{color:r||"transparent"}),e(hW,{children:n})]}),e(vW,{children:a})]}),fW=r=>{const{label:n,payload:a,labelFormatter:c}=r;return t(cW,{children:[e(iW,{children:c?.(n,a||[])||n}),a?.map((t=>e(dW,{color:t.color,name:t.name,value:t.value},t.value)))]})},_W=n=>{const{width:a,height:c=600,margin:i={right:30,bottom:20},data:o,lines:s,linesYAxisRight:l,xAxisDataKey:h,showTooltip:v,xAxisLabel:u,yAxisLabel:g,showLegends:m,showRightYAxis:d,yAxisRightLabel:f,customTooltip:_=e(fW,{}),lineProps:b={},cartesianGridProps:y={},legendProps:x={},tooltipProps:Z={},xAxisProps:O={},yAxisProps:M={},yAxisRightProps:E={},lineYAxisRightProps:H={},customTooltipLabelFormatter:P=mW,dateFormat:j="MM/DD/YYYY"}=n,[V,C]=p(100);return e(cx,{width:a,height:c,children:t(gD,{onMouseMove:e=>{const{chartY:t}=e;C((()=>t))},data:o,margin:i,children:[v&&e(Cy,{content:_,labelFormatter:e=>P(e,j),wrapperStyle:{top:V<20?"0px":"-80px",left:"-86px",right:"104%",height:"1%"},allowEscapeViewBox:{x:!1,y:!1},cursor:{stroke:`${L.grey.grey800}`,strokeWidth:1.25,strokeDasharray:"4 4"},...Z}),e(uS,{...y,strokeDasharray:"4 4",vertical:!1,stroke:L.grey.grey200}),m&&e(Xd,{dy:80,verticalAlign:"bottom",height:100,layout:"horizontal",content:e(pW,{}),wrapperStyle:{paddingTop:60,paddingLeft:"55px"},...x}),e(sR,{dataKey:h,includeHidden:!0,minTickGap:20,tick:e(gW,{dateFormat:j}),axisLine:{stroke:"#E4E9F2"},tickLine:!1,label:{value:u,position:"insideBottom",fill:`${L.grey.grey600}`,fontSize:12,fontFamily:"Poppins",offset:-45},...O}),e(lR,{yAxisId:"left",...KU,label:{value:g,angle:-90,dx:-23,...KU.label},...M}),d&&t(r,{children:[e(lR,{...KU,yAxisId:"right",hide:!d,orientation:"right",tickCount:3,tickFormatter:e=>`${e}%`,interval:0,minTickGap:20,domain:[0,100],label:{value:f,angle:90,dx:20,...KU.label},...M,...E}),l?.map((e=>w(jS,{...qU,key:e.dataKey,dataKey:e.dataKey,stroke:e?.stroke,fillOpacity:e.fillOpacity,fill:e.color,yAxisId:e.yAxisId||"left",name:e.name,...b,...H,dot:!1})))]}),s?.map((e=>w(jS,{...qU,key:e.dataKey,dataKey:e.dataKey,fillOpacity:e.fillOpacity,stroke:e.stroke,fill:e.color,yAxisId:e.yAxisId||"left",dot:!1,activeDot:{r:5.5},name:e.name,...b})))]})})},wW=n("div")`
4656
+ `,pW=r=>{const{payload:n}=r;return e(GU,{children:n?.map((r=>t(JU,{children:[e(eW,{children:e(tW,{color:r.payload?.fill||"transparent"})}),e(rW,{children:r.value})]},r.payload?.value)))})},uW=t=>{const{value:r,dy:n}=t;return e(aW,{dy:n,...XU,children:r})},gW=t=>{const{x:r,y:n,payload:a,dateFormat:c}=t,i=St(xF(a.value,c)).format(c);return e(nW,{transform:`translate(${r},${n})`,children:e(uW,{value:i,dy:16})})},mW=(e,t)=>St(xF(e,t)).format("ddd, DD MMM YYYY"),dW=({color:r,name:n,value:a})=>t(oW,{children:[t(sW,{children:[e(lW,{color:r||"transparent"}),e(hW,{children:n})]}),e(vW,{children:a})]}),fW=r=>{const{label:n,payload:a,labelFormatter:c}=r;return t(cW,{children:[e(iW,{children:c?.(n,a||[])||n}),a?.map((t=>e(dW,{color:t.color,name:t.name,value:t.value},t.value)))]})},_W=n=>{const{width:a,height:c=600,margin:i={right:30,bottom:20},data:o,lines:s,linesYAxisRight:l,xAxisDataKey:h,showTooltip:v,xAxisLabel:u,yAxisLabel:g,showLegends:m,showRightYAxis:d,yAxisRightLabel:f,customTooltip:_=e(fW,{}),lineProps:w={},cartesianGridProps:y={},legendProps:x={},tooltipProps:Z={},xAxisProps:O={},yAxisProps:M={},yAxisRightProps:E={},lineYAxisRightProps:H={},customTooltipLabelFormatter:P=mW,dateFormat:j="MM/DD/YYYY"}=n,[V,C]=p(100);return e(cx,{width:a,height:c,children:t(gD,{onMouseMove:e=>{const{chartY:t}=e;C((()=>t))},data:o,margin:i,children:[v&&e(Cy,{content:_,labelFormatter:e=>P(e,j),wrapperStyle:{top:V<20?"0px":"-80px",left:"-86px",right:"104%",height:"1%"},allowEscapeViewBox:{x:!1,y:!1},cursor:{stroke:`${L.grey.grey800}`,strokeWidth:1.25,strokeDasharray:"4 4"},...Z}),e(uS,{...y,strokeDasharray:"4 4",vertical:!1,stroke:L.grey.grey200}),m&&e(Xd,{dy:80,verticalAlign:"bottom",height:100,layout:"horizontal",content:e(pW,{}),wrapperStyle:{paddingTop:60,paddingLeft:"55px"},...x}),e(sR,{dataKey:h,includeHidden:!0,minTickGap:20,tick:e(gW,{dateFormat:j}),axisLine:{stroke:"#E4E9F2"},tickLine:!1,label:{value:u,position:"insideBottom",fill:`${L.grey.grey600}`,fontSize:12,fontFamily:"Poppins",offset:-45},...O}),e(lR,{yAxisId:"left",...KU,label:{value:g,angle:-90,dx:-23,...KU.label},...M}),d&&t(r,{children:[e(lR,{...KU,yAxisId:"right",hide:!d,orientation:"right",tickCount:3,tickFormatter:e=>`${e}%`,interval:0,minTickGap:20,domain:[0,100],label:{value:f,angle:90,dx:20,...KU.label},...M,...E}),l?.map((e=>b(jS,{...qU,key:e.dataKey,dataKey:e.dataKey,stroke:e?.stroke,fillOpacity:e.fillOpacity,fill:e.color,yAxisId:e.yAxisId||"left",name:e.name,...w,...H,dot:!1})))]}),s?.map((e=>b(jS,{...qU,key:e.dataKey,dataKey:e.dataKey,fillOpacity:e.fillOpacity,stroke:e.stroke,fill:e.color,yAxisId:e.yAxisId||"left",dot:!1,activeDot:{r:5.5},name:e.name,...w})))]})})},wW=n("div")`
4657
4657
  display: flex;
4658
4658
  align-items: center;
4659
4659
  position: relative;